AI Scout
AI Scout is a flexible object detection system that combines YOLO with LLMs for intelligent object identification and analysis.
Quick Start
import os
from aiscout import Scout
from aiscout.providers.anthropic import LLM
# Initialize with your preferred LLM
api_key = os.getenv("ANTHROPIC_API_KEY")
llm = LLM(api_key=api_key, model="claude-3-7-sonnet-20250219")
scout = Scout(llm=llm)
# Run detection
result = scout.detect(
"path/to/image.jpg",
target_list=["target1", "target2"],
confidence_threshold=0.2
)
# Save annotated image
result["annotated_image"].save("output.jpg")
Features
- Combines YOLO and LLM capabilities for enhanced object detection
- Supports multiple LLM providers (Anthropic Claude, OpenAI GPT-4V)
- Advanced prompt customization and management
- Iterative refinement with configurable iterations
- Debug mode for development
- Flexible target specification
- Provider-agnostic interface
Requirements
- Python >=3.9
- ultralytics (YOLO)
- requests
- rich
- Anthropic API key (for Claude) or OpenAI API key (for GPT-4V)
Installation
pip install aiscout
Configuration
Set your API key as an environment variable:
# For Anthropic Claude
export ANTHROPIC_API_KEY="your_api_key"
# For OpenAI
export OPENAI_API_KEY="your_api_key"
Advanced Usage
# Enable debug mode
scout = Scout(llm=llm, debug_mode=True)
# Configure detection parameters
result = scout.detect(
"image.jpg",
target_list=["target1", "target2"],
confidence_threshold=0.2,
min_iterations=3,
max_iterations=6
)
Prompt Customization
from aiscout.prompts import prompt_manager
# Replace entire prompt
prompt_manager.set_prompt(
"identify_objects",
"""Analyze this image and identify objects with these requirements:
1. Focus on vehicles and traffic signs
2. Identify make and model when possible
3. Note any safety hazards"""
)
# Append additional instructions
prompt_manager.append_to_prompt(
"analyze_targets",
"Additional requirement: Prioritize specific vehicle types over generic classes"
)
# Reset prompts
prompt_manager.reset_prompt("identify_objects") # Reset specific prompt
prompt_manager.reset_all() # Reset all prompts
Available prompt types:
identify_objects: Initial object identificationanalyze_targets: Target analysis and mappingrefine_detections: Detection refinement rules
Examples
The examples directory contains:
anthropic/: Claude integration exampleopenai/: GPT-4V integration examplecustom_prompts/: Prompt customization examplessample_images/: Test images
License
MIT License
Metadata
Release files for aiscout 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aiscout-0.1.0.tar.gz | 21.8 kB | Without provenance | Details for aiscout-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aiscout-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for aiscout-0.1.0-py3-none-any.whl |
Total release size: 48.2 kB
Release files / aiscout-0.1.0.tar.gz
| Download URL | aiscout-0.1.0.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6591fc7c3e3b95f616b52af1e26c7a1bed0087a6d05508a15b04af74c96191c
|
|
BLAKE2b-256 checksum How to use checksums |
eff27877c4dc88ecda929e855fe72606c072dedbf988161ef99181b02a11350d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Release files / aiscout-0.1.0-py3-none-any.whl
| Download URL | aiscout-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a17474321fbdcd7b301fd5941740cabdf589767fa3692a6e54dfeb6430bb76df
|
|
BLAKE2b-256 checksum How to use checksums |
37ad706e331a2fe9efd1c83371af74d74bd48b70f94c4dea7bc322ebb2683372
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.11
|
Security for aiscout 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.