Text this: Image processing based horizon sensor for estimating the orientation of sounding rockets, launch vehicles and spacecraft