定制 andaris/computer-vision-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andaris/computer-vision-client

Composer 安装命令:

composer require andaris/computer-vision-client

包简介

Simple PHP Client for the Microsoft Computer Vision API

README 文档

README

Build Status Scrutinizer Code Quality Code Coverage

Computer Vision API Client

This library provides a simple client for Microsoft's Computer Vision API using the Guzzle PHP HTTP client.

Requirements

  • PHP 5.5 or higher
  • PHP CURL extension

Installation (Composer)

This library is published as a Composer package, so Composer is the recommended way to install it.

Add computer-vision-client to your application's composer.json file:

{
    "require": {
        "andaris/computer-vision-client": "0.1.0"
    }
}

Navigate to your project root and run:

$ composer install

Make sure that the Composer autoloader is in your project's bootstrap.

Usage

use Andaris\ComputerVision\Client;

$imageData = file_get_contents('/path/to/image.jpg');
$client = new Client('14758f1afd44c09b7992073ccf00b43d'); // Insert your API key
$result = $client->analyze($imageData, [Client::FEATURE_CATEGORIES, Client::FEATURE_TAGS]);

Testing

The PHPUnit test suite can be run via vendor/bin/phpunit.

统计信息

  • 总下载量: 799
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-05-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固