当前位置:网站首页>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

边栏推荐
- 力扣4_412. Fizz Buzz
- Emqx 5.0 release: open source Internet of things message server with single cluster supporting 100million mqtt connections
- 常见的磁盘格式以及它们之间的区别
- 【每日一题】736. Lisp 语法解析
- What are the types of system tests? Let me introduce them to you
- Is it necessary for project managers to take NPDP? I'll tell you the answer
- 文盘Rust -- 给程序加个日志
- nmap工具介绍及常用命令
- Ml backward propagation
- [recommendation system paper reading] recommendation simulation user feedback based on Reinforcement Learning
猜你喜欢

The bank needs to build the middle office capability of the intelligent customer service module to drive the upgrade of the whole scene intelligent customer service

Semantic segmentation | learning record (5) FCN network structure officially implemented by pytoch

Semantic segmentation | learning record (3) FCN

leetcode 866. Prime Palindrome | 866. prime palindromes

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

Flutter 3.0框架下的小程序运行

Introduction to ADB tools

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

nmap工具介紹及常用命令

分布式定时任务之XXL-JOB
随机推荐
实现前缀树
Matlab r2021b installing libsvm
A comprehensive and detailed explanation of static routing configuration, a quick start guide to static routing
leetcode 866. Prime Palindrome | 866. prime palindromes
需要思考的地方
OpenGL/WebGL着色器开发入门指南
Gaussian filtering and bilateral filtering principle, matlab implementation and result comparison
JVM memory and garbage collection -4-string
力扣5_876. 链表的中间结点
Cross modal semantic association alignment retrieval - image text matching
MQTT X Newsletter 2022-06 | v1.8.0 发布,新增 MQTT CLI 和 MQTT WebSocket 工具
Completion report of communication software development and Application
Introduction to ADB tools
PHP calculates personal income tax
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
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
阿南的判断
Nanny level tutorial: Azkaban executes jar package (with test samples and results)
XXL job of distributed timed tasks
LeetCode精选200道--链表篇