You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Constant.py 913B

1 yıl önce
1 yıl önce
1 yıl önce
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- coding: utf-8 -*-
  2. # 配置文件名称
  3. APPLICATION_CONFIG = "application.json"
  4. # 编码格式
  5. UTF_8 = "utf-8"
  6. # 文件读模式
  7. R = 'r'
  8. ON_OR = "_on_or_"
  9. ON_AI = "_on_ai_"
  10. MP4 = ".mp4"
  11. # 初始化进度
  12. init_progess = "0.0000"
  13. # 进度100%
  14. success_progess = "1.0000"
  15. # 拉流每帧图片缩小宽度大小限制, 大于1400像素缩小一半, 小于1400像素不变
  16. width = 1400
  17. COLOR = (
  18. [0, 0, 255],
  19. [255, 0, 0],
  20. [211, 0, 148],
  21. [0, 127, 0],
  22. [0, 69, 255],
  23. [0, 255, 0],
  24. [255, 0, 255],
  25. [0, 0, 127],
  26. [127, 0, 255],
  27. [255, 129, 0],
  28. [139, 139, 0],
  29. [255, 255, 0],
  30. [127, 255, 0],
  31. [0, 127, 255],
  32. [0, 255, 127],
  33. [255, 127, 255],
  34. [8, 101, 139],
  35. [171, 130, 255],
  36. [139, 112, 74],
  37. [205, 205, 180])
  38. ONLINE = "online"
  39. OFFLINE = "offline"
  40. PHOTO = "photo"
  41. RECORDING = "recording"