12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MeterVision.FreeAi
- {
- //常量定义
- public class FaConstant
- {
- //(uint64_t):水表永远不可能达到的最大值,99999999990000代表10位水表的最大值。
- // 为什么14位呢?因为在我们的计算中单位以公升计算,这样避免了浮点运行造成的精度损失
- public static ulong IMPOSSIBLE_MAX_VALUE = 99999999990000L;
- //(int16_t):(1)数组中行数据无效标志值;
- // (2)不可能出现的旋转角度(合理的角度=[-359,359]);
- // (3)不可能出现的坐标值(合理的坐标值=[0,319])
- public static short IMPOSSIBLE_VALUE = 888;
- //(uint8_t):水表中不可能出现的数字(指针)个数(合理的个数=[0,10])
- public static byte IMPOSSIBLE_NUM_NUMBER = 88;
- //1立方对应分升(0.1L)的值
- public static uint ONE_STERE = 10000;
- public static ushort IMAGE_HEIGHT = 240;
- public static ushort IMAGE_WIDTH = 320;
- public static uint CUBE_VALUE = 10000;
- }
- }
|