![]() Some numbers work better than others - for example, '1' seems to have a lot of trouble. ![]() Resized = imutils.resize(rotated,height=resizing_height) Rotated = imutils.rotate_bound(cropped, angle) _,t = cv2.threshold(histeq,150,225,cv2.THRESH_BINARY) #thresholds histeqĬropped = t Histeq=cv2.equalizeHist(g) #spreads pixel values across entire spectrum H,width,channels = i.shape #get dimensions ![]() This is the code for the image manipulation I've been doing so far: ret, i = video.read() I've been using the seven-segment training data 'letsgodigital'. Image should be relatively level from left to right.Image needs to be cropped such that there is only one line of text.I've found the best results with a height of 50. Image needs to be a height of between 50-100 pixels for Tesseract to read it correctly.I've been working on image processing to get Tesseract (using v3.02) to recognize the numbers correctly, but have been hitting some roadblocks and don't quite know how to proceed. I'm trying to develop a system which can convert a seven-segment display on an old analog pressure output system to text, such that the data can be processed by LabVIEW. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |