Skip to content

Commit efe1ac0

Browse files
committed
add example of snapshot to fid
1 parent fe01efa commit efe1ac0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

mlapiconfig.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,14 @@ stream_sequence = {
263263
'contig_frames_before_error': 5,
264264
'max_attempts': 3,
265265
'sleep_between_attempts': 4,
266-
'resize':800
266+
'resize':800,
267+
# if yes, will convert 'snapshot' to a specific frame id
268+
# This is useful because you may see boxes drawn at the wrong places when using mlapi
269+
# This is because when mlapi detects an image, a 'snapshot' could point to, say, frame 45
270+
# But when zm_detect gets the detections back and draws the boxes, snapshot could have moved
271+
# to frame 50 (example). Enabling this makes sure mlapi tells zm_detect which frame id to use
272+
# default is 'no'
273+
'convert_snapshot_to_fid': 'yes',
267274

268275
} # very important - this brace needs to be indented inside stream_sequence
269276

0 commit comments

Comments
 (0)