adalib.pictures¶
The images sub-package exposes the core integrations of the image database connected to AdaLab.
Functions¶
get_picture ¶
Get a picture from the picture database.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
picture_id |
int
|
ID of the picture |
required |
output_file_path |
str
|
path to save the picture |
required |
Returns:
| Type | Description |
|---|---|
None
|
None |
Source code in adalib/pictures/pictures.py
post_picture ¶
Post an picture to the picture database.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_file_path |
str
|
path to the picture file |
required |
Returns:
| Type | Description |
|---|---|
int
|
ID of the posted picture |
Source code in adalib/pictures/pictures.py
post_picture_url ¶
Post a picture to the picture database using a URL.
Use the example Jupyter Notebook to test this function or build upon it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
picture_url |
str
|
URL of the picture to be uploaded |
required |
Returns:
| Type | Description |
|---|---|
int
|
ID of the posted picture |