Skip to content

Instantly share code, notes, and snippets.

View LoggeL's full-sized avatar
🦆
Just pressing buttons

Logge LoggeL

🦆
Just pressing buttons
View GitHub Profile
@dantmnf
dantmnf / winocr.py
Last active November 26, 2023 09:23
WinRT OcrEngine from Python
import sys
import asyncio
import base64
import copy
import pprint
# pip3 install winrt
from winrt.windows.media.ocr import OcrEngine
from winrt.windows.globalization import Language
from winrt.windows.graphics.imaging import *
from winrt.windows.security.cryptography import CryptographicBuffer