form.value.image = fileImage
form.value.image.__img = image
var imagefile = document.getElementById('upload_files') as HTMLInputElement;
if (imagefile == null) this.errors.push('Не найдена форма загрузки');
if (imagefile.files == null) this.errors.push('Не найдена форма загрузки');
const files = imagefile.files;
if(files?.length === 0) this.errors.push('Выберите файл со штрихкодом');
if(this.errors.length) return;
var formData = new FormData();
formData.append('lastName', this.lastName);
formData.append('name', this.name);
// console.log(formData)
if(this.middleName !== '')
formData.append('middleName', this.middleName);
// console.log(formData)
formData.append('phone', this.phone);
if(this.email !== '')
formData.append('email', this.email);
formData.append('start', this.startDate[0].toJSON());
formData.append('end', this.startDate[1].toJSON());
const resp = (document.getElementsByName('g-recaptcha-response')[0] as HTMLTextAreaElement).value;
formData.append('captchaResponse', resp);
if(files === null) return;
for (let i = 0; i < files.length; i++) {
formData.append('files', files[i]);
}
var result = await axios.post('/api/upload', formData);
Developed by Microsoft, Xamarin is a hybrid mobile application platform based on the .NET environment. It allows developers and designers to create native Android, iOS, and Windows apps through a shared .NET codebase.
Technically speaking, Xamarin uses C# and native libraries wrapped in the .Net layer for cross-platform app development. Such applications are often compared to native for both iOS and Android mobile development platforms in terms of performance and user experience. Additionally, Xamarin can leverage all native and the latest API access to utilize underlying platform capabilities in Xamarin apps such as ARKit on iOS or Android Multi-Window.
так что при достижении какого то условия нужно менять программу распознавания