feat: Add AI extraction service and related view models
- Introduced `IAiExtractionService` and its implementation `AiExtractionService` for processing images and extracting text. - Created `AiResultItem` model to hold results from AI extraction. - Added `ImageProcessingCoordinator` to manage image processing tasks and provide progress updates. - Implemented view models for AI settings, path settings, processing state, race upload settings, and visual settings to support UI binding. - Updated `Program.cs` to register new services and dependencies. - Modified project file to skip MinVer execution during local builds.
This commit is contained in:
parent
bdf503c627
commit
3c722a66df
16 changed files with 1462 additions and 628 deletions
149
imagecatalog/ViewModels/RaceUploadSettingsViewModel.cs
Normal file
149
imagecatalog/ViewModels/RaceUploadSettingsViewModel.cs
Normal file
|
|
@ -0,0 +1,149 @@
|
|||
using System;
|
||||
|
||||
namespace ImageCatalog_2.ViewModels;
|
||||
|
||||
public class RaceUploadSettingsViewModel : ViewModelBase
|
||||
{
|
||||
private string _apiLogin = string.Empty;
|
||||
public string ApiLogin
|
||||
{
|
||||
get => _apiLogin;
|
||||
set
|
||||
{
|
||||
_apiLogin = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiPassword = string.Empty;
|
||||
public string ApiPassword
|
||||
{
|
||||
get => _apiPassword;
|
||||
set
|
||||
{
|
||||
_apiPassword = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiRaceDescription = string.Empty;
|
||||
public string ApiRaceDescription
|
||||
{
|
||||
get => _apiRaceDescription;
|
||||
set
|
||||
{
|
||||
_apiRaceDescription = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiRaceTypeId = "1";
|
||||
public string ApiRaceTypeId
|
||||
{
|
||||
get => _apiRaceTypeId;
|
||||
set
|
||||
{
|
||||
_apiRaceTypeId = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private DateTime _apiRaceStartDate = DateTime.Today;
|
||||
public DateTime ApiRaceStartDate
|
||||
{
|
||||
get => _apiRaceStartDate;
|
||||
set
|
||||
{
|
||||
_apiRaceStartDate = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private DateTime _apiRaceEndDate = DateTime.Today;
|
||||
public DateTime ApiRaceEndDate
|
||||
{
|
||||
get => _apiRaceEndDate;
|
||||
set
|
||||
{
|
||||
_apiRaceEndDate = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiPathBase = string.Empty;
|
||||
public string ApiPathBase
|
||||
{
|
||||
get => _apiPathBase;
|
||||
set
|
||||
{
|
||||
_apiPathBase = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiLocalita = string.Empty;
|
||||
public string ApiLocalita
|
||||
{
|
||||
get => _apiLocalita;
|
||||
set
|
||||
{
|
||||
_apiLocalita = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private int _apiEventoInLineaIndex;
|
||||
public int ApiEventoInLineaIndex
|
||||
{
|
||||
get => _apiEventoInLineaIndex;
|
||||
set
|
||||
{
|
||||
_apiEventoInLineaIndex = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private int _apiTipoIndexValue = 1;
|
||||
public int ApiTipoIndexValue
|
||||
{
|
||||
get => _apiTipoIndexValue;
|
||||
set
|
||||
{
|
||||
_apiTipoIndexValue = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private int _apiFreeEventIndex;
|
||||
public int ApiFreeEventIndex
|
||||
{
|
||||
get => _apiFreeEventIndex;
|
||||
set
|
||||
{
|
||||
_apiFreeEventIndex = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiRaceId = string.Empty;
|
||||
public string ApiRaceId
|
||||
{
|
||||
get => _apiRaceId;
|
||||
set
|
||||
{
|
||||
_apiRaceId = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private string _apiRemoteProcessedBasePath = string.Empty;
|
||||
public string ApiRemoteProcessedBasePath
|
||||
{
|
||||
get => _apiRemoteProcessedBasePath;
|
||||
set
|
||||
{
|
||||
_apiRemoteProcessedBasePath = value;
|
||||
NotifyPropertyChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue