|
@@ -1,7 +1,7 @@
|
|
|
import cv2
|
|
|
import numpy as np
|
|
|
|
|
|
-video = cv2.VideoCapture(r'pictures/pictures.mp4')
|
|
|
+video = cv2.VideoCapture(r'pictures/pictures.avi')
|
|
|
|
|
|
counter = 0
|
|
|
if video.isOpened():
|
|
@@ -12,15 +12,9 @@ if video.isOpened():
|
|
|
break
|
|
|
|
|
|
x, y = np.where(np.all(frame==np.array([0,0,0]), axis=2))
|
|
|
- if len(x) + len(y) > 100000 and len(x) + len(y) < 110000:
|
|
|
+ if len(x) + len(y) == 114532:
|
|
|
counter+=1
|
|
|
print('mine')
|
|
|
-
|
|
|
- # cv2.namedWindow('videoFrame', cv2.WINDOW_NORMAL)
|
|
|
- # cv2.imshow('videoFrame', frame)
|
|
|
- # key = cv2.waitKey(0)
|
|
|
- # while key != ord('q'):
|
|
|
- # cv2.destroyAllWindows()
|
|
|
|
|
|
video.release()
|
|
|
cv2.destroyAllWindows()
|