Öncelikle Merhaba herkese özellikle İsmail Hocam sizlere :))…Uzun süreden sonra sizleri görmek cok mutlu etti beni :).
Sorum şu şekil kaç haftadır cok uğraşlara rağmen yeniden sil kur işlemleri hatayı aramama rağmen bulamadım.Resimdeki yazıyı okutup yazdırmak istiyorum okumuyor.
Verilen hata şu şekil
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x7
Traceback (most recent call last):
File “C:\Users\asus\Desktop\deneme.py”, line 3, in
import cv2
File “C:\Python27\lib\site-packages\cv2_init_.py”, line 3, in
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
Kodlarım ise şu şekilde
import pytesseract
from PIL import Image
import cv2
Resim = Image.open('indir.png')
ekran = pytesseract.image_to_string(Resim,lang='eng')
print ekran
Traceback (most recent call last):
File "C:\Python37\lib\site-packages\pytesseract\pytesseract.py", line 184, in run_tesseract
proc = subprocess.Popen(cmd_args, **subprocess_args())
File "C:\Python37\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Python37\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Sistem belirtilen dosyayı bulamıyor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\asus\Desktop\deneme.py", line 6, in <module>
ekran = pytesseract.image_to_string(Resim,lang='eng')
File "C:\Python37\lib\site-packages\pytesseract\pytesseract.py", line 309, in image_to_string
}[output_type]()
File "C:\Python37\lib\site-packages\pytesseract\pytesseract.py", line 308, in <lambda>
Output.STRING: lambda: run_and_get_output(*args),
File "C:\Python37\lib\site-packages\pytesseract\pytesseract.py", line 218, in run_and_get_output
run_tesseract(**kwargs)
File "C:\Python37\lib\site-packages\pytesseract\pytesseract.py", line 186, in run_tesseract
raise TesseractNotFoundError()
pytesseract.pytesseract.TesseractNotFoundError: tesseract is not installed or it's not in your path
Merhaba. Kullanmakta olduğunuz pytesseract modülü, Google’in OCR motoru olan Tesseract üzerinde çalışıyor. Modülü kullanmadan önce Tesseract’i kurmanız gerekmekte. Burada bulunan tutorialı takip edebilirsiniz.
Hocam burda dosya indirme bölümünde indirdim indirmedi rica etsem konu hakkında detaylı yardımcı olur musunuz? şimdi bende yüklü olanda no module demiyor fakat kod yazıp calıstırdıgımda hata veriyor