Choi-Hong-Jun / OMR

omr scanning application
2 stars 0 forks source link

omr_read.py 에러 #23

Closed Choi-Hong-Jun closed 6 months ago

Choi-Hong-Jun commented 6 months ago

File "C:\Users\bjgir\PycharmProjects\pythonProject1\grade.py", line 168, in uploadFile _num = self.omr_reader.extract_number(img, gray_img) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\bjgir\PycharmProjects\pythonProject1\read_omr.py", line 258, in extract_number self.temp_png_name = f'{os.path.basename(self.this_raw_answer["fpng"]).replace(".", "")}number{index}' ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 270, in basename File "", line 241, in split TypeError: expected str, bytes or os.PathLike object, not NoneType

ktiberius commented 6 months ago
self.temp_png_name = f'{os.path.basename(self.this_raw_answer["f_png"]).replace(".", "")}number{index}'

debugging 목적이라 주석 처리하고 실행해야 돼

윈도에서 path가 안맞는거 같은데 환경 바꿔서 확인해볼께