Lost Ark Fishing Bot
Not Cheating
This project was made for a YouTube video. Cheating is lame, so the bot was not an afk bot and never made public. I enjoyed watching movies while doing mindless grinding in Lost Ark, which made fishing annoying because I had to watch the screen for an exclamation mark. I hadn't done any image recognition before and this seemed like the perfect oppurtunity. The bot got finished but the video was never made because I quit Lost Ark for the sake of productivity.
Image Processing with AForge.NET
First we need a screenshot to process, I did this using .NET's CopyFromScreen method. Next I crop the image towards the center of the screen so there's less to process. In hindsight I should have just done this by not copying the entire screen with CopyFromScreen. Then I filter the image's colors to only show a certain range of RGB. After that I used BlobCounter to find blobs then filter out incorrect sizes.
Image Recognition
Finally compare the blobs to our reference image and if there's a match an audio cue plays. This was annoying because the reference can't be bigger then the blob, and the blobs had a tendency to vary by a few pixels depending on the frame of the screenshot. The solution was to get more precise with the color filter and lots of testing. Then to make it failproof adjust the blob size filter to not accept blobs smaller then the reference.