Skip to content

Instantly share code, notes, and snippets.

View DharmarajX24's full-sized avatar
📡
REST-ing

Dharmaraj DharmarajX24

📡
REST-ing
View GitHub Profile
import cv2
import pytesseract
camera = cv2.VideoCapture(0)
cv2.namedWindow("Image Capture")
def capture_image_and_extract_text():
ret, image = camera.read()
text = pytesseract.image_to_string(image)
print(text)