Discuss Scratch

Cyberplex
New to Scratch
2 posts

How to track a particular thing in scratch

How to motion track an object like in adobe After Effects

Last edited by Cyberplex (Jan. 15, 2022 07:08:50)

awesome-llama
Scratcher
1000+ posts

How to track a particular thing in scratch

What data do you have that requires tracking? Is it the built-in video sensing or is it something you've created yourself such as bitmap images or videos stored in lists?


Cyberplex
New to Scratch
2 posts

How to track a particular thing in scratch

awesome-llama wrote:

What data do you have that requires tracking? Is it the built-in video sensing or is it something you've created yourself such as bitmap images or videos stored in lists?

I am thinking to track a video so that I can make another sprite follow it
awesome-llama
Scratcher
1000+ posts

How to track a particular thing in scratch

Cyberplex wrote:

awesome-llama wrote:

What data do you have that requires tracking? Is it the built-in video sensing or is it something you've created yourself such as bitmap images or videos stored in lists?

I am thinking to track a video so that I can make another sprite follow it
The video sensing extension is quite limited and at the moment you are unable to track things with the blocks provided, only detect the direction of motion and how much motion there is.
There is an experimental version of Scratch (https://lab.scratch.mit.edu/) which does offer face detection and allows sprites to track facial features, though it's still limited and may not be what you want.
The only other thing that can be done in Scratch is to make use of the touching colour block as it can be used to get colour data from the video on screen.
It has been demonstrated by some users that touching colour can be used to capture an image though it's quite slow without optimisations. In your case, if you know what colour the thing you are tracking will be or you don't need the entire video's resolution, you can speed it up by going through fewer colours/pixels.


Powered by DjangoBB