Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to open Opencv camera ? #1

Closed
rawatrob opened this issue Feb 2, 2017 · 1 comment
Closed

How to open Opencv camera ? #1

rawatrob opened this issue Feb 2, 2017 · 1 comment

Comments

@rawatrob
Copy link

rawatrob commented Feb 2, 2017

I'm didn't know the native but working with cordova so how to open the camera by using js/html and how to detect target image/object by js.. ? Please suggested me in cordova

@a31859
Copy link
Contributor

a31859 commented Feb 2, 2017

Hey @rawatrob,
the camera opens automatically when you use the plugin on your app. Just add

<preference name="backgroundColor" value="0x00000000" />

to your Cordova config.xml and on your CSS set the body background to transparent.
There's no function to open or to close the camera using JS implemented if that's what you wanted.
To detect a target image you first need to set it using the function setPatterns provided by the plugin, then use the isDetecting function to know when a image is being detected. Check the usage example to see how this can be done.

@a31859 a31859 closed this as completed Feb 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants