How to detect objects with AI