Skip to content

Digit Not Recognized #2

@jkenny23

Description

@jkenny23

I am having trouble getting any digits recognized even with the sample file you provided. It seems extremely sensitive to how you position the box around the digit. Is there a way to debug this further or better understand how the segments are being read?

FYI I made a few modifications to the file to work with the newest version of OpenCV (3.3.1):

22,24c22,24
-     fps = video.get(cv2.cv.CV_CAP_PROP_FPS) # Get FPS
-     frameInterval = int(round(fps * samplePeriod))
-     totalFrames = video.get(cv2.cv.CV_CAP_PROP_FRAME_COUNT)
+     fps = video.get(cv2.CAP_PROP_FPS) # Get FPS
+     frameInterval = int(round(float(fps) * float(samplePeriod)))
+     totalFrames = video.get(cv2.CAP_PROP_FRAME_COUNT)
29c29
-         video.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, frameNumber*frameInterval) #Set frame to read next
+         video.set(cv2.CAP_PROP_POS_FRAMES, frameNumber*frameInterval) # Set frame to read next```

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorrefactor and upgrade existing (but old) components

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions