Skip to content

Commit

Permalink
Cleaning up for MR
Browse files Browse the repository at this point in the history
  • Loading branch information
pmalacho-mit committed Nov 27, 2023
1 parent 235c5ed commit 74ec6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1,498 deletions.
8 changes: 3 additions & 5 deletions extensions/src/objectDetection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const details: ExtensionMenuDisplayDetails = {
name: "Object Detection",
description: "Detects and identifies the object shown!",
iconURL: "Typescript_logo.png",
insetIconURL: "typescript-logo.svg"
insetIconURL: "typescript-logo.svg",
tags: ["PRG Internal"]
};

export default class objectDetection extends extension(details, "video", "drawable", "addCostumes", "toggleVideoBlock", "setTransparencyBlock") {
Expand Down Expand Up @@ -127,9 +128,6 @@ export default class objectDetection extends extension(details, "video", "drawab
arg: {
type: "number",
defaultValue: 5,
handler: (x) => {
return Math.min(Math.max(0, x), 20)
}
}
})
setThickness(thickness: number) {
Expand All @@ -154,7 +152,7 @@ export default class objectDetection extends extension(details, "video", "drawab
text: (state) => `Toggle continuous detection ${state}`,
arg: { type: ArgumentType.Boolean, options: [{ text: 'on', value: true }, { text: 'off', value: false }] }
})
async continuouslyDetectObjects(state) {
async continuouslyDetectObjects(state: boolean) {
this.continuous = state
this.detectionLoop()
}
Expand Down
Loading

0 comments on commit 74ec6bd

Please sign in to comment.