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/Contracts/MediaRecognition.phpmodified+45-29
formatting only · 12 hidden lines
Changes to src/Contracts/MediaRecognition.php
@@ -7,9 +7,9 @@ interface MediaRecognition formatting only
77 /**
88 * Sets the source/path where the file is stored.
99 *
10 * @param string $source
11 * @param string|null $mimeType
12 * @param int|null $mediaId
10 * @param string $source
11 * @param string|null $mimeType
12 * @param int|null $mediaId
1313 * @return $this
1414 */
1515 public function source(string $source, string $mimeType = null, int $mediaId = null);
formatting only · 12 hidden lines
Changes to src/Contracts/MediaRecognition.php
@@ -17,9 +17,9 @@ interface MediaRecognition formatting only
1717 /**
1818 * Sets the source/path where the file is stored.
1919 *
20 * @param string $path
21 * @param string|null $mimeType
22 * @param int|null $mediaId
20 * @param string $path
21 * @param string|null $mimeType
22 * @param int|null $mediaId
2323 * @return $this
2424 */
2525 public function path(string $path, string $mimeType = null, int $mediaId = null);
Changes to src/Contracts/MediaRecognition.php
@@ -27,9 +27,10 @@ interface MediaRecognition
2727 /**
2828 * Detects labels/objects in an image or video.
2929 *
30 * @param int|null $minConfidence
31 * @param int|null $maxLabels
30 * @param int|null $minConfidence
31 * @param int|null $maxLabels
3232 * @return mixed
33 *
3334 * @throws \Exception
3435 */
3536 public function detectLabels($minConfidence = null, $maxLabels = null);
@@ -37,9 +38,10 @@ interface MediaRecognition
3738 /**
3839 * Detects labels/objects in an image.
3940 *
40 * @param int|null $minConfidence
41 * @param int|null $maxLabels
41 * @param int|null $minConfidence
42 * @param int|null $maxLabels
4243 * @return mixed
44 *
4345 * @throws \Exception
4446 */
4547 public function detectImageLabels($minConfidence = null, $maxLabels = null);
@@ -47,9 +49,10 @@ interface MediaRecognition
4749 /**
4850 * Detects labels/objects in a video.
4951 *
50 * @param int|null $minConfidence
51 * @param int|null $maxLabels
52 * @param int|null $minConfidence
53 * @param int|null $maxLabels
5254 * @return mixed
55 *
5356 * @throws \Exception
5457 */
5558 public function detectVideoLabels($minConfidence = null, $maxLabels = null);
@@ -57,8 +60,9 @@ interface MediaRecognition
5760 /**
5861 * Detects faces in an image or video & analyzes them.
5962 *
60 * @param array $attributes
63 * @param array $attributes
6164 * @return mixed
65 *
6266 * @throws \Exception
6367 */
6468 public function detectFaces($attributes = ['DEFAULT']);
@@ -66,8 +70,9 @@ interface MediaRecognition
6670 /**
6771 * Detects faces in an image & analyzes them.
6872 *
69 * @param array $attributes
73 * @param array $attributes
7074 * @return mixed
75 *
7176 * @throws \Exception
7277 */
7378 public function detectImageFaces($attributes = ['DEFAULT']);
@@ -75,8 +80,9 @@ interface MediaRecognition
7580 /**
7681 * Detects faces in an image & analyzes them.
7782 *
78 * @param array $attributes
83 * @param array $attributes
7984 * @return mixed
85 *
8086 * @throws \Exception
8187 */
8288 public function detectVideoFaces($attributes = ['DEFAULT']);
@@ -85,8 +91,9 @@ interface MediaRecognition
8591 * Detects moderation labels in an image or video.
8692 * This can be useful for children-friendly images or NSFW images/videos.
8793 *
88 * @param int|null $minConfidence
94 * @param int|null $minConfidence
8995 * @return mixed
96 *
9097 * @throws \Exception
9198 */
9299 public function detectModeration($minConfidence = null);
@@ -95,8 +102,9 @@ interface MediaRecognition
95102 * Detects moderation labels in an image.
96103 * This can be useful for children-friendly images or NSFW images.
97104 *
98 * @param int|null $minConfidence
105 * @param int|null $minConfidence
99106 * @return mixed
107 *
100108 * @throws \Exception
101109 */
102110 public function detectImageModeration($minConfidence = null);
@@ -105,8 +113,9 @@ interface MediaRecognition
105113 * Detects moderation labels in an video.
106114 * This can be useful for children-friendly videos or NSFW videos.
107115 *
108 * @param int|null $minConfidence
116 * @param int|null $minConfidence
109117 * @return mixed
118 *
110119 * @throws \Exception
111120 */
112121 public function detectVideoModeration($minConfidence = null);
@@ -114,8 +123,9 @@ interface MediaRecognition
114123 /**
115124 * Detects text in an image or video (OCR).
116125 *
117 * @param array|null $filters
126 * @param array|null $filters
118127 * @return mixed
128 *
119129 * @throws \Exception
120130 */
121131 public function detectText(array $filters = null);
@@ -123,8 +133,9 @@ interface MediaRecognition
123133 /**
124134 * Detects text in an image (OCR).
125135 *
126 * @param array|null $filters
136 * @param array|null $filters
127137 * @return mixed
138 *
128139 * @throws \Exception
129140 */
130141 public function detectImageText(array $filters = null);
@@ -132,8 +143,9 @@ interface MediaRecognition
132143 /**
133144 * Detects text in a video (OCR).
134145 *
135 * @param array|null $filters
146 * @param array|null $filters
136147 * @return mixed
148 *
137149 * @throws \Exception
138150 */
139151 public function detectVideoText(array $filters = null);
@@ -141,9 +153,10 @@ interface MediaRecognition
141153 /**
142154 * Get the "faces" from the video analysis.
143155 *
144 * @param string $jobId
145 * @param int $mediaId
156 * @param string $jobId
157 * @param int $mediaId
146158 * @return \Aws\Result
159 *
147160 * @throws \Exception
148161 */
149162 public function getFacesByJobId(string $jobId, int $mediaId);
@@ -151,9 +164,10 @@ interface MediaRecognition
151164 /**
152165 * Get the labels from the video analysis.
153166 *
154 * @param string $jobId
155 * @param int $mediaId
167 * @param string $jobId
168 * @param int $mediaId
156169 * @return \Aws\Result
170 *
157171 * @throws \Exception
158172 */
159173 public function getLabelsByJobId(string $jobId, int $mediaId);
@@ -161,9 +175,10 @@ interface MediaRecognition
161175 /**
162176 * Get the "content moderation" from the video analysis.
163177 *
164 * @param string $jobId
165 * @param int $mediaId
178 * @param string $jobId
179 * @param int $mediaId
166180 * @return \Aws\Result
181 *
167182 * @throws \Exception
168183 */
169184 public function getContentModerationByJobId(string $jobId, int $mediaId);
@@ -171,9 +186,10 @@ interface MediaRecognition
171186 /**
172187 * Get the "text detection" from the video analysis.
173188 *
174 * @param string $jobId
175 * @param int $mediaId
189 * @param string $jobId
190 * @param int $mediaId
176191 * @return \Aws\Result
192 *
177193 * @throws \Exception
178194 */
179195 public function getTextDetectionByJobId(string $jobId, int $mediaId);