class Image

Tencent AI 图像相关能力.

Traits

Image

Constants

PORN

TERRORISM

SCENER

OBJECT

TAG

IDENTIFY

IMAGE_TO_TEXT

FUZZY

FOOD

Methods

mixed
porn(mixed $image, string $image_url = null)

智能鉴黄.

mixed
terrorism(mixed $image, string $image_url = null)

暴恐识别.

mixed
scener(mixed $image, int $format = 1, int $topk = 5)

物体场景识别 => 场景识别.

mixed
object(mixed $image, int $format = 1, int $topk = 5)

物体场景识别 => 物体识别.

mixed
tag(mixed $image)

标签识别.

mixed
identifyFlower(mixed $image)

花草识别.

mixed
identifyVehicle(mixed $image)

车辆识别.

mixed
imageToText(mixed $image, string $session_id)

看图说话:用一句话文字描述图片.

mixed
fuzzy(mixed $image)

模糊图片检测:判断一个图像的模糊程度.

mixed
food(mixed $image)

美食图片识别:识别一个图像是否为美食图像.

Details

at line 47
mixed porn(mixed $image, string $image_url = null)

智能鉴黄.

Parameters

mixed $image 支持 JPG PNG BMP 格式
string $image_url

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/jianhuang.shtml

at line 68
mixed terrorism(mixed $image, string $image_url = null)

暴恐识别.

Parameters

mixed $image 支持 JPG PNG BMP 格式
string $image_url

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/imageterrorism.shtml

at line 92
mixed scener(mixed $image, int $format = 1, int $topk = 5)

物体场景识别 => 场景识别.

快速找出图片中包含的场景信息.

Parameters

mixed $image
int $format 图片格式,只支持 JPG 格式
int $topk 返回结果个数(已按置信度倒排)[1,5]

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/visionimgidy.shtml

at line 145
mixed object(mixed $image, int $format = 1, int $topk = 5)

物体场景识别 => 物体识别.

快速找出图片中包含的物体信息.

Parameters

mixed $image
int $format 图片格式,只支持 JPG 格式
int $topk 返回结果个数(已按置信度倒排)[1,5]

Return Value

mixed

Exceptions

TencentAIException

at line 165
mixed tag(mixed $image)

标签识别.

识别一个图像的标签信息,对图像分类.

Parameters

mixed $image 支持 JPG PNG BMP 格式

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/imagetag.shtml

at line 198
mixed identifyFlower(mixed $image)

花草识别.

Parameters

mixed $image 支持 JPG PNG BMP 格式

Return Value

mixed

Exceptions

TencentAIException

at line 212
mixed identifyVehicle(mixed $image)

车辆识别.

Parameters

mixed $image 支持 JPG PNG BMP 格式

Return Value

mixed

Exceptions

TencentAIException

at line 229
mixed imageToText(mixed $image, string $session_id)

看图说话:用一句话文字描述图片.

Parameters

mixed $image 支持 JPG PNG BMP 格式
string $session_id

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/imgtotext.shtml

at line 247
mixed fuzzy(mixed $image)

模糊图片检测:判断一个图像的模糊程度.

Parameters

mixed $image 支持 JPG PNG BMP 格式

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/imagefuzzy.shtml

at line 263
mixed food(mixed $image)

美食图片识别:识别一个图像是否为美食图像.

Parameters

mixed $image 支持 JPG PNG BMP 格式

Return Value

mixed

Exceptions

TencentAIException

See also

https://ai.qq.com/doc/imagefood.shtml