24 lines
483 B
C#
24 lines
483 B
C#
|
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();
|
||
|
}
|
||
|
}
|