Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant Trigger look? #35

Open
JamesHancockAtteria opened this issue Apr 14, 2024 · 3 comments
Open

Home Assistant Trigger look? #35

JamesHancockAtteria opened this issue Apr 14, 2024 · 3 comments

Comments

@JamesHancockAtteria
Copy link

I'd love to be able to get home assistant to somehow trigger a recognition. I have Unifi camears that raise events for vehicles and I'd love to use those notifications, then trigger plate-minder to do a recognition then, and only then.

It would lower overhead of running plate-minder a lot I would think.

Is there any way to do this?

@sclaflin
Copy link
Owner

Hi James, no, this isn't currently supported. You might be able to cobble together uploading images directly to https://github.com/sclaflin/OpenALPR-HTTP-Wrapper to recognize plates, but you wouldn't have the home assistant integration managed by plate-minder.

@JamesHancockAtteria
Copy link
Author

Is there like a rest interface that I could post a webhook or something to do that would cause plateminder to then do a recognition from the cameras that it has (if any)?

Basically I want to plateminder to sleep and do nothing until it has a reason to do so. I strikes me that most cameras have this kind of trigger so it would be great to lower the overhead on cpu etc. (and likely gpu) if plateminder didn't do anything until such time as it was told to.

@sclaflin
Copy link
Owner

Oh, I get what you're after. The problem is that the connection to the camera itself takes a little time. If you're scanning plates on a street or where cars pass by, the setup time required for plate-minder to connect to the camera, capture a frame, and scan for a plate likely exceeds the time that the car is even in the camera's frame.

That's why I suggested just cobbling something together that uploads a picture to OpenALPR-HTTP-Wrapper and has it scan for a plate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants