PHP code example of hanhan1978 / php-opencv-webcam

1. Go to this page and download the library: Download hanhan1978/php-opencv-webcam library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hanhan1978 / php-opencv-webcam example snippets




ra = new \Hanhan1978\OpenCv\Camera();
$camera->snapshot('test.png');

$ composer r/hanhan1978/php-opencv-webcam/
$ make