I want to use the new webcam feature to track a physical object on a table.

Is it possible for godot to find bright spots or colored spots in an image?

Welcome to the forums @gauntlet!

There's not any image recognition code built into Godot, but you can iterate over the pixels in an image and do processing that way. The Image class has several functions for accessing pixels. One thing to note is that you have to lock the image to read the pixel data first, as otherwise it will not work.

If you are using the Mono version of Godot, you could also potentially use C# image processing libraries with Godot.

Thank you, I was able to figure out the pixel iterating from the image class. I can't actually find the cameraserver node though..

I think the CameraServer is a singleton, so it shouldn't have a node and can be accessed directly. I believe something like CameraServer.get_feed_count, for example, should work if it's a singleton.

a year later