diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2024-11-13 23:42:28 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2024-11-13 23:42:28 +0300 |
commit | f8c62c6defa5c8c5ac06450bbcf1dc558b6e1a32 (patch) | |
tree | daa731f1233940c93db603f319bb138d277a84bb /OcrClient/Models | |
parent | 3800c961166dbcc4553dd846d0291388e60d7e6f (diff) |
Implement IOcrClient
Diffstat (limited to 'OcrClient/Models')
-rw-r--r-- | OcrClient/Models/OcrResponse.cs | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/OcrClient/Models/OcrResponse.cs b/OcrClient/Models/OcrResponse.cs index 2afc041..2b26ab7 100644 --- a/OcrClient/Models/OcrResponse.cs +++ b/OcrClient/Models/OcrResponse.cs @@ -2,4 +2,27 @@ namespace OcrClient.Models; public class OcrResponse { -}
\ No newline at end of file + public Result? Result { get; set; } +} +public class Result +{ + public TextAnnotation? TextAnnotation { get; set; } +} +public class TextAnnotation +{ + public List<Table>? Tables { get; set; } +} + +public class Table +{ + public string? RowCount { get; set; } + public string? ColumnCount { get; set; } + public List<Cell>? Cells { get; set; } +} + +public class Cell +{ + public string? RowIndex { get; set; } + public string? ColumnIndex { get; set; } + public string? Text { get; set; } +} |