We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for c in filter_cnts: (x, y, w, h) = cv2.boundingRect(c) ar = w / float(h) if w >= 9 and h >= 9 and ar >= 0.7 and ar <= 1.2: # change this!!!!!!!!!!!!!!!!1 box = [(x//5)*5, round(y/20.0)] questions.append([c, box]) cv2.rectangle(paper, (x, y), (x+w, y+h), (0, 255, 0), 1)
Problem is with calculation of box for sorting in top to bottom. Change this logic. box = [(x//5)*5, round(y/20.0)]
box = [(x//5)*5, round(y/20.0)]
The text was updated successfully, but these errors were encountered:
New algorithm to sort contours. Resolves #9
998ee1f
The new algo now sorts contours for test 1,2,3 except test 1 has a little problem though.
mythrex
No branches or pull requests
Problem is with calculation of box for sorting in top to bottom.
Change this logic.
box = [(x//5)*5, round(y/20.0)]
The text was updated successfully, but these errors were encountered: