#*******************************************************
#为了降低设备成本，提高市场竞争力，后期车号识别都是使用1个device的模式.
#多个摄像头识别同一目标(例:车号，上下2个摄像头，后期可能还有左右的场景)，只实例化1份Engine做推理，减少模型在Device侧的加载次数，以达到减少内存的目标。
#*******************************************************
use_deviceid:
  #engineid: deviceid
  #0: 0
  #1: 1

#engine实例
engines:
  #  GrpcEngine: 0
  CameraEngine: 0
  VideoDecodeEngine: 0
  ReadImgEngine: 0
  ImgDecodeEngine: 0
  ControlEngine: 0
  MoveEngine: 0
  SaveImgEngine: 0

  SocketEngine: 0

  DataDealEngine: 0
  LocalDataMoveEngine: 0
  TrainStepOneEngine: 0
  FilterTrainStepOneEngine: 0

  ChkDateStepOneEngine: 0
  FilterChkDateStepOneEngine: 0

  StepOneContainerEngine: 0
  FilterContainerStepOneEngine: 0

  SaveStepOneResultEngine: 0
  TrainParationMgr: 0

  DataDealTwoEngine: 0
  TrainStepTwoEngine: 0
  TransTrainEngine: 0
  SelectBestEngine: 0

  ChkDateStepTwoEngine: 0
  TransChkDateEngine: 0
  SelectBestChkDateEngine: 0

  StepTwoContainerEngine: 0
  TransContainerEngine: 0
  SelectBestContainerEngine: 0

  SaveCsvEngine: 0

  MergerAllEngine: 0
  ResultToHttpSrvEngine: 0
  DataToFtpSrvEngine: 0
  DeviceStatusUpSerEngine: 0
  #ResultToMySQLSrvEngine: 0
  #DataToMinioSrvEngine: 0

#engine连接
connects:
  CameraEngine_0_0: "VideoDecodeEngine_0_0 1024"
  CameraEngine_0_1: "DeviceStatusUpSerEngine_0_0 1024"
  ReadImgEngine_0_0: "ImgDecodeEngine_0_0 1024"
  VideoDecodeEngine_0_0: "ControlEngine_0_0 1024"
  ImgDecodeEngine_0_0: "ControlEngine_0_0 1024"
  #GrpcEngine_0_0: "ControlEngine_0_1 1024"
  ControlEngine_0_0: "MoveEngine_0_0 1024"
  ControlEngine_0_1: "SaveImgEngine_0_0 1024" #采集数据模型
  #ControlEngine_0_2: "PushEngine_0_0 1024"         #实时推流直播
  MoveEngine_0_0: "SaveImgEngine_0_0 1024" #识别过程中数据保存
  MoveEngine_0_1: "SocketEngine_0_0 1024" #

  MoveEngine_0_5: "DataDealEngine_0_0 1024"
  DataDealEngine_0_0: "TrainStepOneEngine_0_0"
  TrainStepOneEngine_0_0: "FilterTrainStepOneEngine_0_0"
  FilterTrainStepOneEngine_0_0: "SaveStepOneResultEngine_0_0 1024"
  FilterTrainStepOneEngine_0_1: "SocketEngine_0_0 1024"
  SaveStepOneResultEngine_0_0: "TrainParationMgr_0_0 1024"
  SaveStepOneResultEngine_0_1: "LocalDataMoveEngine_0_0 1024" #第一步数据移动
  LocalDataMoveEngine_0_0: "DataToFtpSrvEngine_0_0 2048" #数据上传ftp

  DataDealEngine_0_1: "ChkDateStepOneEngine_0_0"
  ChkDateStepOneEngine_0_0: "FilterChkDateStepOneEngine_0_0"
  FilterChkDateStepOneEngine_0_0: "SaveStepOneResultEngine_0_0"

  DataDealEngine_0_2: "StepOneContainerEngine_0_0"
  StepOneContainerEngine_0_0: "FilterContainerStepOneEngine_0_0"
  FilterContainerStepOneEngine_0_0: "SaveStepOneResultEngine_0_0"

  TrainParationMgr_0_0: "DataDealTwoEngine_0_0 1024"
  DataDealTwoEngine_0_0: "TrainStepTwoEngine_0_0"
  TrainStepTwoEngine_0_0: "TransTrainEngine_0_0"
  TransTrainEngine_0_0: "SelectBestEngine_0_0"
  SelectBestEngine_0_0: "MergerAllEngine_0_0"
  SelectBestEngine_0_1: "SaveCsvEngine_0_0"

  ##定检期第二步
  DataDealTwoEngine_0_1: "ChkDateStepTwoEngine_0_0"
  ChkDateStepTwoEngine_0_0: "TransChkDateEngine_0_0"
  TransChkDateEngine_0_0: "SelectBestChkDateEngine_0_0"
  SelectBestChkDateEngine_0_0: "MergerAllEngine_0_1"
  SelectBestChkDateEngine_0_1: "SaveCsvEngine_0_1"

  ##集装箱第二步
  DataDealTwoEngine_0_2: "StepTwoContainerEngine_0_0"
  StepTwoContainerEngine_0_0: "TransContainerEngine_0_0"
  TransContainerEngine_0_0: "SelectBestContainerEngine_0_0"
  SelectBestContainerEngine_0_0: "MergerAllEngine_0_2"
  SelectBestContainerEngine_0_1: "SaveCsvEngine_0_2"

  DataDealTwoEngine_0_9: "MergerAllEngine_0_3"

  MergerAllEngine_0_0: "ResultToHttpSrvEngine_0_0 2048"
  #MergerAllEngine_0_0: "ResultToMySQLSrvEngine_0_0"
  MergerAllEngine_0_1: "SaveCsvEngine_0_0 2048"
