Install using pip
pip install picterra
Set your Picterra API key through an environment variable
export PICTERRA_API_KEY=<your api key>
When listing entities (eg rasters, detectors) from your account, the Picterra Server uses a paginated approach; this means that every list_-prefixed function returns a special ResultsPage class instance which has the following properties, similarly to a Python list: * is iterable over the elements in the page, eg with a for * can be applied the builtin len to get the number of elements in the page * returns the n-th element of the page simply accessing with [n] (0-indexed) * has a next() method which returns the following ResultsPage, if any, otherwise None
../examples/detectors_management.py
../examples/raster_management.py
../examples/upload_and_detect.py
Note
Please note the below endpoints are still in beta and thus may be subject to change
../examples/training.py
If you want to use Picterra with images that are not georeferenced and want to get the detector outputs in (x, y) coordinates, have a look at our nongeo_imagery notebook .
Check the examples directory of our github repo.