Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kenapa muncul error seperti ini saat dicoba? #14

Open
anggimufid opened this issue Aug 16, 2022 · 5 comments
Open

Kenapa muncul error seperti ini saat dicoba? #14

anggimufid opened this issue Aug 16, 2022 · 5 comments

Comments

@anggimufid
Copy link

Ini kenapa yaa, muncul error kayak gini?

Traceback (most recent call last):
File "ocr.py", line 47, in
ocr = KTPOCR(ktppath)
File "/var/www/html/KTP-OCR/ktpocr/extractor.py", line 16, in init
self.master_process()
File "/var/www/html/KTP-OCR/ktpocr/extractor.py", line 110, in master_process
self.extract(raw_text)
File "/var/www/html/KTP-OCR/ktpocr/extractor.py", line 106, in extract
self.result.rw = word.split('/')[1].strip()
IndexError: list index out of range

@jalal-as6
Copy link

sama nih, muncul error spt ini solusinya gmn ya?

@homidinis
Copy link

bump, saya menemukan masalah yang sama

@strongpapazola
Copy link

itu gara2 ada error ketika parsing RT RW

@strongpapazola
Copy link

solusinya cari file extractor.py trus tambahin ini
image

@strongpapazola
Copy link

strongpapazola commented Sep 13, 2024

def extract(self, extracted_result):
        # print(extracted_result.replace('\n', ' -- '))
        print(extracted_result) # TAMBAHIN INI
        exit() # TAMBAHIN INI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants