I'm developing an Android app to capture snapshots using camera2 and to draw graphs related to the picture taken in real-time.
Is it possible to retrieve the capture result as a SurfaceView
(so to display it) and as RGB in order to calculate the points to draw the graph?