Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Follow the instructions: Autonomy Workflow Software

Install packagesIn short:

pip install -r requirements.txt pip install -r requirements-pytorch.txt pip install -r modules/common/requirements.txt
Code Block
languagebash
git clone https://github.com/UWARG/computer-vision-python.git
python -m venv --system-site-packages venv/
./setup_project.ps1   OR   source ./setup_project.sh
./venv/Scripts/Activate.ps1   OR   source ./venv/bin/activate

Usage - development

Copy the model file (.pt) into the repository.

...

Other options are available. See them by using -h .

You are going to need to setup Mission Planner to fully test the code: https://uwarg-docs.atlassian.net/wiki/x/AYCNhQ .

Raspberry Pi setup & usage

...

Code Block
detect_brightspot:
    brightspot_percentile_threshold: float  # 0 <= brightspot_percentile_threshold <= 100
    filter_by_color: bool                   # Detects by intensity of image
    blob_color: int                         # 0 <= blob_color <= 255)
    filter_by_circularity: bool
    min_circularity: float                  # 0 < min_circularity <= max_circularity
    max_circularity: float                  # min_circularity <= max_circularity <= 1
    filter_by_inertia: bool
    min_inertia_ratio: float                # 0 < min_inertia_ratio <= max_inertia_ratio
    max_inertia_ratio: float                # min_inertia_ratio <= max_inertia_ratio <= 1
    filter_by_convexity: bool
    min_convexity: float                    # 0 < min_convexity <= max_convexity
    max_convexity: float                    # min_convexity <= max_convexity <= 1
    filter_by_area: bool                    # Detects by pixel area of the blob
    min_area_pixels: int                    # 0 < min_area_pixels <= max_area_pixels
    max_area_pixels: int                    # min_area_pixels <= max_area_pixels

...