GithubHelp home page GithubHelp logo

visualspliter / yolov5-ua-detrac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mrnobody-zst/yolov5-ua-detrac

1.0 0.0 0.0 18.2 MB

Run Dataset UA-DETRAC On YOLOV5

License: GNU General Public License v3.0

Shell 1.20% Python 98.56% Dockerfile 0.24%

yolov5-ua-detrac's Introduction

YOLOV5-UA-DETRAC 智能红绿灯

在运行程序之前,首先安装requirments.txt中的依赖项

进入终端,打开程序文件夹

输入pip -r install ./requirements,txt来安装依赖项

安装完成后,重启电脑

进入终端,cd至文件夹目录

输入python ./detect.py --weights ./best.pt --source ./vid.mp4 --view-img

以检测依赖项是否安装成功

detect

run.png

程序运行图

在运行mainserver程序时,首先修改程序中的host,改为本机IP地址,先启动mainserver,再启动detect_client

启动方法:python mainserver.py

启动detect_client程序前,修改host为mainserver的host地址,port根据摄像头以此递进

启动方法:python detect_client.py --weights best.pt --source 0 --img 320

--source后的参数,0为摄像头,可以是0、1、2、3、4等等,根据摄像头位置决定

detect_client的host与port可以直接在启动时加上--host + 地址的方法和--port + 端口的方法传入

注意!mainserver需要4个client全部启动才会运行

mainserver输出数据格式为:纵向车流量;横向车流量;纵向红灯时间;横向红灯时间

yolov5-ua-detrac's People

Contributors

mrnobody-zst avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.