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

Detect if plant needs to be turned #26

Closed
NiallEHunt opened this issue Mar 3, 2021 · 0 comments · Fixed by #39
Closed

Detect if plant needs to be turned #26

NiallEHunt opened this issue Mar 3, 2021 · 0 comments · Fixed by #39
Assignees
Labels
enhancement New feature or request
Projects

Comments

@NiallEHunt
Copy link
Collaborator

NiallEHunt commented Mar 3, 2021

Background

We want to be able to detect if the plant needs to be turned. The idea being if the plant is leaning towards the window we may want to rotate the plant to ensure it grows straight to avoid it toppling over in the future. The plan is to take a picture of the plant every day, or couple of days (#12), calculate statistics such as height (#25) and to detect if the plant needs to be turned. The motor will be used to turn the plant if needed.

Tasks

  • Check if plant is leaning from segmented objects from Camera firmware #12.
  • Determine a valid threshold for plant leaning
  • Send message to actuate on result

Recommended approach

We could try to fit a line of best fit to the detected objects and determine if the curve of that line is too severe or too much to one side. We could also try to detect the amount of leaves (green) to the left and right of the center of the pot and determine if there are too many leaves on one side. Either way the camera should ideally be parallel to the window to determine if the plant is leaning towards it. The image below describes what I mean.

image

@NiallEHunt NiallEHunt added the enhancement New feature or request label Mar 3, 2021
@NiallEHunt NiallEHunt added this to the Image processing milestone Mar 3, 2021
@NiallEHunt NiallEHunt self-assigned this Mar 3, 2021
@NiallEHunt NiallEHunt added this to To do in IoTea via automation Mar 3, 2021
@NiallEHunt NiallEHunt linked a pull request Mar 26, 2021 that will close this issue
IoTea automation moved this from To do to Done Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
IoTea
Done
Development

Successfully merging a pull request may close this issue.

1 participant