A high-speed color-based object detection algorithm: Quay crane collision warning device