Apply transformations to PreviewView frames with opencv

353 views
Skip to first unread message

Rodolfo Ruffer

unread,
Apr 28, 2020, 9:41:09 AM4/28/20
to Android CameraX Discussion Group
Guys, I'm developing a document scanner. and I wanted to display a rectangle identifying the object in the camera view with the opencv. Something like that:


I currently do this in ImageAnalysis.Analyzer and feed an imageView. But I was wondering if there is any way to do it directly in PreviewView. With some callback that changes the frame before it is displayed.

Yossi Elkrief

unread,
Jun 2, 2020, 7:07:46 AM6/2/20
to Android CameraX Discussion Group
You will need to use your own PreviewView and not use the PreviewView as it gets that frames from the camera directly and currently there is no api to inject frames to it. 
Reply all
Reply to author
Forward
0 new messages