|
1 | 1 | # AnimalRecognitionDemo |
2 | 2 |
|
3 | | -This demo combines several [Redis](https://redis.io) Data structures and [Redis Modules](https://redis.io/topics/modules-intro) to filter a stream of images that contain cats. It utilises Redis Streams for capturing the input video stream:`all`. [RedisGears](https://oss.redislabs.com/redisgears/) will process this stream and will call [RedisAI](https://oss.redislabs.com/redisai/) for image classification with MobilenetV2. In case the stream contains cats, it will forward the images to a stream:`cats`. |
| 3 | +This demo combines several [Redis](https://redis.io) data structures and [Redis Modules](https://redis.io/topics/modules-intro) |
| 4 | +to process a stream of images and filter out the images that contain cats. |
| 5 | + |
| 6 | +It uses: |
| 7 | + |
| 8 | +* Redis Streams to capture the input video stream: `all` |
| 9 | +* [RedisGears](https://oss.redislabs.com/redisgears/) to process this stream |
| 10 | +* [RedisAI](https://oss.redislabs.com/redisai/) to classify the images with MobilenetV2 |
| 11 | + |
| 12 | +It forwards the images that contain cats to a stream: `cats` |
4 | 13 |
|
5 | 14 | ## Architecture |
6 | 15 |  |
7 | 16 |
|
8 | | - |
9 | 17 | ## Requirements |
10 | 18 | Docker and Python 2 |
11 | 19 |
|
12 | 20 | ## Running the Demo |
| 21 | +To run the demo: |
13 | 22 | ``` |
14 | 23 | $ git clone https://github.com/RedisGears/AnimalRecognitionDemo.git |
15 | 24 | $ cd AnimalRecognitionDemo |
16 | 25 | # If you don't have it already, install https://git-lfs.github.com/ |
17 | 26 | $ git lfs install && git lfs fetch && git lfs checkout |
18 | 27 | $ docker-compose up |
19 | 28 | ``` |
20 | | -Open a second terminal for the video capturing. |
| 29 | +Open a second terminal for the video capturing: |
21 | 30 | ``` |
22 | 31 | $ pip install -r camera/requirements.txt |
23 | 32 | $ python camera/read_camera.py |
24 | 33 | ``` |
25 | 34 |
|
26 | 35 | ## UI |
27 | | -* On `http://localhost:3000` you will be able to see all the captured frames |
28 | | -* On `http://localhost:3001` you will see only cats |
| 36 | +* `http://localhost:3000` shows all the captured frames |
| 37 | +* `http://localhost:3001` shows only the framse with cats |
29 | 38 |
|
30 | 39 | ## Limitations |
31 | | -This demo aimed at ease of setup and is hence heavily relying on docker. Better performance and a higher FPS can be achieved by runninng this demo outside docker. To control the FPS, look [here](https://github.com/RedisGears/AnimalRecognitionDemo/blob/master/app/gear.py#L53) |
| 40 | +This demo is designed to be easy to setup, so it relies heavily on docker. |
| 41 | +You can get better performance and a higher FPS by runninng this demo outside docker. |
| 42 | +To control the FPS, edit the [gear.py](https://github.com/RedisGears/AnimalRecognitionDemo/blob/master/app/gear.py#L53) file. |
0 commit comments