mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
just save images when a person is detected
This commit is contained in:
parent
5258803cd7
commit
122a1666ca
@ -63,7 +63,7 @@ def detect_objects(cropped_frame, sess, detection_graph, region_size, region_x_o
|
|||||||
feed_dict={image_tensor: image_np_expanded})
|
feed_dict={image_tensor: image_np_expanded})
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
if len([value for index,value in enumerate(classes[0]) if str(category_index.get(value)) == 'person' and scores[0,index] > 0.5]) > 0:
|
if len([value for index,value in enumerate(classes[0]) if str(category_index.get(value).get('name')) == 'person' and scores[0,index] > 0.5]) > 0:
|
||||||
vis_util.visualize_boxes_and_labels_on_image_array(
|
vis_util.visualize_boxes_and_labels_on_image_array(
|
||||||
cropped_frame,
|
cropped_frame,
|
||||||
np.squeeze(boxes),
|
np.squeeze(boxes),
|
||||||
|
Loading…
Reference in New Issue
Block a user