News for hackers. Stuff that matters.
Re:Fish vs. Fish in Street Fighter II by aaronm14 on Wednesday August 20, 2014 @06:17PM (#8204993)
Anyone know if these guys making these games are using some kind of library for the image processing or what? Seems pretty complicated to do
Re:Fish vs. Fish in Street Fighter II by Shrugs on Wednesday August 20, 2014 @06:47PM (#8205092)
I can confirm that FishPlaysPokemon uses OpenCV. There's a wealth of knowledge and tutorials, so if you just want to isolate certain color ranges (what they're doing), I guarantee there are tons of resources. There's also Python bindings to make things even more friendly. After that, it's some simple math to figure out which quadrant it's in and then trigger the correct button press.
Re:Fish vs. Fish in Street Fighter II by aaronm14 on Thursday August 21, 2014 @05:45PM (#8209809)
Hm, good call, thanks for that. Looks like there's a binding for Nodejs out there too: https://github.com/peterbraden/node-opencv
Re:Fish vs. Fish in Street Fighter II by Natsu on Thursday August 21, 2014 @01:34AM (#8206043)
Actually they just have to detect more than $x pixels of $color in each region then do a button press on that. I don't think in the abstract that it's all that complex, given that the fish are of starkly different colors that do not occur in the tank or elsewhere in the video feed.
Re:Fish vs. Fish in Street Fighter II by ddorian43 on Wednesday August 20, 2014 @06:33PM (#8205037)
maybe opencv ?