SamratPyaraka / Xamarin-Android-OpenCV

Camera Orientation Fixed for the back & front camera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xamarin.Android.OpenCV

Orientation Fixed for the face detection. Please follow below steps to fix the orientation

1. Use Screen Orientation as Reverse landscape in your activity

eg:- [Activity(ScreenOrientation = ScreenOrientation.ReverseLandscape)]

2. Then, OnCameraFrame() function set Core.Flip for the give frame to -1.

Core.Core.Flip(mGray, mGray, -1);

About

Camera Orientation Fixed for the back & front camera

License:MIT License


Languages

Language:C# 90.6%Language:C++ 8.4%Language:Makefile 1.1%