2017 © Pedro Peláez
 

library cloud-videointelligence

Cloud Video Intelligence Client for PHP

image

google/cloud-videointelligence

Cloud Video Intelligence Client for PHP

  • Thursday, July 19, 2018
  • by bshaffer
  • Repository
  • 46 Watchers
  • 2 Stars
  • 1,947 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 32 Versions
  • 17 % Grown

The README.md

Google Cloud Video Intelligence for PHP

Idiomatic PHP client for Cloud Video Intelligence, (*1)

Latest Stable Version Packagist, (*2)

NOTE: This repository is part of Google Cloud PHP. Any support requests, bug reports, or development contributions should be directed to that project., (*3)

Allows developers to use Google video analysis technology as part of their applications. The REST API enables users to annotate videos stored locally or in Google Cloud Storage with contextual information at the level of the entire video, per segment, per shot, and per frame., (*4)

NOTE: This documentation covers the most recent stable release (V1). There is an additional beta release included in this component. To check out its documentation, see the link below:, (*5)

Installation

To begin, install the preferred dependency manager for PHP, Composer., (*6)

Now install this component:, (*7)

$ composer require google/cloud-videointelligence

This component supports both REST over HTTP/1.1 and gRPC. In order to take advantage of the benefits offered by gRPC (such as streaming methods) please see our gRPC installation guide., (*8)

Authentication

Please see our Authentication guide for more information on authenticating your client. Once authenticated, you'll be ready to start making requests., (*9)

Sample

require __DIR__ . '/vendor/autoload.php';

use Google\Cloud\VideoIntelligence\V1\VideoIntelligenceServiceClient;
use Google\Cloud\VideoIntelligence\V1\Feature;

$videoIntelligenceServiceClient = new VideoIntelligenceServiceClient();

$inputUri = "gs://example-bucket/example-video.mp4";

$features = [
    Feature::LABEL_DETECTION,
];
$operationResponse = $videoIntelligenceServiceClient->annotateVideo([
    'inputUri' => $inputUri,
    'features' => $features
]);
$operationResponse->pollUntilComplete();
if ($operationResponse->operationSucceeded()) {
    $results = $operationResponse->getResult();
    foreach ($results->getAnnotationResults() as $result) {
        echo 'Segment labels' . PHP_EOL;
        foreach ($result->getSegmentLabelAnnotations() as $labelAnnotation) {
            echo "Label: " . $labelAnnotation->getEntity()->getDescription()
                . PHP_EOL;
        }
        echo 'Shot labels' . PHP_EOL;
        foreach ($result->getShotLabelAnnotations() as $labelAnnotation) {
            echo "Label: " . $labelAnnotation->getEntity()->getDescription()
                . PHP_EOL;
        }
        echo 'Frame labels' . PHP_EOL;
        foreach ($result->getFrameLabelAnnotations() as $labelAnnotation) {
            echo "Label: " . $labelAnnotation->getEntity()->getDescription()
                . PHP_EOL;
        }
    }
} else {
    $error = $operationResponse->getError();
    echo "error: " . $error->getMessage() . PHP_EOL;

}

Debugging

Please see our Debugging guide for more information about the debugging tools., (*10)

Version

This component is considered GA (generally available). As such, it will not introduce backwards-incompatible changes in any minor or patch releases. We will address issues and requests with the highest priority., (*11)

Next Steps

  1. Understand the official documentation.
  2. Take a look at in-depth usage samples.

The Versions

19/07 2018

dev-master

9999999-dev

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

19/07 2018

v1.0.4

1.0.4.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

11/07 2018

v1.0.3

1.0.3.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

03/07 2018

v1.0.2

1.0.2.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

27/06 2018

v1.0.1

1.0.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

20/06 2018

v1.0.0

1.0.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

12/06 2018

v0.12.0

0.12.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

31/05 2018

v0.11.1

0.11.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

24/05 2018

v0.11.0

0.11.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

08/05 2018

v0.10.4

0.10.4.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

16/04 2018

v0.10.3

0.10.3.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

11/04 2018

v0.10.2

0.10.2.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

03/04 2018

v0.10.1

0.10.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

28/03 2018

v0.10.0

0.10.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

16/03 2018

v0.9.3

0.9.3.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

26/02 2018

v0.9.2

0.9.2.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/02 2018

v0.9.1

0.9.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

23/01 2018

v0.9.0

0.9.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

29/12 2017

v0.8.3

0.8.3.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/12 2017

v0.8.2

0.8.2.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

16/12 2017

v0.8.1

0.8.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

02/12 2017

v0.8.0

0.8.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

15/11 2017

v0.7.0

0.7.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/11 2017

v0.6.0

0.6.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

17/10 2017

v0.5.0

0.5.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/09 2017

v0.4.0

0.4.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

05/09 2017

v0.3.3

0.3.3.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

25/08 2017

v0.3.2

0.3.2.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

12/07 2017

v0.3.1

0.3.1.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

01/07 2017

v0.3.0

0.3.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

22/05 2017

v0.2.0

0.2.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires

 

18/05 2017

v0.1.0

0.1.0.0

Cloud Video Intelligence Client for PHP

  Sources   Download

Apache-2.0

The Requires