I did something similar once, using object recognition and training my neural network on monsters.
youtu.be/_Ems0kZwRFs
I recommend doing it my way—you'll end up with fully custom code, and it will work without any issues.
Especially now, ChatGPT can partially help you implemen
t it.