[tool] [tutorial] Free AI Person Detection for Blue Iris

I don't know if this is related but the processing time on your log is ~ 20-40us, I usually get around 900ms on a Xeon E5-2670. Are you running the gpu version and is the time any different of windows?
 
Ok, deepstack can run on GPU much faster than CPU and I thought that maybe the reason your times are so low. What are the processing times that deepstack is showing in its log?
 
Ok, you previously said you installed deepstack on windows and saw the /v1/vision/detection on startup, is the processing time the same there? Your previous log was missing the detection API and therefore was giving 403 errors whenever AI Tool tried to request for it.
 
Oupps. On Windows Server 2019 the logs are clear in DeepStack AI Server. If I use localhost:83 in AI Tool it says "Can't reach DeepQuestAI Server at localhost:83". And there is nothing new at DeepStack AI Server logs. If I use 127.0.0.1:83 and the IP of the machine of the ip in the AI Tool it says "Failure in AI Tool processing the image", but there is still nothing in the DeepStack logs.
At AI Tool:
Code:
Log format: [dd.MM.yyyy, HH:mm:ss]: Log text.
[06.05.2020, 18:19:23]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_181923155.jpg' failed. Can't reach DeepQuestAI Server at localhost:83.
[06.05.2020, 18:19:28]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_181928222.jpg' failed. Can't reach DeepQuestAI Server at localhost:83.
[06.05.2020, 18:19:41]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_181940928.jpg' failed. Can't reach DeepQuestAI Server at localhost:83.
[06.05.2020, 18:19:46]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_181945945.jpg' failed. Can't reach DeepQuestAI Server at localhost:83.
[06.05.2020, 18:21:59]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_182159439.jpg' failed. Can't reach DeepQuestAI Server at 127.0.0.1:83.
[06.05.2020, 18:22:02]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Terr1sd.20200506_182202012.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:22:04]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Gar1sd.20200506_182204886.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:24:39]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_182439500.jpg' failed. Can't reach DeepQuestAI Server at 192.168.1.17:83.
[06.05.2020, 18:24:46]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Gar1sd.20200506_182445894.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:25:00]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_182500738.jpg' failed. Can't reach DeepQuestAI Server at 192.168.1.17:83.
[06.05.2020, 18:25:02]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Terr1sd.20200506_182502190.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:25:04]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Gar1sd.20200506_182503932.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:25:06]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Ht1sd.20200506_182506528.jpg' failed. Can't reach DeepQuestAI Server at 192.168.1.17:83.
[06.05.2020, 18:25:07]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Terr1sd.20200506_182507215.jpg' failed. Failure in AI Tool processing the image.
[06.05.2020, 18:25:09]: ERROR: Processing the following image 'C:\BlueIris\AI Tool\aiinput/Gar1sd.20200506_182508990.jpg' failed. Failure in AI Tool processing the image.
 
Ok, if Deepstack has no logs than it is not receiving any data. I would try running both AI Tool and Deepstack as administrator, and if that does not work try turning off windows firewall for both applications. I use localhost:81 for my setup, and run Deepstack on port 81.
 
Just saw a very good video by "The Hook Up" about setting up BI with this ai tool and was wondering about the detection options. I see bear, horse, cow available and since I do live in a Colorado Rockies forest I would like to capture, (along with humans, cars & bears) moose, deer, bobcat, wild turkey, coyote and other wild animals that might show up. Just wondering if this tool will allow for this kind of wildlife capture while eliminating a lot of the annoying triggers. Thanks for this tool, will be giving it a try when our basement remodel is finally done and I have a hobby office up and running.
 
Ok, if Deepstack has no logs than it is not receiving any data. I would try running both AI Tool and Deepstack as administrator, and if that does not work try turning off windows firewall for both applications. I use localhost:81 for my setup, and run Deepstack on port 81.
There is now still nothing in the logs.
 
