Closed nswaglerevs closed 5 years ago
Post your full code here.
from imageai.Detection import VideoObjectDetection import os import cv2
execution_path = os.getcwd()
camera = cv2.VideoCapture(0)
detector = VideoObjectDetection() detector.setModelTypeAsRetinaNet() detector.setModelPath(os.path.join(execution_path , "resnet50_coco_best_v2.0.1.h5")) detector.loadModel()
video_path = detector.detectObjectsFromVideo(camera_input=camera, output_file_path=os.path.join(execution_path, "camera_detected_video") , frames_per_second=20, log_progress=True, minimum_percentage_probability=40)
Image prediction and video prediction code is working but this live streaming code isn't working..please kindly help me with this.. Thank you..
Facing the same issue
Please visit the tutorial linked below on resolving this.
TypeError Traceback (most recent call last)