mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
prevent unnecessary early exit from loop
This commit is contained in:
parent
5dc76803d6
commit
e597a08a66
@ -13,7 +13,7 @@ This results in a MJPEG stream with objects identified that has a lower latency
|
|||||||
## Getting Started
|
## Getting Started
|
||||||
Build the container with
|
Build the container with
|
||||||
```
|
```
|
||||||
docker build -t realtime-od .
|
docker build -t frigate .
|
||||||
```
|
```
|
||||||
|
|
||||||
Download a model from the [zoo](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md).
|
Download a model from the [zoo](https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md).
|
||||||
@ -31,7 +31,7 @@ docker run --rm \
|
|||||||
-e MQTT_HOST='your.mqtthost.com' \
|
-e MQTT_HOST='your.mqtthost.com' \
|
||||||
-e MQTT_TOPIC_PREFIX='cameras/1' \
|
-e MQTT_TOPIC_PREFIX='cameras/1' \
|
||||||
-e DEBUG='0' \
|
-e DEBUG='0' \
|
||||||
realtime-od:latest
|
frigate:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Example compose:
|
Example compose:
|
||||||
@ -39,7 +39,7 @@ Example compose:
|
|||||||
frigate:
|
frigate:
|
||||||
container_name: frigate
|
container_name: frigate
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: realtime-od:latest
|
image: frigate:latest
|
||||||
volumes:
|
volumes:
|
||||||
- <path_to_frozen_detection_graph.pb>:/frozen_inference_graph.pb:ro
|
- <path_to_frozen_detection_graph.pb>:/frozen_inference_graph.pb:ro
|
||||||
- <path_to_labelmap.pbtext>:/label_map.pbtext:ro
|
- <path_to_labelmap.pbtext>:/label_map.pbtext:ro
|
||||||
|
@ -70,11 +70,6 @@ def detect_motion(shared_arr, shared_frame_time, frame_lock, frame_ready, motion
|
|||||||
cnts = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
|
cnts = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_SIMPLE)
|
||||||
cnts = imutils.grab_contours(cnts)
|
cnts = imutils.grab_contours(cnts)
|
||||||
|
|
||||||
# if there are no contours, there is no motion
|
|
||||||
if len(cnts) < 1:
|
|
||||||
motion_frames = 0
|
|
||||||
continue
|
|
||||||
|
|
||||||
motion_found = False
|
motion_found = False
|
||||||
|
|
||||||
# loop over the contours
|
# loop over the contours
|
||||||
|
Loading…
Reference in New Issue
Block a user