Skip to main content

A python package to interact with Inter-American Development Bank machine learning models to automatic label elements for iRAP certification

Project description

VIAsegura

Project Description

VIAsegura is an API that helps to use artificial intelligence models developed by the Inter-American Development Bank to automatically tag items on the streets. The tags it places are some of those needed to implement the iRAP road safety methodology.

To use it you must contact the Inter-American Development Bank to obtain the credentials that give access to the models with which the API works.

These models require images with the specifications of the iRAP projects. This means that they have been taken every 20 meters along the entire path to be analyzed. In addition, some of the models require images to be taken from the front and others from the side of the car. The models yield 1 result for each model for groups of 5 images or less.

So far, 15 models compatible with the iRAP labeling specifications have been developed and are specified in the table below.

Model Name Description Type of Image Classes
delineation Adequacy of road lines Frontal 2
street lighting Presence of street lighting Frontal 2
carriageway Carriageway label for section Frontal 2
service road Presence of a service road Frontal 2
road condition Condition of the road surface Frontal 3
skid resistance Skidding resistance Frontal 3
upgrade cost Influence surroundings on cost of major works Frontal 3
speed management Presence of features to reduce operating speed Frontal 3
bicycle facility Presence of facilities for bicyclists Frontal 2
quality of curve Influence surroundings on cost of major works Frontal 2
vehicle parking Influence surroundings on cost of major works Frontal 2
property access points Influence surroundings on cost of major works Frontal 2
area_type Influence surroundings on cost of major works Lateral 2
land use Influence surroundings on cost of major works Lateral 4
number of lanes Influence surroundings on cost of major works Frontal 5

Some of the models can identify all the classes or categories, others can help you sort through the available options.

Main Features

Some of the features now available are as follows:

  • Scoring using the models already developed
  • Grouping by groups of 5 images from an image list
  • Download models directly into the root of the package

Instalation

To install you can use the following commands

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple viasegura

Then to download the models use the following commands

from viasegura import download_models

download_models(aws_access_key = <aws_access_key>, aws_secret_key = <aws_secret_key> )

To obtain the corresponding credentials for downloading the models, please contact the Inter-American Development Bank.

You can also clone the repository but remember that the package is configured to download the models and place them in the root of the environment. You can change the locations manually as follows

from viasegura import download_models

download_models(aws_access_key = <aws_access_key>, aws_secret_key = <aws_secret_key>, system_path = <new_working_path>)

Remember to put that path every time you instantiate a model so that you can find the artifacts you need to run them.

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

viasegura-0.0.1.33.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

viasegura-0.0.1.33-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file viasegura-0.0.1.33.tar.gz.

File metadata

  • Download URL: viasegura-0.0.1.33.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for viasegura-0.0.1.33.tar.gz
Algorithm Hash digest
SHA256 7a4b7503d287b44ad8cff0954fd7baefdc93ada1599b0c962923dfe2126d6d16
MD5 b8090951f1aeb056a53362e6b60fbd60
BLAKE2b-256 f2fbfe89e3b1ea9d50e7d0bb5f9bbe389e66277a090c36da4c41043a2d3ea1b9

See more details on using hashes here.

File details

Details for the file viasegura-0.0.1.33-py3-none-any.whl.

File metadata

  • Download URL: viasegura-0.0.1.33-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7

File hashes

Hashes for viasegura-0.0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 0a9970ceca14d38078bcee053a768cf0be346c6dd6cf630191ee0ee224e33405
MD5 5cd9da0f5d41178c957773a629cb97e3
BLAKE2b-256 cc4192695ceb580123805e7192d686e5dc18c2b331a7a3884a863a0b5761ba03

See more details on using hashes here.

Supported by

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