mythrex / omr-scanner Goto Github PK
View Code? Open in Web Editor NEWThis project uses open cv to evaluate OMR sheets. We are trying to make this system as reliable as possible.
This project uses open cv to evaluate OMR sheets. We are trying to make this system as reliable as possible.
I am very interested in this project. However I don't know how to use it exactly, could hints about installation be written in the readme ?
The module should throw an error in some cases like
We have a use case where we need to identify radio button group.
radio button group can have 'n' number of radio button on the same line or multi lines.
Will this solution work?
The code is monolithic. We need to modularize it.
# sort the question contours from top to bottom
questionCnts = contours.sort_contours(questionCnts, method='top-to-bottom')[0]
correct = 0
# sort the first 4 countours left to right
e = contours.sort_contours(questionCnts[0:4])[0]
# this should draw 1 a countour
cv2.drawContours(paper, [e[0]], -1, 255, -1)
This code should show question 1 A contour but instead it shows some random contour.
See in pic which contour is being displayed.
# sort the question contours from top to bottom
questionCnts = contours.sort_contours(questionCnts, method='top-to-bottom')[0]
correct = 0
# sort the first 4 countours left to right
e = contours.sort_contours(questionCnts[0:4])[0]
# this should draw 1 b countour
cv2.drawContours(paper, [e[1]], -1, 255, -1)
This code should show question 1 B contour but instead it shows some random contour.
but instead the following has been showing.
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)]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.