Real-time Webcam

JPPPPP
UCL-COMP0016–2020-Team13
Mar 20, 2021

It is obvious that our users need to constantly altering their poses and gestures, they would need to compare themselves to the model.

Setting up camera
function for real-time webcam

cap.read() returns the image the webcam takes, and next four lines of code changes the image taken by webcam to PhotoImage type. video_panel.configure() changes the image shown on video_panel. And the last line of code makes the function to be recursive, show_frame function is called every 10 milliseconds. As the video_panel changes images so fast that human eye could not see a significant lag, then a real-time webcam is available on the screen.

--

--