当前位置:网站首页>Yolo fast+dnn+flask realizes streaming and streaming on mobile terminals and displays them on the web
Yolo fast+dnn+flask realizes streaming and streaming on mobile terminals and displays them on the web
2022-07-08 02:18:00 【pogg_】
Reprint please indicate the source !
Reprint please indicate the source !
Reprint please indicate the source !
Project code link :https://github.com/pengtougu/Push-Streaming.git
It's twoorthree o'clock , Too sleepy , direct github Upper readme copied , The weekend is a little boring , Made a push-pull flow demo, There are four functions :
① Picture reasoning
② Video reasoning and preservation
③ Camera local reasoning ( Don't save , A little memory consumption )
④ Mobile ( Raspberry pie , Or other development boards ) Call the camera and reason about the frame , adopt flask Push streaming to LAN , Other devices under the LAN pull the stream and display it on web On the page
The code basically doesn't need to be changed ,down Come down and run , Already in window&mac&linux Tested on three platforms , The code is generic . Push pull flow , Please ensure that you are under the same LAN !!!
Only now yolo-fastest Of demo, Yes nanodet Interested in , It will be updated continuously in the future !
Project code link :https://github.com/pengtougu/Push-Streaming.git
Push-Streaming
Hi, this repository documents the process of pushing streams on some ultra-lightweight nets. The general steps are that opencv calls the board(like Raspberry Pi)'s camera, transmits the detected live video to an ultra-lightweight network like yolo-fastest, nanodet, ghostnet, and then talks about pushing the processed video frames to the web using the flask lightweight framework, which basically guarantees real-time performance.

Requirements
Please install the following packages first
- Linux & MacOS & window
- python>= 3.6.0
- opencv-python>= 4.2.X
- flask>= 1.0.0
inference
- Yolo-Fastest: https://github.com/dog-qiuqiu/Yolo-Fastest
Models:Yolo-Fastest-1.1-xl
| Equipment | Computing backend | System | Framework | Run time |
|---|---|---|---|---|
| Raspberrypi 3B | 4xCortex-A53 | Linux(arm64) | dnn | 89ms |
| Intel | Core i5-4210 | window10(x64) | dnn | 67ms |
Nanodet: https://github.com/RangiLyu/nanodet
updating. . .
Demo
First of all, I have tested this demo in window, mac and linux environments and it works in all of them.
The students who pull down look at the documents first :

- Inference images
python yolov3_fastest.py --image dog.jpg
- Inference video
python yolov3_fastest.py --video test.mp4
- Inference webcam
python yolov3_fastest.py --fourcc 0
- Push-Streaming
python app.py
( Please make sure your raspberry pie has the camera driver installed , And the board is connected with the local machine WiFi)
( Please make sure your raspberry pie has the camera driver installed , And the board is connected with the local machine WiFi)
( Please make sure your raspberry pie has the camera driver installed , And the board is connected with the local machine WiFi)
Please note! Be sure to be on the same LAN!
Demo Effects
Demo images

Demo video

Demo camera

Demo Push-Streaming

Project code link :https://github.com/pengtougu/Push-Streaming.git
Thanks
- https://github.com/dog-qiuqiu/Yolo-Fastest
- https://github.com/hpc203/Yolo-Fastest-opencv-dnn
- https://github.com/miguelgrinberg/flask-video-streaming
- Thank the boss of this blog for providing ideas :https://blog.csdn.net/nihate/article/details/108670542
remarks
I haven't blogged for a year , This year, I really met many big guys , Or sigh that there are too many things to learn

边栏推荐
- 发现值守设备被攻击后分析思路
- QT -- create QT program
- Random walk reasoning and learning in large-scale knowledge base
- C language -cmake cmakelists Txt tutorial
- JVM memory and garbage collection-3-object instantiation and memory layout
- 力扣4_412. Fizz Buzz
- Direct addition is more appropriate
- VIM use
- 文盘Rust -- 给程序加个日志
- leetcode 866. Prime Palindrome | 866. prime palindromes
猜你喜欢

银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级

Give some suggestions to friends who are just getting started or preparing to change careers as network engineers

burpsuite

Nmap tool introduction and common commands

JVM memory and garbage collection-3-runtime data area / heap area

Mqtt x newsletter 2022-06 | v1.8.0 release, new mqtt CLI and mqtt websocket tools

很多小夥伴不太了解ORM框架的底層原理,這不,冰河帶你10分鐘手擼一個極簡版ORM框架(趕快收藏吧)

云原生应用开发之 gRPC 入门

Semantic segmentation | learning record (1) semantic segmentation Preface

Strive to ensure that domestic events should be held as much as possible, and the State General Administration of sports has made it clear that offline sports events should be resumed safely and order
随机推荐
Wechat applet uniapp page cannot jump: "navigateto:fail can not navigateto a tabbar page“
常见的磁盘格式以及它们之间的区别
Vim 字符串替换
Force buckle 4_ 412. Fizz Buzz
Relationship between bizdevops and Devops
Coreldraw2022 download and install computer system requirements technical specifications
Ml self realization / logistic regression / binary classification
Leetcode featured 200 channels -- array article
adb工具介绍
JVM memory and garbage collection-3-runtime data area / heap area
谈谈 SAP iRPA Studio 创建的本地项目的云端部署问题
Reading notes of Clickhouse principle analysis and Application Practice (7)
银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
Matlab r2021b installing libsvm
OpenGL/WebGL着色器开发入门指南
CorelDRAW2022下载安装电脑系统要求技术规格
Infrared dim small target detection: common evaluation indicators
分布式定时任务之XXL-JOB
牛熊周期与加密的未来如何演变?看看红杉资本怎么说
If time is a river