Skip to content

Instantly share code, notes, and snippets.

@Park-Developer
Created January 1, 2024 13:25
Show Gist options
  • Save Park-Developer/435e28f8e190c700d07d01d397f13092 to your computer and use it in GitHub Desktop.
Save Park-Developer/435e28f8e190c700d07d01d397f13092 to your computer and use it in GitHub Desktop.
화면캡쳐해서 이미지 추출
import pyautogui as p
import cv2
import pytesseract
p.screenshot("test.jpg")
img=cv2.imread('test.jpg')
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
text=pytesseract.image_to_string(gray,lang="kor+eng")
print(text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment