[Updated] How to detect color in region per second?