Skip to content

Commit

Permalink
fix all commands for latest deepface version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed Dec 11, 2024
1 parent cfa8219 commit 5021026
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/Data/AnalyzeResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function __construct(
public readonly ?Gender $dominant_gender,
public readonly ?array $race,
public readonly ?Race $dominant_race,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/ExtractFaceResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
public readonly FacialArea $facial_area,
public readonly float $confidence,
public readonly Detector $detector_backend,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/FacialArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public readonly int $h,
public readonly int|array|null $left_eye,
public readonly int|array|null $right_eye,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/FindResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ public function __construct(
public readonly Detector $detector_backend,
public readonly DistanceMetric $distance_metric,
public readonly float $distance,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/RepresentResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public readonly FacialArea $facial_area,
public readonly FaceRecognitionModel $model,
public readonly Detector $detector_backend,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Data/VerifyResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public function __construct(
public readonly string $img2_path,
public readonly FacialArea $img2_facial_area,
public readonly float $time,
) {
}
) {}

public function jsonSerialize(): array
{
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/DeepFaceException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

use Exception;

class DeepFaceException extends Exception
{
}
class DeepFaceException extends Exception {}

0 comments on commit 5021026

Please sign in to comment.