60 FPS Webcam

Preamble

Notes from 60 FPS Webcam for Computer Vision | Is it worth it ?

Similar to Logitech C-920

Model: Nexigo N660P, $65

Code

# NexigoCamTest.py
import cv2
import cvzoneimport cv2


cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FPS, 60)
fpsReader = cvzone.FPS()
detector = cvzone.HandDetector(detectionCon=0.8, maxHands=1)

while True:

    # Get image frame
    success, image = cap.read()
    # Find hand and its landmarks
    image = detector.findHands(image)
    lmList, bbox = detector.findPosition(image)
    print(detector.handType)

    # Display
    fps, image = fpsReader.update(image)
    cv2.imshow('Image', image)
    cv2.waitKey(1)

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s