aboutsummaryrefslogtreecommitdiff
path: root/VisionClient/Services/IYandexVisionClient.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2024-11-08 09:23:36 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2024-11-08 09:23:36 +0300
commitcd9c2734f08f45d19e92f39c5c2c0b1344652b58 (patch)
treec18778b0f2f700241bcd46f8176092409ee23431 /VisionClient/Services/IYandexVisionClient.cs
parentc3da89678e5417548815f74fa69edb12be49cbe6 (diff)
Add Yandex Vision OCR client
Diffstat (limited to 'VisionClient/Services/IYandexVisionClient.cs')
-rw-r--r--VisionClient/Services/IYandexVisionClient.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/VisionClient/Services/IYandexVisionClient.cs b/VisionClient/Services/IYandexVisionClient.cs
new file mode 100644
index 0000000..77105be
--- /dev/null
+++ b/VisionClient/Services/IYandexVisionClient.cs
@@ -0,0 +1,24 @@
+using VisionClient.Models;
+using System.Net.Http;
+
+namespace VisionClient.Services;
+
+public interface IYandexVisionClient
+{
+ public Task<VisionResponse> ProcessImage(string base64Image);
+}
+
+public class YandexVisionClient : IYandexVisionClient
+{
+ private readonly HttpClient _httpClient;
+
+ public YandexVisionClient(HttpClient httpClient)
+ {
+ _httpClient = httpClient;
+ }
+
+ public Task<VisionResponse> ProcessImage(string base64Image)
+ {
+ throw new NotImplementedException();
+ }
+} \ No newline at end of file