| ▲ | fluidcruft a day ago | ||||||||||||||||||||||||||||||||||
Claude could probably have written a script to do it. I'm hunting assets to confirm. Edit: yup very easy for claude. Most of the wall time was spent installing cv2 in a venv (uv dropped python 3.14 on claude, which seemed to get stuck compiling numpy or something so I interrupted and told claude to just use python 3.13 instead). ME: In this directory there are two images: @p-pressbox.gif and @screenshot.png. @p-pressbox.gif is an image that exists somewhere inside @screenshot.png Write a script that finds the precise location CLAUDE: Looking at the images, I can see that p-pressbox.gif (the spaceship with "PRESS BOX SHUTTLE" text) appears in the upper-left area of screenshot.png. I'll write a Python script using OpenCV to find the precise location. [ some venv stuff/telling claude to use uv and python 3.13 ] CLAUDE: The script found the precise location of p-pressbox.gif within screenshot.png:
ME> As part of the output create a visualization of the @p-pressbox.gif positioned on top of the original screenshotCLAUDE: Done! The visualization shows a green rectangle highlighting the exact location where p-pressbox.gif was found within the screenshot. The match is at coordinates (87, 110) to (218, 166). I confirmed the result was correct. | |||||||||||||||||||||||||||||||||||
| ▲ | thecr0w a day ago | parent [-] | ||||||||||||||||||||||||||||||||||
Oh what the heck. That worked really well for you. Would you be willing to recreate all the html and push it up to github? I'll drop the repo at the top of the blog post. It would be really cool for me to see this completely done and a great way to finish out the blog post. I obviously couldn't do it. | |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||