clone darknet repo: !git clone https://github.com/AlexeyAB/darknet
• This repository consists of files required to deploy a Object Detection on Webcam
• Please do ⭐ the repository, if it helped you in anyway.
- import dependent libraries.
- clone darknet repo:!git clone https://github.com/AlexeyAB/darknet
- change makefile to have GPU, OPENCV and LIBSO enabled.
- make darknet (builds darknet so that you can then use the darknet.py file and have its dependencies)
- get the scaled yolov4 weights file that is pre-trained to detect 80 classes (objects) from shared google drive.
- import darknet functions to perform object detections
- get image ratios to convert bounding boxes to proper size.
- run model on darknet style image to get detections
- run test on person.jpg image that comes with repository.
To install the libraries used in this project. Follow the below steps:
from IPython.display import display, Javascript, Image
from google.colab.output import eval_js
from google.colab.patches import cv2_imshow
from base64 import b64decode, b64encode
import cv2
import numpy as np
import PIL
import io
import html
import time
import matplotlib.pyplot as plt
%matplotlib inline
To run tests, run the following command
python app.py
Data Scientist Enthusiast | Petroleum Engineer Graduate | Solving Problems Using Data
👩💻 I’m interested in Petroleum Engineering
🧠 I’m currently learning Data Scientist | Data Analytics | Business Analytics
👯♀️ I’m looking to collaborate on Ideas & Data
- Data Scientist
- Data Analyst
- Business Analyst
- Machine Learning
⚡️ Looking forward to help drive innovations into your company as a Data Scientist
⚡️ Looking forward to offer more than I take and leave the place better than i found