Код: Выделить всё
import cv2
cap = cv2.VideoCapture(0)
width = cap.get(cv2.CAP_PROP_FRAME_WIDTH)
height = cap.get(cv2.CAP_PROP_FRAME_HEIGHT)
print(width, height)
Мой ноутбук Lenovo Legion Y530
Подробнее здесь: https://stackoverflow.com/questions/735 ... t-accurate
Мобильная версия