I’m working on an android app with openframwork. I run the OpenCvCameraFaceExample ( detect faces on android ) on my device (nexus 4) , and i got this weird problem.
I can’t set the orientation of my window, even with setOrientation(); , app always open like this. I try to fix it in the android xml file but it just force portrait mode .
Here a picture : http://imgur.com/tySOwtR
It seems to be an Android problem on 4.0+ devices …
So i rotate my grabber view, it works fine, but faceDection doesn’t work with this orientation. I think it’s because my grabber pixels are still in the wrong orientation
I try to rotate my pixels like this :
void update :
//if i set rotate90(0) it work fine but faceDetection is still in the wrong orientation
colorCv = imageCv.getPixels();
grayCv = colorCvSmall;
faces = faceFinder.blobs;