Opencv The result data of function matchshape is inf

Thank you for your reply.
I don’t understand your reply. because If you reply right, Left image also should be same problem. also, as you can see, Left Image have multiple contours.
I just wonder why the return value of this function is inf data.