Divooka Reference

Tiny YOLO v2

6 nodes

On this page 6

Batch Process

Function

Batch processes images for object detection.

Signature
BatchProcess(imagesFolder: Text, outputsFolder: Text)
void BatchProcess(string imagesFolder, string outputsFolder)

Parameters

nametypedefaultdescription
imagesFolderText—Folder containing input images.
outputsFolderText—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

Function

Draws 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

nametypedefaultdescription
inputImageLocationText—Location of the input image.
outputImageLocationText—Location to save the output image.
imageNameText—Name of the image file.
filteredBoundingBoxesIList<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

Function

Filters the bounding boxes based on overlap.

Signature
FilterBoundingBoxes -> IList<Yolo Bounding Box>
    boxes: IList<Yolo Bounding Box>
    limit: Integer
    threshold: Low Accuracy Number
IList<YoloV2.YoloBoundingBox> FilterBoundingBoxes(
    IList<YoloV2.YoloBoundingBox> boxes,
    int limit,
    float threshold)

Parameters

nametypedefaultdescription
boxesIList<Yolo Bounding Box>—List of detected bounding boxes.
limitInteger—Maximum number of bounding boxes to return.
thresholdLow Accuracy Number—Intersection over union threshold.

Returns

resultIList<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

Function

Combines folder path and relative path into an absolute path.

Signature
GetAbsolutePath(folderPath: Text, relativePath: Text) -> Text
string GetAbsolutePath(string folderPath, string relativePath)

Parameters

nametypedefaultdescription
folderPathText—The folder path.
relativePathText—The relative path.

Returns

resultText
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tiny YOLO v2
Package
Machine Learning

Log Detected Objects

Function

Logs detected objects in the image.

Signature
LogDetectedObjects
    imageName: Text
    boundingBoxes: IList<Yolo Bounding Box>
void LogDetectedObjects(
    string imageName,
    IList<YoloV2.YoloBoundingBox> boundingBoxes)

Parameters

nametypedefaultdescription
imageNameText—Name of the image file.
boundingBoxesIList<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

Function

Parses the model outputs into bounding boxes.

Signature
ParseOutputs -> IList<Yolo Bounding Box>
    yoloModelOutputs: Low Accuracy Number Array
    threshold: Low Accuracy Number
IList<YoloV2.YoloBoundingBox> ParseOutputs(
    float[] yoloModelOutputs,
    float threshold = 0.3f)

Parameters

nametypedefaultdescription
yoloModelOutputsLow Accuracy Number Array—Array of model outputs.
thresholdLow Accuracy Number0.3Threshold for detection.

Returns

resultIList<Yolo Bounding Box>
Ships with
Divooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Tiny YOLO v2
Package
Machine Learning