ai
  • 简介
  • 百度AI
    • 人脸识别
      • 人脸库管理
      • 人脸检测
      • 人脸搜索
      • 人脸对比
      • 身份验证
    • OCR文字识别
    • 图像识别
    • 人体分析
    • nlp自然语言
  • 腾讯AI
    • OCR文字识别
    • 人脸识别
      • 人脸库管理
    • 图片特效
    • 图片识别
    • 敏感信息审核
    • 智能闲聊
    • 机器翻译
    • 基础文本分析
    • 语义解析
    • 语音识别
    • 语音合成
Powered by GitBook
On this page
  • 通用OCR识别
  • 身份证识别
  • 行驶证 驾驶证 识别
  • 营业执照识别
  • 银行卡
  • 手写体
  • 车牌
  • 名片

Was this helpful?

  1. 腾讯AI

OCR文字识别

可用路由表

名称

路由

必选参数

通用

general

image

身份证

idcard

image,card_type

行驶证驾驶证

driverlicense

image,type

营业执照

bizlicense

image

银行卡

creditcard

image

手写体

handwriting

image

车牌

plate

image

名片

bc

image

通用OCR识别

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->general();

if($res->success()){
    var_dump($res->toArray());
}else{
    var_dump($res-->getErrMsg());
}

身份证识别

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->idcard([
    'card_type' => 0  //0表示正面 1表示反面
]);

if($res->success()){
    var_dump($res->toArray());
}

行驶证 驾驶证 识别

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->driverlicense([
    'type' => 0  //0-行驶证识别  1-驾驶证识别
]);

if($res->success()){
    var_dump($res->toArray());
}

营业执照识别

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->bizlicense();

if($res->success()){
    var_dump($res->toArray());
}

银行卡

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->creditcard();

if($res->success()){
    var_dump($res->toArray());
}

手写体

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->handwriting();

if($res->success()){
    var_dump($res->toArray());
}

车牌

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->plate();

if($res->success()){
    var_dump($res->toArray());
}

名片

$path = 'path/to/some.jpg';

$res = $ai->ocr()->path($path)->bc();

if($res->success()){
    var_dump($res->toArray());
}
Previous腾讯AINext人脸识别

Last updated 6 years ago

Was this helpful?