class Detect extends LaserpointsScript

Wrapper for the manual laser points detection script.

Methods

array
exec(string $command)

Execute a laser point detection command.

array
execute(string $imageUrl, float $distance, string $points)

Execute a new manual laser point detection.

Details

in LaserpointsScript at line 18
array exec(string $command)

Execute a laser point detection command.

Parameters

string $command

Command to execute

Return Value

array

The JSON object returned by the detection script as array

Exceptions

Exception

at line 20
array execute(string $imageUrl, float $distance, string $points)

Execute a new manual laser point detection.

Parameters

string $imageUrl

Absolute path to the image file to detect laserpoints on

float $distance

Distance of the laser points in cm

string $points

Coordinates of all manually annotated laser points on the image as JSON encoded string (like '[[100,100],[200,200]]')

Return Value

array

The JSON object returned by the detect script as array

Exceptions

Exception