VideoCapture from camera works only in debug (Python)
I've started my project on Win7 Python3.6 OpenCV 4.1.1.26. The problem is: read() method of capture instance returns zeroes image array and True as retval. But! If i start Videocapture in debug mode - It's works fine! I can see grabbed images!
First of all, I was in doubt of my code. But I've checked example from opencv-python-tutroals. It's same behavior.
I use PyCharm community 2019.2. But checked out from console too:
- python controller.py - blank screen
- python -m pdb conftoller.py - works fine.
Does anyone faced with same issue? How to fix it?
please use opencv's own tutorials, as the tutroals are outdated and no more maintained.
Well, I don't see any difference. Ok, I did not find minimal example like in my link in link that you provided.
Does this help
python -m pdb controller.py
?Yea, exactly!