haven icon indicating copy to clipboard operation
haven copied to clipboard

Person / face detection with tensorflow lite

Open wtip opened this issue 3 years ago • 3 comments

Adding person or face detection with something like tensorflow lite instead of simple motion detection would be a useful feature.

wtip avatar Jan 07 '21 01:01 wtip

I like this idea; motion detection needs an overhaul. Granular options, I can get behind that for sure.

Pinging @archie94 for input on which camera framework/API to move forward with (first or third party). Thanks all

lukeswitz avatar Jan 08 '21 11:01 lukeswitz

Yes this can be a valuable add on.

We can use Framework's Camera2 apis or any wrapper over the same (Like CameraX). I believe the current camera library we have in the project can also work. Since analysis of frame are costly we can maybe analysis only certain frames at regular intervals.

We need to go with on device TFLite models like Pose estimation model or similar face detection models.

archie94 avatar Jan 09 '21 06:01 archie94

An app called tinyCam pro https://play.google.com/store/apps/details?id=com.alexvas.dvr.pro has an option to only do object detection on frames that contain motion. This helps reduce the CPU usage for environments where there isn't constant movement.

wtip avatar Jan 09 '21 17:01 wtip