5 ms·
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
by aaronm14 12y ago
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
- ddorian43 12y agomaybe opencv ?
- Shrugs 12y agoI 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.
- aaronm14 12y agoHm, good call, thanks for that. Looks like there's a binding for Nodejs out there too: https://github.com/peterbraden/node-opencv https://github.com/peterbraden/node-opencv
- Natsu 12y agoActually 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.