PHPackages                             louissu/ssocr-php - 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. louissu/ssocr-php

ActiveLibrary

louissu/ssocr-php
=================

ssocr-php is a package which implement ssocr with pure php

v1.0.0(4y ago)023MITPHPPHP ^7.3

Since Aug 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/SZLforGithub/ssocr-php)[ Packagist](https://packagist.org/packages/louissu/ssocr-php)[ RSS](/packages/louissu-ssocr-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (8)Used By (0)

ssocr-php
=========

[](#ssocr-php)

A package implements [ssocr](https://github.com/auerswal/ssocr) with pure php.

Requirement
-----------

[](#requirement)

- Imagick extension

Installation
------------

[](#installation)

Make sure you have installed Imagick extension, and run the command below and you will get the latest version:

```
composer require louissu/ssocr-php

```

Document
--------

[](#document)

### setThreshold

[](#setthreshold)

This function sets Threshold for binarization, the value is between 0 to 1. If the result of recognizing is not satisfactory, you can adjust this value.

### setScale

[](#setscale)

This function sets the scale parameter of resize, the value means the denominator of width and height. For example, the below example means the width and height of 87.png will divide by 2.

If your image is too large to make it slow, you can adjust this value.

Example
-------

[](#example)

```
