OpenCV를 이용하여 선택한 영역에 있는 화면을 캡처 후
Tesseract OCR를 이용하여 화면에 있는 문자를 인식하고, Azure TranslatorAPI를 이용하여 번역하는 프로그램입니다.
- Visual Studio 2017
- Tesseract 3.05
- OpenCV 3.2.0
- C++ REST SDK (Casablanca)
- Qt 5.9 (GUI)
- tinyxml2
- OCR 테스트 버튼을 통해 Tesseract OCR의 작동이 정상적인지 테스트할 수 있습니다.
- 번역 테스트 버튼을 통해 Azure TranslatorAPI의 작동이 정상적인지 테스트할 수 있습니다.
- 설정에서 사용할 OCR과 API를 선택할 수 있고(예정), 구독 키를 settings.ini 파일에 저장할 수 있습니다.
- 번역 모드 버튼을 통해 윈도우를 바꾸며 단축키를 이용해 버튼의 기능을 사용할 수 있습니다.
- 먼저 번역 모드에서 영역 선택을 통하여 캡처할 영역을 설정합니다. (Shift+S)
※ 설정한 영역에 다른 프로그램이 겹쳐지면 안됩니다.
- Azure 구독 키를 확인하고 번역을 시작합니다. (Shift+A)
프로그램을 수정하기 위해선 Tesseract OCR의 ".lib" 파일들과 cpprestsdk NuGet 패키지가 필요합니다.
After capturing the screen in the selected area using OpenCV
Tesseract A program that uses OCR to recognize characters on the screen and translate them using the Azure Translator API.
- Visual Studio 2017
- Tesseract 3.05
- OpenCV 3.2.0
- C ++ REST SDK (Casablanca)
- Qt 5.9 (GUI)
- TinyXML2
- The OCR Test button allows you to test whether the Tesseract OCR is operating normally.
- The Translation Test button lets you test whether the Azure Translator API works properly.
- You can select the OCR and API to use in your setup (scheduled), and you can save the subscription key to the settings.ini file.
- You can change the window through the translation mode button and use the function of the button with the shortcut key.
- First, set the area to capture by selecting the area in the translation mode. (Shift + S)
※ No other program should overlap the set area.
- Check your Azure subscription key and start translating. (Shift + A)
To edit the program, you need the ".lib" files from Tesseract OCR and the cpprestsdk NuGet package.