imshow()
only works with waitKey()
:
import cv2
img = cv2.imread('C:/Python27/03323_HD.jpg')
cv2.imshow('ImageWindow', img)
cv2.waitKey()
(The whole message-loop necessary for updating the window is hidden in there.)
More Related Contents:
- How to clean images before OCR with Python OpenCV?
- Detect image orientation angle based on text direction
- How to define a threshold value to detect only green colour objects in an image with Python OpenCV?
- Python OpenCV Color Tracking
- Change the colors within certain range to another color using OpenCV
- How to get the cells of a sudoku grid with OpenCV?
- Python OpenCV line detection to detect `X` symbol in image
- Removing Horizontal Lines in image (OpenCV, Python, Matplotlib)
- How to straighten a rotated rectangle area of an image using OpenCV in Python?
- OpenCV Python: cv2.findContours – ValueError: too many values to unpack
- Detect and visualize differences between two images with OpenCV Python
- How to template match a simple 2D shape in OpenCV?
- Converting an OpenCV Image to Black and White
- Detect text area in an image using python and opencv
- How do I find an image contained within an image?
- Storing RTSP stream as video file with OpenCV VideoWriter
- How to crop the internal area of a contour?
- How to resize an image with OpenCV2.0 and Python2.6
- Detecting lines and shapes in OpenCV using Python
- how to remove background of images in python
- Equivalent of copyTo in Python OpenCV bindings?
- module’ object has no attribute ‘drawMatches’ opencv python
- OpenCV – Saving images to a particular folder of choice
- Automatic White Balancing with Grayworld assumption
- Python, OpenCV: Increasing image brightness without overflowing UINT8 array
- Square detection in image
- How do I use OpenCV MatchTemplate?
- Determine if an image exists within a larger image, and if so, find it, using Python
- How to warp an image using deformed mesh
- Find a 3×3 sliding window over an image