Run this model with HF Jobs
Run asadahsan148/scos-corner-detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/asadahsan148/scos-corner-detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/asadahsan148/scos-corner-detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use asadahsan148/scos-corner-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use asadahsan148/scos-corner-detector with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("asadahsan148/scos-corner-detector", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
SCOS Snooker Table Corner Detector
Detects the 4 corners of a snooker table (TL, TR, BR, BL) for automatic perspective calibration in the SCOS (Snooker Club Operating System).
Replaces manual click-to-calibrate with a single model inference call.
Model Details
- Architecture: YOLOv8s-pose (keypoint detection)
- Keypoints: 4 (Top-Left, Top-Right, Bottom-Right, Bottom-Left)
- Image size: 640x640
- Class:
table(1 class)
Usage
from ultralytics import YOLO
model = YOLO('asadahsan148/scos-corner-detector') # auto-download from HF Hub
results = model('frame.jpg')
# Get corners: [TL, TR, BR, BL]
corners = results[0].keypoints.xy[0].cpu().numpy()
# corners[0] = TL, corners[1] = TR, corners[2] = BR, corners[3] = BL
SCOS Integration
The SCOS backend auto-calibration route calls the HF Space inference endpoint, which runs this model and returns the 4 corner coordinates directly. These are fed into the existing perspective warp pipeline without any manual input.
Training Data
Annotated frames extracted from live CCTV footage of snooker tables. Labels: 4 keypoints per frame in YOLO pose format.
- Downloads last month
- 26