Downloads · 30 days
51
15% of all-time downloads
leeboykt/albion-online-fiber-detection
albion-online-fiber-detection is a object detection model from leeboykt. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as cc-by-nc-nd-4.0.
A custom-trained YOLOv8 model for detecting fiber resources (cotton, flax, hemp) in Albion Online. This model is designed for game automation and resource gathering assistance.
Downloads · 30 days
51
15% of all-time downloads
All-time downloads
345
Public
Repo size
22.5 MB
Likes
0
Public
Click a slice to open those files.
.pt22.5 MB · 100%
From the Hugging Face model README
A custom-trained YOLOv8 model for detecting fiber resources (cotton, flax, hemp) in Albion Online. This model is designed for game automation and resource gathering assistance.
pip install ultralytics huggingface-hub
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
# Download model from HuggingFace
model_path = hf_hub_download(
repo_id="leeboykt/albion-online-fiber-detection",
filename="model.pt"
)
# Load the model
model = YOLO(model_path)
# Run inference on an image
results = model.predict('screenshot.jpg')
# Process results
for result in results:
boxes = result.boxes # Bounding boxes
for box in boxes:
print(f"Class: {box.cls}, Confidence: {box.conf}, Coordinates: {box.xyxy}")
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
import pyautogui
from PIL import Image
# Load model
model_path = hf_hub_download(
repo_id="leeboykt/albion-online-fiber-detection",
filename="model.pt"
)
model = YOLO(model_path)
# Capture screen and detect resources
screenshot = pyautogui.screenshot()
results = model.predict(screenshot)
# Get detections
for result in results:
for box in result.boxes:
x1, y1, x2, y2 = box.xyxy[0].tolist()
confidence = box.conf[0].item()
class_id = int(box.cls[0].item())
print(f"Detected resource at ({x1}, {y1}) with confidence {confidence:.2f}")
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
import cv2
# Load model
model_path = hf_hub_download(
repo_id="leeboykt/albion-online-fiber-detection",
filename="model.pt"
)
model = YOLO(model_path)
# Real-time detection with streaming
model.predict(source=0, show=True) # Use webcam
# or
model.predict(source='video.mp4', show=True) # Use video file
The model returns detection results with:
(x1, y1, x2, y2) coordinatesIf you use this model, please cite:
@misc{albion-fiber-detection,
author = {leeboykt},
title = {Albion Online Fiber Detection Model},
year = {2024},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/leeboykt/albion-online-fiber-detection}}
}
This model is released under CC-BY-NC-ND-4.0 license.
This model is for educational and research purposes only. Use of automation tools may violate the Terms of Service of Albion Online. Use at your own risk.