2017 © Pedro Peláez
 

library cv-api

A powerful PHP library supporting Computer Vision manipulations

image

cv-api/cv-api

A powerful PHP library supporting Computer Vision manipulations

  • Monday, July 16, 2018
  • by arianajdari
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 15 % Grown

The README.md

Our Logo, (*1)

Packagist Packagist, (*2)

CVApi

CVAPi library is built entirely in PHP to bring the power of computer vision into web development. Under the hood of CVAPi lies OpenCV, which is used extensively for computer vision applications., (*3)

Why use CVApi

  • Save your time by not having to worry about different versions and implementations of OpenCV
  • Easily integrate this API into any existing PHP Project, or use it in any popular framework such as Laravel or Symfony
  • Our up-to-date documentation provides thorough instructions for each operations
  • Computer Vision related heavy calculations are handled by our servers
  • ...and many more

Version Compatability

  • CVApi is compatible with PHP5.6 and above
  • CVApi supports most image file extensions
  • There are no known dependency conflicts

Getting Started

Firstly, make sure you have Composer installed in your system. You can acquire it by clicking here, (*4)

After that, you can require CVAPi by writing out this command in terminal, (*5)

$ composer require cv-api/cv-api

As Composer is done fetching necessary dependencies, make sure to register for an account in CVApi After the confirmation e-mail, open the config file inside vendor/CVApi and edit these settings, (*6)

"public_key" => "your-public-key",
"secret_key" => "your-secret-key",
"password" => "your-password",
"path" => "your-path-to-storage"

In the end we can test whether CVApi is configured properly by trying out this piece of code, (*7)

require_once __DIR__ . 'path_to_autoload_file.php';

use CVApi/CVApi;

CVApi::test();

If you receive the welcome message, you are good to go, (*8)

Examples

Using CVApi is fairly straightforward. For example, we would like to save a grayscale version of our image. In order to do this you have to type:, (*9)

CVApi::make(['old_image.jpg'])->grayscale()->results(function($new_image) { $new_image->save(); });

As we can see, all methods in CVApi are chainable. We can perform more than one operation at onceP, (*10)

CVApi::make(['old_image.jpg'])
    ->resize(300, 300)
    ->brightness(85)
    ->histogram(['B', 'G', 'R'])
    ->results(function($new_images) {
        $new_images->save();
    ->results(function($images) {
        $images->save();
});

CVApi is automatically configured to understand the source of the images. If we leave the make argument empty, CVApi automatically looks for images coming from form requests., (*11)

CVApi::make()->pyrDown(3)->results(function($image) { $image->save(); });

License

This software is licensed under MIT License, (*12)

The Versions

16/07 2018

dev-master

9999999-dev

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk

16/07 2018

v1.0

1.0.0.0

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Arian Ajdari

23/11 2017

dev-taha

dev-taha

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk

29/10 2017

v0.4

0.4.0.0

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk

12/10 2017

v0.3

0.3.0.0

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk

07/10 2017

v0.2

0.2.0.0

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk

07/10 2017

v0.1

0.1.0.0

A powerful PHP library supporting Computer Vision manipulations

  Sources   Download

The Requires

  • php >=5.3.0

 

by Arian Ajdari
by Taha Turk