\TencentAI\ModuleImage

Summary

Methods
Properties
Constants
No public methods found
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
image()
encode()
$file_type_array
$scene_array
$object_array
N/A

Properties

$file_type_array

$file_type_array : 

Type

$scene_array

$scene_array : 

Type

$object_array

$object_array : 

Type

Methods

image()

image(string  $url,   $image, boolean  $isUrl = false) : mixed

图片公共方法.

Parameters

string $url
$image
boolean $isUrl

Throws

\TencentAI\Error\TencentAIError

Returns

mixed

encode()

encode(mixed  $image) : string

对图片文件进行 base64 编码

传入本地路径或文件内容

Parameters

mixed $image

Throws

\TencentAI\Error\TencentAIError

Returns

string