Android capture

Hello, I am working on a game for android platforms that requires the camera, I have tried implementing opencv video capture code. while it does run on my pc, it doesn’t register on android resulting in a black background. Is there any way to get android capture on my game screen? thanks