PHP Класс JansenFelipe\OMR\Scanners\ImagickScanner

Наследование: extends JansenFelipe\OMR\Contracts\Scanner
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( )
debug ( ) Genereate file debug.jpg with targets, topRight and buttonLeft

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
getImagick ( ) : Imagick Create or return instance Imagick

Описание методов

__construct() публичный Метод

public __construct ( )

ajustRotate() защищенный Метод

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

ajustSize() защищенный Метод

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

bottomLeft() защищенный Метод

Most point to the bottom/left
protected bottomLeft ( Point $near ) : Point
$near JansenFelipe\OMR\Point
Результат JansenFelipe\OMR\Point

circleArea() защищенный Метод

Returns pixel analysis in a circular area
protected circleArea ( Point $a, float $radius, float $tolerance ) : Area
$a JansenFelipe\OMR\Point
$radius float
$tolerance float
Результат JansenFelipe\OMR\Area

debug() публичный Метод

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

finish() защищенный Метод

Finish processes
protected finish ( )

rectangleArea() защищенный Метод

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
Результат JansenFelipe\OMR\Area

textArea() защищенный Метод

Returns image blob in a rectangular area
protected textArea ( Point $a, Point $b ) : string
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
Результат string

topRight() защищенный Метод

Most point to the top/right
protected topRight ( Point $near ) : Point
$near JansenFelipe\OMR\Point
Результат JansenFelipe\OMR\Point