I'm new to the field of computer vision and I want to solve the following task (preferrably with OpenCV and C#, but other solutions like with Scilab? are also gratefully welcome)
To detect objects you can use various object detection algorithms. After that, you can just get the object from most upper coordinates from your image. Will you please give some images as examples, then I can give you specific solution regarding that. You can visit the link that I have provided. It will help you.