Related Posts

27 Comments

  1. Hello,

    It is a great tutorial. Thanks,
    I'm creating the Live Streaming Video. It's storing in .avi format. When i'm playing the Video. I'm not getting the audio of that video. I hope that opencv does not provide the audio features. Kindly let me know if you have any idea.

    Thanks,

  2. got error on Ubuntu:
    OpenCV(3.4.1) Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvWaitKey, file /opt/conda/conda-bld/opencv-suite_1527005194613/work/modules/highgui/src/window.cpp, line 707
    Traceback (most recent call last):
    File "tut3.py", line 9, in <module>
    k=cv2.waitKey(10) & 0xff
    cv2.error: OpenCV(3.4.1) /opt/conda/conda-bld/opencv-suite_1527005194613/work/modules/highgui/src/window.cpp:707: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvWaitKey

  3. I have a webcam that can capture 16 MP still images but the resulting captured image is blurry or at least it looks like it was taken at a smaller megapixel. How can I fix this?

  4. Hi,I recently discovered opencv. I'm trying now to take a photo by using a webcam. However, the problem is that the photo taken is always black and its size is of 6kb. I don't know how to solve the problem. Please help me.
    By the way, the video was really interesting.
    Thank you very much.
    P.D: This is my source code

    import cv2
    import numpy an np

    capture=cv2.VideoCapture(1)
    ret,img=capture.read()
    cv2.imwrite('piG.jpg',img)
    capture.release()

  5. A few questions. First, this requires OpenCV. I downloaded it and extracted the files. Do you have any videos on the proper setup of OpenCV under Win 10 64 bit? Also, what would the code be to do a simple task like activate the webcam, wait until a face is detected, save the image as a file, then exit. Another thing, I have py2exe. Would I be able to turn the project into an exe without needing to install OpenCV on the computer where this is deployed, or are those files added into the project?

Leave a Reply

Your email address will not be published.

© 2022 Code As Pro - Theme by WPEnjoy · Powered by WordPress