bcabanes / ng-camera Goto Github PK
View Code? Open in Web Editor NEWAngularJS directive for capturing images form your computer's camera.
AngularJS directive for capturing images form your computer's camera.
It is working fine in IE and Firefox but in chrome it fails
Hi, I'm from Mexico and my english is not very well, sorry about that.
I'm using angular material and i want to use md-button instead of button, but the directive do not provide any parameter to set a template for the button.
Someting like this.
<ng-camera ... button-template="'<md-button id="ng-camera-action" ng-click="getSnapshot()">{{actionMessage}}</md-button>'" ></ng-camera>
Any plans to provide a way to set template for the button, and maybe for the countdown too?
Hi,
I need to capture image through mobile in angularjs app.
Thanks
Nik
I was wondering if it is possible to save the captured image into a file (.jpg, .png, etc) and upload it later into php server.. How can I do this? When i have my research angularjs is lack of support about ng-camera specially for those beginners. Please update.
I can't seem to get data output like I except. I've tried 2 different devices, and they both show the camera feed, yet the URI I get on either one is simply "data:,"
Any help would be greatly appreciated.
Only secure orihins are allowed (see: https//)
I tested chrome old browser working, updated new chrome browser getting same issue ?
Jquery Webcam is working.
http://www.xarg.org/project/jquery-webcam-plugin/
Hi there and thank you for this plugin.
I'd like to know if I can call the capture for a particular camera on a tablet (rear or front).
Thanks in advance.
Hi, first of all thanks for your help with this. I want to know how to stop using camera once I got shot the picture. Can you help us?
I'm using the ng-camera directive and can see the camera being accessed but I can't figure out how to access the captured image let alone be able to store it. I'd like to be able to store it and send it to a server for my web application.
Any ideas? The webcam feeds in just fine, but I can't use the URI in an "ng-src" afterwards. Any help is appreciated!
Is there any way of requesting browser camera access on a button press, rather than when the page is loaded?
Getting the following error when trying to use this library with AngularJS front-end
ReferenceError: Webcam is not defined
at o (http://localhost:3000/public/client/myapp/main.js:13705:457)
at http://localhost:3000/public/client/common/vendor.js:45:1323
at ne (http://localhost:3000/public/client/common/vendor.js:45:1380)
at _ (http://localhost:3000/public/client/common/vendor.js:44:27893)
at s (http://localhost:3000/public/client/common/vendor.js:44:23955)
at _ (http://localhost:3000/public/client/common/vendor.js:44:27842)
at http://localhost:3000/public/client/common/vendor.js:44:31387
at http://localhost:3000/public/client/common/vendor.js:45:22614
at p.e.$get.p.$eval (http://localhost:3000/public/client/common/vendor.js:45:29824)
at p.e.$get.p.$digest (http://localhost:3000/public/client/common/vendor.js:45:28397)
Any ideas?
-- A
Is there any way I can trigger the get Snapshot function outside the provided template?
for example
$scope.MyOwnFunction = function() {
SomeHow.getSnapshot();
};
js:11706 Error: [$injector:unpr] Unknown provider: $$AnimateRunnerProvider <- $$AnimateRunner <- $animateCss <- $uibModalStack <- $uibModal <- $animateCss
Hi,
I was looking at your component, and looks good.
But found that the demo is not working because of the restrictions in chrome for using getUserMedia for non https pages. By replacing the link for (https://bcabanes.github.io/ng-camera/) seems to work fine.
webcajs provides a cropping mechanism.
It would be nice to have the project available at NPM.
I see you already have a package definition at ng-camera/app/package.json
, it shouldn't be much trouble to complete it and release the package.
Im using this with angular material. I put ng-camera tag in a dialog and this error appeared. But its working fine if not in a dialog
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.