You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
581 B
26 lines
581 B
<?php
|
|
require('../../vendor/autoload.php');
|
|
use Volc\Service\ImageX;
|
|
|
|
$client = ImageX::getInstance();
|
|
|
|
// call below method if you dont set ak and sk in ~/.volc/config
|
|
$client->setAccessKey("xx");
|
|
$client->setSecretKey("xx");
|
|
|
|
$Contour = array(
|
|
'Color' => 'color',
|
|
'Size' => 0,
|
|
);
|
|
$params = array(
|
|
"Contour" => $Contour,
|
|
);
|
|
$params["ServiceId"] = "xx";
|
|
$params["Class"] = "class";
|
|
$params["Refine"] = true;
|
|
$params["StoreUri"] = "xx";
|
|
$params["OutFormat"] = "out format";
|
|
$params["TransBg"] = true;
|
|
|
|
$response = $client->getSegmentImage($params);
|
|
print_r($response); |