Skip to content

prolix

Prolix (v0.0.0)

Usage:

$ prolix [OPTIONS] COMMAND [ARGS]...

Options:

  • --version: Show Prolix version and exit
  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • run-model: Detect any feature.
  • run-model-road-damage: Detect road damages.
  • analyze-road-damage: Aggregates road damages over road network.
  • run-model-traffic-signs: Detect and classify traffic signs.
  • analyze-traffic-signs: De-duplicates traffic signs.
  • upload-annotations: Upload annotations on Panoramax instance.

prolix run-model

Detect any feature.

Uses a specified detection model to run over your pictures dataset.

Usage:

$ prolix run-model [OPTIONS] {id} {pictures_path} {output_path}

Arguments:

  • id: ID to give to this model (for file names, example: "parking") [required]
  • pictures_path: Path to your pictures [required]
  • output_path: Where to save output GeoJSON files [required]

Options:

  • --local-model <path>: Path to a local detection model
  • --hf-model <str>: Name of a HuggingFace model, usually formatted like Organization/model_name
  • --hf-file <str>: Name of branch and weight file in Hugging Face model repository, formatted like branch/model_filename.pt
  • --panoramax-key <str>: Key name for Panoramax semantic tag (for example "osm|traffic_sign" or "road_damage")
  • --models-path <path>: Path to detection & classification models [default: models]
  • --tmp-path <path>: Path to a temporary folder (used for storing intermediate files)
  • --parallel-tasks <int>: Amount of parallel processing tasks [default: 1]
  • --help: Show this message and exit.

prolix run-model-road-damage

Detect road damages.

Runs the whole process of detecting road damages (cracks, potholes) in your pictures dataset

Usage:

$ prolix run-model-road-damage [OPTIONS] {pictures_path} {output_path}

Arguments:

  • pictures_path: Path to your pictures [required]
  • output_path: Where to save output GeoJSON files [required]

Options:

  • --models-path <path>: Path to detection & classification models [default: models]
  • --tmp-path <path>: Path to a temporary folder (used for storing intermediate files)
  • --parallel-tasks <int>: Amount of parallel processing tasks [default: 1]
  • --help: Show this message and exit.

prolix analyze-road-damage

Aggregates road damages over road network.

De-duplicates potholes and count other damages on each road network segment. Note that road network should be split according to aggregate precision you're looking for.

EPSG code can be set so accurate road buffer can be computed.

Usage:

$ prolix analyze-road-damage [OPTIONS] {pictures_path} {road_network} {output_path}

Arguments:

  • pictures_path: Path to your pictures [required]
  • road_network: Path to your road network GeoPackage/ShapeFile [required]
  • output_path: Where to save output files [required]

Options:

  • --annotations-path <path>: Path to input annotations.geojson file. If unset, annotations are read from pictures metadata.
  • --epsg <int>: EPSG code of the local, meters-based, projection you want to use for road buffering [default: 3857]
  • --debug: Export more GeoJSON files for fine debugging
  • --help: Show this message and exit.

prolix run-model-traffic-signs

Detect and classify traffic signs.

Runs the whole process of detecting and classifying traffic signs and sub-signs in your pictures dataset.

To merge duplicated traffic signs, see "analyze-traffic-signs" command.

Usage:

$ prolix run-model-traffic-signs [OPTIONS] {pictures_path} {output_path}

Arguments:

  • pictures_path: Path to your pictures [required]
  • output_path: Where to save output GeoJSON files [required]

Options:

  • --models-path <path>: Path to detection & classification models [default: models]
  • --tmp-path <path>: Path to a temporary folder (used for storing intermediate files)
  • --parallel-tasks <int>: Amount of parallel processing tasks [default: 1]
  • --country <str>: Country-specific model to use (FR, BE, NL, DE) [default: FR]
  • --get-sign-text / --no-get-sign-text: Whether to identify numbers on the sign (True, False) [default: no-get-sign-text]
  • --get-sign-zone / --no-get-sign-zone: Wether to identify zone type of the sign (True, False) [default: no-get-sign-zone]
  • --help: Show this message and exit.

prolix analyze-traffic-signs

De-duplicates traffic signs.

Processes raw traffic signs detections to merge signs detected several times over many pictures.

Usage:

$ prolix analyze-traffic-signs [OPTIONS] {pictures_path} {output_path}

Arguments:

  • pictures_path: Path to your pictures [required]
  • output_path: Where to save output files [required]

Options:

  • --annotations-path <path>: Path to input annotations.geojson file. If unset, annotations are read from pictures metadata.
  • --country <str>: Country-specific metadata to use (same as "run-model-traffic-signs") [default: FR]
  • --help: Show this message and exit.

prolix upload-annotations

Upload annotations on Panoramax instance.

Uses the input GeoJSON listing detected features, and uploads to the corresponding Panoramax server. Note that if your GeoJSON contains a mix of different Panoramax servers pictures, only the ones corresponding to given api_url will be uploaded.

Usage:

$ prolix upload-annotations [OPTIONS] {annotations_geojson}

Arguments:

  • annotations_geojson: Path to an annotations-compatible GeoJSON [required]

Options:

  • --api-url <str>: Panoramax endpoint URL [required]
  • --token <str>: Panoramax user authentication token [required]
  • --parallel-uploads <int>: Amount of parallel uploads [default: 1]
  • --status-csv <path>: Path to upload progress CSV file [default: upload_status.csv]
  • --help: Show this message and exit.