
import numpy as np
import cv2
from random import randint
import time
# cap = cv2.
cap1 = cv2.VideoCapture('/home/bao/Desktop/video/source_train/trai.avi')
f = np.load('/home/bao/Desktop/video/source_train/trai.npy')

# f = np.load('/home/bao/Desktop/DoAnTotNghiep/npy_source/data.npy')
# f2 = np.load('/home/bao/Desktop/video/sp/trai.npy')
print(f)
print(cap1.get(7))
# print(f2.shape)
# cap = cv2.VideoCapture()
x,y,w,h = 550,228,30,20
# for index in range(int(cap1.get(7))):
#     ret,frame = cap1.read()
#     frame = cv2.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), 1)
#     cv2.imshow('video',frame)
    
#     if cv2.waitKey(30)==27:
#         break

39bdd4b3ee9fa5f26aa916075372c3d6e3aafd59
<mask token>

<mask token>
print(f)
print(cap1.get(7))
<mask token>

<mask token>
cap1 = cv2.VideoCapture('/home/bao/Desktop/video/source_train/trai.avi')
f = np.load('/home/bao/Desktop/video/source_train/trai.npy')
print(f)
print(cap1.get(7))
x, y, w, h = 550, 228, 30, 20

import numpy as np
import cv2
from random import randint
import time
cap1 = cv2.VideoCapture('/home/bao/Desktop/video/source_train/trai.avi')
f = np.load('/home/bao/Desktop/video/source_train/trai.npy')
print(f)
print(cap1.get(7))
x, y, w, h = 550, 228, 30, 20


import numpy as np
import cv2
from random import randint
import time
# cap = cv2.
cap1 = cv2.VideoCapture('/home/bao/Desktop/video/source_train/trai.avi')
f = np.load('/home/bao/Desktop/video/source_train/trai.npy')

# f = np.load('/home/bao/Desktop/DoAnTotNghiep/npy_source/data.npy')
# f2 = np.load('/home/bao/Desktop/video/sp/trai.npy')
print(f)
print(cap1.get(7))
# print(f2.shape)
# cap = cv2.VideoCapture()
x,y,w,h = 550,228,30,20
# for index in range(int(cap1.get(7))):
#     ret,frame = cap1.read()
#     frame = cv2.rectangle(frame, (x,y), (x+w,y+h), (0,0,255), 1)
#     cv2.imshow('video',frame)
    
#     if cv2.waitKey(30)==27:
#         break
