Ask Your Question
0

Q: Live Camera feed without preview?

asked 2014-09-20 16:16:52 -0500

I'm looking to grab frames from the Camera without a preview as I want to use the output frames within a Cordova App (on Android, iOS and Windows Phone) as Cordova Apps are restricted to using a WebView. Can I use OpenCV for this (and more naturally!).

Thanks in advance! //Adam

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-09-22 02:06:26 -0500

itay gravatar image

If you don't want to preview the input frames, you just have to return null in the "OnCameraFrame" method.

It's look look this:

 public Mat onCameraFrame(CvCameraViewFrame inputFrame) {

    return null;
 }

And vise versa, if you want to do some manipulation on the input frames and show them just change the retun matrix as you want.

edit flag offensive delete link more

Comments

Marvellous! Thanks. Where should I go for some sample code so I can hit the ground running?

adam_j_bradley gravatar imageadam_j_bradley ( 2014-09-25 03:15:37 -0500 )edit
itay gravatar imageitay ( 2014-09-28 01:05:44 -0500 )edit
0

answered 2014-09-20 17:07:13 -0500

Hansg91 gravatar image

If you mean with without a preview, that you don't show the images, then sure! Basically a simple "hello world" type of application for opencv would be :

  • Open the camera
  • Repeat until done:
    • Grab image
    • Show image

If you omit the last step, then I suppose you have what you are looking for.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-09-20 16:16:52 -0500

Seen: 1,086 times

Last updated: Sep 22 '14