1 | <?php |
||
21 | class Face extends Entropy |
||
22 | { |
||
23 | const CLASSIFIER_FACE = '/classifier/haarcascade_frontalface_default.xml'; |
||
24 | const CLASSIFIER_PROFILE = '/classifier/haarcascade_profileface.xml'; |
||
25 | |||
26 | /** |
||
27 | * safeZoneList |
||
28 | * |
||
29 | * @var array |
||
30 | * @access protected |
||
31 | */ |
||
32 | protected static $safeZoneList; |
||
33 | |||
34 | /** |
||
35 | * originalImage |
||
36 | * |
||
37 | * @var array |
||
38 | * @access protected |
||
39 | */ |
||
40 | protected static $originalImage; |
||
41 | |||
42 | /** |
||
43 | * baseDimension |
||
44 | * |
||
45 | * @var array |
||
46 | * @access protected |
||
47 | */ |
||
48 | protected static $baseDimension; |
||
49 | |||
50 | /** |
||
51 | * Returns the x,y values. |
||
52 | * |
||
53 | * @param Imagick $original |
||
54 | * @param int $targetWidth |
||
55 | * @param int $targetHeight |
||
56 | * |
||
57 | * @return array |
||
58 | */ |
||
59 | public static function getOffsets(Imagick $original, $targetWidth, $targetHeight) |
||
68 | |||
69 | /** |
||
70 | * getBaseDimension |
||
71 | * |
||
72 | * @param string $key width|height |
||
73 | * @access protected |
||
74 | * @return int |
||
75 | */ |
||
76 | protected static function getBaseDimension($key) |
||
86 | |||
87 | /** |
||
88 | * getFaceList get faces positions and sizes |
||
89 | * |
||
90 | * @access protected |
||
91 | * @return array |
||
92 | */ |
||
93 | protected static function getFaceList() |
||
115 | |||
116 | /** |
||
117 | * getFaceListFromClassifier |
||
118 | * |
||
119 | * @param string $classifier |
||
120 | * @access protected |
||
121 | * @return array |
||
122 | */ |
||
123 | protected static function getFaceListFromClassifier($classifier) |
||
132 | |||
133 | /** |
||
134 | * getSafeZoneList |
||
135 | * |
||
136 | * @access private |
||
137 | * @return array |
||
138 | */ |
||
139 | protected static function getSafeZoneList() |
||
177 | } |
||
178 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..