// Copyright (c) 2021 raoyutian Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. using System.Runtime.InteropServices; namespace PaddleOCRSharp { /// /// OCR识别参数 /// [StructLayout(LayoutKind.Sequential, Pack = 1)] public class StructureParameter:OCRParameter { /// /// 输入图像长宽大于488时,等比例缩放图像,默认488 /// public int table_max_len { get; set; } = 488; /// /// 是否合并空单元格 /// [field: MarshalAs(UnmanagedType.I1)] public bool merge_no_span_structure { get; set; } = true; /// /// 批量识别数量 /// public int table_batch_num { get; set; } = 1; } }