Skip to content

detectForVideo badly explained #6169

@marcusx2

Description

@marcusx2

Description of issue (what needs changing)

The documentation fo detectForVideo is lacking

Clear description

The documentation for https://ai.google.dev/edge/api/mediapipe/js/tasks-vision.objectdetector#objectdetectordetectforvideo is lacking. A couple of questions

1- timestamp is the timestamp of the current frame, in ms. In this example performance.now is used. What's the meaning of that. If I want to play a normal video of for example 3 seconds, and want to check every frame, I use performance.now? Because the example is not a "normal" video, it's a webcam

2- The detectForVideo uses a TexImageSource as input just like the normal detect. How is that? Is there any substantial internal difference between normal detect and detectForVideo, besides the video having a timestamp?

Metadata

Metadata

Assignees

Labels

type:docs-featureDoc issues for new solution, or clarifications about functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions