I am using Android Camera2 sample to display and capture pre-processed images. However, I am not being able to do both tasks with the same ImageReader.OnImageAvailableListener
. When onImageAvailable(ImageReader reader)
is called for capturing, it can not read the image. I followed @AngeloS answer here.
Even if I think that I can work around this, I am not sure if this is the best way to accomplish my end goal. Basically, I want to convert the image to grayscale, do some more preprocessing steps, and extract keypoints from the image using ORB/SIFT/SURF. I want the user to see the preview with preprocessing steps and be able to press capture when he wants. After that, I will extract keypoints from the saved image. I know that processing and displaying in a Texture will be slow, but I think it is feasible.
Summary: is this a good approach? Is it feasible? If yes, is there a way to solve this (capture after preprocessed display)? If you think I am lost, teach me :)