Hello!
I am tring to use the EmguCV v3.1.0 libraries for an augmented reality project on Android. I am having trouble getting camera input from the device.
In the Start function I try to initialise an Emgu.CV.Capture property (code below), however I am given an exception with the message “An Exception”.
The script works fine in the editor, but when I build it and install the app on my phone the _capture property isn’t created.
I tried different values in the constructor (0, CaptureType.Any…) with no success.
Unity: 64 bit, Free, v5.3.5f1
Phone: Xiaomi Redmi Note 2
Android version: 5.0.2 LRX22
Sample code:
try
{
_capture = new Capture(Emgu.CV.CvEnum.CaptureType.Android);
}
catch (NullReferenceException exc)
{
_text.text += " NULL";
}
catch (Exception ex)
{
_text.text += ex.Message;
}
Can somone help me?