public async Task ProcessTextField_ShouldBeOk() { // Arrange var parameters = new TextFieldProcessingParams { Language = "English", Region = "140,550,1130,700", }; // Act TaskInfo processTextFieldTask; using (var fileStream = GetResourceFileStream(TestFile.BusinessCard)) { processTextFieldTask = await ApiClient.ProcessTextFieldAsync( parameters, fileStream, TestFile.BusinessCard, true ); } // Assert CheckResultTask(processTextFieldTask); }
/// <inheritdoc /> public Task <TaskInfo> ProcessTextFieldAsync( TextFieldProcessingParams parameters, Stream fileStream, string fileName, bool waitTaskFinished = false, CancellationToken cancellationToken = default) { return(StartTaskAsync( HttpMethod.Post, Urls.Ocr.ProcessTextField, parameters, fileStream, fileName, waitTaskFinished, cancellationToken)); }