Skip to main content

YOLO-based object detection system for various industries

Project description

๐Ÿค– Galaxy Object Detection Core

Welcome to the Galaxy Object Detection Core โ€” a modular, production-ready object detection library built using YOLO and YOLOWorld architectures. This project empowers developers, researchers, and enterprises to detect and analyze a variety of objects across domains like transportation, safety, documentation, and natural resources with high precision and speed.

Developed by @muhammadhaerul.25


๐Ÿ“š Table of Contents


โœจ Key Features

  • โœ… Plug-and-play object detection with pretrained YOLO models
  • ๐ŸŽฏ Supports 20+ categories including safety gear, documents, vehicles, and minerals
  • ๐Ÿšฆ Optimized for real-time inference (30+ FPS)
  • ๐Ÿ›  Simple Python API for both batch and single-image detection
  • ๐Ÿ“Š Segmentation and detection support with metadata extraction
  • ๐ŸŒ Indonesian-optimized models for local compliance and recognition
  • ๐Ÿ“ˆ Statistical logging and dashboard integration ready

๐Ÿข Industry Applications

  • Human, Safety, Environment
  • Transportation and Infrastructure
  • Fast-Moving Consumer Goods
  • Office, Legal, Finance
  • Nature and Environment

๐Ÿ“ฆ Supported Models

๐Ÿš— Transportation

  • Vehicle Detection
  • Vehicle Plate Detection (Indonesia-specific)
  • Road Damage Detection

๐Ÿ—๏ธ Construction & Safety

  • Personal Protective Equipment (PPE v1, v2)
  • PPE Segmentation (v2)
  • Human Head Detection

๐Ÿ“Œ Documentation

  • Indonesian KTP Detection
  • QR Code Detection
  • Invoice & Receipt Detection
  • Meterai (Stamp Duty) v1 & v2

๐ŸŒ‹ Minerals

  • Mineral Boulder Detection
  • Boulder Segmentation
  • Mineral Soil Detection

๐Ÿงช Coming Soon Models


โš™๏ธ Installation

๐Ÿ“‹ Requirements

  • Python >= 3.10
  • CUDA-compatible GPU (optional but recommended)
  • pip

๐Ÿ”ง Install via PyPI (Recommended)

pip install galaxy-object-detection-core

๐Ÿงช Install via GitHub (Latest Development Version)

pip install git+https://github.com/muhammadhaerul/Galaxy-Object-Detection-Core.git

๐Ÿ’ป Install via Clone

# Clone the repository
$ git clone https://github.com/muhammadhaerul/Galaxy-Object-Detection-Core.git
$ cd galaxy-object-detection-core

# Install dependencies
$ pip install -r requirements.txt

๐Ÿš€ Quick Start

๐Ÿ” Detect a Single Image

from galaxy_object_detection_core.GalaxyObjectDetector import GalaxyObjectDetector

img = "images_sample/sample1.jpg"

# Detect PPE
result = GalaxyObjectDetector.detect_ppe(img, version="v2")
print("Saved at:", result)

# Detect Vehicle
result = GalaxyObjectDetector.detect_vehicle(img)

# Segment PPE
result = GalaxyObjectDetector.segment_ppe(img)

# Detect Custom Objects (YOLO World)
result = GalaxyObjectDetector.detect_custom_object(img, ["helmet", "person"])

๐Ÿง  Available Detection APIs

Generic

  • detect_object(model_path: str, image_path: str)
  • segment_object(model_path: str, image_path: str)

Human, Safety, Environment

  • detect_human_head(image_path: str)
  • detect_ppe(image_path: str, version: Literal['v1', 'v2', 'latest'])
  • segment_ppe(image_path: str)

Transportation and Infrastructure

  • detect_vehicle(image_path: str)
  • detect_vehicle_plate(image_path: str)
  • detect_road_damage(image_path: str)

Fast-Moving Consumer Goods

  • detect_product_fmcg(image_path: str)

