Ask Your Question
0

android Face Detect with portrait activity opencv 2.4.3

asked 2013-04-04 21:15:23 -0600

OlDPiG gravatar image

I am first to use OpenCV, I am try to run the android project "OpenCV Sample - face-detection". This project only capture image camera with horizontal, and detect face and draw rectangle on captured image, but I need to detect face with vertical.

So I try to rotate camera preview to vertical and set activity to portrait, but it not work. it still detect face with horizontal.

Could there are some of step need to do when i detect face with vertical? If possible, please provide/suggest some of step or code that how to detect face with vertical.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-08 00:56:57 -0600

Face orientation for detection depends on classifier. Classifier that is used for face detection sample was trained for vertical faces only. You can train your own classifier on rotated faces or rotate each camera frame before detector execution. The second way is easier for implementation but slower on target device.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-04-04 21:15:23 -0600

Seen: 1,067 times

Last updated: Apr 08 '13