I want to use OpenCV in Godot. I want to make a game that detects certain body gestures, such as if the computer detects a handgun gesture, the in-game character would pull a gun. If the user flicks his hand, the gun shoots. Or even like the game before your eyes, where the scene will change if the person playing the game blinks. But, I can not find any resources on how to do this.
Computer vision in Godot
I don't know anything about those resources but that does sound interesting and I'd like to see the game you make with those kinds of features.
Thanks for the feedback. There is a lot of games made in Python using this technique but python is not really a game engine so I may just settle for Unity for this project.
@SPOICAT said: I don't know anything about those resources but that does sound interesting and I'd like to see the game you make with those kinds of features.
For me, the game idea was a tactical FPS (I had a demo in mind where it is simply laser tag or something similar to try and implement the basic idea and move from there).
Yeah, it should be possible. I haven't tried it, but you could use GDNative for this. https://docs.godotengine.org/en/stable/tutorials/plugins/gdnative/gdnative-cpp-example.html
cybereality
Definitely possible....I created this repo. exactly for this: https://github.com/mgpadalkar/godot-cpp-opencv
I don't think this answers your question directly, but here are some resources that might help you
How to convert cv::Mat to Godot Image?
Other resources you can benefit from:
Trying to link a .so file in SCsub
Get frames from the camera (Java)
Bouncy - Godot OpenCV integration example