> For the complete documentation index, see [llms.txt](https://nagara.gitbook.io/myphp-tools/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nagara.gitbook.io/myphp-tools/getting-started.md).

# getting started

## Installation

#### composer install

untuk menggunakan lib ini wajib menginstall composer, seperti yang sudah di jelaskan pada halaman[ intro](https://nagara.gitbook.io/myphp-tools/#system-requiretment)

```bash
composer require nagara/metode-skripshit
```

{% hint style="danger" %}
untuk menggunakan image class OCR ( Optical  character recognition ) pada windows wajib menginstall capture2text
{% endhint %}

## OCR ( Optical Character Recognition  ) setup

install package manager chocolatey for windows

open **powershell administrative** dan paste code berikut ini. info detail tentang install chocolatey bisa baca [disini](https://chocolatey.org/install)

```bash
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
```

selanjutnya install capture2text.

install capture2text versi 3.9

```bash
choco install capture2text --version 3.9
```

#### reference&#x20;

* <https://opensource.google/projects/tesseract>
* <https://github.com/tesseract-ocr/tesseract>
* <https://github.com/thiagoalessio/tesseract-ocr-for-php>
* <https://github.com/thiagoalessio/tesseract-ocr-for-php#-note-for-windows-users>

## Example

untuk file contoh ada pada directory example

* [image](https://github.com/naagaraa/metode-skriphit/tree/main/src/example/image)
* [code](https://github.com/naagaraa/metode-skriphit/tree/main/src/example)&#x20;
