Download the PHP package mailmug/php_dlib without Composer

On this page you can find all versions of the php package mailmug/php_dlib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php_dlib

PHP-Dlib

PHP extension for the Dlib C++ library (face detection, landmarks, recognition, and clustering).

This project is a fork of the original pdlib and extends it with improved build support and modern Dlib versions.


🚀 Features

PHP Dlib Extension Quick Installation Guide

Tutorial

1. Download the Extension

Download the correct file from: Releases

Choose:

Make sure it matches:

2. Windows Installation (.dll)

Find php.ini

Create file:

Open: http://localhost/info.php Then check: Loaded Configuration File (php.ini).

Finally, add the following code to the php.ini file

Then restart the server. Finished :)

Requirements

Recommended

Dependencies

Dlib

Install Dlib as a shared library

Installation

Configure PHP installation

Append the content below to php.ini

Tests

For tests, you will need to have the bz2 extension installed. On Ubuntu, it boils down to:

After you have successfully compiled everything, just run:

Usage

General Usage

A good starting point can be tests/integration_face_recognition.phpt. Check that first.

Basically, if you just want to quickly get from your image to a 128D descriptor of faces in the image, here is a really minimal example of how:

Location from where to get these models can be found on the DLib website, as well as in tests/integration_face_recognition.phpt test.

Specific use cases

face detection

If you want to use the HOG-based approach:

If you want to use the CNN approach (and CNN model):

The CNN model can get you slightly better results, but is much, much more demanding (CPU and memory, GPU is also preferred).

face landmark detection

Additionally, you can also use a class-based approach:

Note that, if you use a class-based approach, you need to feed the bounding box rectangle with values obtained from dlib_face_detection. If you use dlib_face_landmark_detection, everything is already done for you (and you are using the HOG face detection model).

face recognition (aka getting face descriptor)

Chinese whispers

Provides raw access to dlib's chinese_whispers function. The client needs to build and provide edges. Edges are provided as a numeric array. Each element of this array should also be a numeric array with 2 elements of long type.

Returned value is also a numeric array, containing obtained labels.

Features


All versions of php_dlib with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mailmug/php_dlib contains the following files

Loading the files please wait ...