Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2022-104
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2022-104
2022-104
Commits
127f263f
Commit
127f263f
authored
Nov 14, 2022
by
H.G.A.G.Hathnapitiya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parent
85d4374c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
102 additions
and
0 deletions
+102
-0
Notebook_file
Notebook_file
+102
-0
No files found.
Notebook_file
0 → 100644
View file @
127f263f
#!/usr/bin/env python
# coding: utf-8
# In[1]:
Day
=
int
(
input
(
"Press Enter to continue..."
))
# In[2]:
Day
# In[3]:
import
pandas
as
pd
dataset
=
pd
.
read_excel
(
"Plant_Life_Cycle_dataset3.xlsx"
)
# In[4]:
dataset
[
"Days"
]
=
dataset
[
"Days"
]
.
fillna
(
0
)
# In[5]:
dataset
=
dataset
.
astype
({
'Days'
:
'int'
})
# In[6]:
record
=
dataset
.
loc
[
dataset
[
"Days"
]
==
Day
]
# In[7]:
record
# In[8]:
min_Height
=
record
.
_get_value
(
Day
-
1
,
'min_Height'
)
max_Height
=
record
.
_get_value
(
Day
-
1
,
"max_Height"
)
min_Leaves
=
record
.
_get_value
(
Day
-
1
,
"min_Leaves"
)
max_Leaves
=
record
.
_get_value
(
Day
-
1
,
"max_Leaves"
)
min_Area
=
record
.
_get_value
(
Day
-
1
,
"min_Area"
)
max_Area
=
record
.
_get_value
(
Day
-
1
,
"max_Area"
)
Remarks
=
record
.
_get_value
(
Day
-
1
,
"Remarks"
)
# In[9]:
source
=
'7.jpeg'
# In[10]:
get_ipython
()
.
system
(
'python NewdetectforIpynb.py --weight best.pt --source {source} --min_Height {min_Height} --max_Height {max_Height} --min_Leaves {min_Leaves} --max_Leaves {max_Leaves} --min_Area {min_Area} --max_Area {max_Area}'
)
# In[11]:
recommendation
=
pd
.
read_csv
(
"test.csv"
)
# In[12]:
State
=
recommendation
.
_get_value
(
0
,
"State"
)
recomnd1
=
recommendation
.
_get_value
(
0
,
"recommendation1"
)
recomnd2
=
recommendation
.
_get_value
(
0
,
"recommendation2"
)
print
(
f
'State Of the Plant is -- {State}'
)
if
len
(
str
(
recomnd2
))
>
5
:
print
(
f
'Recommendation to the Plant is -- {recomnd2}'
)
if
len
(
str
(
recomnd1
))
>
5
:
print
(
f
'Recommendation to the Plant is -- {recomnd1}'
)
# In[ ]:
# In[ ]:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment