-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
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
Added UI features #14
Conversation
Imagehandler.py
Outdated
@@ -7,6 +7,7 @@ | |||
from PatternFinding import PatternFinding | |||
from FindingOrientationOfContours import FindingOrientationOfContours | |||
from AffineTransformation import AffineTransformation | |||
import numpy as np |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we using this module in this file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case of debugging, line no - 70 uses numpy. But we are not using numpy.
Imagehandler.py
Outdated
@@ -48,36 +49,38 @@ def WritingImage(self, image, path, imageName): | |||
cv.imwrite(path + imageName, image) | |||
cv.imshow(imageName, image) | |||
cv.waitKey(0) | |||
cv.destroyAllWindows() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alignment issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is indentation correct?
Imagehandler.py
Outdated
# cv.waitKey(0) | ||
#uncomment this to see the contours on the image | ||
#cv.drawContours(thresholdImage, contours, -1, (255,255,0), 3) | ||
'''#patternFindingObj=PatternFinding() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
''' ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am sorry, I was not aware of that change.
Imagehandler.py
Outdated
contour_group = (thresholdImage, contours, hierarchy) | ||
return contour_group | ||
|
||
def QRCodeInImage(self): | ||
patternFindingObj = PatternFinding( | ||
self.GetImageContour(), self.imageOriginal) | ||
patterns = patternFindingObj.FindingQRPatterns(3) | ||
if len(patterns): | ||
if len(patterns) == 0: | ||
print 'patterns unble to find' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't understand. Can you elaborate this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unable
PatternFinding.py
Outdated
cv.imshow('hello', self.image) | ||
#cv.imshow('best qr contour', self.image) #uncomment to debug | ||
#cv.waitKey(0) | ||
#cv.destroyAllWindows() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cv. destroyAllWinddows doesn't seem to be properly indented
PatternFinding.py
Outdated
QRPatterns.append(patterns[ind]) | ||
#cv.destroyAllWindows() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all indentations are correct. Did you encounter any error?
config.yml
Outdated
@@ -4,8 +4,8 @@ | |||
|
|||
#@author: Ankit Singh | |||
Main: | |||
Input : 'C:\Users\310247467\Desktop\learn\qr\Input\' | |||
Output: 'C:\Users\310247467\Desktop\learn\qr\Results\' | |||
Input : '/home/ujjaldas223/projects/QRCodeReader/Input/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific need to change this?
I am really sorry. I didn't reviewed the code and opened a pull request. Now I have updated them. |
@Griffintaur It seems like you want me to include |
fixes #14 |
I have modified some codes, so that at run time, the program would not crash and written simple UI that run in browser having an additional dependency "flask". Feel free to discuss with me about these.