Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jphp-group/jphp-webcam-ext
https://github.com/jphp-group/jphp-webcam-ext
develnext jphp jppm php webcam
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jphp-group/jphp-webcam-ext
- Owner: jphp-group
- License: apache-2.0
- Created: 2018-08-17T10:36:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-17T11:08:50.000Z (over 6 years ago)
- Last Synced: 2024-02-09T06:34:46.927Z (11 months ago)
- Topics: develnext, jphp, jppm, php, webcam
- Language: Java
- Size: 477 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
- awesome-jphp - Webcam - extension for working with webcam. (Uncategorized / Uncategorized)
README
# Webcam
Расширение для работы с веб-камерой
## Установка
```
jppm add jphp-webcam-ext
```
## Примеры
### Получить веб-камеру по умолчанию:
```php
$webcam = Webcam::getDefault();
```
### Получить список веб-камер:
```php
$webcamList = Webcam::getWebcams();
```
### Сделать снимок с веб-камеры:
```php
$webcam = Webcam::getDefault();
$webcam->open();
$image = $webcam->getImage();
$image->save('screenshot.png');
```
### Отобразить изображение с веб-камеры:
```php
$webcam = Webcam::getDefault();
$webcam->open();$webcamView = new UXWebcamView();
$webcamView->webcam = $webcam;
$webcamView->size = [640, 480];
$form->add($webcamView);
$webcamView->play();
```
## Расширение для DevelNext
[Скачать](https://github.com/jphp-group/jphp-webcam-ext/releases/latest)![](/screenshots/dn_view.png)
## Скриншоты
![](/screenshots/screenshot.png)
## Дополнительно
[Venity](https://vk.com/venity)
[DevelNext - extensions & manuals.](https://vk.com/dn_extension)
[Оригинальная библиотека](https://github.com/sarxos/webcam-capture)