ReviewOS

also looking at this

meemalabs/laravel-media-recognition

Configure Renovate

#20
Closed renovate[bot] wants to merge renovate/configure into main
19 files +148 -99
src/Recognizers/Rekognition.phpmodified+18-11
Changes to src/Recognizers/Rekognition.php
@@ -36,7 +36,8 @@ class Rekognition implements MediaRecognitionInterface
3636 /**
3737 * Construct converter.
3838 *
39 * @param \Aws\Rekognition\RekognitionClient $client
39 * @param \Aws\Rekognition\RekognitionClient $client
40 *
4041 * @throws \Exception
4142 */
4243 public function __construct(RekognitionClient $client)
@@ -57,9 +58,10 @@ class Rekognition implements MediaRecognitionInterface
5758 /**
5859 * Detects labels/objects in an image.
5960 *
60 * @param int|null $minConfidence
61 * @param int|null $maxLabels
61 * @param int|null $minConfidence
62 * @param int|null $maxLabels
6263 * @return \Aws\Result
64 *
6365 * @throws \Exception
6466 */
6567 public function detectLabels($minConfidence = null, $maxLabels = null)
@@ -86,8 +88,9 @@ class Rekognition implements MediaRecognitionInterface
8688 /**
8789 * Detects faces in an image & analyzes them.
8890 *
89 * @param array $attributes
91 * @param array $attributes
9092 * @return \Aws\Result
93 *
9194 * @throws \Exception
9295 */
9396 public function detectFaces($attributes = ['DEFAULT'])
@@ -117,8 +120,9 @@ class Rekognition implements MediaRecognitionInterface
117120 * Detects moderation labels in an image.
118121 * This can be useful for children-friendly images or NSFW images.
119122 *
120 * @param int|null $minConfidence
123 * @param int|null $minConfidence
121124 * @return \Aws\Result
125 *
122126 * @throws \Exception
123127 */
124128 public function detectModeration($minConfidence = null)
@@ -145,8 +149,9 @@ class Rekognition implements MediaRecognitionInterface
145149 /**
146150 * Detects text in an image (OCR).
147151 *
148 * @param array|null $filters
152 * @param array|null $filters
149153 * @return \Aws\Result
154 *
150155 * @throws \Exception
151156 */
152157 public function detectText(array $filters = null)
@@ -174,6 +179,7 @@ class Rekognition implements MediaRecognitionInterface
174179 * @param $type
175180 * @param $results
176181 * @return mixed
182 *
177183 * @throws \Exception
178184 */
179185 protected function updateOrCreate($type, $results)
@@ -187,9 +193,10 @@ class Rekognition implements MediaRecognitionInterface
187193 }
188194
189195 /**
190 * @param string $jobId
191 * @param string $type
196 * @param string $jobId
197 * @param string $type
192198 * @return void
199 *
193200 * @throws \Exception
194201 */
195202 protected function updateJobId(string $jobId, string $type)
formatting only · 12 hidden lines
Changes to src/Recognizers/Rekognition.php
@@ -205,9 +212,9 @@ class Rekognition implements MediaRecognitionInterface formatting only
205212 }
206213
207214 /**
208 * @param array $results
209 * @param string $type
210 * @param int $mediaId
215 * @param array $results
216 * @param string $type
217 * @param int $mediaId
211218 * @return void
212219 */
213220 protected function updateVideoResults(array $results, string $type, int $mediaId)