FaConstant.cs 1.1 KB

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