public function Face_Detector::__construct in Image Focus Crop 7
Same name and namespace in other branches
- 6 php-facedetection/FaceDetector.php \Face_Detector::__construct()
File
- php-facedetection/
FaceDetector.php, line 29
Class
Code
public function __construct($detection_file = 'detection.dat') {
if (is_file($detection_file)) {
$this->detection_data = unserialize(file_get_contents($detection_file));
}
else {
throw new Exception("Couldn't load detection data");
}
}