当前位置:网站首页>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
边栏推荐
- metasploit
- 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
- 银行需要搭建智能客服模块的中台能力,驱动全场景智能客服务升级
- Introduction à l'outil nmap et aux commandes communes
- Introduction to QT: video player
- Introduction to ADB tools
- Why did MySQL query not go to the index? This article will give you a comprehensive analysis
- Deeppath: a reinforcement learning method of knowledge graph reasoning
- Neural network and deep learning-5-perceptron-pytorch
- Wechat applet uniapp page cannot jump: "navigateto:fail can not navigateto a tabbar page“
猜你喜欢
常见的磁盘格式以及它们之间的区别
leetcode 873. Length of Longest Fibonacci Subsequence | 873. 最长的斐波那契子序列的长度
科普 | 什么是灵魂绑定代币SBT?有何价值?
Little knowledge about TXE and TC flag bits
Towards an endless language learning framework
C language -cmake cmakelists Txt tutorial
Wechat applet uniapp page cannot jump: "navigateto:fail can not navigateto a tabbar page“
nmap工具介绍及常用命令
Leetcode featured 200 -- linked list
Can you write the software test questions?
随机推荐
CorelDRAW2022下载安装电脑系统要求技术规格
Leetcode question brushing record | 27_ Removing Elements
Give some suggestions to friends who are just getting started or preparing to change careers as network engineers
COMSOL --- construction of micro resistance beam model --- final temperature distribution and deformation --- addition of materials
Nanny level tutorial: Azkaban executes jar package (with test samples and results)
如何用Diffusion models做interpolation插值任务?——原理解析和代码实战
nmap工具介绍及常用命令
Keras深度学习实战——基于Inception v3实现性别分类
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
电路如图,R1=2kΩ,R2=2kΩ,R3=4kΩ,Rf=4kΩ。求输出与输入关系表达式。
很多小夥伴不太了解ORM框架的底層原理,這不,冰河帶你10分鐘手擼一個極簡版ORM框架(趕快收藏吧)
[reinforcement learning medical] deep reinforcement learning for clinical decision support: a brief overview
实现前缀树
Towards an endless language learning framework
th:include的使用
Introduction to QT: video player
Semantic segmentation | learning record (1) semantic segmentation Preface
CV2 read video - and save image or video
metasploit
Wechat applet uniapp page cannot jump: "navigateto:fail can not navigateto a tabbar page“