Hi niloofarsabouri
Do you absolutely need the NN to perform this task? Can you modify the windows in any way?
We had a competition where the goal was to as quickly as possible, fly a drone through a series of hoops. But each hoop had an Aruco marker glued on the pole on which the hoop was mounted. By using a marker, you would know the distance from the hoop center to the drone.
Would this be possible in your case?
Thanks,
Jaka