Skip to main content

Train and inference for Computer Vision models made easy.

Project description

AngelCV

AngelCV is an open-source, commercially-friendly computer vision library designed for ease of use, power, and extensibility.

AngelCV is a project by Angel Protection System, a company at the forefront of safeguarding schools, hospitals, and other vital community spaces. They specialize in intelligent security and surveillance systems, including cutting-edge firearm detection technology that provides critical, real-time information to 911 and first responders, playing a vital role in saving lives.

Our mission is to provide cutting-edge deep learning models and tools that you can seamlessly integrate into your projects, whether for research, personal use, or commercial applications. All our code and pre-trained models are under the Apache 2.0 License, giving you the freedom to innovate without restrictive licensing.

A note on our open-source commitment: Angel Protection System initially developed AngelCV to enhance its advanced computer vision capabilities for security applications. We are excited to share it with the open-source community to foster innovation and allow everyone to benefit from and contribute to its development.

✨ Why AngelCV?

  • Open & Free for Commercial Use: Build your next big thing without worrying about licensing fees or restrictions. Our Apache 2.0 license covers both the library and our provided pre-trained models.
  • State-of-the-Art Models: We start with robust implementations like YOLOv10 for object detection and plan to expand to other vision tasks (classification, segmentation, oriented bounding boxes) and model architectures.
  • Developer-Friendly Interface: A clean, intuitive API (see ObjectDetectionModel and InferenceResult) makes common tasks like training, inference, and evaluation straightforward.
  • Flexible Configuration: Easily customize model architectures, training parameters, and datasets using YAML-based configuration files.
  • Community Driven (Future): We aim to build a community around AngelCV.

🚀 Getting Started

Installation

AngelCV will be available on PyPI. You can install it using pip:

pip install angelcv

Make sure you have PyTorch installed, as it's a primary dependency. You can find PyTorch installation instructions at pytorch.org.

Quick Start: Object Detection

Here's a simple example of how to load a pre-trained YOLOv10 model and perform inference on an image:

from angelcv import ObjectDetectionModel

# Load a pre-trained YOLOv10n model (will download if not found locally)
# You can also specify a path to a local .ckpt or .pt file,
# or a .yaml configuration file to initialize a new model.
model = ObjectDetectionModel("yolov10n.ckpt")

# Perform inference on an image
# Source can be a file path, URL, PIL image, torch.Tensor, or numpy array.
results = model.predict("path/to/your/image.jpg")

# Process and display results
for result in results:
    print(f"Found {len(result.boxes.xyxy)} objects.")
    # Access bounding boxes (various formats available, e.g., result.boxes.xyxy_norm)
    # Access confidences: result.boxes.confidences
    # Access class IDs: result.boxes.class_label_ids
    # Access class labels (if available): result.boxes.labels

    # Show the annotated image
    result.show()

    # Save the annotated image
    result.save("output_image.jpg")

📚 Dive Deeper

For more detailed information, check out our documentation:

  • Getting Started: Your first stop for installation and a quick tour.
  • Object Detection: Learn about our object detection capabilities, focusing on YOLOv10.
  • Configuration: Understand how to use and customize model, training, and dataset configurations.
  • API Interfaces: Explore the main Python classes you'll interact with.

🤝 Contributing

Interested in contributing? We welcome contributions of all kinds, from bug fixes to new features. (TODO: Link to contribution guidelines when ready).

🛠️ Development and Support

The primary developer and maintainer of AngelCV is Iu Ayala from Gradient Insight. Gradient Insight partners with businesses to design and build custom AI-powered computer vision systems, turning complex visual data into actionable insights. You can learn more about their work at gradientinsight.com.

📄 License

AngelCV is licensed under the Apache 2.0 License. See the LICENSE file for more details.

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

angelcv-0.1.3.tar.gz (76.5 kB view details)

Uploaded Source

Built Distribution

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

angelcv-0.1.3-py3-none-any.whl (82.9 kB view details)

Uploaded Python 3

File details

Details for the file angelcv-0.1.3.tar.gz.

File metadata

  • Download URL: angelcv-0.1.3.tar.gz
  • Upload date:
  • Size: 76.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.8

File hashes

Hashes for angelcv-0.1.3.tar.gz
Algorithm Hash digest
SHA256 95e2358bc313d2a7a88693e739d2b6d21d516e956e1d8cf2b39fdeda816e24cf
MD5 6e4017d0270120494b2a1250caaae1c7
BLAKE2b-256 582e3c7de900e60d5ba81c03c98b78c357850c215f54772fef9543b5727d71f8

See more details on using hashes here.

File details

Details for the file angelcv-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: angelcv-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 82.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.7.8

File hashes

Hashes for angelcv-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 330c63505e66fc4f4b6fd650d05b5f37b798a11e18ca6b9e9f8e9d93a592611d
MD5 96327b55f477207a6fe3afa6a2c6760a
BLAKE2b-256 77053e90d281786c7f2e5b9fcd4dc16ba4c7e073c1d438cb0eeb3cfd184c1482

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