Skip to content

kleinzcy/yolo_bicycle

Repository files navigation

YOLO_Bicycle

This work is our scientific research.

Problem

Our work is hard to apply to complex scene.

Refer to this to learn more about tracker API in opencv.

Environment

NOTE:pip or pip3 depend on your environment, and you can install tensorflow through anaconda, referring to this

  • Tensorflow installation

    pip3 install tensorflow, refer to this for more details.

  • Opncv and opencv-contrib installation

    pip3 install opencv-contrib-python, refer to this.

    Learn more about the difference bewteen opencv and opencv-contrib, refer to this.

  • Darknet installation

    Refer to this.

  • File

    Download yolo.weights file from here, password pk5v. And place the file in /bin/.

  • Update .pb files

    Here password 27yw.

Coding

The kernel code is in tracker.py is friendly to read.

judge.py is used to determined the statement of the current frame

object_detection.py is used to detect person and bicycle for current frame by yolo

overlap_ratio.py is used to count the coincidence and match the bike to the person with the most overlap

if you want to run this item, you just need enter the code in the terminal:

python tracker.py or python demo.py

Our project logic diagram is as follow

Pull request if you fix the problem or find some bugs.

Bug Info

File "/home/nvidia/Documents/yolo_bicycle/object_detection.py", line 29, in result_process for result in self.results: TypeError: 'NoneType' object is not iterable

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages