资源简介

可用于视频目标检测的深度学习代码,完整好用,可直接运行

资源截图

代码片段和文件信息

from utils.app_utils import *
import numpy as np
import cv2

if __name__ == ‘__main__‘:
    # created a *threaded* video stream allow the camera sensor to warmup
    # and start the FPS counter
    vs = WebcamVideoStream(src=“inputs/test.mp4“).start()
    fps = FPS().start()

    while fps._numframes < 100:
        # Capture frame-by-frame
        ret frame = vs.read()
        if ret==True:

            # Display the resulting frame
            cv2.imshow(‘frame‘ frame)
            fps.update()
        
            if cv2.waitKey(1) & 0xFF == ord(‘q‘):
                break
        else:
            break

    # When everything done release the capture
    fps.stop()
    vs.stop()
    cv2.destroyAllWindows()
    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-03 13:41  object-detection-master\
     文件        2458  2018-05-03 13:41  object-detection-master\Dockerfile
     文件        1070  2018-05-03 13:41  object-detection-master\LICENSE
     文件        1561  2018-05-03 13:41  object-detection-master\README.md
     文件          71  2018-05-03 13:41  object-detection-master\exec.sh
     目录           0  2018-05-03 13:41  object-detection-master\function\
     目录           0  2018-05-03 13:41  object-detection-master\function\__pycache__\
     文件        1924  2018-05-03 13:41  object-detection-master\function\__pycache__\realtime.cpython-35.pyc
     文件        2865  2018-05-03 13:41  object-detection-master\function\__pycache__\video.cpython-35.pyc
     文件        2688  2018-05-03 13:41  object-detection-master\function\realtime.py
     文件        4317  2018-05-03 13:41  object-detection-master\function\video.py
     文件         728  2018-05-03 13:41  object-detection-master\init-openCV.py
     目录           0  2018-05-03 13:41  object-detection-master\inputs\
     文件     2847337  2018-05-03 13:41  object-detection-master\inputs\test.mp4
     目录           0  2018-05-03 13:41  object-detection-master\model\
     文件    29185289  2018-05-03 13:41  object-detection-master\model\frozen_inference_graph.pb
     文件        5056  2018-05-03 13:41  object-detection-master\model\mscoco_label_map.pbtxt
     文件        1656  2018-05-03 13:41  object-detection-master\my-object-detection.py
     目录           0  2018-05-03 13:41  object-detection-master\outputs\
     文件     7258698  2018-05-03 13:41  object-detection-master\outputs\output.avi
     文件     2137808  2018-05-03 13:41  object-detection-master\outputs\output.gif
     文件     8085651  2018-05-03 13:41  object-detection-master\outputs\output_webcam.gif
     文件         369  2018-05-03 13:41  object-detection-master\runDocker.sh
     目录           0  2018-05-03 13:41  object-detection-master\utils\
     目录           0  2018-05-03 13:41  object-detection-master\utils\__pycache__\
     文件        3533  2018-05-03 13:41  object-detection-master\utils\__pycache__\app_utils.cpython-35.pyc
     文件        2203  2018-05-03 13:41  object-detection-master\utils\__pycache__\objDet_utils.cpython-35.pyc
     文件        2886  2018-05-03 13:41  object-detection-master\utils\app_utils.py
     文件        3114  2018-05-03 13:41  object-detection-master\utils\objDet_utils.py

评论

共有 条评论