
Security News
Static vs. Runtime Reachability: Insights from Latio’s On the Record Podcast
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
This project is designed to train and use an Optical Character Recognition (OCR) model for recognizing characters in CAPTCHA images.
mb_capcha_ocr/
: Contains the core OCR model and prediction logic.train_model/
: Contains the training script for the OCR model.Clone the repository:
git clone https://github.com/thedtvn/mbbank-capcha-ocr
cd mbbank-capcha-ocr
cd train_model
Create and activate a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
Install the required dependencies:
pip install -r train_requirements.txt
Place your training and testing images in the dataset/
directory. The images should be named in the format
{label}.(png|jpg|jpeg)
.
Run the training script:
python train.py
The trained model will be saved as model.onnx
in the directory.
from PIL import Image
from mb_capcha_ocr import OcrModel
model = OcrModel() # model_path optional if using custom model
img = Image.open("path_to_image.png")
predicted_text = model.predict(img)
print(predicted_text)
train_model/train.py
: Script to train the OCR model.mb_capcha_ocr/predict.py
: Script to predict text from an image using the trained OCR model.requirements.txt
: List of dependencies required for the project.This project is licensed under the MIT License. See the LICENSE
file for more details.
Best thanks to CookieGMVN for providing the dataset V1 V2.
FAQs
An pytorch ocr base library for MBBank lib
We found that mb-capcha-ocr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.