Android opencv4 facedetection with javacameraview not working in portrait mode

I am new to Opencv sdk in android and i am developing app for face detecion but the problem is Opencv javacamera view work perfect in landscape mode but when i modify CameraBirdgeview base to portrait facedetection stop working…

Please Any one know solution help me …Thanks in advance!