Skip to content

Instantly share code, notes, and snippets.

@NYPDK
NYPDK / TypeRacer_OCR_Cheat.py
Last active November 6, 2020 06:46
This is a TypeRacer cheat made in python that uses OCR. Only tested on windows! You will need to install the modules that are being used. You also need to install tesseract. https://tesseract-ocr.github.io/tessdoc/4.0-with-LSTM.html#400-alpha-for-windows Good Luck... Here is a n example video: https://youtu.be/9kue8GAde-c
import pytesseract, cv2, keyboard, time, pyautogui
from pynput.mouse import Listener
# Make sure to download Tesseract and set path to the executable!
pytesseract.pytesseract.tesseract_cmd = (r'D:\\HDD Program Files\\Tesseract\\tesseract.exe')
usr_set_delay = input('Enter a delay value (Example: 0.01): ')
delay = usr_set_delay
pyautogui.PAUSE = 0