Litho with OpenCV?

Is is possible to get Litho working using OpenCV instead of ARCore or ARKit? I’ve tried doing it, and don’t even get the Litho.DeviceFound signal.

2 Likes

How exactly are you trying to use the plugin - are you using Unity, or are you trying to build a standalone app which uses OpenCV and the Litho plugin together? What platform are you building for?

If you’re using Unity, my first thought is that you might have a problem with permissions, but I’d need to know more about your platform to give more detailed troubleshooting steps.

If you’re trying to build a standalone app using the plugin, but aren’t getting any events through, and are working on a mac/iOS, it’s possible that you have an issue with your run loop / threading. You might need to move your work onto a thread, and do something like this on your main thread:

void loop()
{
	NSRunLoop *runLoop = NSRunLoop.currentRunLoop;
	NSDate *distantFuture = NSDate.distantFuture;
	while ([runLoop runMode:NSDefaultRunLoopMode beforeDate:distantFuture]) {
	}
}

You can do similar things in different languages - we’ve internally used Python to work with the plugin too.

2 Likes

Trying to do this through Unity right now - building to an Android device.