About 24,100,000 results
Open links in new tab
  1. python 3.x - How to import cv2 in python3? - Stack Overflow

    I can import cv2 from python in terminal which uses 2.7 by default, and cv2 version is 2.4.9.1. But when I open python3, I can only import opencv and that opencv has no attribute version.

  2. python - No module named 'cv2' - Stack Overflow

    ModuleNotFoundError: No module named 'cv2' What confuses me most is that it seems I've successfully installed OpenCV when I enter pkg-config opencv --cflags in terminal:

  3. ModuleNotFoundError: No module named 'cv2' - Stack Overflow

    When I run Python interpreter and write import cv2 it does import it. When I run the code from command prompt it says ModuleNotFoundError: No module named 'cv2'.

  4. Using other keys for the waitKey() function of opencv

    But with the change in line cv2.waitKey(0). that means the program waits until a button is pressed. With this code I found the key value for the arrow buttons: arrow up (82), down (84), arrow left …

  5. How to write text on a image in windows using python opencv2

    cv2.putText(image,"Hello World!!!", (x,y), cv2.CV_FONT_HERSHEY_SIMPLEX, 2, 255) It gives ERROR, saying 'module' object has no attribute 'CV_FONT_HERSHEY_SIMPLEX' Query …

  6. Python OpenCV load image from byte string - Stack Overflow

    I suggest you to work only with cv2 as long as it uses numpy arrays which are much more efficient in Python than cvMat and lplimage. Function GetSize doesn't work in cv2 because cv2 uses …

  7. How to crop an image in OpenCV using Python - Stack Overflow

    How can I crop images, like I've done before in PIL, using OpenCV. Working example on PIL

  8. python - OpenCV real time streaming video capture is slow. How …

    frame = streamer.grab_frame() if frame is not None: cv2.imshow("Context", frame) cv2.waitKey(1) Jittery, but real-time results . The streaming works. It maintains real-time. However, it is as if …

  9. OpenCV - Reading a 16 bit grayscale image - Stack Overflow

    im = cv2.imread(path,-1) Setting the flag to 0, to load as grayscale, seems to default to 8 bit. Setting the flag to -1 loads the image as is.

  10. Cannot find module cv2 when using OpenCV - Stack Overflow

    I have installed OpenCV on the Occidentalis operating system (a variant of Raspbian) on a Raspberry Pi, using this script by jayrambhia. It installed version 2.4.5. When I try import cv2 in …