Matching of cups. OpenCV implementation which resistant to changing conditions.