Tesseract Translator
import subprocess import sys import os import platform import tkinter as tk from tkinter import messagebox from pathlib import Path # Check if we're running as compiled exe IS_COMPILED = getattr(sys, 'frozen', False) def create_installer_batch(): """ Create a batch file to install all dependencies """ batch_content = """@echo off echo ============================================================ echo SCREEN TRANSLATOR - DEPENDENCY INSTALLER echo ============================================================ echo. echo This script will install the required dependencies. echo Please wait... echo. echo [1/3] Installing Python packages... python -m pip install --upgrade pip python -m pip install Pillow pystray keyboard pytesseract requests deep-translator if %errorlevel% neq 0 ( echo. echo ERROR: Failed to install Python packages. echo Please make sure Python is installed and added to PATH. ...