Object Detection using coco.names dataset , weights and configuration files of real time object detection algorithm YOLOv4
This is WebApp of my previous repo here
To change the weights and configurations file , you may do so by changing the file directory of the same.
Demo.mp4
- aiortc==1.2.1
- av==8.0.3
- matplotlib==3.4.2
- numpy==1.21.1
- opencv-python-headless==4.5.3.56
- pydub==0.25.1
- streamlit>=0.84.2
- streamlit_webrtc>=0.25.0
- typing_extensions==3.10.0.0
- openpyxl
S.No | Sports | Living | Things | Vehicles | Safety | Food | Dining | Electronics |
---|---|---|---|---|---|---|---|---|
1 | frisbee | bird | bench | bicycle | traffic light | banana | bottle | tvmonitor |
2 | skis | cat | backpack | car | fire hydrant | apple | wine glass | laptop |
3 | snowboard | dog | umbrella | motorbike | stop sign | sandwich | cup | mouse |
4 | sports ball | horse | handbag | aeroplane | parking meter | orange | fork | remote |
5 | kite | sheep | tie | bus | broccoli | knife | keyboard | |
6 | baseball bat | cow | suitcase | train | carrot | spoon | cell phone | |
7 | baseball glove | elephant | chair | truck | hot dog | bowl | ||
8 | skateboard | bear | sofa | boat | pizza | microwave | ||
9 | surfboard | zebra | pottedplant | donut | oven | |||
10 | tennis racket | giraffe | bed | cake | toaster | |||
11 | person | diningtable | sink | |||||
12 | toilet | refrigerator | ||||||
13 | book | |||||||
14 | clock | |||||||
15 | vase | |||||||
16 | scissors | |||||||
17 | teddy bear | |||||||
18 | hair drier | |||||||
19 | toothbrush |
# Paramaters which can be tuned to your requirements
confThreshold = 0.5
nmsThreshold = 0.2
# for reading all the datasets from the coco.names file into the array
with open("coco.names", 'rt') as f:
class_names = f.read().rstrip('\n').split('\n')
# configration and weights file location
model_config_file = "yolo-config\\yolov3-tiny.cfg"
model_weight = "yolo-weights\\yolov3-tiny.weights"
streamlit run main.py
You can read more about YOLO and more about streamlit
I am Rahul Arepaka, II year CompSci student at Ecole School of Engineering, Mahindra University
Feel free to edit with the source code and enjoy coding
You may reach me using