Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Landmark extends AbstractDetector implements Detectable |
||
22 | { |
||
23 | use Arrayable; |
||
24 | use Jsonable; |
||
25 | |||
26 | public function getOriginalResponse(): RepeatedField |
||
27 | { |
||
28 | $response = $this |
||
29 | ->imageAnnotatorClient |
||
30 | ->landmarkDetection($this->file->toVisionFile()); |
||
31 | |||
32 | return $response->getLandmarkAnnotations(); |
||
33 | } |
||
34 | |||
35 | public function detect(): ?Generator |
||
56 | ); |
||
57 | } |
||
60 |