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

    I'm using Windows, and I'm trying to install package cv2 for python3. I did a pip3 install opencv-python and it reports successful: But when I do the import cv2 from python3, it's not found and I ...

  2. How does one convert a grayscale image to RGB in OpenCV (Python)?

    Alternatively, cv2.merge() can be used to turn a single channel binary mask layer into a three channel color image by merging the same layer together as the blue, green, and red layers of the new image. …

  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. 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 numpy and …

  5. 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:

  6. 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 Can't I …

  7. 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 (81) and …

  8. Which kind of interpolation best for resizing image?

    That is a good question. Since I want to resize an image to a larger size, I want an interpolation method that minimizes artifacts and/or aliasing. However, I am not entirely sure what is the best practice, or …

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

    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 all the …

  10. 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