also looking at this
meemalabs/laravel-media-recognition
Configure Renovate
#20
19 files
+148
-99
| @@ -12,6 +12,7 @@ trait CanRecognizeVideos | ||
| 12 | 12 | * |
| 13 | 13 | * @param $type - used to create a readable identifier. |
| 14 | 14 | * @return void |
| 15 | * | |
| 15 | 16 | * @throws \Exception |
| 16 | 17 | */ |
| 17 | 18 | protected function setVideoSettings($type): void |
| @@ -49,9 +50,10 @@ trait CanRecognizeVideos | ||
| 49 | 50 | /** |
| 50 | 51 | * Starts asynchronous detection of labels/objects in a stored video. |
| 51 | 52 | * |
| 52 | * @param int|null $minConfidence | |
| 53 | * @param int $maxResults | |
| 53 | * @param int|null $minConfidence | |
| 54 | * @param int $maxResults | |
| 54 | 55 | * @return \Aws\Result |
| 56 | * | |
| 55 | 57 | * @throws \Exception |
| 56 | 58 | */ |
| 57 | 59 | public function detectVideoLabels($minConfidence = null, $maxResults = 1000) |
| @@ -70,8 +72,9 @@ trait CanRecognizeVideos | ||
| 70 | 72 | } |
| 71 | 73 | |
| 72 | 74 | /** |
| 73 | * @param array $attributes | |
| 75 | * @param array $attributes | |
| 74 | 76 | * @return mixed |
| 77 | * | |
| 75 | 78 | * @throws \Exception |
| 76 | 79 | */ |
| 77 | 80 | public function detectVideoFaces($attributes = 'DEFAULT') |
| @@ -92,8 +95,9 @@ trait CanRecognizeVideos | ||
| 92 | 95 | /** |
| 93 | 96 | * Starts asynchronous detection of unsafe content in a stored video. |
| 94 | 97 | * |
| 95 | * @param int|null $minConfidence | |
| 98 | * @param int|null $minConfidence | |
| 96 | 99 | * @return mixed |
| 100 | * | |
| 97 | 101 | * @throws \Exception |
| 98 | 102 | */ |
| 99 | 103 | public function detectVideoModeration($minConfidence = null) |
| @@ -114,8 +118,9 @@ trait CanRecognizeVideos | ||
| 114 | 118 | /** |
| 115 | 119 | * Starts asynchronous detection of text in a stored video. |
| 116 | 120 | * |
| 117 | * @param array|null $filters | |
| 121 | * @param array|null $filters | |
| 118 | 122 | * @return mixed |
| 123 | * | |
| 119 | 124 | * @throws \Exception |
| 120 | 125 | */ |
| 121 | 126 | public function detectVideoText(array $filters = null) |
| @@ -138,9 +143,10 @@ trait CanRecognizeVideos | ||
| 138 | 143 | /** |
| 139 | 144 | * Get the labels from the video analysis. |
| 140 | 145 | * |
| 141 | * @param string $jobId | |
| 142 | * @param int|null $mediaId | |
| 146 | * @param string $jobId | |
| 147 | * @param int|null $mediaId | |
| 143 | 148 | * @return \Aws\Result |
| 149 | * | |
| 144 | 150 | * @throws \Exception |
| 145 | 151 | */ |
| 146 | 152 | public function getLabelsByJobId(string $jobId, int $mediaId = null) |
| @@ -161,9 +167,10 @@ trait CanRecognizeVideos | ||
| 161 | 167 | /** |
| 162 | 168 | * Get the faces from the video analysis. |
| 163 | 169 | * |
| 164 | * @param string $jobId | |
| 165 | * @param int|null $mediaId | |
| 170 | * @param string $jobId | |
| 171 | * @param int|null $mediaId | |
| 166 | 172 | * @return \Aws\Result |
| 173 | * | |
| 167 | 174 | * @throws \Exception |
| 168 | 175 | */ |
| 169 | 176 | public function getFacesByJobId(string $jobId, int $mediaId = null) |
| @@ -184,9 +191,10 @@ trait CanRecognizeVideos | ||
| 184 | 191 | /** |
| 185 | 192 | * Get the "content moderation" from the video analysis. |
| 186 | 193 | * |
| 187 | * @param string $jobId | |
| 188 | * @param int|null $mediaId | |
| 194 | * @param string $jobId | |
| 195 | * @param int|null $mediaId | |
| 189 | 196 | * @return \Aws\Result |
| 197 | * | |
| 190 | 198 | * @throws \Exception |
| 191 | 199 | */ |
| 192 | 200 | public function getContentModerationByJobId(string $jobId, int $mediaId = null) |
| @@ -207,9 +215,10 @@ trait CanRecognizeVideos | ||
| 207 | 215 | /** |
| 208 | 216 | * Get the faces from a video analysis. |
| 209 | 217 | * |
| 210 | * @param string $jobId | |
| 211 | * @param int|null $mediaId | |
| 218 | * @param string $jobId | |
| 219 | * @param int|null $mediaId | |
| 212 | 220 | * @return \Aws\Result |
| 221 | * | |
| 213 | 222 | * @throws \Exception |
| 214 | 223 | */ |
| 215 | 224 | public function getTextDetectionByJobId(string $jobId, int $mediaId = null) |