Closed coding-to-music closed 2 years ago
Regarding the camera issue: VM can’t access (by default) to your webcam for security reasons. Remote VM adds another complexity. If you really want to run this demo in this configuration, you will have to make a few changes (maybe run the camera script locally? Or on a local VM that you granted access to the webcam?) Make sure you modify the connection parameters for this kind of configuration.
Regarding the test issue: try running
ANIMAL=cat python camera/read_camera.py --test
OR
ANIMAL=dog python camera/read_camera.py --test
The ANIMAL
variable determines the test image (cat.jpg or dog.jpg), and this demo doesn’t support both on the same run
ok, thanks, that works
make clean
make setup
make build
export ANIMAL=dog
make test
... more lines ...
1657058108889-1 addToGraphRunner: count= 140
1657058108947-0 addToGraphRunner: animal= golden_retriever
1657058108990-0 shouldTakeFrame 141 False
1657058109091-0 shouldTakeFrame 142 False
1657058109192-0 shouldTakeFrame 143 False
1657058109292-0 shouldTakeFrame 144 False
1657058109394-0 shouldTakeFrame 145 False
1657058109494-0 shouldTakeFrame 146 False
1657058109595-0 shouldTakeFrame 147 False
1657058109696-0 shouldTakeFrame 148 False
1657058109797-0 shouldTakeFrame 149 False
1657058109898-0 shouldTakeFrame 150 True
1657058109899-0 addToGraphRunner: count= 150
1657058109956-0 addToGraphRunner: animal= golden_retriever
1657058109999-0 shouldTakeFrame 151 False
1657058110100-0 shouldTakeFrame 152 False
1657058110201-0 shouldTakeFrame 153 False
1657058110302-0 shouldTakeFrame 154 False
1657058110403-0 shouldTakeFrame 155 False
1657058110503-0 shouldTakeFrame 156 False
1657058110604-0 shouldTakeFrame 157 False
Stopping camera.catndogs ... done
Stopping redis.catndogs ... done
Removing camera.catndogs ... done
Removing app.catndogs ... done
Removing redis.catndogs ... done
Removing network catsndogs_default
dogs: OK
So, success !!! Thanks
Hello, I am doing this tutorial: https://github.com/RedisGears/AnimalRecognitionDemo
My repo is here: https://github.com/coding-to-music/redisgears-redisai-animal-recognition
I had some hiccups about git lfs, but seem to have that working However, I have not been able to get the "make test" to work In the UI I only see the Redis logo, no images I am unable to view the .pb video file (stored via lfs) so not sure it is correct/working
I am developing on a remote VM (Digitalocean droplet) so not sure if I can use my webcam? I am using a chromebook but run everything on the droplet. Pretty sure it can't see my camera.
Some before / after as I was doing the steps:
make start
Output:
make camera
Output:
pip3 install opencv-python
start redis and other services
make camera
Output:
run the camera process in test mode (without streaming from your camera):
Note that the provided code (below) will (without quotes) interpret the pipe symbol as a pipe and not an OR (should the example be revised?)
export a value for ANIMAL using quotes
ensure the value is correct for ANIMAL
Output
Run the test
Output
The docker console log shows this:
make test
Output:
Any assistance is appreciated