also looking at this
meemalabs/laravel-media-recognition
Configure Renovate
#20
19 files
+148
-99
| @@ -36,7 +36,8 @@ class Rekognition implements MediaRecognitionInterface | ||
| 36 | 36 | /** |
| 37 | 37 | * Construct converter. |
| 38 | 38 | * |
| 39 | * @param \Aws\Rekognition\RekognitionClient $client | |
| 39 | * @param \Aws\Rekognition\RekognitionClient $client | |
| 40 | * | |
| 40 | 41 | * @throws \Exception |
| 41 | 42 | */ |
| 42 | 43 | public function __construct(RekognitionClient $client) |
| @@ -57,9 +58,10 @@ class Rekognition implements MediaRecognitionInterface | ||
| 57 | 58 | /** |
| 58 | 59 | * Detects labels/objects in an image. |
| 59 | 60 | * |
| 60 | * @param int|null $minConfidence | |
| 61 | * @param int|null $maxLabels | |
| 61 | * @param int|null $minConfidence | |
| 62 | * @param int|null $maxLabels | |
| 62 | 63 | * @return \Aws\Result |
| 64 | * | |
| 63 | 65 | * @throws \Exception |
| 64 | 66 | */ |
| 65 | 67 | public function detectLabels($minConfidence = null, $maxLabels = null) |
| @@ -86,8 +88,9 @@ class Rekognition implements MediaRecognitionInterface | ||
| 86 | 88 | /** |
| 87 | 89 | * Detects faces in an image & analyzes them. |
| 88 | 90 | * |
| 89 | * @param array $attributes | |
| 91 | * @param array $attributes | |
| 90 | 92 | * @return \Aws\Result |
| 93 | * | |
| 91 | 94 | * @throws \Exception |
| 92 | 95 | */ |
| 93 | 96 | public function detectFaces($attributes = ['DEFAULT']) |
| @@ -117,8 +120,9 @@ class Rekognition implements MediaRecognitionInterface | ||
| 117 | 120 | * Detects moderation labels in an image. |
| 118 | 121 | * This can be useful for children-friendly images or NSFW images. |
| 119 | 122 | * |
| 120 | * @param int|null $minConfidence | |
| 123 | * @param int|null $minConfidence | |
| 121 | 124 | * @return \Aws\Result |
| 125 | * | |
| 122 | 126 | * @throws \Exception |
| 123 | 127 | */ |
| 124 | 128 | public function detectModeration($minConfidence = null) |
| @@ -145,8 +149,9 @@ class Rekognition implements MediaRecognitionInterface | ||
| 145 | 149 | /** |
| 146 | 150 | * Detects text in an image (OCR). |
| 147 | 151 | * |
| 148 | * @param array|null $filters | |
| 152 | * @param array|null $filters | |
| 149 | 153 | * @return \Aws\Result |
| 154 | * | |
| 150 | 155 | * @throws \Exception |
| 151 | 156 | */ |
| 152 | 157 | public function detectText(array $filters = null) |
| @@ -174,6 +179,7 @@ class Rekognition implements MediaRecognitionInterface | ||
| 174 | 179 | * @param $type |
| 175 | 180 | * @param $results |
| 176 | 181 | * @return mixed |
| 182 | * | |
| 177 | 183 | * @throws \Exception |
| 178 | 184 | */ |
| 179 | 185 | protected function updateOrCreate($type, $results) |
| @@ -187,9 +193,10 @@ class Rekognition implements MediaRecognitionInterface | ||
| 187 | 193 | } |
| 188 | 194 | |
| 189 | 195 | /** |
| 190 | * @param string $jobId | |
| 191 | * @param string $type | |
| 196 | * @param string $jobId | |
| 197 | * @param string $type | |
| 192 | 198 | * @return void |
| 199 | * | |
| 193 | 200 | * @throws \Exception |
| 194 | 201 | */ |
| 195 | 202 | protected function updateJobId(string $jobId, string $type) |
formatting only · 12 hidden lines
| @@ -205,9 +212,9 @@ class Rekognition implements MediaRecognitionInterface formatting only | ||
| 205 | 212 | } |
| 206 | 213 | |
| 207 | 214 | /** |
| 208 | * @param array $results | |
| 209 | * @param string $type | |
| 210 | * @param int $mediaId | |
| 215 | * @param array $results | |
| 216 | * @param string $type | |
| 217 | * @param int $mediaId | |
| 211 | 218 | * @return void |
| 212 | 219 | */ |
| 213 | 220 | protected function updateVideoResults(array $results, string $type, int $mediaId) |