Open billylo1 opened 3 years ago
Hey @billylo1, is the question still relevant? At the moment we don't have simple way to record video aside from startRecording. The Google's Camera2 video recorder app open's camera inside, and we also open camera in Vision, so I guess it have a lot of conflicts and isn't going to work stable anyway. Could you describe your use case more?
Hi, This is what I built for iOS. sidekick-app.com. Mapbox vision can coexist with standard camera api there... hoping to do the same thing on Android.
I had the same issue and I found a walkaround. Since you have your own recording I am assuming you have a previewView sort of thing. So instead of creating the VisionManager and attaching it to the camera, you can attach it to a customVideoSource VisionManager.create(customVideoSource)
and from the customVideoSource you fetch the bitmap from your previewView on a fixed timed interval (To do this you need to post message to UIThread).
This allows you to decouple the detection fps from the UI fps.
thanks! Let me give it a try.
Given the VisionManager.startRecording is for debugging only, I am trying to find a simple way to record the video using my own code.
I used Google's Camera2 video recorder sample as starting point. https://github.com/googlearchive/android-Camera2Video
And then add the VisionManager start into onResume().
The result is somewhat strange... it seems to work initially, but after 5 minutes. The app crashes with this in logcat.
Any hints on how to do my own video recording?
thanks,