This commit is contained in:
√(noham)²
2023-07-21 11:00:02 +02:00
parent 5ae8a9d870
commit 4f241e4b60
23 changed files with 30 additions and 11 deletions

0
detec/open.py Normal file
View File

15
detec/test.py Normal file
View File

@@ -0,0 +1,15 @@
import numpy as np
import cv2 as cv
cap = cv.VideoCapture('cams/10s.mp4')
while cap.isOpened():
ret, frame = cap.read()
# if frame is read correctly ret is True
if not ret:
print("Can't receive frame (stream end?). Exiting ...")
break
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
cv.imshow('frame', gray)
if cv.waitKey(1) == ord('q'):
break
cap.release()
cv.destroyAllWindows()