Debugging the RDP Algorithm The Problem Even though we had the proper input for the RDP algorithm, we weren't getting useful or consistent results from it. This was partially due to our not knowing the algorithm very well, but even when we managed to understand enough to see what it was supposed to be doing, we found that it wasn't performing correctly. We consistently got results that varied between runs and were impossible for a given shape because there were either no lines or far too few to actually make up the shape. After checking the logic of the algorithm numerous times with as many sources as we could, in addition to going over the code with a fine toothed comb, we found nothing out of place or wrong. It was only at that point that we decided it would be worthwhile to check what the contoured image actually looked like and see what was happening. The Hunt It turned out that the cv2.blur() function we were using to simulate the effect