A powerful Chrome Extension designed to extract Vehicle Identification Numbers (VIN) from any image or text on your screen.
This tool uses a Hybrid Scanning Engine: it first attempts to use advanced Cloud AI (Google Gemini 2.0 / Llama 3.2) for maximum accuracy. If the internet is unstable or the server is busy, it automatically falls back to an offline OCR engine (Tesseract.js) to ensure you always get a result.
- Hybrid Intelligence: Combines the accuracy of Large Language Models (LLM) with the reliability of local OCR.
- Smart Validation: Automatically corrects common VIN OCR errors (e.g., converting 'I' to '1', 'O' to '0').
- Instant Workflow: Scans, extracts, and copies the result to your clipboard in seconds.
- Offline Fallback: Continues to work even without an internet connection using a local Wasm-based engine.
- Privacy Focused: Your API key works directly from your browser; no intermediate data collection servers.
- Clone or Download this repository to your computer.
- Open Google Chrome and navigate to
chrome://extensions. - Enable Developer mode (toggle in the top right corner).
- Click Load unpacked and select the folder containing these files.
To enable the high-accuracy AI features, you need a free API key from OpenRouter.
- Get your key from OpenRouter.ai.
- Open the file
ocr_popup.jsin a text editor (like Notepad or VS Code). - Find line 12:
const API_KEY = 'YOUR_OPENROUTER_API_KEY_HERE';
- Replace
YOUR_OPENROUTER_API_KEY_HEREwith your actual key. - Save the file and click the Reload icon on the extension in
chrome://extensions.
- Right-click anywhere on a webpage.
- Select "برنامج لنسخ ارقام الهيكل" (Scan VIN) from the menu.
- Click and drag to draw a box around the VIN number you want to copy.
- A status window will appear showing the scanning progress.
- Once finished, the VIN is automatically copied to your clipboard, and you will see a notification: "✓ Copied Successfully".
This project is licensed under the MIT License - see the LICENSE file for details.