last day (14 days later) » 

3:33 PM
2
Q: Recording Live OpenCV Processing on Android

Kevin WorkmanMy goal is to do a couple things: Use OpenCV and the JavaCameraView to process frames from the phone's camera feed Enable recording of that processed video as it happens I have both of them working, but the way I had to implement number 2 is ridiculous: For each frame, write the processed M...

 
Why don't you use the default recording activity built-in from android itself? After that you can retrieve the video file and to whatever you want with it.
 
@HaDang Because I need to do the processing live, not after the recording. The default recording activity does not give you access to the individual frames.
 
How about pushing incoming images into a queue after processing, and periodically pass the queue to another thread to do the saving?
 
@HaDang I suppose I could do that, but that still seems like a crazy solution. I've been pretty shocked to find that there isn't a standard way to export video as it's being processed like this. Seems like a pretty major feature for OpenCV developers.
 
@Kenvin Workman: Did you try VideoWriter? It seems that someone succeeded in generating its java binding.
 
3:33 PM
@HaDang Unfortunately, VideoWriter does not work on Android, which is why I went with jcodec: answers.opencv.org/question/29068/… (I will also note that exporting the images on another thread would not fix the problems with JCodec running out of memory)
 
How about developing an android native prog in Opencv and use android java app just to streaming/displaying the image (other processing will be done in the native part)?
Is there a possibility to use a distant server to export the video?
 
I'm not sure how using a server would improve anything? Sending the frames to a server seems like huge overkill just to record a video.
I'm really looking for a Java solution- it seems really silly if there isn't already a way to do this!
 
if you can use a server, then do all the processing stuff on the server, the android app will be just a user interface.
 
Sending 30-60 frames per second to a server really seems like overkill just to record a video.
 
I know...
 
3:39 PM
If there isn't a reasonable solution, I can live without the video, the processing is the most important part. But I'm really shocked that there isn't a way to do this.
 
Hm, not really. I'd like to record the video to a local file, not to a server. This is for a semester project where I'm creating an AR game that uses the camera preview and OpenCV to do live image processing. I'd like the ability to make a video of that application to show in class. Uploading it to a server is way overkill for what I need, and if that's the only solution, then I'm just going to have to live without the recording.
Thanks for doing some research though, these are interesting projects worth checking out, just not really applicable for what I want right now.
 
hey, wait
seems like what you're searching for
:)
and good luck with your project. It must be really amazing!
 
This is really promising, thank you so much!
Feel free to post this as an answer, gotta get those sweet upvotes, haha
 

last day (14 days later) »