lucaasleaal/ar-js-php-trainer

There is no license information available for the latest version (dev-master) of this package.

A php class to generate markers and patt files for marker-based AR

dev-master 2019-05-02 11:36 UTC

This package is auto-updated.

Last update: 2024-09-29 05:08:54 UTC


README

If you need to create a Hiro Marker server-side with PHP, you are lucky

Install

Get Marker.class.php into your project and require it.

require_once ('Marker.class.php');

Composer installation

It is also possible to call it with composer (recommended)

composer require lucaasleaal/ar-js-php-trainer

Instance

$i = new Marker('images/silviosantos.png');
if ($i->status == 'error'){
	die($i->msg);
}

Save jpg-marker and patt file

$i = new Marker('images/silviosantos.png');
if ($i->status == 'error'){
	die($i->msg);
}
$i->saveMarker('images/silviosantos-marker.jpg');
$i->savePatt('images/silviosantos.patt');