This repository was archived by the owner on May 19, 2026. It is now read-only.
Andynonymous-guy/OldCentroidBash
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
''' Whoever happens to find this, here's how to use it: 1. Create a png image of the outline of the shape you want to bash similar to the one in Outline.png, I used a skier. 2. Run the Main.py file on your Python interpreter and replace the argument to the function call at the very bottom with the file name you want. 3. Wait 10 seconds and hope the deprecation errors don't blow up the program (I'll fix those in V2 soon) 4. It will output the relative coordinates of the centroid and also draw the centroid onto the original image using the same coordinate system. Credit to joelibaceta for the triangulator. Thank you to techwithtim for demonstrating how to use OpenCV. '''