Integrate UnrealCV with an AI program
This is a video showing connecting Faster-RCNN with a video game for diagnosis.
We are working on a python layer for Caffe and will include it in the next release.
Make sure you read getting started first and know how to use the compiled binary. Faster-RCNN is an algorithm to detect objects in an image. The original paper is published here. In this tutorial we show how to run Faster-RCNN in the virtual scene. You can observe the Faster-RCNN can do a pretty good job, but still consistently making some mistakes, for example, detect photos as TV monitor.
To run the program illustrated in the video.
Install py-faster-rcnn. Follow the instruction to setup. Make sure you can run
Run RealisticRendering in the getting started tutorial
rcnn_pathin the script
client/examples/faster-rcnn.pyto point to your Faster-RCNN installation, then run it.
cd client/examples python faster-rcnn.py
faster-rcnn.py, you are expected to see a message showing the client successfully connected to the game. When you clicked mouse in the game, a frame will be sent to Faster RCNN for detection. Using the same technique shown in this tutorial, algorithms used for depth estimation, object recognition can be also easily integrated.
Here we show how to do testing in a virtual scene. If you are interested in training model with synthetic images. Please refer to the tutorial about generating images.
If you want the training procedure can also interact with the scene, such as reinforcement learning, please contact us, we are working on it.