PHP Class JansenFelipe\OMR\Scanners\ImagickScanner

Inheritance: extends JansenFelipe\OMR\Contracts\Scanner
Afficher le fichier Open project: jansenfelipe/omr Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( )
debug ( ) Genereate file debug.jpg with targets, topRight and buttonLeft

Méthodes protégées

Méthode Description
ajustRotate ( float $degrees ) Rotate image
ajustSize ( float $percent ) Increases or decreases image size
bottomLeft ( Point $near ) : Point Most point to the bottom/left
circleArea ( Point $a, float $radius, float $tolerance ) : Area Returns pixel analysis in a circular area
finish ( ) Finish processes
rectangleArea ( Point $a, Point $b, float $tolerance ) : Area Returns pixel analysis in a rectangular area
textArea ( Point $a, Point $b ) : string Returns image blob in a rectangular area
topRight ( Point $near ) : Point Most point to the top/right

Private Methods

Méthode Description
getImagick ( ) : Imagick Create or return instance Imagick

Method Details

__construct() public méthode

public __construct ( )

ajustRotate() protected méthode

Rotate image
protected ajustRotate ( float $degrees )
$degrees float

ajustSize() protected méthode

Increases or decreases image size
protected ajustSize ( float $percent )
$percent float

bottomLeft() protected méthode

Most point to the bottom/left
protected bottomLeft ( Point $near ) : Point
$near JansenFelipe\OMR\Point
Résultat JansenFelipe\OMR\Point

circleArea() protected méthode

Returns pixel analysis in a circular area
protected circleArea ( Point $a, float $radius, float $tolerance ) : Area
$a JansenFelipe\OMR\Point
$radius float
$tolerance float
Résultat JansenFelipe\OMR\Area

debug() public méthode

Genereate file debug.jpg with targets, topRight and buttonLeft
public debug ( )

finish() protected méthode

Finish processes
protected finish ( )

rectangleArea() protected méthode

Returns pixel analysis in a rectangular area
protected rectangleArea ( Point $a, Point $b, float $tolerance ) : Area
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
$tolerance float
Résultat JansenFelipe\OMR\Area

textArea() protected méthode

Returns image blob in a rectangular area
protected textArea ( Point $a, Point $b ) : string
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
Résultat string

topRight() protected méthode

Most point to the top/right
protected topRight ( Point $near ) : Point
$near JansenFelipe\OMR\Point
Résultat JansenFelipe\OMR\Point