Property | Type | Description | |
---|---|---|---|
$debug | boolean | Debug flag | |
$debugPath | string | Path image to wirte debug image file | |
$imagePath | string | Path image to be scanned |
Method | Description | |
---|---|---|
scan ( Map $map ) : |
Scan specific image | |
setDebug ( boolean $debug ) | Set debug flag | |
setDebugPath ( mixed $debugPath ) | Set debug image path | |
setImagePath ( mixed $imagePath ) | Set image path |
Method | Description | |
---|---|---|
ajustRotate ( float $degrees ) | Rotate image | |
ajustSize ( float $percent ) | Increases or decreases image size | |
anglePoints ( |
Calculates angle between two points | |
bottomLeft ( |
Most point to the bottom/left | |
circleArea ( |
Returns pixel analysis in a circular area | |
createResult ( string $imagePath ) : |
Create Result object from imagePath | |
debug ( ) | Genereate file debug.jpg with targets, topRight and buttonLeft | |
distancePoints ( |
Calculates distance between two points | |
finish ( ) | Finish processes | |
rectangleArea ( |
Returns pixel analysis in a rectangular area | |
textArea ( |
Returns image blob in a rectangular area | |
topRight ( |
Most point to the top/right |
abstract protected ajustRotate ( float $degrees ) | ||
$degrees | float |
protected anglePoints ( |
||
$a | ||
$b | ||
return | float |
abstract protected bottomLeft ( |
||
$near | ||
return |
abstract protected circleArea ( |
||
$a | ||
$radius | float | |
$tolerance | float | |
return |
protected createResult ( string $imagePath ) : |
||
$imagePath | string | |
return |
abstract protected debug ( ) |
protected distancePoints ( |
||
$a | ||
$b | ||
return | float |
abstract protected rectangleArea ( |
||
$a | ||
$b | ||
$tolerance | float | |
return |
public scan ( Map $map ) : |
||
$map | Map | |
return |
public setDebugPath ( mixed $debugPath ) | ||
$debugPath | mixed |
public setImagePath ( mixed $imagePath ) | ||
$imagePath | mixed |
abstract protected topRight ( |
||
$near | ||
return |
protected string $debugPath | ||
return | string |