using System; using System.Collections.Generic; using System.Text; using System.Text.Json; namespace TEAMModelOS.SDK.Models { public class SheetConfig :CosmosEntity { /// /// exam代表评测来源的答题卡,paper代表试卷来源的答题卡,sheet 代表直接创建答题卡的来源 /// public string from { get; set; } /// /// 答题卡编号 /// public string no { get; set; } 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 int itemCount { get; set; } /// /// 页数 /// public int pageCount { get; set; } /// /// 页面大小(回字组成的) /// public int pageWidth { get; set; } /// /// 页面大小(回字组成的) /// public int pageHeight { get; set; } /// /// 标记是读取填涂黑块还是读取二维码 /// //public string infoMode { get; set; } //public List infoPos{ get; set; } = new List(); //public List objectivePos { get; set; } = new List(); /// /// 答题卡是A3 A4纸张 /// public string mode { 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 index { get; set; } // public int count { get; set; } // public int type { get; set; } // public int x { get; set; } // public int y { get; set; } // public int width { get; set; } // public int height { get; set; } // public int pageNum { get; set; } // public int vblockCount { get; set; } // public int hblockCount { get; set; } // public int id { get; set; } //} public class ConfigContent { public int index { get; set; } public int count { get; set; } public int type { get; set; } public int pageNum { get; set; } public List pos { get; set; } = new List(); public List points { get; set; } = new List(); } public class Pos { public double x { get; set; } public double y { get; set; } } public class Point { public string name { get; set; } public string ans { get; set; } public int row { get; set; } public List pos { get; set; } = new List(); } }