Object Detection Using OpenCV and Transfer Learning.
Object Detection Using OpenCV and Transfer Learning. Environment setup/Project Requirements : Python OpenCV, Matplotlib libraries need to be installed. Jupyter Notebook/Pycharm/ Atom Note : You cannot implement this project in Google-Colaboratory or in any python online Interpreter Workflow: Importing Transfer Learning model Import dnn_DetecctionModel Looping through the coco dataset Initializing Threshold Testing the model on Image Looping through the Labels Implementing on Video Step 1: Importing the Transfer learning model Firstly, we initialize the transfer learning model weights and frozen graph t some variable names. config_file = "ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt" frozen_model = "frozen_inference_graph.pb" Step 2: Importing dnn_DetectionModel OpenCV contains dnn_DetectionModel, we can call it from cv2 by importing cv2. model = cv2.dnn_DetectionModel(frozen_model,config_file) Step 3: Looping through the coco dataset Since the coco data set that...