Skip to content

Commit 3e8a633

Browse files
committed
Update API DocOcrMax: add request parameters OcrValueStandard.
1 parent 5894d77 commit 3e8a633

File tree

3 files changed

+56
-14
lines changed

3 files changed

+56
-14
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-10-17 Version: 3.15.1
2+
- Update API DocOcrMax: add request parameters OcrValueStandard.
3+
4+
15
2025-10-11 Version: 3.15.0
26
- Support API DeepfakeDetectIntlStream.
37

src/Cloudauthintl.php

Lines changed: 38 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,10 @@ public function checkVerifyLog($request)
754754
}
755755

756756
/**
757-
* 凭证识别查询.
757+
* Credential Recognition Query.
758+
*
759+
* @remarks
760+
* After obtaining the TransactionId, you can use this interface on the server side to get the corresponding authentication result.
758761
*
759762
* @param Request - CredentialGetResultIntlRequest
760763
* @param runtime - runtime options for this request RuntimeOptions
@@ -793,7 +796,10 @@ public function credentialGetResultIntlWithOptions($request, $runtime)
793796
}
794797

795798
/**
796-
* 凭证识别查询.
799+
* Credential Recognition Query.
800+
*
801+
* @remarks
802+
* After obtaining the TransactionId, you can use this interface on the server side to get the corresponding authentication result.
797803
*
798804
* @param Request - CredentialGetResultIntlRequest
799805
*
@@ -896,7 +902,10 @@ public function credentialRecognitionIntl($request)
896902
}
897903

898904
/**
899-
* 凭证识别提交.
905+
* Credential Recognition Submission.
906+
*
907+
* @remarks
908+
* Initialization interface for credential recognition OCR, through which you can obtain the transactionId.
900909
*
901910
* @param Request - CredentialSubmitIntlRequest
902911
* @param runtime - runtime options for this request RuntimeOptions
@@ -965,7 +974,10 @@ public function credentialSubmitIntlWithOptions($request, $runtime)
965974
}
966975

967976
/**
968-
* 凭证识别提交.
977+
* Credential Recognition Submission.
978+
*
979+
* @remarks
980+
* Initialization interface for credential recognition OCR, through which you can obtain the transactionId.
969981
*
970982
* @param Request - CredentialSubmitIntlRequest
971983
*
@@ -1241,7 +1253,10 @@ public function deepfakeDetectIntl($request)
12411253
}
12421254

12431255
/**
1244-
* deepfake文件流api.
1256+
* deepfake file stream API.
1257+
*
1258+
* @remarks
1259+
* Input a face image and use the algorithm to detect if there is a risk of deepfake. This includes risk scenarios such as AIGC-generated faces, deepfake face swaps, template faces, and rephotographed faces, and outputs risk labels and confidence scores.
12451260
*
12461261
* @param Request - DeepfakeDetectIntlStreamRequest
12471262
* @param runtime - runtime options for this request RuntimeOptions
@@ -1304,7 +1319,10 @@ public function deepfakeDetectIntlStreamWithOptions($request, $runtime)
13041319
}
13051320

13061321
/**
1307-
* deepfake文件流api.
1322+
* deepfake file stream API.
1323+
*
1324+
* @remarks
1325+
* Input a face image and use the algorithm to detect if there is a risk of deepfake. This includes risk scenarios such as AIGC-generated faces, deepfake face swaps, template faces, and rephotographed faces, and outputs risk labels and confidence scores.
13081326
*
13091327
* @param Request - DeepfakeDetectIntlStreamRequest
13101328
*
@@ -1707,6 +1725,11 @@ public function docOcr($request)
17071725
public function docOcrMaxWithOptions($request, $runtime)
17081726
{
17091727
$request->validate();
1728+
$query = [];
1729+
if (null !== $request->ocrValueStandard) {
1730+
@$query['OcrValueStandard'] = $request->ocrValueStandard;
1731+
}
1732+
17101733
$body = [];
17111734
if (null !== $request->docPage) {
17121735
@$body['DocPage'] = $request->docPage;
@@ -1761,6 +1784,7 @@ public function docOcrMaxWithOptions($request, $runtime)
17611784
}
17621785

17631786
$req = new OpenApiRequest([
1787+
'query' => Utils::query($query),
17641788
'body' => Utils::parseToMap($body),
17651789
]);
17661790
$params = new Params([
@@ -1983,7 +2007,7 @@ public function faceCompare($request)
19832007
}
19842008

19852009
/**
1986-
* 人脸交叉比对.
2010+
* Face Cross Comparison.
19872011
*
19882012
* @param Request - FaceCrossCompareIntlRequest
19892013
* @param runtime - runtime options for this request RuntimeOptions
@@ -2062,7 +2086,7 @@ public function faceCrossCompareIntlWithOptions($request, $runtime)
20622086
}
20632087

20642088
/**
2065-
* 人脸交叉比对.
2089+
* Face Cross Comparison.
20662090
*
20672091
* @param Request - FaceCrossCompareIntlRequest
20682092
*
@@ -3232,7 +3256,7 @@ public function queryFaceGroup($request)
32323256
}
32333257

32343258
/**
3235-
* 查询人脸记录.
3259+
* Query Face Records.
32363260
*
32373261
* @param Request - QueryFaceRecordRequest
32383262
* @param runtime - runtime options for this request RuntimeOptions
@@ -3299,7 +3323,7 @@ public function queryFaceRecordWithOptions($request, $runtime)
32993323
}
33003324

33013325
/**
3302-
* 查询人脸记录.
3326+
* Query Face Records.
33033327
*
33043328
* @param Request - QueryFaceRecordRequest
33053329
*
@@ -3317,7 +3341,7 @@ public function queryFaceRecord($request)
33173341
}
33183342

33193343
/**
3320-
* 获取临时token.
3344+
* Get Temporary Token.
33213345
*
33223346
* @param Request - TempAccessTokenIntlRequest
33233347
* @param runtime - runtime options for this request RuntimeOptions
@@ -3356,7 +3380,7 @@ public function tempAccessTokenIntlWithOptions($request, $runtime)
33563380
}
33573381

33583382
/**
3359-
* 获取临时token.
3383+
* Get Temporary Token.
33603384
*
33613385
* @param Request - TempAccessTokenIntlRequest
33623386
*
@@ -3374,7 +3398,7 @@ public function tempAccessTokenIntl($request)
33743398
}
33753399

33763400
/**
3377-
* 获取文件临时地址
3401+
* Get Temporary File URL.
33783402
*
33793403
* @param Request - TempOssUrlIntlRequest
33803404
* @param runtime - runtime options for this request RuntimeOptions
@@ -3413,7 +3437,7 @@ public function tempOssUrlIntlWithOptions($request, $runtime)
34133437
}
34143438

34153439
/**
3416-
* 获取文件临时地址
3440+
* Get Temporary File URL.
34173441
*
34183442
* @param Request - TempOssUrlIntlRequest
34193443
*

src/Models/DocOcrMaxRequest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ class DocOcrMaxRequest extends Model
5353
*/
5454
public $ocrModel;
5555

