PHPackages                             awssat/imageai - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. awssat/imageai

ActiveLibrary[Image &amp; Media](/categories/media)

awssat/imageai
==============

Wrapper for imageAi in PHP

v1.2(5y ago)14293MITPHPPHP ^7.1CI failing

Since Jun 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/awssat/imageAi)[ Packagist](https://packagist.org/packages/awssat/imageai)[ Docs](https://github.com/awssat/imageAi)[ RSS](/packages/awssat-imageai/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Php ImageaAi
============

[](#php-imageaai)

Php soultion for  . try AI features in Php with help of python libraries

Requirements
------------

[](#requirements)

First you need to install  with all requirements

Install
-------

[](#install)

Via Composer

```
composer require awssat/imageai
```

Usage
-----

[](#usage)

```
$imageAi = imageAi::image($img)->model('RetinaNet', '/path/to/resnet50_coco_best_v2.0.1.h5')->detect();
```

##### Result

[](#result)

```
$imageAi->results =
        [
            [
                "name": "car"
                "percentage": 97.267699241638
                "box_points": [
                                1392
                                116
                                3541
                                1276
                            ]
                "image": Intervention\Image\Image //object iamge
            ]
      ]
```

you should always define a model that supported in OlafenwaMoses/ImageAI

### Model types

[](#model-types)

```
RetinaNet
YOLOv3
TinyYOLOv3

```

you must download the RetinaNet, YOLOv3 or TinyYOLOv3 object detection model via the links below:

**- [RetinaNet](https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/resnet50_coco_best_v2.0.1.h5)** **(Size = 145 mb, high performance and accuracy, with longer detection time)**

**- [YOLOv3](https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/yolo.h5)** **(Size = 237 mb, moderate performance and accuracy, with a moderate detection time)**

**- [TinyYOLOv3](https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/yolo-tiny.h5)** **(Size = 34 mb, optimized for speed and moderate performance, with fast detection time)**

### Other use cases

[](#other-use-cases)

#### Speed

[](#speed)

You can define speed of detection (affect accuracy) by simply calling

```
$imageAi = imageAi::image($img)->speed('fast')->model('RetinaNet', '/path/to/resnet50_coco_best_v2.0.1.h5')->detect();
```

supported speeds (fast, faster, fastest, flash)

#### Specfic objects

[](#specfic-objects)

You can only detect custom objects

```
$imageAi = imageAi::image($img)->customObjects(['car'])->model('RetinaNet', '/path/to/resnet50_coco_best_v2.0.1.h5')->detect();
```

#### Percentage

[](#percentage)

Define a minimum percentage of detection proccess

```
$imageAi = imageAi::image($img)->customObjects(['car'])->percentage(90)->model('RetinaNet', '/path/to/resnet50_coco_best_v2.0.1.h5')->detect();
```

Contributing
------------

[](#contributing)

You are very welcome to contribute and improve this package.

Credits
-------

[](#credits)

- [Bader](https://github.com/if4lcon)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~501 days

Total

2

Last Release

2121d ago

Major Versions

0.1 → v1.22020-10-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d1839100c9cfd19f7ae04492a1c0b08c09e0956479f7a1dc4006de315c0f62e?d=identicon)[if4lcon](/maintainers/if4lcon)

---

Top Contributors

[![BSN4](https://avatars.githubusercontent.com/u/199647?v=4)](https://github.com/BSN4 "BSN4 (11 commits)")[![danieldevine](https://avatars.githubusercontent.com/u/5939939?v=4)](https://github.com/danieldevine "danieldevine (1 commits)")

---

Tags

awssatimageAi

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/awssat-imageai/health.svg)

```
[![Health](https://phpackages.com/badges/awssat-imageai/health.svg)](https://phpackages.com/packages/awssat-imageai)
```

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M27.9k](/packages/friendsofphp-php-cs-fixer)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M777](/packages/sylius-sylius)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k17.0M1.1k](/packages/phpro-grumphp)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
