PHP 클래스 JansenFelipe\OMR\Scanners\ImagickScanner

상속: extends JansenFelipe\OMR\Contracts\Scanner
파일 보기 프로젝트 열기: jansenfelipe/omr 1 사용 예제들

공개 메소드들

메소드 설명
__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