This code is excellent.
It is very helpful to me who is studying raspberry pi.
How can I use a USB camera instead of a pi cam?
I think it should not just change 'dev' because current code using PI cam lib.
Therefore, I need your opinion as an expert.