PHP 클래스 JansenFelipe\OMR\Contracts\Scanner

파일 보기 프로젝트 열기: jansenfelipe/omr

보호된 프로퍼티들

프로퍼티 타입 설명
$debug boolean Debug flag
$debugPath string Path image to wirte debug image file
$imagePath string Path image to be scanned

공개 메소드들

메소드 설명
scan ( Map $map ) : Result Scan specific image
setDebug ( boolean $debug ) Set debug flag
setDebugPath ( mixed $debugPath ) Set debug image path
setImagePath ( mixed $imagePath ) Set image path

보호된 메소드들

메소드 설명
ajustRotate ( float $degrees ) Rotate image
ajustSize ( float $percent ) Increases or decreases image size
anglePoints ( Point $a, Point $b ) : float Calculates angle between two points
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
createResult ( string $imagePath ) : Result Create Result object from imagePath
debug ( ) Genereate file debug.jpg with targets, topRight and buttonLeft
distancePoints ( Point $a, Point $b ) : float Calculates distance between two points
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

메소드 상세

ajustRotate() 추상적인 보호된 메소드

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

ajustSize() 추상적인 보호된 메소드

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

anglePoints() 보호된 메소드

Calculates angle between two points
protected anglePoints ( Point $a, Point $b ) : float
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
리턴 float

bottomLeft() 추상적인 보호된 메소드

Most point to the bottom/left
abstract protected bottomLeft ( Point $near ) : Point
$near JansenFelipe\OMR\Point
리턴 JansenFelipe\OMR\Point

circleArea() 추상적인 보호된 메소드

Returns pixel analysis in a circular area
abstract protected circleArea ( Point $a, float $radius, float $tolerance ) : Area
$a JansenFelipe\OMR\Point
$radius float
$tolerance float
리턴 JansenFelipe\OMR\Area

createResult() 보호된 메소드

Create Result object from imagePath
protected createResult ( string $imagePath ) : Result
$imagePath string
리턴 JansenFelipe\OMR\Result

debug() 추상적인 보호된 메소드

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

distancePoints() 보호된 메소드

Calculates distance between two points
protected distancePoints ( Point $a, Point $b ) : float
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
리턴 float

finish() 추상적인 보호된 메소드

Finish processes
abstract protected finish ( )

rectangleArea() 추상적인 보호된 메소드

Returns pixel analysis in a rectangular area
abstract protected rectangleArea ( Point $a, Point $b, float $tolerance ) : Area
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
$tolerance float
리턴 JansenFelipe\OMR\Area

scan() 공개 메소드

Scan specific image
public scan ( Map $map ) : Result
$map Map
리턴 JansenFelipe\OMR\Result

setDebug() 공개 메소드

Set debug flag
public setDebug ( boolean $debug )
$debug boolean

setDebugPath() 공개 메소드

Set debug image path
public setDebugPath ( mixed $debugPath )
$debugPath mixed

setImagePath() 공개 메소드

Set image path
public setImagePath ( mixed $imagePath )
$imagePath mixed

textArea() 추상적인 보호된 메소드

Returns image blob in a rectangular area
abstract protected textArea ( Point $a, Point $b ) : string
$a JansenFelipe\OMR\Point
$b JansenFelipe\OMR\Point
리턴 string

topRight() 추상적인 보호된 메소드

Most point to the top/right
abstract protected topRight ( Point $near ) : Point
$near JansenFelipe\OMR\Point
리턴 JansenFelipe\OMR\Point

프로퍼티 상세

$debug 보호되어 있는 프로퍼티

Debug flag
protected bool $debug
리턴 boolean

$debugPath 보호되어 있는 프로퍼티

Path image to wirte debug image file
protected string $debugPath
리턴 string

$imagePath 보호되어 있는 프로퍼티

Path image to be scanned
protected string $imagePath
리턴 string