☢️
Metode Skripshit Project
  • introduction
  • getting started
  • Metode
    • Fuzzy
    • k-means
    • linear regresion
    • naive bayes
    • oreste
    • saw
    • topsis
    • wp
  • Office
  • math
  • image
  • donation
  • contributing
  • change log
  • about
Powered by GitBook
On this page
  • IMG Class
  • basic usage
  • language support :

Was this helpful?

image

PreviousmathNextdonation

Last updated 3 years ago

Was this helpful?

IMG Class

IMG class adalah class khusus untuk optical character recognition, dibangun menggunakan teserract ocr php, tesseract OCR Enggine sendiri merupakan software Open source yang dikembangkan oleh google team dengan bahasa c++ . reference :

Note

disini saya menggunakan windows sebagai OS, jadi saya termasuk windows users, untuk temen temen lain yang ingin menggunakan OCR wajib menginstall capture2text version 3.9 recommend menggunakan chocolately packages for windows. selengkapnya bisa read di sini

full doc about tesseract ocr for php

for install choco

install used administrative powershell

choco install capture2text --version 3.9

file test untuk file test bisa di check di halaman ini

basic usage

use Nagara\Src\Img\ImgParser;

// create object
$img = new ImgParser;

// put path image file
$img->parseFile("indonesia.jpg"); # default no lang
$img->parseFile("germany.jpg", "deu"); # spesific lang


// print lang support
$img->printLangSupport();

// print about this tool
$img->printAbout();

recognition type : ini akan memakan waktu untuk mengenali text secara random

use Nagara\Src\Img\ImgParser;

$img = new ImgParser;
$img->parseFile("english.jpg", "recognition");

language support :

  1. deu

  2. eng

  3. fra

  4. ita

  5. jpn

  6. spa

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
https://chocolatey.org/install
image test