PHPackages                             livijn/laravel-object-detection - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. livijn/laravel-object-detection

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

livijn/laravel-object-detection
===============================

Uses ML to detect objects

3.0.3(3y ago)941948[1 PRs](https://github.com/Livijn/laravel-object-detection/pulls)MITPHPPHP ^8.0|^8.1

Since Nov 24Pushed 3y ago2 watchersCompare

[ Source](https://github.com/Livijn/laravel-object-detection)[ Packagist](https://packagist.org/packages/livijn/laravel-object-detection)[ Docs](https://github.com/livijn/laravel-object-detection)[ RSS](/packages/livijn-laravel-object-detection/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (17)Used By (0)

Laravel Object Detection
========================

[](#laravel-object-detection)

[![Latest Version on Packagist](https://camo.githubusercontent.com/99eec9291755f90373b23d46a49cd29a945fcdee0113b1cf810c63dbafb5c84f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6976696a6e2f6c61726176656c2d6f626a6563742d646574656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/livijn/laravel-object-detection)[![Total Downloads](https://camo.githubusercontent.com/4894f89978197c3f4a40a2bbf051d08d2b38eabea33aca1d2c8f7cb3f5a17812/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6976696a6e2f6c61726176656c2d6f626a6563742d646574656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/livijn/laravel-object-detection)

This package detects faces in an image using Machine Learning, [TensorFlow](https://www.tensorflow.org/) and the [MediaPipe Face Detection](https://google.github.io/mediapipe/solutions/face_detection.html) model.

[![Example](https://camo.githubusercontent.com/4b91ca9e62218d034edd5e4d1102d59f18648b5517ef33e2f1f6d59ae693051c/68747470733a2f2f6d65646961706970652e6465762f696d616765732f6d6f62696c652f666163655f646574656374696f6e5f616e64726f69645f6770752e676966)](https://camo.githubusercontent.com/4b91ca9e62218d034edd5e4d1102d59f18648b5517ef33e2f1f6d59ae693051c/68747470733a2f2f6d65646961706970652e6465762f696d616765732f6d6f62696c652f666163655f646574656374696f6e5f616e64726f69645f6770752e676966)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require livijn/laravel-object-detection
```

You should add this to your `composer.json` file to ensure that our package is fully installed.

```
"scripts": {
    "post-install-cmd": [
        "@php artisan object-detection:install"
    ]
}

```

### Installation on Laravel Forge

[](#installation-on-laravel-forge)

If you are deploying on Laravel Forge, make sure you have sufficient node &amp; npm versions. You can read [this article on how to update nodejs](https://blog.adaptivemedia.se/upgrade-only-nodejs-on-a-laravel-forge-server-ubuntu-1804) on Forge.

To update npm, just run `sudo npm install -g npm@latest` on your server.

I have only verified this works with these versions:

- node &gt;= 16
- npm &gt;= 7

Usage
-----

[](#usage)

```
LaravelObjectDetection::getObjectsFromImageUrl('https://some-url.com/some-image.jpg');

// Returns an ImageObject
// [{"class":"dog","score":0.973773181438446,"boundingBox":[239.84360694885254,75.59387746453285,505.188524723053,590.4131692349911]}]
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Fredrik Livijn](https://github.com/livijn)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% 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 ~33 days

Recently: every ~0 days

Total

16

Last Release

1138d ago

Major Versions

0.5 → 1.02022-02-25

0.6 → 2.02022-10-13

2.1 → 3.02023-03-30

PHP version history (2 changes)0.1PHP ^8.0

0.6PHP ^8.0|^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/706e6ba33b535d181dbf750332e554d1b370dc91958bbb5db55b6fe9e366d25d?d=identicon)[Livijn](/maintainers/Livijn)

---

Top Contributors

[![Livijn](https://avatars.githubusercontent.com/u/349311?v=4)](https://github.com/Livijn "Livijn (23 commits)")[![mydnic](https://avatars.githubusercontent.com/u/2733767?v=4)](https://github.com/mydnic "mydnic (1 commits)")

---

Tags

livijnlaravel-object-detection

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/livijn-laravel-object-detection/health.svg)

```
[![Health](https://phpackages.com/badges/livijn-laravel-object-detection/health.svg)](https://phpackages.com/packages/livijn-laravel-object-detection)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)

PHPackages © 2026

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