Skip to content

Instantly share code, notes, and snippets.

View jgaspar10's full-sized avatar

Joao Gaspar jgaspar10

  • London
View GitHub Profile
@jgaspar10
jgaspar10 / cap = cv2.VideoCapture(0).txt
Last active January 27, 2023 17:02
So guys I have provided this snippet of code to help anyone having issues resizing their webcam window size on Python Jupyter Notebook
# The is a snippet of code taken from my Python Sign Language Detection repository.
# This specific snippet is using mediapipe holistic along with the webcamera which is defined as "cap = cv2.VideoCapture(0)"
# This snippet will start your webcam but it will so in a very small window (640,480)
cap = cv2.VideoCapture(0)
## This will set the mediapipe model
with mp_holistic.Holistic(min_detection_confidence=0.5, min_tracking_confidence=0.5) as holistic:
while cap.isOpened():
## To read feed