mnakada / atomcam_tools

Hack tool for atomcam and wyzecam.
Other
183 stars 22 forks source link

libcallback waitmotion #46

Closed gtxaspec closed 2 years ago

gtxaspec commented 2 years ago

@mnakada

In waitMotion.c,

what should be the proper behavior for "clear"?

should this only appear after motion detected,if not

why would clear appear before the timeout is reached?

example:

cmd waitmotion 30 in a while loop

22/07/12-20:19:41 detect 197 229 202 263 - - 22/07/12-20:19:54 clear 22/07/12-20:19:59 clear 22/07/12-20:20:05 clear 22/07/12-20:20:12 clear 22/07/12-20:20:47 timeout 22/07/12-20:21:43 clear

mnakada commented 2 years ago

@gtxaspec , waitmotion hooks local_sdk_video_osd_update_rect, which draws a frame when motion detect in iCamera_app.

clear is output when the frame is cleared. It can tell when motion detection is finished, but I'm not using it at the moment.

gtxaspec commented 2 years ago

thank you!