Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Saves image in memory to scratch file.  .bmp format will be read correctly by Tesseract

        def image_to_scratch(im, scratch_image_name):
	"""Saves image in memory to scratch file.  .bmp format will be read correctly by Tesseract"""
	im.save(scratch_image_name, dpi=(200,200))
        


src/j/a/jabbapylib-0.3.8/jabbapylib/lib/pytesser/pytesser.py   jabbapylib(Download)
def image_to_string(im, cleanup = cleanup_scratch_flag):
	"""Converts im to file, applies tesseract, and fetches resulting text.
	If cleanup=True, delete scratch files after operation."""
	try:
		util.image_to_scratch(im, scratch_image_name)

src/g/o/gotit-HEAD/addons/backup/sec_code/pytesser.py   gotit(Download)
def image_to_string(im, cleanup = cleanup_scratch_flag):
	"""Converts im to file, applies tesseract, and fetches resulting text.
	If cleanup=True, delete scratch files after operation."""
	try:
		util.image_to_scratch(im, scratch_image_name)

src/j/a/jabbapylib-HEAD/jabbapylib/lib/pytesser/pytesser.py   jabbapylib(Download)
def image_to_string(im, cleanup = cleanup_scratch_flag):
	"""Converts im to file, applies tesseract, and fetches resulting text.
	If cleanup=True, delete scratch files after operation."""
	try:
		util.image_to_scratch(im, scratch_image_name)

src/p/y/pytesser-HEAD/pytesser/pytesser.py   pytesser(Download)
def image_to_string(im, cleanup = _cleanup_scratch_flag):
	"""Converts im to file, applies tesseract, and fetches resulting text.
	If cleanup=True, delete scratch files after operation."""
	try:
		util.image_to_scratch(im, scratch_image_name)