LCD-OCR
                                
                                 LCD-OCR copied to clipboard
                                
                                    LCD-OCR copied to clipboard
                            
                            
                            
                        cnts is None
File "code.py", line 45, in 
This happens when find_contours is not able to find any find any contours resulting the cnts empty. Please make sure the image is processed properly. And also share the image
new = temp[0] + temp[1] + "." + temp[2] IndexError: string index out of range
I use camera on the picture of your give ,can you help me?
This happened because tesseract was not able to find any text to perform OCR in the image. Here are the things you can do -
- Try printing the contents of temp, and see what is actually being read by tesseract.
- Don't read my image from camera, give the program the image itself.
- Try seeing or printing the images (using cv2.imshow) after each step (after any filter, manipulation or changes you do to the image) for eg. - See the image after performing color masking (after line 27) - See the image after performing canny edge detection (after line 31) - See the image after performing dilate (after line 33) - See the image after performing erode (after line 35) - Try seeing images after all possible steps. Try assessing your results.
Your result should match with my results (my images which i have put in my readme.md) In this way go on seeing the result of the program. Check that after line no. 56 are you able to see the digits clearly.