Office, Legal, Finance

  • detect_ktp(image_path: str)
  • detect_invoice_and_receipt(image_path: str)
  • detect_meterai(image_path: str, version: Literal['v1', 'v2', 'latest'])
  • detect_qrcode(image_path: str)

Nature and Environment

  • detect_mineral_boulder(image_path: str)
  • segment_mineral_boulder(image_path: str)
  • detect_mineral_soil(image_path: str)

YOLO World

  • detect_custom_object(image_path: str, list_object_to_detect: List[str])

๐Ÿ“ Project Structure

galaxy-object-detection-core/
โ”œโ”€โ”€ galaxy_object_detection_core/
โ”‚   โ”œโ”€โ”€ GalaxyObjectDetector.py       # Main detection API class
โ”‚   โ””โ”€โ”€ models/                       # YOLO model weights (excluded from PyPI, downloaded externally)
โ”œโ”€โ”€ images_sample/                   # Example input images
โ”œโ”€โ”€ images_detected/                 # Detection result outputs
โ”œโ”€โ”€ main.py                          # Sample runner
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿ“ธ Example Results

Example Output Path
Human Head Detection images_detected/result_of_head_using_model_human_head_detector_yolo8n.jpg
PPE Detection images_detected/result_of_head_using_model_personal_protective_equipment_detector_yolo8n_v2.jpg
PPE Segmentation images_detected/result_of_head_using_model_personal_protective_equipment_segmentator_yolo8n_v2.jpg
Vehicle Detection images_detected/result_of_model_vehicle_detector_yolo11n_v1.jpg
License Plate Detection images_detected/result_of_model_vehicle_plate_detector_yolo8n_v1.jpg
Road Damage Detection images_detected/result_of_model_road_damage_detector_yolo8n.jpg
Invoice Detection images_detected/result_of_invoice_using_model_invoice_and_receipt_detector_yolo8n.jpg
Meterai Detection images_detected/result_of_meterai_using_model_meterai_detector_yolo8n_v2.jpg
Custom Detection (Fish) images_detected/result_of_fish_using_custom_detect_plant_fish.jpg
Custom Detection (Helmet/Person) images_detected/result_of_head_using_custom_detect_helmet_person.jpg

โš ๏ธ Make sure to run inference at least once before using visual outputs.


๐Ÿ›  Contributing

We welcome your contributions to improve this library!

๐Ÿ“Œ To contribute:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/add-new-detector)
  3. Commit your changes (git commit -am 'Add new model support')
  4. Push to the branch (git push origin feature/add-new-detector)
  5. Create a new Pull Request ๐Ÿš€

๐Ÿ“ Contribution Ideas

  • Add new YOLOv8 detectors (e.g., fire extinguisher, safety signs)
  • Improve confidence filtering and logging
  • Web UI integration using Streamlit or Flask
  • Export results to JSON/CSV/Database

๐Ÿ“ License

This project is licensed under the MIT License. See the LICENSE file for more information.


Developed by @muhammadhaerul.25 "Build safer, smarter systems with AI."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galaxy_object_detection_core-0.1.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

galaxy_object_detection_core-0.1.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file galaxy_object_detection_core-0.1.4.tar.gz.

File metadata

File hashes

Hashes for galaxy_object_detection_core-0.1.4.tar.gz
Algorithm Hash digest
SHA256 0ee37ed1df8a1914eaa18482bd3041973523fbec6082e861fd33a1cb6c4eb651
MD5 8ecca908505d341c364cc90b9aa643ca
BLAKE2b-256 9f78f4df7e411f67f12648cc0ef4036a72fa409d126c85765168a2c4497e8e46

See more details on using hashes here.

File details

Details for the file galaxy_object_detection_core-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for galaxy_object_detection_core-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e675e01e51250824c043ef8cc0c05a5b4f8571eff65c8c81d1f18a5d5f3a2e90
MD5 0f1db9fdecfb2f318af59b44c308446d
BLAKE2b-256 ee7c3d2d19449b48ea109326a13acd0c7bebb1e740cd91cd9668034223bee4be

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page