-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Objectdetection #268
base: dev
Are you sure you want to change the base?
Objectdetection #268
Conversation
/** | ||
* Dimensions of the video frame | ||
*/ | ||
DIMENSIONS = [480, 360]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This property should really be centralized onto the video mixin. Want to update that code to include this property? https://github.com/mitmedialab/prg-extension-boilerplate/blob/dev/extensions/src/common/extension/mixins/optional/video.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think it'd be better to encode this as an object as
{ width: number, height: number }
(instead of an array)
arg: { | ||
type: "number", | ||
defaultValue: 5, | ||
handler: (x) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, is the handler
actually doing? @pmalacho-mit to look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pmalacho-mit Looks like it isn't doing anything... Did I put the handler in the right spot?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jimbo797 ya, I think this is in the wrong spot. Did your editor not give you errors? Here's what it looks like for me:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text: (state) => `Turn continuous detection ${state}`, | ||
arg: { type: ArgumentType.Boolean, options: [{ text: 'on', value: true }, { text: 'off', value: false }] } | ||
}) | ||
async continuouslyDetectObjects(state) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, @jimbo797 ! Few more comments for you to check out. Also, go generate a cool thumbail and logo, please! |
(sorry, @jimbo797 I accidentally closed this. Ignore that!) |
No description provided.