Comments (4)
!!!That worked smoothly ! I would very much appreciate receiving your help !
from digitsocr.
At ocrlearnKnn.py:58, try other parameter such as 0, 2 or 3, etc. That is the parameter for camera index. Typically, parameter 0 would work for a computer with one camera.
cap = cv2.VideoCapture(0)
from digitsocr.
Thank you very much
That worked but, another error happened...
error Traceback (most recent call last)
~/Desktop/.../digitsOCR-master/ocrlearnKnn.py in ()
77 newFrame = np.hstack((frame,newEdges))
78 cv2.imshow('frame', newFrame)
---> 79 videoFrame.write(newFrame)
80 key = cv2.waitKey(1) & 0xff
81 if key == ord(' '):
error: OpenCV(3.4.1) /opt/conda/conda-bld/opencv-suite_1527005509093/work/modules/videoio/src/cap_mjpeg_encoder.cpp:468: error: (-215) imgWidth == frameWidth && imgHeight == frameHeight && channels == 3 in function write
I tried to move those '#'s before the defining of 'width' and 'height' but no effect...
from digitsocr.
Yeah, the width and height are fixed, so it might not work. You can try my version https://github.com/vinc96/digitsOCR, which automatically fetch the width and height information and works on my Windows and Mac. If you have a chance to try it, please tell me if it works.
I also created a pull request for solving this issue.
from digitsocr.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digitsocr.