In this segment, we expressed the programming idea and structure of our algorithm. The algorithm was implemented by Python programming language and also used Open Source Computer Vision Library (OpenCV) [25], [26]. The idea of the algorithm (See Algorithm 1) in programming perspective is as follows: The idea of the algorithm (See Algorithm 1) in programming