Hello everybody, I’m trying to visualize in my plug-in a live preview image using the “theta.getLivePreview()” method. But I haven’t been able to see the previous image, I need this image to do a processing with opencv. This is my code:
private void get_live_preview() {
executor.submit(() -> {
try {
camera_preview = theta.getLivePreview();
InputStream image = camera_preview.nextFrame();
bitmap_preview = BitmapFactory.decodeStream(image);
thetaImageView.setImageBitmap(bitmap_preview);
} catch (IOException e) {
e.printStackTrace();
}
});
}
Regards
Jaime