Just saw a very good video by "The Hook Up" about setting up BI with this ai tool and was wondering about the detection options. I see bear, horse, cow available and since I do live in a Colorado Rockies forest I would like to capture, (along with humans, cars & bears) moose, deer, bobcat, wild turkey, coyote and other wild animals that might show up. Just wondering if this tool will allow for this kind of wildlife capture while eliminating a lot of the annoying triggers. Thanks for this tool, will be giving it a try when our basement remodel is finally done and I have a hobby office up and running.

I just added the objects I considered most useful at the time, so others will be possible with future updates. When the Deepquest Backend becomes open source even more things will be possible.
 
  • Like
Reactions: EasilyDistracted
Just saw a very good video by "The Hook Up" about setting up BI with this ai tool and was wondering about the detection options. I see bear, horse, cow available and since I do live in a Colorado Rockies forest I would like to capture, (along with humans, cars & bears) moose, deer, bobcat, wild turkey, coyote and other wild animals that might show up. Just wondering if this tool will allow for this kind of wildlife capture while eliminating a lot of the annoying triggers. Thanks for this tool, will be giving it a try when our basement remodel is finally done and I have a hobby office up and running.

Found the video you mentioned:
it's a very nice visual explaination of the whole setup :D

 
Just wanted to share an update here. I was able to get DeepStack running on Windows. I initially tried on Windows 10 with no luck. I also tried Windows 8.1 with no luck. I was able to get it running on a fresh VM running Server 2012 R2. I had to install Microsoft Visual C++ 2015 Redistributable and Microsoft Visual C++ 2010 Service Pack 1 Redistributable Package MFC Security Update because I was getting "the program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing" error when starting DeepStack. I also had enable Desktop Experience from Server Manager. After a reboot I started DeepStack and had AI Tool upload an image. The first attempt failed, but the second and all subsequent requests were successful. From my research it appears to be some issue with DeepStack and newer versions of Windows. Below are the links to install Visual C++

Edit: It does work on Windows 10 after installing Visual C++. I just verified this. It looks like the only dependency is Visual C++

 
Last edited:
@Lazersfly is right, you did not enable the correct api on your ubuntu server. And otherwise make sure the port is correct.
I missed it. I started from scratch and im coming up with the following settings/files:

Code:
#/root/docker-compose.yml
version: "3.3"
services:
  deepstack-ai:
    image: deepquestai/deepstack:noavx
    volumes:
      - type: volume
        source: localstorage
        target: /datastore
        volume:
          nocopy: true
    ports:
      - 80:5000
    deploy:
      restart_policy:
        condition: always
    environment:
      - VISION-DETECTION=True

volumes:
  localstorage:


Code:
#/etc/systemd/system/deepstack-ai.service

[Unit]
Description=Deepstack AI Server
Requires=docker.service
After=docker.service


[Service]
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/root/
ExecStart=/usr/bin/docker-compose up
ExecStop=/usr/bin/docker-compose down
TimeoutStartSec=0


[Install]
WantedBy=multi-user.target

after that:
systemctl daemon-reexec to restart the systemctl daemon.
sudo systemctl enable deepstack-ai.service to enable autostart of deepstack-ai.service.

& reboot and now is all working great. Big thanks to @GentlePumpkin and @Lazersfly


Code:
May 07 10:09:22 deepstack-ai docker-compose[2259]: deepstack-ai_1  | [GIN] 2020/05/07 - 10:09:22 | 200 |  798.914141ms |    192.168.1.17 | POST     /v1/vision/detection
May 07 10:16:41 deepstack-ai docker-compose[2259]: deepstack-ai_1  | [GIN] 2020/05/07 - 10:16:41 | 200 |  798.114259ms |    192.168.1.17 | POST     /v1/vision/detection
May 07 10:16:46 deepstack-ai docker-compose[2259]: deepstack-ai_1  | [GIN] 2020/05/07 - 10:16:46 | 200 |  779.038397ms |    192.168.1.17 | POST     /v1/vision/detection
 
Last edited: