Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def pushToDropbox(plan1,area,df):
|
|
| 34 |
# if df !=None:
|
| 35 |
d=dropbox_upload_file('.',local_file=df,dropbox_file_path='/savedMeasurements/'+plan+'summary.csv')
|
| 36 |
#print(f)
|
| 37 |
-
def exportToExcel(Dictionary):
|
| 38 |
# Dictionary.to_excel("summary.xlsx")
|
| 39 |
d=dropbox_upload_file('.',local_file=Dictionary,dropbox_file_path='/savedMeasurements/'+plan+'summary.xlsx')
|
| 40 |
|
|
@@ -982,7 +982,7 @@ def getMeasurement(plan,SaveOP,check1, dp,in2,in3,in4,in5,in6,in7,in8,in9,in10,i
|
|
| 982 |
if SaveOP:
|
| 983 |
pushToDropbox(plan,imgPerimeter1,Dictionary)
|
| 984 |
if check1:
|
| 985 |
-
exportToExcel(Dictionary)
|
| 986 |
return imgPerimeter1,Dictionary
|
| 987 |
else:
|
| 988 |
area=PickColorContours(dp,img,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11)
|
|
|
|
| 34 |
# if df !=None:
|
| 35 |
d=dropbox_upload_file('.',local_file=df,dropbox_file_path='/savedMeasurements/'+plan+'summary.csv')
|
| 36 |
#print(f)
|
| 37 |
+
def exportToExcel(plan,Dictionary):
|
| 38 |
# Dictionary.to_excel("summary.xlsx")
|
| 39 |
d=dropbox_upload_file('.',local_file=Dictionary,dropbox_file_path='/savedMeasurements/'+plan+'summary.xlsx')
|
| 40 |
|
|
|
|
| 982 |
if SaveOP:
|
| 983 |
pushToDropbox(plan,imgPerimeter1,Dictionary)
|
| 984 |
if check1:
|
| 985 |
+
exportToExcel(plan,Dictionary)
|
| 986 |
return imgPerimeter1,Dictionary
|
| 987 |
else:
|
| 988 |
area=PickColorContours(dp,img,in2,in3,in4,in5,in6,in7,in8,in9,in10,in11)
|