일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 리액트 네이티브 설치 오류
- node
- 벡터와 리스트의 차이
- react
- c++ using
- 스탠실 버퍼 시작
- 스탠실 버퍼 튜토리얼
- C++
- 리액트 네이티브 맥
- react native typescript navigation
- react native accessible
- react native typescript navigate
- html
- react-native
- unity stencil buffer
- react native mac
- 스탠실 버퍼 사용
- c++ 정보은닉
- stencil buffer
- node.js
- Expo
- 싸이월드
- react native
- react native ios 기기 연결
- cyworld
- react native typescript
- CSS
- react native 타입스크립트
- javascript
- GitHub
- Today
- Total
혀니의 이거저거 뿌시기
react-native / EXPO 에서 OCR(글자인식) 실행시키는 방법 본문
jonathanpalma/react-native-tesseract-ocr: Tesseract OCR wrapper for React Native (github.com)
GitHub - jonathanpalma/react-native-tesseract-ocr: Tesseract OCR wrapper for React Native
Tesseract OCR wrapper for React Native. Contribute to jonathanpalma/react-native-tesseract-ocr development by creating an account on GitHub.
github.com
참고한 깃헙은 여기
여기 readme 에 나와있는 움짤 아래에 click here을 눌러보면 소스코드 예제가 나온다.
react-native-tesseract-ocr/example at master · jonathanpalma/react-native-tesseract-ocr (github.com)
GitHub - jonathanpalma/react-native-tesseract-ocr: Tesseract OCR wrapper for React Native
Tesseract OCR wrapper for React Native. Contribute to jonathanpalma/react-native-tesseract-ocr development by creating an account on GitHub.
github.com
여기서 중요한거..
expo쓰다가 expo에서 쓸 수 없는 그 외부의 모듈을 사용하려면 expo eject로 빠져나와야함..
그 다음에는 옛날에 모듈 깔았던 것처럼
yarn add 패키지이름
rmdir /q/s "./node_modules" 하고
yarn install
yarn start --reset-cache
npm run android 해야됨.. ;;
그렇게하고 App.js 복붙해서 코드 돌려보면 안드로이드 스튜디오에서는 잘 실행이 됩디다..
근데 글자가 아닌것도 글자로 인식하는 오류가 있긴 한데 이거는 적당히 무시하도록 코드를 수정해줄 필요가 있을듯
++ java.io.filenotfoundexception tessdata/kor.traineddata
내가 한국어를 인식하고 싶은데 한국어 인식이 안된다고 나올때?
android/app/src/main/assets/tessdata 에 kor.traineddata라는 TRAINEDDATA를 집어넣어준 뒤에
build를 다시 실행시켜주면 된다.
인식률은 좀 떨어져서 나중에 방법을 좀 바꾸는게 좋을 듯 하다...
java.io.IOException: Could not create directory at Object.promiseMethodWrapper [as recognize] · Issue #89 · jonathanpalma/reac
when after take a picture,the Error appear in the console. pkg.json What wrong operation did I do to cause this problem? thanks
github.com
'FRONT > 리액트네이티브' 카테고리의 다른 글
react native 에 react-native-firebase-mlkit 모듈 깔고 한글인식/글자인식 성공시키기(안드로이드) (0) | 2021.08.18 |
---|---|
git pull/merge/fetch개념알기 [깃허브 협업] (0) | 2021.08.09 |
진행상황 (0) | 2021.08.05 |
expo (react-native를 쉽게 해주는) 깔고 동작해보기! (0) | 2021.07.30 |
react-native-camera 카메라/비디오 작동시키기 성공 (0) | 2021.07.26 |