also looking at this
meemalabs/laravel-media-recognition
Configure Renovate
#20
19 files
+148
-99
| @@ -16,8 +16,7 @@ trait CanRecognizeImages | ||
| 16 | 16 | /** |
| 17 | 17 | * Set the base64 encoded image. |
| 18 | 18 | * |
| 19 | * @param string $blob | |
| 20 | * | |
| 19 | * @param string $blob | |
| 21 | 20 | * @return $this |
| 22 | 21 | */ |
| 23 | 22 | public function blob(string $blob) |
| @@ -31,6 +30,7 @@ trait CanRecognizeImages | ||
| 31 | 30 | * Sets the image to be analyzed. |
| 32 | 31 | * |
| 33 | 32 | * @return void |
| 33 | * | |
| 34 | 34 | * @throws \Exception |
| 35 | 35 | */ |
| 36 | 36 | protected function setImageSettings(): void |
| @@ -61,9 +61,10 @@ trait CanRecognizeImages | ||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | * @param int|null $minConfidence | |
| 65 | * @param null $maxLabels | |
| 64 | * @param int|null $minConfidence | |
| 65 | * @param null $maxLabels | |
| 66 | 66 | * @return mixed |
| 67 | * | |
| 67 | 68 | * @throws \Exception |
| 68 | 69 | */ |
| 69 | 70 | public function detectImageLabels($minConfidence = null, $maxLabels = null) |
| @@ -88,8 +89,9 @@ trait CanRecognizeImages | ||
| 88 | 89 | } |
| 89 | 90 | |
| 90 | 91 | /** |
| 91 | * @param array $attributes | |
| 92 | * @param array $attributes | |
| 92 | 93 | * @return mixed |
| 94 | * | |
| 93 | 95 | * @throws \Exception |
| 94 | 96 | */ |
| 95 | 97 | public function detectImageFaces($attributes = ['DEFAULT']) |
| @@ -110,8 +112,9 @@ trait CanRecognizeImages | ||
| 110 | 112 | } |
| 111 | 113 | |
| 112 | 114 | /** |
| 113 | * @param int|null $minConfidence | |
| 115 | * @param int|null $minConfidence | |
| 114 | 116 | * @return mixed |
| 117 | * | |
| 115 | 118 | * @throws \Exception |
| 116 | 119 | */ |
| 117 | 120 | public function detectImageModeration($minConfidence = null) |
| @@ -132,8 +135,9 @@ trait CanRecognizeImages | ||
| 132 | 135 | } |
| 133 | 136 | |
| 134 | 137 | /** |
| 135 | * @param array|null $filters | |
| 138 | * @param array|null $filters | |
| 136 | 139 | * @return mixed |
| 140 | * | |
| 137 | 141 | * @throws \Exception |
| 138 | 142 | */ |
| 139 | 143 | public function detectImageText(array $filters = null) |