'Regarding opening camera in Android Things for OpenCV

I am trying to develop a camera app which captures image and process it using OpenCV in Kotlin language. I am trying to develop it for Android Things Odroid N2+ board.

For now, I am struggling with the camera2 API.

I have a question. For image processing using OpenCV, can we use the camera2 API or does OpenCV provide separate library/tools for camera capturing and processing image for Android ?

Having no experience in OpenCV library I have heard that VideoCapture class is used in python for this purpose.

The processing part involves first capturing a reference image and then comparing other images with the reference image.

How can I go about camera capture issue for image processing ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source