實戰小項目之基於深度學習的在線目標檢測系統


  將之前的的兩個小功能做了一次封裝,並完善視頻推流的功能,實現從攝像頭/文件/網絡流獲取視頻流,解碼顯示,編碼之后推流或者保存成文件。具體如readme

                    Online Object Detection System Based On Deep Learning
    This project is a system for objects detection based on deep learning(darknet --yolo),and include some parts as list:
    1.video stream detect
    using ffmpeg,finished functions that:
     1) get video stream from camera/file/net video stream
     2) decode and display with opencv
     3) encode video with h264 in flv format
     4) push video through rtmp protocol to nginx stream media server or save as file

    the main work of ./client/ObjectDetector:
    pusher:
        get video from camera-->decode and display with opencv -->encode in h264as flv --> push stream to nginx server
    puller:
        get video from nginx server-->decode and display with opencv -->encode in h264as flv --> save as file

    the main work of ./server/video
    get video from nginx server--> decode and dislay with opencv --> detect whih yolo -->display detect results --> encode in h264 as flv --> push stream to nginx server(another channel)

    2.image detect
    tranport image or json with http,using libevent to listen http in server,using libcurl as client

    the main work of ./client/imagedemo/curlclient
    read a image file --> transport in http with libcurl ----waiting for reback-- get json stream -->decode json

    the main work of ./server/image
    libevent as http server in child process--- wait for client --- get a request --> write image stream as file --> signal to main process and yolo read file and detect -->write detect results in a json file --> fifo to wake up child process --> read json file and sent to client with http


CAUSTION:
    when use code in server folder,you must configure darknet already,then you can put these files in src,and replace default Makefile with my Makefile.Also, you have to configure libs I have used.

 

圖片檢測

 

視頻檢測

  與之前相比,新增檢測之后的視頻流回推,就是再推流,然后去接收

 

code


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM