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/CanRecognizeImages.phpmodified+11-7
Changes to src/Traits/CanRecognizeImages.php
@@ -16,8 +16,7 @@ trait CanRecognizeImages
1616 /**
1717 * Set the base64 encoded image.
1818 *
19 * @param string $blob
20 *
19 * @param string $blob
2120 * @return $this
2221 */
2322 public function blob(string $blob)
@@ -31,6 +30,7 @@ trait CanRecognizeImages
3130 * Sets the image to be analyzed.
3231 *
3332 * @return void
33 *
3434 * @throws \Exception
3535 */
3636 protected function setImageSettings(): void
@@ -61,9 +61,10 @@ trait CanRecognizeImages
6161 }
6262
6363 /**
64 * @param int|null $minConfidence
65 * @param null $maxLabels
64 * @param int|null $minConfidence
65 * @param null $maxLabels
6666 * @return mixed
67 *
6768 * @throws \Exception
6869 */
6970 public function detectImageLabels($minConfidence = null, $maxLabels = null)
@@ -88,8 +89,9 @@ trait CanRecognizeImages
8889 }
8990
9091 /**
91 * @param array $attributes
92 * @param array $attributes
9293 * @return mixed
94 *
9395 * @throws \Exception
9496 */
9597 public function detectImageFaces($attributes = ['DEFAULT'])
@@ -110,8 +112,9 @@ trait CanRecognizeImages
110112 }
111113
112114 /**
113 * @param int|null $minConfidence
115 * @param int|null $minConfidence
114116 * @return mixed
117 *
115118 * @throws \Exception
116119 */
117120 public function detectImageModeration($minConfidence = null)
@@ -132,8 +135,9 @@ trait CanRecognizeImages
132135 }
133136
134137 /**
135 * @param array|null $filters
138 * @param array|null $filters
136139 * @return mixed
140 *
137141 * @throws \Exception
138142 */
139143 public function detectImageText(array $filters = null)