def RecognizeCar(self, request): """腾讯云车辆属性识别可对汽车车身及车辆属性进行检测与识别,目前支持11种车身颜色、20多种车型、300多种品牌、4000多种车系+年款的识别,同时支持对车辆的位置进行检测。如果图片中存在多辆车,会分别输出每辆车的车型和坐标。 > - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。 :param request: Request instance for RecognizeCar. :type request: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarRequest` :rtype: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarResponse` """ try: params = request._serialize() body = self.call("RecognizeCar", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.RecognizeCarResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def RecognizeCar(self, request): """腾讯云车辆属性识别可对汽车车身及车辆属性进行检测与识别,目前支持11种车身颜色、20多种车型、300多种品牌、4000多种车系+年款的识别,同时支持对车标的位置进行检测。 :param request: 调用RecognizeCar所需参数的结构体。 :type request: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarRequest` :rtype: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarResponse` """ try: params = request._serialize() body = self.call("RecognizeCar", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.RecognizeCarResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def RecognizeCar(self, request): """车辆识别可对图片中车辆的车型进行识别,可识别7000多种车型,输出车辆的品牌(如路虎)、车系(如神行者2)、类型(如中型SUV)、颜色、年份和坐标等信息,覆盖轿车、SUV、大型客车等市面常见车。如果图片中存在多辆车,会分别输出每辆车的车型和坐标。 > - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。 :param request: Request instance for RecognizeCar. :type request: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarRequest` :rtype: :class:`tencentcloud.tiia.v20190529.models.RecognizeCarResponse` """ try: params = request._serialize() headers = request.headers body = self.call("RecognizeCar", params, headers=headers) response = json.loads(body) if "Error" not in response["Response"]: model = models.RecognizeCarResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)