Black Grayscale Line Following Example problem

Hello. I use the Black Grayscale Line Following Example script to build a robot following the black line. But I ran into the problem that if the room is light, the camera stops recognizing black objects. Subdued light solves the problem, but it does not suit me. Is it possible to adjust the hue of the recognized black color in the script?

Yes, please use the Tools → Machine Vision → Threshold Editor to pick new color bounds. Note that you can have multiple color bounds at the same time to deal with different lighting conditions.