Skip to content

Commit af93177

Browse files
committed
refactor: remove getDetectedLabels and getAllDetectionStates methods to streamline object detection logic
1 parent 419bb78 commit af93177

File tree

1 file changed

+0
-16
lines changed
  • scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_object_detection

1 file changed

+0
-16
lines changed

scratch-arduino-extensions/packages/scratch-vm/src/extensions/arduino_object_detection/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -406,20 +406,4 @@ ArduinoObjectDetection.prototype._updateDetectionStates = function() {
406406
}
407407
};
408408

409-
/**
410-
* Get all currently detected object labels
411-
* @returns {Array<string>} Array of currently detected object labels
412-
*/
413-
ArduinoObjectDetection.prototype.getDetectedLabels = function() {
414-
return Object.keys(this._detectionStates).filter(label => this._detectionStates[label]);
415-
};
416-
417-
/**
418-
* Get detection states for all labels
419-
* @returns {Object<string, boolean>} Object mapping labels to detection state
420-
*/
421-
ArduinoObjectDetection.prototype.getAllDetectionStates = function() {
422-
return { ...this._detectionStates }; // Return a copy to prevent external modification
423-
};
424-
425409
module.exports = ArduinoObjectDetection;

0 commit comments

Comments
 (0)