I would like to be able to capture video from the camera of an Android phone and then process this video. Processing involves adding an AR layer to the live stream. Is this possible on Android? Surely it should be.
I looked at the android site [ http://developer.android.com/guide/topics/media/index.html] , but that seems to be about capturing and storing video. I would like to be able to play with video pre-storage.
Thank,
Depending on how in real time you want the data to be, you can use Camera.setPreviewCallbackc Camera.PreviewCallback#onPreviewFrameto listen to the preview frames coming from the camera.
Camera.setPreviewCallback
Camera.PreviewCallback#onPreviewFrame
An example of use can be found in the source code. ZXing source code (aka barcode scanner).
I am studying a problem. Personally, I think that it is better to use video streams from Android MediaRecorder, and not from previewPicture, because the latter are just a few examples with a lower frame rate.
Source: https://habr.com/ru/post/1734245/More articles:Richfaces tabPanel - using the same page for different tabs that dynamically change content - jsfOptimal Transaction Size in Postgres? - sqlCan objects unwind before they are created on the stack? - c ++Mysql intelligent interpreter - mysqlsplit the line after some characters with preg_match - phpStreaming internet video in android - androidString value of query string containing "&" - c #Creating a KeyDown event handler for label management - c #List of Java errors and warnings - javaWhat is a distributed platform, context, embedded systems? - distributed-computingAll Articles