There is a code with which I find some object of orange color in a certain part of the screen:
bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb); gfxScreenshot = Graphics.FromImage(bmpScreenshot); gfxScreenshot.CopyFromScreen(700,347,0,0,size); imgWindowScreen = new Image<Bgr, Byte>(bmpScreenshot); imgWindowScreenProcessed = imgWindowScreen.InRange(new Bgr(3, 25, 82), new Bgr(50, 98, 200)); I need to continue working if there is an object of the color I need on the fragment. The question is - how can I determine that there is an object of a given color in the picture?