File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 13
13
from PyQt5 .QtGui import QIcon , QPixmap , QImage
14
14
from db_manager import DbManager
15
15
16
- addr = 'http://localhost :5000'
16
+ addr = 'http://18.221.153.93 :5000'
17
17
upload_url = addr + '/upload'
18
18
19
19
class Ui_MainWindow (object ):
@@ -379,7 +379,6 @@ def displayData(self, results):
379
379
380
380
for i in range (5 ):
381
381
header .setSectionResizeMode (i , QtWidgets .QHeaderView .ResizeToContents )
382
- header .setSectionResizeMode (4 , QtWidgets .QHeaderView .Stretch )
383
382
384
383
def clearData (self ):
385
384
confirm = QMessageBox ()
Original file line number Diff line number Diff line change @@ -102,7 +102,6 @@ def should_merge(box1, box2):
102
102
else :
103
103
return (near_horizontal or near_vertical )
104
104
105
-
106
105
def merge (box1 , box2 ):
107
106
'''
108
107
Determine whether or not 2 boxes need to be merged
@@ -169,7 +168,6 @@ def mergeBox(box1, box2):
169
168
170
169
return reorder_points (np .asarray (new_box ))
171
170
172
-
173
171
def minimize_box_num (boxes ):
174
172
'''
175
173
Minimize the number of boxes to draw by determine
Original file line number Diff line number Diff line change 2
2
import sys
3
3
from PyQt5 import QtSql
4
4
5
- def path_to_temp (relative_path ):
5
+ def retrieve_path (relative_path ):
6
6
try :
7
7
base_path = sys ._MEIPASS
8
8
except Exception :
@@ -12,7 +12,7 @@ def path_to_temp(relative_path):
12
12
13
13
class DbManager :
14
14
def __init__ (self , app_name ):
15
- dir_path = path_to_temp ('data' )
15
+ dir_path = retrieve_path ('data' )
16
16
17
17
if not os .path .exists (dir_path ):
18
18
os .makedirs (dir_path )
You can’t perform that action at this time.
0 commit comments