lib/sqed/parser/ocr_parser.rb in sqed-0.1.0 vs lib/sqed/parser/ocr_parser.rb in sqed-0.1.1
- old
+ new
@@ -16,10 +16,9 @@
# https://code.google.com/p/tesseract-ocr/wiki/FAQ
def text
img = @image #.white_threshold(245)
# @jrflood: this is where you will have to do some research, tuning images so that they can be better ocr-ed,
- # all of these methods are from RMagick.
# get potential border pixel color (based on quadrant?)
new_color = img.pixel_color(1, 1)
# img = img.scale(2)
# img.write('foo0.jpg.jpg')
# img = img.enhance