I want to play a video on my camera view on android. The video needs some processing, masking the blackscreen. I tried this in cpp. How to do it in android? Please help
cv::Mat mask(videoframe.size(),CV_8U);
inRange(videoframe,
Scalar(0,0,0),
Scalar(0,0,0),
mask
);
mask = 255 - mask; // subtract the above black mask created from the image
videoframe.copyTo(cameraframe,mask);//copy the video frame with mask(i.e. black part removed) onto the camera feed
namedWindow("MixedFrame");