# Annotation Loaders
## COCO
A COCO annotation loader\.
### Parameters
**annotations\_file** *(str)*, required
The path to the JSON file containing the annotations
## FourCornersCSV
Loads annotations from a CSV file in the following format\.
image\_name, x\_min, y\_min, x\_max, y\_max, label
### Parameters
**annotations\_file** *(str)*, required
The path to the CSV file containing the annotations
**normalized** *(bool)* = True
whether the bounding box coordinates are stored in a normalized format
## PascalVOC
A Pascal VOC annotation loader\.
### Parameters
**annotations\_folder** *(str)*, required
The folder where the annotations are stored
## WidthHeightCSV
Loads annotations from a CSV file in the following format\.
image\_name, x\_min, y\_min, width, height, label
### Parameters
**annotations\_file** *(str)*, required
The path to the CSV file containing the annotations
**normalized** *(bool)* = True
whether the bounding box coordinates are stored in a normalized format
## YOLODarknet
A YOLO Darknet annotation loader\.
### Parameters
**annotations\_folder** *(str)*, required
The folder where the annotations are stored
**image\_ext** *(str)* = jpg
The file extension for loaded images
## YOLOKeras
A YOLO Keras annotation loader\.
### Parameters
**annotations\_file** *(str)*, required
The path to the TXT file containing the annotations
# Annotation Writers
## COCO
A COCO annotation writer\.
### Parameters
**annotations\_file** *(str)*, required
The path to the JSON file to write the annotations to
## FourCornersCSV
Writes annotations to a CSV file in the following format\.
image\_name, x\_min, y\_min, x\_max, y\_max, label
### Parameters
**annotations\_file** *(str)*, required
The path to the CSV file to write the annotations to
**normalized** *(bool)* = True
whether the bounding box coordinates should be normalized before saving
## PascalVOC
A Pascal VOC annotation writer\.
### Parameters
**annotations\_folder** *(str)*, required
the directory to save annotation files to
**clean\_directory** *(bool)* = True
whether to forcibly ensure the output directory is empty
**database** *(str)* =
The name of the source database
## WidthHeightCSV
Writes annotations to a CSV file in the following format\.
image\_name, x\_min, y\_min, width, height, label
### Parameters
**annotations\_file** *(str)*, required
The path to the CSV file to write the annotations to
**normalized** *(bool)* = True
whether the bounding box coordinates should be normalized before saving
## YOLODarknet
A YOLO Darknet annotation writer\.
### Parameters
**annotations\_folder** *(str)*, required
the directory to save annotation files to
**clean\_directory** *(bool)* = True
whether to forcibly ensure the output directory is empty
## YOLOKeras
A YOLO Keras annotation writer\.
### Parameters
**annotations\_file** *(str)*, required
The path to the TXT file to write the annotations to
# Image Loaders
## Directory
Load images from a directory in the filesystem\.
The image name from the AnnotationLoader will be used to fetch a file with
the same name in the given directory\.
### Parameters
**directory** *(str)*, required
The directory from which to load images
# Image Writers
## Directory
Writes images to a directory in the filesystem\.
Images will be saved to a file with the given name in the given directory\.
### Parameters
**clean\_directory** *(bool)* = True
whether to forcibly ensure the output directory is empty
**directory** *(str)*, required
the directory to save images to
# Augmentations
## ColorTemperature
Changes the color temperature of the input image\.
The class changes the color temperature to a value
between 1,000 and 40,000 Kelvins \(ie\. working as a
warming or cooling filter\)\.
This class has largely been adapted from @aleju/imgaug library's
augmenters\.ChangeColorTemperature\(\) function\. @aleju/imgaug
library can be found at
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|
| Input Image | Augmented Image | Input Image (with Bounding Boxes) |
Augmented Image (with Bounding Boxes) |
|
|
|
|