Skip to content

Commit

Permalink
Updated links and fixed long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
stellasphere committed Dec 5, 2023
1 parent 7456709 commit b2e5759
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions supervision/detection/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,16 +525,17 @@ def from_paddledet(cls, paddledet_result) -> Detections:
confidence=paddledet_result["bbox"][:, 1],
class_id=paddledet_result["bbox"][:, 0].astype(int),
)

@classmethod
def from_gcp_vision(cls, gcp_results, size) -> Detections:
"""
Creates a Detections instance from the
[Google Cloud Cloud Vision API's](https://github.com/PaddlePaddle/PaddleDetection)
[Google Cloud Cloud Vision API's](https://cloud.google.com/vision/docs)
inference result.
Args:
gcp_results (List[dict]): The output results from GCP from the `localized_object_annotations`.
gcp_results (List[dict]): The output results from GCP from
the `localized_object_annotations`.
size (Tuple[int, int]): The height, then width of the input image.
Returns:
Expand Down

0 comments on commit b2e5759

Please sign in to comment.