NeuralNetworkClassifier
const initializeNNC = () => {};const initializeNNC = () => {
// Get the elements we'll be working with...
const nncElement = document.getElementsByClassName('nnc')[0];
const nncRecognizedClassElement = document.getElementsByClassName('nnc-recognized-class')[0];
// ...along with the bounding rect that defines the watcher size
const nncBounds = nncElement.getBoundingClientRect();
}; // ...
const nncFruitsWatcher = {
name: 'NeuralNetworkClassifier',
shape: lampix.helpers.rectangle(
nncBounds.left,
nncBounds.top,
nncBounds.width,
nncBounds.height
),
params: {
neural_network_name: 'fruits'
}
};Last updated
Was this helpful?