Giter Site home page Giter Site logo

Comments (4)

APOC00X avatar APOC00X commented on July 20, 2024 1

!!!That worked smoothly ! I would very much appreciate receiving your help !

from digitsocr.

yiminzme avatar yiminzme commented on July 20, 2024

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.

APOC00X avatar APOC00X commented on July 20, 2024

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.

yiminzme avatar yiminzme commented on July 20, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.