hello,
Thank you very much for sharing the code.
When I save the video processing results, there is a bug. The program (demo_camera.py)ends but the video is not saved. The output size will be 6KB or 8KB or other. At first, I thought it was a video coding format error, but it's not.
Finally, I found that the problem was that the size of the frame was changed after the hand model calculation. The input size changed from 720 × 1280 to 400 × 711, which led to the failure of cv2. Videowriter() to save the video.
Please verify and fix this bug.
hello, Thank you very much for sharing the code. When I save the video processing results, there is a bug. The program (demo_camera.py)ends but the video is not saved. The output size will be 6KB or 8KB or other. At first, I thought it was a video coding format error, but it's not. Finally, I found that the problem was that the size of the frame was changed after the hand model calculation. The input size changed from 720 × 1280 to 400 × 711, which led to the failure of cv2. Videowriter() to save the video. Please verify and fix this bug.