One my first run through of this program the camera was not working (which I had not verified ahead of time) and PP gave me an error that was tricky to understand.
Error executing program: File “Webcam_Rogge.py”, line 30:
OpenCV(4.2.0) …/modules/imgcodecs/src/loadsave.cpp:715: error: (-215:Assertion failed) !_img.empty() in function ‘imwrite’
This could be addressed by checking for the presence of a camera before trying to take a picture and save it or otherwise giving a human readable error message something to the effect of “Camera not found”