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/
- Host: GitHub
- URL: https://github.com/r11baka/deepai-php
- Owner: R11baka
- Created: 2021-05-04T09:08:44.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T14:18:01.000Z (almost 3 years ago)
- Last Synced: 2025-02-12T20:39:09.882Z (2 months ago)
- Topics: colorization, deepai, php7
- Language: PHP
- Homepage:
- Size: 356 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 use1. 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