I also had the same problem with opencv-python-4.6.0.66
I solved this error by just downgrading opencv. you can follow this command.
pip install opencv-python==4.5.5.64
Hope this will help you.
More Related Contents:
- Video Streaming from IP Camera in Python Using OpenCV cv2.VideoCapture
- Choosing the correct upper and lower HSV boundaries for color detection with`cv::inRange` (OpenCV)
- How to remove convexity defects in a Sudoku square?
- Detect text region in image using Opencv
- OpenCV: Choosing HSV thresholds for color filtering
- imread returns None, violating assertion !_src.empty() in function ‘cvtColor’ error
- How do I install Python OpenCV through Conda?
- ImportError: numpy.core.multiarray failed to import
- OpenCV VideoCapture and error: (-215:Assertion failed) !_src.empty() in function ‘cv::cvtColor’
- OpenCV real time streaming video capture is slow. How to drop frames or get synced with real time?
- OpenCV Python rotate image by X degrees around specific point
- OpenCV – Apply mask to a color image
- Error “ImportError: DLL load failed: %1 is not a valid Win32 application”
- open cv error: (-215) scn == 3 || scn == 4 in function cvtColor
- too many values to unpack calling cv2.findContours
- Access IP Camera in Python OpenCV
- NumPy/OpenCV 2: how do I crop non-rectangular region?
- How to fast change image brightness with python + OpenCV?
- How to parse mjpeg http stream from ip camera?
- OpenCV 3.0 LineIterator
- Screen Capture with OpenCV and Python-2.7
- Convert Python Opencv Image (numpy array) to PyQt QPixmap image
- Opencv – Grayscale mode Vs gray color conversion
- Python: how to capture image from webcam on click using OpenCV
- How do I use OpenCV’s remap function?
- Pipe raw OpenCV images to FFmpeg
- How to read raw png from an array in python opencv?
- Square detection in image
- OpenCV load video from url
- OpenCv CreateImage Function isn’t working