Skip to content

instalation guide please #19

@kucingkembar

Description

@kucingkembar

sorry if I am rude, stupid, and my bad English,
I tried this "program" because I tried other "programs" but "failed" read Chinese characters
I am quite a newbie and I use windows 10, and I have some questions:
A. does CUDA 9.0 necessary to install?, I tried to install it but it requires visual-studio, and I don't know what I must di next
B. where I must put "best_accuracy_0823.pth"?
C. where I must edit :

pretrained crnn model configuration:
--output_channel 512 \
--hidden_size 256 \
--Transformation None \
--FeatureExtraction ResNet \
--SequenceModeling BiLSTM \
--Prediction CTC 

D. "change config.py file and run", what I must change in config.py?
E. I do this code and the result is below, can you help me, please?

C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR>C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\infer.py C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\demo_images\demo_0.jpg
Traceback (most recent call last):
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\infer.py", line 124, in <module>
    opt = ConfigOpt()
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\config.py", line 31, in __init__
    self.character = self.get_character()
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\Scripts\OCR\config.py", line 40, in get_character
    for line in charf:
  File "C:\Users\GIGABYTE\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 22: character maps to <undefined>

F. is this "program" have a "pre-trained model" or do I need to train it myself?
thanks for reading, and have a nice day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions