DSatishchandra's picture
Update services/video_service.py
ef68dc5 verified
raw
history blame
314 Bytes
import cv2
def process_video(video_path):
cap = cv2.VideoCapture(video_path)
results = []
while cap.isOpened():
ret, frame = cap.read()
if not ret:
break
# Process each frame for fault detection
results.append(frame)
cap.release()
return results