-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
refactorrefactor and upgrade existing (but old) componentsrefactor and upgrade existing (but old) components
Description
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
Labels
refactorrefactor and upgrade existing (but old) componentsrefactor and upgrade existing (but old) components