56+
/**
57+
* @var string
58+
*/
59+
public $ocrValueStandard;
60+
5661
/**
5762
* @var string
5863
*/
@@ -82,6 +87,7 @@ class DocOcrMaxRequest extends Model
8287
'merchantBizId' => 'MerchantBizId',
8388
'merchantUserId' => 'MerchantUserId',
8489
'ocrModel' => 'OcrModel',
90+
'ocrValueStandard' => 'OcrValueStandard',
8591
'productCode' => 'ProductCode',
8692
'prompt' => 'Prompt',
8793
'sceneCode' => 'SceneCode',
@@ -132,6 +138,10 @@ public function toArray($noStream = false)
132138
$res['OcrModel'] = $this->ocrModel;
133139
}
134140

141+
if (null !== $this->ocrValueStandard) {
142+
$res['OcrValueStandard'] = $this->ocrValueStandard;
143+
}
144+
135145
if (null !== $this->productCode) {
136146
$res['ProductCode'] = $this->productCode;
137147
}
@@ -195,6 +205,10 @@ public static function fromMap($map = [])
195205
$model->ocrModel = $map['OcrModel'];
196206
}
197207

208+
if (isset($map['OcrValueStandard'])) {
209+
$model->ocrValueStandard = $map['OcrValueStandard'];
210+
}
211+
198212
if (isset($map['ProductCode'])) {
199213
$model->productCode = $map['ProductCode'];
200214
}

0 commit comments

Comments
 (0)