/** * @param array pattern_1 * @param array pattern_2 * * @param int (1.) sensitivity (1-10) * @param int (2.) average diff (0-255) * @param float (3.) ratio diff (0-1) * @param bool (4.) check also image portrait/landscape similarity * * @return bool|0|-1 bool on success comparsion, 0 on pattern error, -1 on user parametr error */ public function compare($pattern1, $pattern2, $param = 10, $param2 = 250, $param3 = 0.250, $check_portrait = false) { ... }
Param | Description |
---|---|
1. sensitivity |
1 - find a very big difference but at the cost of more false matches 10 - find only a small difference and false-positive results is minimum Suggested Value: 5 or 6 (depends how big is you database images) |