also looking at this
meemalabs/laravel-media-recognition
Configure Renovate
#20
19 files
+148
-99
formatting only · 12 hidden lines
| @@ -7,9 +7,9 @@ interface MediaRecognition formatting only | ||
| 7 | 7 | /** |
| 8 | 8 | * Sets the source/path where the file is stored. |
| 9 | 9 | * |
| 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 | |
| 13 | 13 | * @return $this |
| 14 | 14 | */ |
| 15 | 15 | public function source(string $source, string $mimeType = null, int $mediaId = null); |
formatting only · 12 hidden lines
| @@ -17,9 +17,9 @@ interface MediaRecognition formatting only | ||
| 17 | 17 | /** |
| 18 | 18 | * Sets the source/path where the file is stored. |
| 19 | 19 | * |
| 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 | |
| 23 | 23 | * @return $this |
| 24 | 24 | */ |
| 25 | 25 | public function path(string $path, string $mimeType = null, int $mediaId = null); |
| @@ -27,9 +27,10 @@ interface MediaRecognition | ||
| 27 | 27 | /** |
| 28 | 28 | * Detects labels/objects in an image or video. |
| 29 | 29 | * |
| 30 | * @param int|null $minConfidence | |
| 31 | * @param int|null $maxLabels | |
| 30 | * @param int|null $minConfidence | |
| 31 | * @param int|null $maxLabels | |
| 32 | 32 | * @return mixed |
| 33 | * | |
| 33 | 34 | * @throws \Exception |
| 34 | 35 | */ |
| 35 | 36 | public function detectLabels($minConfidence = null, $maxLabels = null); |
| @@ -37,9 +38,10 @@ interface MediaRecognition | ||
| 37 | 38 | /** |
| 38 | 39 | * Detects labels/objects in an image. |
| 39 | 40 | * |
| 40 | * @param int|null $minConfidence | |
| 41 | * @param int|null $maxLabels | |
| 41 | * @param int|null $minConfidence | |
| 42 | * @param int|null $maxLabels | |
| 42 | 43 | * @return mixed |
| 44 | * | |
| 43 | 45 | * @throws \Exception |
| 44 | 46 | */ |
| 45 | 47 | public function detectImageLabels($minConfidence = null, $maxLabels = null); |
| @@ -47,9 +49,10 @@ interface MediaRecognition | ||
| 47 | 49 | /** |
| 48 | 50 | * Detects labels/objects in a video. |
| 49 | 51 | * |
| 50 | * @param int|null $minConfidence | |
| 51 | * @param int|null $maxLabels | |
| 52 | * @param int|null $minConfidence | |
| 53 | * @param int|null $maxLabels | |
| 52 | 54 | * @return mixed |
| 55 | * | |
| 53 | 56 | * @throws \Exception |
| 54 | 57 | */ |
| 55 | 58 | public function detectVideoLabels($minConfidence = null, $maxLabels = null); |
| @@ -57,8 +60,9 @@ interface MediaRecognition | ||
| 57 | 60 | /** |
| 58 | 61 | * Detects faces in an image or video & analyzes them. |
| 59 | 62 | * |
| 60 | * @param array $attributes | |
| 63 | * @param array $attributes | |
| 61 | 64 | * @return mixed |
| 65 | * | |
| 62 | 66 | * @throws \Exception |
| 63 | 67 | */ |
| 64 | 68 | public function detectFaces($attributes = ['DEFAULT']); |
| @@ -66,8 +70,9 @@ interface MediaRecognition | ||
| 66 | 70 | /** |
| 67 | 71 | * Detects faces in an image & analyzes them. |
| 68 | 72 | * |
| 69 | * @param array $attributes | |
| 73 | * @param array $attributes | |
| 70 | 74 | * @return mixed |
| 75 | * | |
| 71 | 76 | * @throws \Exception |
| 72 | 77 | */ |
| 73 | 78 | public function detectImageFaces($attributes = ['DEFAULT']); |
| @@ -75,8 +80,9 @@ interface MediaRecognition | ||
| 75 | 80 | /** |
| 76 | 81 | * Detects faces in an image & analyzes them. |
| 77 | 82 | * |
| 78 | * @param array $attributes | |
| 83 | * @param array $attributes | |
| 79 | 84 | * @return mixed |
| 85 | * | |
| 80 | 86 | * @throws \Exception |
| 81 | 87 | */ |
| 82 | 88 | public function detectVideoFaces($attributes = ['DEFAULT']); |
| @@ -85,8 +91,9 @@ interface MediaRecognition | ||
| 85 | 91 | * Detects moderation labels in an image or video. |
| 86 | 92 | * This can be useful for children-friendly images or NSFW images/videos. |
| 87 | 93 | * |
| 88 | * @param int|null $minConfidence | |
| 94 | * @param int|null $minConfidence | |
| 89 | 95 | * @return mixed |
| 96 | * | |
| 90 | 97 | * @throws \Exception |
| 91 | 98 | */ |
| 92 | 99 | public function detectModeration($minConfidence = null); |
| @@ -95,8 +102,9 @@ interface MediaRecognition | ||
| 95 | 102 | * Detects moderation labels in an image. |
| 96 | 103 | * This can be useful for children-friendly images or NSFW images. |
| 97 | 104 | * |
| 98 | * @param int|null $minConfidence | |
| 105 | * @param int|null $minConfidence | |
| 99 | 106 | * @return mixed |
| 107 | * | |
| 100 | 108 | * @throws \Exception |
| 101 | 109 | */ |
| 102 | 110 | public function detectImageModeration($minConfidence = null); |
| @@ -105,8 +113,9 @@ interface MediaRecognition | ||
| 105 | 113 | * Detects moderation labels in an video. |
| 106 | 114 | * This can be useful for children-friendly videos or NSFW videos. |
| 107 | 115 | * |
| 108 | * @param int|null $minConfidence | |
| 116 | * @param int|null $minConfidence | |
| 109 | 117 | * @return mixed |
| 118 | * | |
| 110 | 119 | * @throws \Exception |
| 111 | 120 | */ |
| 112 | 121 | public function detectVideoModeration($minConfidence = null); |
| @@ -114,8 +123,9 @@ interface MediaRecognition | ||
| 114 | 123 | /** |
| 115 | 124 | * Detects text in an image or video (OCR). |
| 116 | 125 | * |
| 117 | * @param array|null $filters | |
| 126 | * @param array|null $filters | |
| 118 | 127 | * @return mixed |
| 128 | * | |
| 119 | 129 | * @throws \Exception |
| 120 | 130 | */ |
| 121 | 131 | public function detectText(array $filters = null); |
| @@ -123,8 +133,9 @@ interface MediaRecognition | ||
| 123 | 133 | /** |
| 124 | 134 | * Detects text in an image (OCR). |
| 125 | 135 | * |
| 126 | * @param array|null $filters | |
| 136 | * @param array|null $filters | |
| 127 | 137 | * @return mixed |
| 138 | * | |
| 128 | 139 | * @throws \Exception |
| 129 | 140 | */ |
| 130 | 141 | public function detectImageText(array $filters = null); |
| @@ -132,8 +143,9 @@ interface MediaRecognition | ||
| 132 | 143 | /** |
| 133 | 144 | * Detects text in a video (OCR). |
| 134 | 145 | * |
| 135 | * @param array|null $filters | |
| 146 | * @param array|null $filters | |
| 136 | 147 | * @return mixed |
| 148 | * | |
| 137 | 149 | * @throws \Exception |
| 138 | 150 | */ |
| 139 | 151 | public function detectVideoText(array $filters = null); |
| @@ -141,9 +153,10 @@ interface MediaRecognition | ||
| 141 | 153 | /** |
| 142 | 154 | * Get the "faces" from the video analysis. |
| 143 | 155 | * |
| 144 | * @param string $jobId | |
| 145 | * @param int $mediaId | |
| 156 | * @param string $jobId | |
| 157 | * @param int $mediaId | |
| 146 | 158 | * @return \Aws\Result |
| 159 | * | |
| 147 | 160 | * @throws \Exception |
| 148 | 161 | */ |
| 149 | 162 | public function getFacesByJobId(string $jobId, int $mediaId); |
| @@ -151,9 +164,10 @@ interface MediaRecognition | ||
| 151 | 164 | /** |
| 152 | 165 | * Get the labels from the video analysis. |
| 153 | 166 | * |
| 154 | * @param string $jobId | |
| 155 | * @param int $mediaId | |
| 167 | * @param string $jobId | |
| 168 | * @param int $mediaId | |
| 156 | 169 | * @return \Aws\Result |
| 170 | * | |
| 157 | 171 | * @throws \Exception |
| 158 | 172 | */ |
| 159 | 173 | public function getLabelsByJobId(string $jobId, int $mediaId); |
| @@ -161,9 +175,10 @@ interface MediaRecognition | ||
| 161 | 175 | /** |
| 162 | 176 | * Get the "content moderation" from the video analysis. |
| 163 | 177 | * |
| 164 | * @param string $jobId | |
| 165 | * @param int $mediaId | |
| 178 | * @param string $jobId | |
| 179 | * @param int $mediaId | |
| 166 | 180 | * @return \Aws\Result |
| 181 | * | |
| 167 | 182 | * @throws \Exception |
| 168 | 183 | */ |
| 169 | 184 | public function getContentModerationByJobId(string $jobId, int $mediaId); |
| @@ -171,9 +186,10 @@ interface MediaRecognition | ||
| 171 | 186 | /** |
| 172 | 187 | * Get the "text detection" from the video analysis. |
| 173 | 188 | * |
| 174 | * @param string $jobId | |
| 175 | * @param int $mediaId | |
| 189 | * @param string $jobId | |
| 190 | * @param int $mediaId | |
| 176 | 191 | * @return \Aws\Result |
| 192 | * | |
| 177 | 193 | * @throws \Exception |
| 178 | 194 | */ |
| 179 | 195 | public function getTextDetectionByJobId(string $jobId, int $mediaId); |