Ayush Yadav
unread,Jul 24, 2023, 4:57:54 AM7/24/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Android CameraX Discussion Group
I am trying to make a document scanner with corner detection using TensorFlow model and CameraX Api.
I want to know the best strategy to process analysis image to TensorFlow model (accepts RGB image ,so i need the fastest pipeline for conversion (renderscript is deprecated ,so cant use it and other is to use bitmap method).
Also I need to capture the image too ,so need to make sure that the aspect ratio of capture and analysis image ,preview image is same.If i try using the anaysis image for capturing is will be of low quality ,thats why after detecting the corner ,capturing image instantly.
My current flow is : preview image ,analysis image and capture image having same aspect ratio so that corner points get plotted correctly ,passing analysis image to TensorFlow input and getting the corners. Also need to make sure analysis image quality is min ,preview is mid quality and capture image is high quality.
I want to know any better strategy ,any reference kotlin project or suggestion