Ask Your Question
0

Q: Live Camera feed without preview?

asked Sep 20 '14

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

Preview: (hide)

2 answers

Sort by » oldest newest most voted
0

answered Sep 22 '14

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.

Preview: (hide)

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 (Sep 25 '14)edit
0

answered Sep 20 '14

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.

Preview: (hide)

Question Tools

Stats

Asked: Sep 20 '14

Seen: 1,607 times

Last updated: Sep 22 '14