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.

198 satır
5.8KB

  1. dsp:
  2. active: dev
  3. kafka:
  4. topic:
  5. dsp-alg-online-tasks-topic: dsp-alg-online-tasks
  6. dsp-alg-offline-tasks-topic: dsp-alg-offline-tasks
  7. dsp-alg-image-tasks-topic: dsp-alg-image-tasks
  8. dsp-alg-results-topic: dsp-alg-task-results
  9. local:
  10. bootstrap_servers: ['192.168.10.11:9092']
  11. # dsp-alg-online-tasks:
  12. # partition: [0]
  13. # dsp-alg-offline-tasks:
  14. # partition: [0]
  15. # dsp-alg-task-results:
  16. # partition: [0]
  17. producer:
  18. acks: -1
  19. retries: 3
  20. linger_ms: 50
  21. retry_backoff_ms: 1000
  22. max_in_flight_requests_per_connection: 5
  23. consumer:
  24. client_id: dsp_ai_server
  25. group_id: dsp-ai-local
  26. auto_offset_reset: latest
  27. enable_auto_commit: False
  28. max_poll_records: 1
  29. dev:
  30. bootstrap_servers: ['192.168.11.13:9092']
  31. # dsp-alg-online-tasks:
  32. # partition: [0]
  33. # dsp-alg-offline-tasks:
  34. # partition: [0]
  35. # dsp-alg-task-results:
  36. # partition: [0]
  37. producer:
  38. acks: -1
  39. retries: 3
  40. linger_ms: 50
  41. retry_backoff_ms: 1000
  42. max_in_flight_requests_per_connection: 5
  43. consumer:
  44. client_id: dsp_ai_server
  45. group_id: dsp-ai-dev
  46. auto_offset_reset: latest
  47. enable_auto_commit: False
  48. max_poll_records: 1
  49. test:
  50. bootstrap_servers: ['106.14.96.218:19092']
  51. # dsp-alg-online-tasks:
  52. # partition: [0]
  53. # dsp-alg-offline-tasks:
  54. # partition: [0]
  55. # dsp-alg-task-results:
  56. # partition: [0]
  57. producer:
  58. acks: -1
  59. retries: 3
  60. linger_ms: 50
  61. retry_backoff_ms: 1000
  62. max_in_flight_requests_per_connection: 5
  63. consumer:
  64. client_id: dsp_ai_server
  65. group_id: dsp-ai-test
  66. auto_offset_reset: latest
  67. enable_auto_commit: False
  68. max_poll_records: 1
  69. prod:
  70. bootstrap_servers: ['101.132.127.1:19094']
  71. # dsp-alg-online-tasks:
  72. # partition: [1]
  73. # dsp-alg-offline-tasks:
  74. # partition: [1]
  75. # dsp-alg-task-results:
  76. # partition: [1]
  77. producer:
  78. acks: -1
  79. retries: 3
  80. linger_ms: 50
  81. retry_backoff_ms: 1000
  82. max_in_flight_requests_per_connection: 5
  83. consumer:
  84. client_id: dsp_ai_server
  85. group_id: dsp-ai-prod
  86. auto_offset_reset: latest
  87. enable_auto_commit: False
  88. max_poll_records: 1
  89. gpu:
  90. # 'first'- 按升序排列可用的 GPU 设备 ID(默认)
  91. # 'last'- 按 id 降序排列可用的 GPU 设备 id
  92. # 'random'- 随机订购可用的 GPU 设备 ID
  93. # 'load'- 按负载递增排序可用的 GPU 设备 ID
  94. # 'memory'- 通过升序内存使用来排序可用的 GPU 设备 ID
  95. order: 'first'
  96. # 获取可用gpu数量
  97. limit: 10
  98. # 最大负载
  99. maxLoad: 0.8
  100. # 最大内存
  101. maxMemory: 0.8
  102. includeNan: False
  103. excludeID: []
  104. excludeUUID: []
  105. video:
  106. # 视频拉取失败,保存路径
  107. file_path: ../dsp/video/
  108. # 视频加水印开关
  109. video_add_water: True
  110. aliyun:
  111. access_key: LTAI5tSJ62TLMUb4SZuf285A
  112. access_secret: MWYynm30filZ7x0HqSHlU3pdLVNeI7
  113. oss:
  114. endpoint: http://oss-cn-shanghai.aliyuncs.com
  115. bucket: 'ta-tech-image'
  116. connect_timeout: 30
  117. vod:
  118. host_address: https://vod.play.t-aaron.com/
  119. ecsRegionId: "cn-shanghai"
  120. dev:
  121. CateId: 1000468341
  122. test:
  123. CateId: 1000468338
  124. prod:
  125. CateId: 1000468340
  126. service:
  127. frame_step: 300 # 多少帧数步长之间获取一次分析图片
  128. frame_score: 0.4 # 获取最低得分以上的图片
  129. filter:
  130. # 识别相似度是否开启
  131. picture_similarity: True
  132. # 相似度阀值
  133. similarity: 0.65
  134. timeout: 21600 # 一次识别任务超时时间,单位秒,默认6个小时
  135. cv2_pull_stream_timeout: 3600 # 直播开始视频未推流超时时间
  136. cv2_read_stream_timeout: 1800 # 直播读流中超时时间
  137. baiduocr:
  138. APP_ID: 28173504
  139. API_KEY: kqrFE7VuygIaFer7z6cRxzoi
  140. SECRET_KEY: yp7xBokyl4TItyGhay7skAN1cMwfvEXf
  141. # 日志设置
  142. log:
  143. # 是否开启文件输出 True:开启 False:关闭
  144. enable_file_log: True
  145. # 是否开启控制台日志输出 True:开启 False:关闭
  146. enable_stderr: True
  147. # 日志打印文件夹
  148. base_path: ../dsp/logs/
  149. # 日志文件名称
  150. log_name: dsp.log
  151. # 日志打印格式
  152. log_fmt: "{time:YYYY-MM-DD HH:mm:ss.SSS} [{level}][{process.name}-{process.id}-{thread.name}-{thread.id}][{line}] {module}-{function} - {message}"
  153. # 日志隔离级别
  154. level: INFO
  155. # 日志每天0点创建新文件
  156. rotation: 00:00
  157. # 日志保存时间15天
  158. retention: 15 days
  159. # 线程安全
  160. enqueue: True
  161. # 编码格式
  162. encoding: utf8
  163. #mysql:
  164. # # 数据库信息
  165. # dev:
  166. # host: 192.168.11.13
  167. # port: 3306
  168. # dbname: tuheng_dsp
  169. # username: root
  170. # password: idontcare
  171. # test:
  172. # host: 192.168.11.242
  173. # port: 3306
  174. # dbname: tuheng_dsp
  175. # username: root
  176. # password: idontcare
  177. # prod:
  178. # host: 172.16.1.22
  179. # port: 3306
  180. # dbname: tuheng_dsp
  181. # username: root
  182. # password: TH22#2022
  183. # db_charset: utf8
  184. # # mincached : 启动时开启的闲置连接数量(缺省值 0 开始时不创建连接)
  185. # db_min_cached: 0
  186. # # maxcached : 连接池中允许的闲置的最多连接数量(缺省值 0 代表不闲置连接池大小)
  187. # db_max_cached: 10
  188. # # maxshared : 共享连接数允许的最大数量(缺省值 0 代表所有连接都是专用的)如果达到了最大数量,被请求为共享的连接将会被共享使用
  189. # db_max_shared: 10
  190. # # maxconnecyions : 创建连接池的最大数量(缺省值 0 代表不限制)
  191. # db_max_connecyions: 20
  192. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  193. # db_blocking: True
  194. # # maxusage : 单个连接的最大允许复用次数(缺省值 0 或 False 代表不限制的复用).当达到最大数时,连接会自动重新连接(关闭和重新打开)
  195. # db_max_usage: 0
  196. # # setsession : 一个可选的SQL命令列表用于准备每个会话,如["set datestyle to german", ...]
  197. # db_set_session: None