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. [API Development](/categories/api)
4. /
5. keshunchen/baiduocr

ActiveLibrary[API Development](/categories/api)

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

Baidu OCR API for Laravel

v1.1(7y ago)2388MITPHPPHP &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 yesterday

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

Popularity15

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

2597d 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

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[veryfi/veryfi-php

veryfi sdk for php

16129.2k](/packages/veryfi-veryfi-php)

PHPackages © 2026

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