All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.mps.v20190612.models.LiveStreamAiRecognitionResultItem Maven / Gradle / Ivy

/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.mps.v20190612.models;

import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class LiveStreamAiRecognitionResultItem extends AbstractModel{

    /**
    * Result type. Valid values:
  • FaceRecognition: face recognition,
  • AsrWordsRecognition: speech keyword recognition,
  • OcrWordsRecognition: text keyword recognition,
  • AsrFullTextRecognition: full speech recognition,
  • OcrFullTextRecognition: full text recognition.
  • */ @SerializedName("Type") @Expose private String Type; /** * Face recognition result, which is valid when `Type` is `FaceRecognition`. */ @SerializedName("FaceRecognitionResultSet") @Expose private LiveStreamFaceRecognitionResult [] FaceRecognitionResultSet; /** * Speech keyword recognition result, which is valid when `Type` is `AsrWordsRecognition`. */ @SerializedName("AsrWordsRecognitionResultSet") @Expose private LiveStreamAsrWordsRecognitionResult [] AsrWordsRecognitionResultSet; /** * Text keyword recognition result, which is valid when `Type` is `OcrWordsRecognition`. */ @SerializedName("OcrWordsRecognitionResultSet") @Expose private LiveStreamOcrWordsRecognitionResult [] OcrWordsRecognitionResultSet; /** * Full speech recognition result, which is valid when `Type` is `AsrFullTextRecognition`. */ @SerializedName("AsrFullTextRecognitionResultSet") @Expose private LiveStreamAsrFullTextRecognitionResult [] AsrFullTextRecognitionResultSet; /** * Full text recognition result, which is valid when `Type` is `OcrFullTextRecognition`. */ @SerializedName("OcrFullTextRecognitionResultSet") @Expose private LiveStreamOcrFullTextRecognitionResult [] OcrFullTextRecognitionResultSet; /** * Get Result type. Valid values:
  • FaceRecognition: face recognition,
  • AsrWordsRecognition: speech keyword recognition,
  • OcrWordsRecognition: text keyword recognition,
  • AsrFullTextRecognition: full speech recognition,
  • OcrFullTextRecognition: full text recognition.
  • * @return Type Result type. Valid values:
  • FaceRecognition: face recognition,
  • AsrWordsRecognition: speech keyword recognition,
  • OcrWordsRecognition: text keyword recognition,
  • AsrFullTextRecognition: full speech recognition,
  • OcrFullTextRecognition: full text recognition.
  • */ public String getType() { return this.Type; } /** * Set Result type. Valid values:
  • FaceRecognition: face recognition,
  • AsrWordsRecognition: speech keyword recognition,
  • OcrWordsRecognition: text keyword recognition,
  • AsrFullTextRecognition: full speech recognition,
  • OcrFullTextRecognition: full text recognition.
  • * @param Type Result type. Valid values:
  • FaceRecognition: face recognition,
  • AsrWordsRecognition: speech keyword recognition,
  • OcrWordsRecognition: text keyword recognition,
  • AsrFullTextRecognition: full speech recognition,
  • OcrFullTextRecognition: full text recognition.
  • */ public void setType(String Type) { this.Type = Type; } /** * Get Face recognition result, which is valid when `Type` is `FaceRecognition`. * @return FaceRecognitionResultSet Face recognition result, which is valid when `Type` is `FaceRecognition`. */ public LiveStreamFaceRecognitionResult [] getFaceRecognitionResultSet() { return this.FaceRecognitionResultSet; } /** * Set Face recognition result, which is valid when `Type` is `FaceRecognition`. * @param FaceRecognitionResultSet Face recognition result, which is valid when `Type` is `FaceRecognition`. */ public void setFaceRecognitionResultSet(LiveStreamFaceRecognitionResult [] FaceRecognitionResultSet) { this.FaceRecognitionResultSet = FaceRecognitionResultSet; } /** * Get Speech keyword recognition result, which is valid when `Type` is `AsrWordsRecognition`. * @return AsrWordsRecognitionResultSet Speech keyword recognition result, which is valid when `Type` is `AsrWordsRecognition`. */ public LiveStreamAsrWordsRecognitionResult [] getAsrWordsRecognitionResultSet() { return this.AsrWordsRecognitionResultSet; } /** * Set Speech keyword recognition result, which is valid when `Type` is `AsrWordsRecognition`. * @param AsrWordsRecognitionResultSet Speech keyword recognition result, which is valid when `Type` is `AsrWordsRecognition`. */ public void setAsrWordsRecognitionResultSet(LiveStreamAsrWordsRecognitionResult [] AsrWordsRecognitionResultSet) { this.AsrWordsRecognitionResultSet = AsrWordsRecognitionResultSet; } /** * Get Text keyword recognition result, which is valid when `Type` is `OcrWordsRecognition`. * @return OcrWordsRecognitionResultSet Text keyword recognition result, which is valid when `Type` is `OcrWordsRecognition`. */ public LiveStreamOcrWordsRecognitionResult [] getOcrWordsRecognitionResultSet() { return this.OcrWordsRecognitionResultSet; } /** * Set Text keyword recognition result, which is valid when `Type` is `OcrWordsRecognition`. * @param OcrWordsRecognitionResultSet Text keyword recognition result, which is valid when `Type` is `OcrWordsRecognition`. */ public void setOcrWordsRecognitionResultSet(LiveStreamOcrWordsRecognitionResult [] OcrWordsRecognitionResultSet) { this.OcrWordsRecognitionResultSet = OcrWordsRecognitionResultSet; } /** * Get Full speech recognition result, which is valid when `Type` is `AsrFullTextRecognition`. * @return AsrFullTextRecognitionResultSet Full speech recognition result, which is valid when `Type` is `AsrFullTextRecognition`. */ public LiveStreamAsrFullTextRecognitionResult [] getAsrFullTextRecognitionResultSet() { return this.AsrFullTextRecognitionResultSet; } /** * Set Full speech recognition result, which is valid when `Type` is `AsrFullTextRecognition`. * @param AsrFullTextRecognitionResultSet Full speech recognition result, which is valid when `Type` is `AsrFullTextRecognition`. */ public void setAsrFullTextRecognitionResultSet(LiveStreamAsrFullTextRecognitionResult [] AsrFullTextRecognitionResultSet) { this.AsrFullTextRecognitionResultSet = AsrFullTextRecognitionResultSet; } /** * Get Full text recognition result, which is valid when `Type` is `OcrFullTextRecognition`. * @return OcrFullTextRecognitionResultSet Full text recognition result, which is valid when `Type` is `OcrFullTextRecognition`. */ public LiveStreamOcrFullTextRecognitionResult [] getOcrFullTextRecognitionResultSet() { return this.OcrFullTextRecognitionResultSet; } /** * Set Full text recognition result, which is valid when `Type` is `OcrFullTextRecognition`. * @param OcrFullTextRecognitionResultSet Full text recognition result, which is valid when `Type` is `OcrFullTextRecognition`. */ public void setOcrFullTextRecognitionResultSet(LiveStreamOcrFullTextRecognitionResult [] OcrFullTextRecognitionResultSet) { this.OcrFullTextRecognitionResultSet = OcrFullTextRecognitionResultSet; } public LiveStreamAiRecognitionResultItem() { } /** * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, * and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. */ public LiveStreamAiRecognitionResultItem(LiveStreamAiRecognitionResultItem source) { if (source.Type != null) { this.Type = new String(source.Type); } if (source.FaceRecognitionResultSet != null) { this.FaceRecognitionResultSet = new LiveStreamFaceRecognitionResult[source.FaceRecognitionResultSet.length]; for (int i = 0; i < source.FaceRecognitionResultSet.length; i++) { this.FaceRecognitionResultSet[i] = new LiveStreamFaceRecognitionResult(source.FaceRecognitionResultSet[i]); } } if (source.AsrWordsRecognitionResultSet != null) { this.AsrWordsRecognitionResultSet = new LiveStreamAsrWordsRecognitionResult[source.AsrWordsRecognitionResultSet.length]; for (int i = 0; i < source.AsrWordsRecognitionResultSet.length; i++) { this.AsrWordsRecognitionResultSet[i] = new LiveStreamAsrWordsRecognitionResult(source.AsrWordsRecognitionResultSet[i]); } } if (source.OcrWordsRecognitionResultSet != null) { this.OcrWordsRecognitionResultSet = new LiveStreamOcrWordsRecognitionResult[source.OcrWordsRecognitionResultSet.length]; for (int i = 0; i < source.OcrWordsRecognitionResultSet.length; i++) { this.OcrWordsRecognitionResultSet[i] = new LiveStreamOcrWordsRecognitionResult(source.OcrWordsRecognitionResultSet[i]); } } if (source.AsrFullTextRecognitionResultSet != null) { this.AsrFullTextRecognitionResultSet = new LiveStreamAsrFullTextRecognitionResult[source.AsrFullTextRecognitionResultSet.length]; for (int i = 0; i < source.AsrFullTextRecognitionResultSet.length; i++) { this.AsrFullTextRecognitionResultSet[i] = new LiveStreamAsrFullTextRecognitionResult(source.AsrFullTextRecognitionResultSet[i]); } } if (source.OcrFullTextRecognitionResultSet != null) { this.OcrFullTextRecognitionResultSet = new LiveStreamOcrFullTextRecognitionResult[source.OcrFullTextRecognitionResultSet.length]; for (int i = 0; i < source.OcrFullTextRecognitionResultSet.length; i++) { this.OcrFullTextRecognitionResultSet[i] = new LiveStreamOcrFullTextRecognitionResult(source.OcrFullTextRecognitionResultSet[i]); } } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap map, String prefix) { this.setParamSimple(map, prefix + "Type", this.Type); this.setParamArrayObj(map, prefix + "FaceRecognitionResultSet.", this.FaceRecognitionResultSet); this.setParamArrayObj(map, prefix + "AsrWordsRecognitionResultSet.", this.AsrWordsRecognitionResultSet); this.setParamArrayObj(map, prefix + "OcrWordsRecognitionResultSet.", this.OcrWordsRecognitionResultSet); this.setParamArrayObj(map, prefix + "AsrFullTextRecognitionResultSet.", this.AsrFullTextRecognitionResultSet); this.setParamArrayObj(map, prefix + "OcrFullTextRecognitionResultSet.", this.OcrFullTextRecognitionResultSet); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy