Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updating readme,

minor cleanup, and removing delays on MADA version
  • Loading branch information...
commit 63a6747c035cccc28108ee2e1da6943e14ead8f0 1 parent 752149c
@CorpusCallosum CorpusCallosum authored
Showing with 20 additions and 3 deletions.
  1. +19 −0 README.md
  2. +1 −3 illumination_mada.py
View
19 README.md
@@ -1,6 +1,25 @@
Illumination
============
+
+NON-INTERACTIVE VERSION for MADA INSTALLATION
+
+run from console:
+java -d32 -jar -Xmx500M processing/processing-py.jar illumination_mada_.py
+
+TO CALIBRATE:
+press "c" to enter calibration mode
+use arrow keys to align image
+use [] -= and ,. keys to adjust image scale
+press "c" again to exit calibration mode
+
+TO RUN:
+press [SPACE]
+to run the OCR, light will begin to flicker
+wait 1-5 minutes
+
+
+INTERACTIVE VERSION
Launch RemoteCapture
View
4 illumination_mada.py
@@ -344,7 +344,6 @@ def lightBox(self,r):
#fill(255,10)
fill(self.lightColor[0],self.lightColor[1],self.lightColor[2])
rect((float(r[0]))*xScale+self.imgPos[0]-(self.wordMargin), (float(r[1]))*yScale+self.imgPos[1]-(self.wordMargin), float(r[2])*xScale+(self.wordMargin*2), float(r[3])*yScale+(self.wordMargin*2))
- #delay(1000)
def moveImage(self,x,y):
self.imgPos[0] += x
@@ -462,8 +461,7 @@ def mousePressed(self):
#self.onClick()
def processNewText(self):
- time.sleep(3)
-
+ #time.sleep(3)
self.runThreadOn(self.run, self.onOCRComplete)
def onClick(self):
Please sign in to comment.
Something went wrong with that request. Please try again.