An open API service indexing awesome lists of open source software.

https://github.com/r11baka/deepai-php

simple colorization client for https://deepai.org/
https://github.com/r11baka/deepai-php

colorization deepai php7

Last synced: 16 days ago
JSON representation

simple colorization client for https://deepai.org/

Awesome Lists containing this project

README

        

## Simple php client for using deepai.org

Simple php wrapper for using https://deepai.org/machine-learning-model/colorizer
api
## Installation
```
composer require r11baka/deepai
```
## How to use

1. Pass your api-key to Deepai constuctor and ypu can colorize file by path.

```injectablephp
$dp = new \R11baka\Deepai\Deepai("{YOU API_KEY FETCHED FROM DEEP AI}");
$resp = $dp->colorizeFromPath('./lena.jpg');
echo $resp->getUrl(); // returns url with colorized image
echo $resp->getId(); // return id for colorized job
```
Also you can colorize with content of file

```injectablephp
$dp = new \R11baka\Deepai\Deepai("{YOU API_KEY FETCHED FROM DEEP AI}");
$resp = $dp->colorize(file_get_contents("./lena.jpg"));
echo $resp->getUrl(); // returns url with colorized image
echo $resp->getId(); // return id for colorized job
```

2. You have method getUrl ,which have url with colorized image

## How to run test