src/lib/detection_algorithms/interface/exporter.js
//  testSplit - the percent of tragged frames to reserve for test set defaults to 20%
the percent of tragged frames to reserve for test set defaults to 20%
the percent of tragged frames to reserve for test set defaults to 20%
function Exporter(exportDirPath, classes, posFramesCount, frameWidth, frameHeight, testSplit) {
    var self = this;
    self.exportDirPath = exportDirPath;
    self.classes = classes;
    self.posFramesCount = posFramesCount;
    self.frameWidth = frameWidth;
    self.frameHeight = frameHeight;
    self.testSplit = testSplit || 0.2;
    this.init = function init() {
    }
    this.exportFrame = function exportFrame(frameFileName, frameBuffer, tags) {
    }
}
function Exporter ( exportDirPath , classes , posFramesCount , frameWidth , frameHeight , testSplit ) { var self = this ; self . exportDirPath = exportDirPath ; self . classes = classes ; self . posFramesCount = posFramesCount ; self . frameWidth = frameWidth ; self . frameHeight = frameHeight ; self . testSplit = testSplit || 0.2 ; this . init = function init ( ) { } this . exportFrame = function exportFrame ( frameFileName , frameBuffer , tags ) { } }
testSplit - the percent of tragged frames to reserve for test set defaults to 20%
testSplit - the percent of tragged frames to reserve for test set defaults to 20%
// Prepare everything for exporting (e.g. create metadata files, // directories, ..)     // Returns: A Promise object that resolves when the operation completes // Export a single frame to the training data // Parameters: //  frameFileName - The file name to use when saving the image file  //  frameBuffer - A buffer with the frame image data  //  bboxes  - a list of bboxes in the format of x1, y1, x2, y2 where the //           coordinates are in absolute values of the image //  tags - a list of objects containing the tagging data. Each object is in the format of: //         {'x1' : int, 'y1' : int, 'x2' : int, 'y2' : int, 'class' : string 'w': int, 'h' :int} //         Where (x1,y1) and (x2,y2) are the coordinates of the top left and bottom right corner and w an h are optional overloads for the frame demensions //         of the bounding boxes (respectively), and 'class' is the name of the class. // Returns: A Promise object that resolves when the operation completes