amc:ss2024:irrigantion_cart_nozzle:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2024:irrigantion_cart_nozzle:start [2024/07/31 02:29] – [Python Code] amr.abdelkhalek | amc:ss2024:irrigantion_cart_nozzle:start [2024/10/20 23:40] (current) – [Enhancing the If-Condition for Better Plant Recognition] amr.abdelkhalek | ||
---|---|---|---|
Line 300: | Line 300: | ||
==== Required Libraries ==== | ==== Required Libraries ==== | ||
+ | |||
+ | To install the required libraries for the project, open and download the following text file " | ||
+ | |||
+ | <file txt requirements.txt> | ||
+ | bqplot | ||
+ | traits | ||
+ | numpy | ||
+ | paho-mqtt | ||
+ | ipywidgets | ||
+ | pandas | ||
+ | </ | ||
+ | |||
+ | Then run the following terminal command in the environment where you will run the project: | ||
+ | |||
+ | <code python> | ||
+ | pip install -r requirements.txt | ||
+ | </ | ||
+ | |||
+ | |||
==== MQTT Client Setup and Configuration ==== | ==== MQTT Client Setup and Configuration ==== | ||
Line 523: | Line 542: | ||
==== Defining and Initializing System States with Enum ==== | ==== Defining and Initializing System States with Enum ==== | ||
- | <code python> | + | |
class State(Enum): | class State(Enum): | ||
IDLE = 1 # State when the system is idle | IDLE = 1 # State when the system is idle | ||
Line 1098: | Line 1117: | ||
10001.0 | 10001.0 | ||
10002.0 | 10002.0 | ||
- | ==== Enhancing the If-Condition for Better Plant Recognition ==== | ||
- | To enhance the condition for recognizing plants more accurately, we need to implement peak detection logic and replace the older one; to ensure only true plants are detected. This approach reduces the likelihood of false positives caused by objects with heights above 120 mm even as mentioned earlier and help creating an automated system that keeps track of the plants. | ||
- | |||
==== Enhancing the If-Condition for Better Plant Recognition ==== | ==== Enhancing the If-Condition for Better Plant Recognition ==== |
amc/ss2024/irrigantion_cart_nozzle/start.1722385747.txt.gz · Last modified: 2024/07/31 02:29 by amr.abdelkhalek