Ma0zii / ncnn-andriod-scrfd-app

ncnn 安卓 scrfd 的人脸检测部署
1 stars 0 forks source link

Dynamic input shape #2

Open sdranju opened 3 months ago

sdranju commented 3 months ago

Is the model accept dynamic input shape or do I need to resize the image to a specific size required by the model?

Ma0zii commented 3 months ago

You can determine the size of the image during inference by modifying the parameter target_size, and the image will be resized to the size you set.

sdranju commented 3 months ago

Thank you for your response. I'm asking because I'll feed the frame directly from the camera using Camera2 or CameraX api. I need real-time detection, resizing may create extra overhead to the system and lag.