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/Traits/CanRecognizeVideos.phpmodified+22-13
Changes to src/Traits/CanRecognizeVideos.php
@@ -12,6 +12,7 @@ trait CanRecognizeVideos
1212 *
1313 * @param $type - used to create a readable identifier.
1414 * @return void
15 *
1516 * @throws \Exception
1617 */
1718 protected function setVideoSettings($type): void
@@ -49,9 +50,10 @@ trait CanRecognizeVideos
4950 /**
5051 * Starts asynchronous detection of labels/objects in a stored video.
5152 *
52 * @param int|null $minConfidence
53 * @param int $maxResults
53 * @param int|null $minConfidence
54 * @param int $maxResults
5455 * @return \Aws\Result
56 *
5557 * @throws \Exception
5658 */
5759 public function detectVideoLabels($minConfidence = null, $maxResults = 1000)
@@ -70,8 +72,9 @@ trait CanRecognizeVideos
7072 }
7173
7274 /**
73 * @param array $attributes
75 * @param array $attributes
7476 * @return mixed
77 *
7578 * @throws \Exception
7679 */
7780 public function detectVideoFaces($attributes = 'DEFAULT')
@@ -92,8 +95,9 @@ trait CanRecognizeVideos
9295 /**
9396 * Starts asynchronous detection of unsafe content in a stored video.
9497 *
95 * @param int|null $minConfidence
98 * @param int|null $minConfidence
9699 * @return mixed
100 *
97101 * @throws \Exception
98102 */
99103 public function detectVideoModeration($minConfidence = null)
@@ -114,8 +118,9 @@ trait CanRecognizeVideos
114118 /**
115119 * Starts asynchronous detection of text in a stored video.
116120 *
117 * @param array|null $filters
121 * @param array|null $filters
118122 * @return mixed
123 *
119124 * @throws \Exception
120125 */
121126 public function detectVideoText(array $filters = null)
@@ -138,9 +143,10 @@ trait CanRecognizeVideos
138143 /**
139144 * Get the labels from the video analysis.
140145 *
141 * @param string $jobId
142 * @param int|null $mediaId
146 * @param string $jobId
147 * @param int|null $mediaId
143148 * @return \Aws\Result
149 *
144150 * @throws \Exception
145151 */
146152 public function getLabelsByJobId(string $jobId, int $mediaId = null)
@@ -161,9 +167,10 @@ trait CanRecognizeVideos
161167 /**
162168 * Get the faces from the video analysis.
163169 *
164 * @param string $jobId
165 * @param int|null $mediaId
170 * @param string $jobId
171 * @param int|null $mediaId
166172 * @return \Aws\Result
173 *
167174 * @throws \Exception
168175 */
169176 public function getFacesByJobId(string $jobId, int $mediaId = null)
@@ -184,9 +191,10 @@ trait CanRecognizeVideos
184191 /**
185192 * Get the "content moderation" from the video analysis.
186193 *
187 * @param string $jobId
188 * @param int|null $mediaId
194 * @param string $jobId
195 * @param int|null $mediaId
189196 * @return \Aws\Result
197 *
190198 * @throws \Exception
191199 */
192200 public function getContentModerationByJobId(string $jobId, int $mediaId = null)
@@ -207,9 +215,10 @@ trait CanRecognizeVideos
207215 /**
208216 * Get the faces from a video analysis.
209217 *
210 * @param string $jobId
211 * @param int|null $mediaId
218 * @param string $jobId
219 * @param int|null $mediaId
212220 * @return \Aws\Result
221 *
213222 * @throws \Exception
214223 */
215224 public function getTextDetectionByJobId(string $jobId, int $mediaId = null)