|
6 năm trước cách đây | |
---|---|---|
.dockerignore | 6 năm trước cách đây | |
Dockerfile | 6 năm trước cách đây | |
LICENSE | 6 năm trước cách đây | |
README.md | 6 năm trước cách đây | |
detect_objects.py | 6 năm trước cách đây |
This results in a MJPEG stream with objects identified that has a lower latency than directly viewing the RTSP feed with VLC.
Build the container with
docker build -t realtime-od .
Download a model from the zoo.
Download the cooresponding label map from here.
Run the container with
docker run -it --rm \
-v <path_to_frozen_detection_graph.pb>:/frozen_inference_graph.pb:ro \
-v <path_to_labelmap.pbtext>:/label_map.pbtext:ro \
-p 5000:5000 \
-e RTSP_URL='<rtsp_url>' \
-e REGIONS='<box_size_1>,<x_offset_1>,<y_offset_1>:<box_size_2>,<x_offset_2>,<y_offset_2>' \
realtime-od:latest
Access the mjpeg stream at http://localhost:5000