using System; using System.Collections.Generic; using System.Text; namespace TEAMModelOS.SDK.Models.Cosmos.Common { public class SheetConfig :CosmosEntity { public string school { get; set; } public string creatorId { get; set; } public string scope { get; set; } /// /// 关联id,如果没有关联则为null /// public string sid { get; set; } = null; /// /// //列数 /// public int columns { get; set; } /// /// 页面大小(回字组成的) /// public double pageWidth { get; set; } /// /// 页面大小(回字组成的) /// public double pageHeight { get; set; } /// /// 页码块数量 /// public int pageNumBlockCount { get; set; } /// /// 页码起始值, 起始是3个空格方块开始,写1; 2个空格1个实心,写0 /// public int pageNumStartValue { get; set; } /// /// 二值化区间(pc)-->不同扫描仪的结果图像数据有差距, 按需调整 /// public List threshValue { get; set; } = new List { 190, 220, 10 }; /// /// 二值化区间(手机) /// public List threshValuePhone { get; set; } = new List { 190, 220, 10 }; /// /// 单个整体回字大小 /// public double huiSize { get; set; } = 70; /// /// 最小回字的大小比列, 以回字最中间的方块为最小 /// public double minHuiSize { get; set; } = 0.005; /// /// 最大回字的大小比列, 以回字最外层的方块为最大 /// public double maxHuiSize { get; set; } = 0.1; /// /// 不检测回字区域(pc版辅助效果20%, 手机版50%) /// public List notHuisRect { get; set; } = new List { 0.3, 0.3, 0.4, 0.4 }; /// /// 内容块 vblockCount为该模块竖向的方块数 hblockCount为该模块横向方块数 /// public List contents { get; set; } } public class ConfigContent { public int type { get; set; } public double x { get; set; } public double y { get; set; } public double width { get; set; } public double height { get; set; } public int pageNum { get; set; } public int vblockCount { get; set; } public int hblockCount { get; set; } public string id { get; set; } public bool isFix { get; set; } } }