Class: TencentCloud::Iss::V20230517::AIConfig

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230517/models.rb

Overview

AI分析配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detecttype = nil, timeinterval = nil, opertimeslot = nil) ⇒ AIConfig

Returns a new instance of AIConfig.



31
32
33
34
35
# File 'lib/v20230517/models.rb', line 31

def initialize(detecttype=nil, timeinterval=nil, opertimeslot=nil)
  @DetectType = detecttype
  @TimeInterval = timeinterval
  @OperTimeSlot = opertimeslot
end

Instance Attribute Details

#DetectTypeObject

Parameters:

  • DetectType:

    AI 分析类型。可选值为 Facemask(口罩识别)、Chefhat(厨师帽识别)、Smoking(抽烟检测)、Chefcloth(厨师服识别)、PhoneCall(接打电话识别)、Pet(宠物识别)、Body(人体识别)和Car(车辆车牌识别)等

  • TimeInterval:

    截图频率。可选值1~20秒

  • OperTimeSlot:

    模板生效的时间段。最多包含5组时间段



29
30
31
# File 'lib/v20230517/models.rb', line 29

def DetectType
  @DetectType
end

#OperTimeSlotObject

Parameters:

  • DetectType:

    AI 分析类型。可选值为 Facemask(口罩识别)、Chefhat(厨师帽识别)、Smoking(抽烟检测)、Chefcloth(厨师服识别)、PhoneCall(接打电话识别)、Pet(宠物识别)、Body(人体识别)和Car(车辆车牌识别)等

  • TimeInterval:

    截图频率。可选值1~20秒

  • OperTimeSlot:

    模板生效的时间段。最多包含5组时间段



29
30
31
# File 'lib/v20230517/models.rb', line 29

def OperTimeSlot
  @OperTimeSlot
end

#TimeIntervalObject

Parameters:

  • DetectType:

    AI 分析类型。可选值为 Facemask(口罩识别)、Chefhat(厨师帽识别)、Smoking(抽烟检测)、Chefcloth(厨师服识别)、PhoneCall(接打电话识别)、Pet(宠物识别)、Body(人体识别)和Car(车辆车牌识别)等

  • TimeInterval:

    截图频率。可选值1~20秒

  • OperTimeSlot:

    模板生效的时间段。最多包含5组时间段



29
30
31
# File 'lib/v20230517/models.rb', line 29

def TimeInterval
  @TimeInterval
end

Instance Method Details

#deserialize(params) ⇒ Object



37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/v20230517/models.rb', line 37

def deserialize(params)
  @DetectType = params['DetectType']
  @TimeInterval = params['TimeInterval']
  unless params['OperTimeSlot'].nil?
    @OperTimeSlot = []
    params['OperTimeSlot'].each do |i|
      opertimeslot_tmp = OperTimeSlot.new
      opertimeslot_tmp.deserialize(i)
      @OperTimeSlot << opertimeslot_tmp
    end
  end
end