http://img296.imageshack.us/my.php?image=screenimageqk9.jpg
Since the characters in the image will be different each time I am starting with a screenshot, then I think I should probably crop at the "12 O'clock" position and extract those figures, then rotate the image about 10 degrees and do the same thing, etc until the image has rotated 360 degrees and I have all of the characters.
I did try a portion of this by cropping the top 2 chars in paint and saving the image and:
Expand|Select|Wrap|Line Numbers
- import Image
- from pytesser import *
- image = Image.open("image.jpg")
- print image_to_string(image)
Expand|Select|Wrap|Line Numbers
- import Image
- import ImageGrab
- from pytesser import *
- # take screenshot
- image = ImageGrab.grab()
- #haven't found the exact coordinates yet for box, just an example
- box = (100,100,400,400) :
- im = image.crop(box)
- # rotate image 10 degrees
- im1 = im.rotate(10)