Opencv#7261
Conversation
There was a problem hiding this comment.
Please inheret from ImageProcessingFaceEntity
There was a problem hiding this comment.
But it's not necessarily a Face - just the default classifier is
There was a problem hiding this comment.
The entity could be anything - if you had a car classifier, it would be a car, not a face, if it was a tree classifier, it's a tree
There was a problem hiding this comment.
Here are classifiers that people can use (without even getting into making their own):
https://github.com/opencv/opencv/tree/master/data/haarcascades
https://github.com/opencv/opencv/tree/master/data/lbpcascades
Examples include:
Cat, Cat Face, Silverware, Upper Body, Lower Body, Full Body, License Plates
I do not agree with making this a ImageProcessingFaceEntity as that would be misleading to what it can process.
There was a problem hiding this comment.
I think that the Face entity could actually be easily changed to be a generic Thing detector with a confidence level etc. In fact, that is pretty much what @Teagan42 has here. I think it's fine as is. The important part here is that the base entity from the component is filled in.
|
What's wrong with the camera component? User has the ability to add or not add the camera if they want, it's not dispatched, it does it's own processing separate from the image_processing component (decoupled)... |
|
What the hell is up with those two unit tests? I rebased with dev and they still fail. |
|
I think you need make a new branch and copy your work into that. Look like that your branch is broken |
|
By the way. All image_processing can output picture like that you have made with camera things. I think HomeAssistant should not make that playing stuff inside a official platform. That will be a nice gist or custom platform. A image_process platform should only make a event for we can do some things with automation. Real processing and pipe things should be done in other library or projects and we are only the endpoint for that. |
|
Pascal is right, there is a lot of different platforms and component changes in your PR. Can you fix that? |
|
Hello @Teagan42, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
|
Hello @Teagan42, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
|
Hello @Teagan42, When attempting to inspect the commits of your pull request for CLA signature status among all authors we encountered commit(s) which were not linked to a GitHub account, thus not allowing us to determine their status(es). The commits that are missing a linked GitHub account are the following:
Unfortunately, we are unable to accept this pull request until this situation is corrected. Here are your options:
We apologize for this inconvenience, especially since it usually bites new contributors to Home Assistant. We hope you understand the need for us to protect ourselves and the great community we all have built legally. The best thing to come out of this is that you only need to fix this once and it benefits the entire Home Assistant and GitHub community. Thanks, I look forward to checking this PR again soon! ❤️ |
|
I should have looked at the files changed - that's what I get for coding high late at night. I removed the camera but left the configuration option and will add a gist for the camera component (will link on the doc PR) so it's nice and easily loaded. Unless I need to get rid of the camera configuration option (which should just fail gracefully if you don't have the cutom_component) |
|
I just removed the last pieces for the camera discovery, since it's not part of this PR. Will merge it once tests pass 🐬 🎉 Thanks @Teagan42 ! I think that it's fine to have a camera feed, as long as the camera feed implements OpenCV directly. |
|
|
||
|
|
||
| @asyncio.coroutine | ||
| def async_setup(hass, config): |
There was a problem hiding this comment.
Please use only setup. Or the fetch will lock all
| http = urllib3.PoolManager() | ||
| request = http.request('GET', CASCADE_URL, preload_content=False) | ||
|
|
||
| with open(DEFAULT_CLASSIFIER_PATH, 'wb') as out: |
|
Can you convert the output of openvc to a usable output with fore events like all other platform does? |
|
@pvizeli What would you suggest? It returns something like: So, if you have a classifier group, that has "Teagan Face", "Grace Face", "Dog", you can determine which ones were matched and where |
Description:
Adds OpenCV classification processing component. Includes ability to add a camera to show where the detected matches are.
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#2208
Example entry for
configuration.yaml(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
toxrun successfully. Your PR cannot be merged unless tests passREQUIREMENTSvariable ([example][ex-requir]).requirements_all.txtby runningscript/gen_requirements_all.py..coveragerc.If the code does not interact with devices:
toxrun successfully. Your PR cannot be merged unless tests pass