PHPackages                             keshunchen/baiduocr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. keshunchen/baiduocr

ActiveLibrary

keshunchen/baiduocr
===================

Baidu OCR API for Laravel

v1.1(7y ago)1388MITPHPPHP &gt;=5.5.9

Since Sep 1Pushed 7y agoCompare

[ Source](https://github.com/keshunchen/baiduocr)[ Packagist](https://packagist.org/packages/keshunchen/baiduocr)[ RSS](/packages/keshunchen-baiduocr/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

百度文字识别
======

[](#百度文字识别)

百度文字识别API在Laravel5中的简单封装，具体API使用详情参见[百度文字识别API](http://ai.baidu.com/tech/ocr)

Install
-------

[](#install)

直接在`composer.json`中添加`"keshunchen/baiduocr": "~1.0"`或者直接`composer require "keshunchen/baiduocr"`。

For `laravel5`:
---------------

[](#for-laravel5)

#### 1.安装该插件

[](#1安装该插件)

#### 2.在`config/app.php`文件内添加

[](#2在configappphp文件内添加)

```
    'providers' => [
        Keshunchen\Baiduocr\BaiduocrServiceProvider::class,
    ],

    'aliases' => [
        'Baiduocr' => Keshunchen\Baiduocr\BaiduocrFacade::class,
    ],
```

#### 3. 配置文件

[](#3-配置文件)

```
    php artisan vendor:publish
```

修改config/baiduocr.php配置百度API参数

#### 4. 使用

[](#4-使用)

```
    \Baiduocr::idcard($image, $isFront, $options);
```

License
-------

[](#license)

MIT

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~579 days

Total

2

Last Release

2594d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/220dc438ad548703adb4650735b2498b701f2943b8ccbd86ed8656dfce7119a5?d=identicon)[keshunchen](/maintainers/keshunchen)

---

Top Contributors

[![keshunchen](https://avatars.githubusercontent.com/u/21211960?v=4)](https://github.com/keshunchen "keshunchen (1 commits)")

---

Tags

ChineseOCRbaidu

### Embed Badge

![Health badge](/badges/keshunchen-baiduocr/health.svg)

```
[![Health](https://phpackages.com/badges/keshunchen-baiduocr/health.svg)](https://phpackages.com/packages/keshunchen-baiduocr)
```

###  Alternatives

[overtrue/pinyin

Chinese to pinyin translator.

4.5k6.5M72](/packages/overtrue-pinyin)[thiagoalessio/tesseract_ocr

A wrapper to work with Tesseract OCR inside PHP.

3.0k3.3M25](/packages/thiagoalessio-tesseract-ocr)[itbdw/ip-database

IP数据库 IPV4 IPV6（解析为国家、省、市、县、运营商）

1.5k123.8k7](/packages/itbdw-ip-database)[zhuzhichao/ip-location-zh

get the ip's location info with Chinese

617212.5k11](/packages/zhuzhichao-ip-location-zh)[overtrue/chinese-calendar

中国农历转换与查询工具

557103.7k4](/packages/overtrue-chinese-calendar)[vaites/php-apache-tika

Apache Tika bindings for PHP: extracts text from documents and images (with OCR), metadata and more...

1171.5M2](/packages/vaites-php-apache-tika)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
