Tiny YOLO v2
6 nodes
On this page 6
Batch Process
FunctionBatch processes images for object detection.
Signature
BatchProcess(imagesFolder: Text, outputsFolder: Text)
void BatchProcess(string imagesFolder, string outputsFolder)
Parameters
| name | type | default | description |
|---|---|---|---|
| imagesFolder | Text | — | Folder containing input images. |
| outputsFolder | Text | — | Folder to save processed images. |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning
Draw Bounding Box
FunctionDraws bounding boxes on an image.
Signature
DrawBoundingBox
inputImageLocation: Text
outputImageLocation: Text
imageName: Text
filteredBoundingBoxes: IList<Yolo Bounding Box>void DrawBoundingBox(
string inputImageLocation,
string outputImageLocation,
string imageName,
IList<YoloV2.YoloBoundingBox> filteredBoundingBoxes)Parameters
| name | type | default | description |
|---|---|---|---|
| inputImageLocation | Text | — | Location of the input image. |
| outputImageLocation | Text | — | Location to save the output image. |
| imageName | Text | — | Name of the image file. |
| filteredBoundingBoxes | IList<Yolo Bounding Box> | — | List of bounding boxes to draw. |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning
Filter Bounding Boxes
FunctionFilters the bounding boxes based on overlap.
Signature
FilterBoundingBoxes -> IList<Yolo Bounding Box>
boxes: IList<Yolo Bounding Box>
limit: Integer
threshold: Low Accuracy NumberIList<YoloV2.YoloBoundingBox> FilterBoundingBoxes(
IList<YoloV2.YoloBoundingBox> boxes,
int limit,
float threshold)Parameters
| name | type | default | description |
|---|---|---|---|
| boxes | IList<Yolo Bounding Box> | — | List of detected bounding boxes. |
| limit | Integer | — | Maximum number of bounding boxes to return. |
| threshold | Low Accuracy Number | — | Intersection over union threshold. |
Returns
| result | IList<Yolo Bounding Box> |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning
Get Absolute Path
FunctionCombines folder path and relative path into an absolute path.
Signature
GetAbsolutePath(folderPath: Text, relativePath: Text) -> Text
string GetAbsolutePath(string folderPath, string relativePath)
Parameters
| name | type | default | description |
|---|---|---|---|
| folderPath | Text | — | The folder path. |
| relativePath | Text | — | The relative path. |
Returns
| result | Text |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning
Log Detected Objects
FunctionLogs detected objects in the image.
Signature
LogDetectedObjects
imageName: Text
boundingBoxes: IList<Yolo Bounding Box>void LogDetectedObjects(
string imageName,
IList<YoloV2.YoloBoundingBox> boundingBoxes)Parameters
| name | type | default | description |
|---|---|---|---|
| imageName | Text | — | Name of the image file. |
| boundingBoxes | IList<Yolo Bounding Box> | — | List of detected bounding boxes. |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning
Parse Outputs
FunctionParses the model outputs into bounding boxes.
Signature
ParseOutputs -> IList<Yolo Bounding Box>
yoloModelOutputs: Low Accuracy Number Array
threshold: Low Accuracy NumberIList<YoloV2.YoloBoundingBox> ParseOutputs(
float[] yoloModelOutputs,
float threshold = 0.3f)Parameters
| name | type | default | description |
|---|---|---|---|
| yoloModelOutputs | Low Accuracy Number Array | — | Array of model outputs. |
| threshold | Low Accuracy Number | 0.3 | Threshold for detection. |
Returns
| result | IList<Yolo Bounding Box> |
- Ships with
- Divooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Tiny YOLO v2
- Package
- Machine Learning