r11baka/deepai

Simple deepai.org colorization client

Maintainers

Package info

github.com/R11baka/deepai-php

pkg:composer/r11baka/deepai

Statistics

Installs: 30

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

0.11 2022-03-12 12:42 UTC

This package is auto-updated.

Last update: 2026-03-01 00:56:34 UTC


README

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.
$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

$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
  1. You have method getUrl ,which have url with colorized image

How to run test