I am working on an application that works with cameras in android using java and android studio.
in python or cpp we can access camera with something codes like this:
import cv2 # opencv
vc = cv2.VideoCapture(0) # 0 is id of camera
ret, image = vc.read()
so image is what we want in this code and i can perform any operations on it with highest performance.
but in java and android, that is not easy for me.
is there someone help me or give me a simple java class to access a camera with its id and read its freames?
i don’t need show image to user but the important thing is that i give current camera frame image and cast it to bytesarray
1