class DetectAutomatic extends LaserpointsScript

Constants

METHOD

Name of the detection method that is stored with the results.

Methods

array|string
exec(array $command, bool $decode = true)

Execute a laser point detection command.

array
execute(string $imagePath, float $distance, ?string $channelMode = null, int $numLaserpoints = 2)

Execute an automatic laser point detection run.

Details

in LaserpointsScript at line 20
array|string exec(array $command, bool $decode = true)

Execute a laser point detection command.

Parameters

array $command

Command to execute as array of the executable and its arguments

bool $decode

Whether to decode the JSON output of the script

Return Value

array|string

The JSON object returned by the detection script as array

Exceptions

Exception

at line 24
array execute(string $imagePath, float $distance, ?string $channelMode = null, int $numLaserpoints = 2)

Execute an automatic laser point detection run.

Parameters

string $imagePath

Absolute path to the image file to detect laserpoints on

float $distance

Distance of the laser points in cm

?string $channelMode

Channel mode (red/green/blue/gray) or null for auto-detection

int $numLaserpoints

Number of laser points to search for

Return Value

array

The JSON object returned by the detect script as array