프로젝트
GitHub에서 보기 Webcam manipulation with HTML5
jonashartmann/webcam-directive
소개
웹캠에 접근하는 AngularJS 디렉티브입니다.
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWebcam manipulation with HTML5 
An AngularJS directive to manipulate the webcam.
You can easily add it as a module to your own app.
A complete example can be found at http://jonashartmann.github.io/webcam-directive (gh-pages)
Download
Using NPM
npm install webcam
Using Bower
bower install webcam-directive
There is a tag for each version, with the built javascript file inside the dist directory
Ex.: dist/webcam.min.js
Installation
Using script tag
<script type="text/javascript" src="webcam.min.js"></script>
Usage
Add module "webcam" as dependency
angular.module('myapp', ['webcam']);
Then add the new element in HTML
<webcam></webcam>
Advanced Usage
Set a custom placeholder image to be shown while loading the stream
<webcam placeholder="'img/ajax-loader.gif'">
Callbacks
function MyController($scope) {
$scope.onError = function (err) {...};
$scope.onStream = function (stream) {...};
$scope.onSuccess = function () {...};
}
<webcam
on-stream="onStream(stream)"
on-streaming="onSuccess()"
on-error="onError(err)">
</webcam>
Set a channel to bind data
function MyController($scope) {
$scope.myChannel = {
// the fields below are all optional
videoHeight: 800,
videoWidth: 600,
video: null // Will reference the video element on success
};
}
<webcam
channel="myChannel">
</webcam>
see more examples wiki
Contribute
- Fork and clone this repository
- Install dependencies
npm install
- Build/test with karma
Ensure you have Chromium installed with CHROMIUM_BIN set to its path
npm run test
- Make a Pull Request
Recommended: Test locally, as it will only be merged if it builds successfully.
Or just help by creating issues.
License
The code is licensed under the MIT License. @see LICENSE file
관련 프로젝트 살펴보기
불러오는 중…
