One last question - are you sure you want to use the
backdrop image block?
Obviously I cannot know without understanding the rest of your Scratch project, but in case it helps to clarify things...
Consider this Scratch project:
That green "costume image" sprite will be returning this image:
In other words, the image for the current costume of the sprite, regardless of whether the sprite is currently hidden, or if another sprite happens to be obscuring it.
It is the current costume image for the sprite where the code block is running.
Maybe that is what you want?
Alternatively, consider this Scratch project:
That green "backdrop image" block will be returning this image:
In other words, it shows what is currently visible on the backdrop at the location of the sprite.
It will include any other sprites that are visible, and any current backdrop.
Maybe that is what you want?
Alternatively, consider this Scratch project:
That green "backdrop image" block will be returning this image:
In other words, it returns the current contents of the Stage, including the backdrop and all visible sprites.
Each of these are useful for different types of projects. It depends on what you want to give to the machine learning model to recognise.
Which block is the right one for your project?
Kind regards
D