People can mask USPS AI detections

gwminor48

Known around here
Joined
Jul 16, 2015
Messages
3,439
Reaction score
6,069
Location
Texas
Typically a cloned camera has a specific purpose that uses a single model. For example, my driveway camera is setup to detect people, cats and dogs using the ipcam-combined model 24 hrs a day. I have also cloned the camera to use the USPS model that captures the mailman's vehicle, but only between sunrise & sunset and only if the vehicle is traveling from west to east. This triggers my home automation system to let me know the mail has arrived. A second clone of the same camera is setup to count the number of vehicles that drive by my house using ipcam-general model. I knew there was a lot of traffic on my street, but I had know idea how bad it was until I started counting the cars.

View attachment 161060
I would be curious at the number of cars on my street too. Is this a part of the ipcam-general model? Only on CPAI or Deepstack too?
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
705
Reaction score
620
Is this a part of the ipcam-general model? Only on CPAI or Deepstack too?
Yes and no. Everytime a car passes my house AI triggers a virtual switch in Hubitat. The virtual switch is connected to Home Assistant which counts the number of on/off instances and stores that number in its database. From there I use Grafana to graph the data. It sounds complicated, but it's really not.
 
Last edited:

prsmith777

Getting comfortable
Joined
Dec 23, 2019
Messages
218
Reaction score
338
Location
Colorado
Typically a cloned camera has a specific purpose that uses a single model. For example, my driveway camera is setup to detect people, cats and dogs using the ipcam-combined model 24 hrs a day. I have also cloned the camera to use the USPS model that captures the mailman's vehicle, but only between sunrise & sunset and only if the vehicle is traveling from west to east. This triggers my home automation system to let me know the mail has arrived. A second clone of the same camera is setup to count the number of vehicles that drive by my house using ipcam-general model. I knew there was a lot of traffic on my street, but I had know idea how bad it was until I started counting the cars.

View attachment 161060
I thought I'd try something similar.

I setup vehicle counting on my street cam using ipcam-general model. This is working well.
I then set up pushing data to HomeSeer via MQTT which is working well.
I set up an sqlite database on the HomeSeer box and have Date and AI memo for each vehicle passing. This is working well.
I then tried to set up grafana. It wouldnt configure right in Docker on synology so I added it on the HomeSeer box running windows. Finally got that working. Now I have to learn how to create dashboards on Grafana. Would like to have a similar page as yours. Any help appreciated.

vehicle count.jpg

database.jpg
 

prsmith777

Getting comfortable
Joined
Dec 23, 2019
Messages
218
Reaction score
338
Location
Colorado
Getting closer. I was not smart enough to use my existing database to create the chart, so I redid it with time columns of each hour. I have HomeSeer increment the count for each vehicle passing.

I still need to add daily, weekly and monthly totals. Haven't figured out how to add multiple panels on one dashboard yet.

bargraph.jpg
 

Vettester

Getting comfortable
Joined
Feb 5, 2017
Messages
705
Reaction score
620
Haven't figured out how to add multiple panels on one dashboard yet.
Just click on add and select visualization.

Screen Shot 2023-08-22 at 3.26.31 PM.png

For the visualization use Stat and configure the range for daily, weekly or monthly.

Screen Shot 2023-08-22 at 3.28.43 PM.png

Another option would be to copy the chart you have already created and then change the visualization from bar chart to stat. You can then set the range for whatever you want.
 
Last edited:

prsmith777

Getting comfortable
Joined
Dec 23, 2019
Messages
218
Reaction score
338
Location
Colorado
Thanks for the pointers. I've got it set up the way I like it.

Learning curve on how to implement sqlite queries to get what I wanted.

Had to use curl to create the png image of the grafana panel to place into HomeSeer.

graf.jpg
hs-bi.jpg
 
Top