Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- 함수
- 파이썬 pool
- 자료형
- javascript
- 설치
- python pool
- easyocr 기존 모델 학습
- 파이썬
- 리액트
- 파이썬 멀티프로세싱
- conda
- 기존 모델 학습
- 명령어
- react
- 가상 환경
- 파이썬 학습 테스트
- Java
- python 학습
- python
- 파이썬 기초
- Anaconda
- python easyocr 학습
- 기초
- easyocr 기존 모델
- 자바스크립트
- multiprocessing
- EasyOCR
- python 멀티프로세싱
- python multiprocessing
- python 기초
Archives
- Today
- Total
귀찮아서가끔하는블로그
[Python] easyocr 사용자 모델 학습하기 - 학습데이터 변환 본문
반응형
easyocr 사용자 모델 학습하기 - 학습데이터 변환
지난 포스팅에서 학습데이터 생성하는 법을 다뤘다.
이번 포스팅에서는 학습데이터를 변환하는 법을 다뤄보도록 할 것이다.
1. 프로젝트 설치
# 소스코드 내려받기
$ git clone https://github.com/DaveLogs/TRDG2DTRB.git
2. 학습 데이터변환
#input_path => 기존 학습 데이터 경로(변환할 데이터가 있는 경로)
#output_path => 결과 폴더 경로(없을 시 자동 생성)
python convert.py --input_path ../TextRecognitionDataGenerator/out --output_path ./output
3. 결과
python convert.py --input_path ../TextRecognitionDataGenerator/out --output_path ./output
input path: /app/easyocr_learning/TextRecognitionDataGenerator/out
output path: /app/easyocr_learning/TRDG2DTRB/output
Total file count: 50
50 / 50 Processing !!
Conversion complete!
결과 데이터 구조
-output
-images
-gt.txt
-images
-gt.txt
images
-image_00.jpg
-image_01.jpg
-image_02.jpg
...
-image_49.jpg
gt.txt
images/image_00.jpg 가
images/image_01.jpg 가게
images/image_02.jpg 가격
...
images/image_49.jpg 가이드
위와 같이 학습 데이터가 정상적으로 변환된 것을 확인할 수 있다.
참고 사이트 : https://davelogs.tistory.com/80
반응형
'Python' 카테고리의 다른 글
[Python] easyocr 사용자 모델 학습하기 - 학습 모델 테스트 (0) | 2022.07.15 |
---|---|
[Python] easyocr 사용자 모델 학습하기 - 모델 학습 (2) | 2022.07.14 |
[Python] easyocr 사용자 모델 학습하기 - 학습데이터 생성 (0) | 2022.07.12 |
[python] multiprocessing (Pool) (0) | 2022.07.08 |
[python] flask api 호출 테스트 (0) | 2022.07.06 |
Comments