当前位置:网站首页>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
边栏推荐
- Introduction to ADB tools
- I don't know. The real interest rate of Huabai installment is so high
- 【每日一题】648. 单词替换
- Applet running under the framework of fluent 3.0
- Leetcode featured 200 channels -- array article
- Towards an endless language learning framework
- The generosity of a pot fish
- Coreldraw2022 download and install computer system requirements technical specifications
- Flutter 3.0框架下的小程序运行
- leetcode 865. Smallest Subtree with all the Deepest Nodes | 865.具有所有最深节点的最小子树(树的BFS,parent反向索引map)
猜你喜欢
leetcode 866. Prime Palindrome | 866. 回文素数
Nmap tool introduction and common commands
Can you write the software test questions?
What are the types of system tests? Let me introduce them to you
Random walk reasoning and learning in large-scale knowledge base
[reinforcement learning medical] deep reinforcement learning for clinical decision support: a brief overview
Clickhouse principle analysis and application practice "reading notes (8)
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
Xmeter newsletter 2022-06 enterprise v3.2.3 release, error log and test report chart optimization
Exit of processes and threads
随机推荐
Principle of least square method and matlab code implementation
[knowledge map paper] attnpath: integrate the graph attention mechanism into knowledge graph reasoning based on deep reinforcement
JVM memory and garbage collection-3-runtime data area / method area
云原生应用开发之 gRPC 入门
Le chemin du poisson et des crevettes
What are the types of system tests? Let me introduce them to you
金融业数字化转型中,业务和技术融合需要经历三个阶段
[recommendation system paper reading] recommendation simulation user feedback based on Reinforcement Learning
企业培训解决方案——企业培训考试小程序
Talk about the cloud deployment of local projects created by SAP IRPA studio
Beaucoup d'enfants ne savent pas grand - chose sur le principe sous - jacent du cadre orm, non, ice River vous emmène 10 minutes à la main "un cadre orm minimaliste" (collectionnez - le maintenant)
CV2 read video - and save image or video
leetcode 866. Prime Palindrome | 866. 回文素数
魚和蝦走的路
Leetcode featured 200 channels -- array article
Installing and using mpi4py
分布式定时任务之XXL-JOB
Opengl/webgl shader development getting started guide
生命的高度
Random walk reasoning and learning in large-scale knowledge base