drap 0.0.4.post5__py3-none-any.whl → 0.0.4.post6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- drap/main.py +0 -1
- drap/utils.py +14 -7
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/METADATA +1 -1
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/RECORD +8 -8
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/WHEEL +0 -0
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/entry_points.txt +0 -0
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/licenses/LICENSE +0 -0
- {drap-0.0.4.post5.dist-info → drap-0.0.4.post6.dist-info}/top_level.txt +0 -0
drap/utils.py
CHANGED
@@ -54,8 +54,8 @@ class ImageCropper(QMainWindow):
|
|
54
54
|
|
55
55
|
def initUI(self):
|
56
56
|
|
57
|
-
|
58
|
-
self.test = False
|
57
|
+
self.test = True
|
58
|
+
# self.test = False
|
59
59
|
# print("teste")
|
60
60
|
|
61
61
|
|
@@ -197,9 +197,9 @@ class ImageCropper(QMainWindow):
|
|
197
197
|
if self.test:
|
198
198
|
self.load_image()
|
199
199
|
self.int_input1.setText("45.")
|
200
|
-
self.int_input2.setText("
|
201
|
-
self.int_input3.setText("
|
202
|
-
self.int_input4.setText("
|
200
|
+
self.int_input2.setText("10")
|
201
|
+
self.int_input3.setText("5000")
|
202
|
+
self.int_input4.setText("1.0")
|
203
203
|
|
204
204
|
self.show()
|
205
205
|
|
@@ -207,7 +207,8 @@ class ImageCropper(QMainWindow):
|
|
207
207
|
|
208
208
|
|
209
209
|
if self.test:
|
210
|
-
self.file_path = "/
|
210
|
+
self.file_path = "/media/standard02/Linux_sync_2020_02/standart/Documents/programming/python/files/15-SY-50cm/water-without-absolute-intensity2.flv"
|
211
|
+
# self.file_path, _ = QFileDialog.getOpenFileName(self, 'Open Video', '', 'Videos (*.avi *.mp4 *.mov *.mkv *.wmv *.flv *.mpg *.mpeg *.3gp *.ogv .webm)')
|
211
212
|
else:
|
212
213
|
self.file_path, _ = QFileDialog.getOpenFileName(self, 'Open Video', '', 'Videos (*.avi *.mp4 *.mov *.mkv *.wmv *.flv *.mpg *.mpeg *.3gp *.ogv .webm)')
|
213
214
|
|
@@ -421,7 +422,7 @@ class ImageCropper(QMainWindow):
|
|
421
422
|
numbers = [(input_field.text()) for input_field in [self.int_input1, self.int_input2, self.int_input3, self.int_input4]];
|
422
423
|
|
423
424
|
for output_field, number in zip([self.int_output1, self.int_output2, self.int_output3], numbers):
|
424
|
-
output_field.setText(f'
|
425
|
+
output_field.setText(f'Number: {number}')
|
425
426
|
|
426
427
|
set_file_1 = conc_scat_video(3, file_video =self.file_path, px_mm = float(numbers[0]) , step = int(numbers[1]), time_limit = int(numbers[2]), Co = float(numbers[3]) , retangulo = self.ret, print_pdf = print_pdf);
|
427
428
|
result_image = set_file_1.read_video();
|
@@ -1307,6 +1308,12 @@ class conc_scat_video:
|
|
1307
1308
|
new_w = int(img_w * factor)
|
1308
1309
|
new_h = int(img_h * factor)
|
1309
1310
|
|
1311
|
+
if new_w <= 1 or new_h <= 1:
|
1312
|
+
print(f"Error, check the video; it seems probably there is no droplet image starting from {int(time)} s.")
|
1313
|
+
break
|
1314
|
+
|
1315
|
+
|
1316
|
+
|
1310
1317
|
imagem = cv2.resize(imagem, (new_w, new_h), interpolation=cv2.INTER_LINEAR)
|
1311
1318
|
# cv2.imwrite("saida_crop.png",imagem);
|
1312
1319
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: drap
|
3
|
-
Version: 0.0.4.
|
3
|
+
Version: 0.0.4.post6
|
4
4
|
Summary: Tool for analyzing droplet size and concentration using video and EDF images
|
5
5
|
Author-email: "Gabriel Braga Marques Teobaldo, Oleg Prymak, Natalie Wolff, Matthias Epple, Marco Aurélio Brizzotti Andrade, Cássio Alves and Cristiano Luis Pinto de Oliveira" <crislpo@ufpr.br>
|
6
6
|
License: MIT
|
@@ -1,16 +1,16 @@
|
|
1
1
|
drap/__init__.py,sha256=RF05F-NDoYmyOjQ1EgdKSfsx2tTYCheTpL0AYrFmdI0,47
|
2
2
|
drap/automation.py,sha256=TvCwFeYgrKxc50kaQkV2ETGyD1RhxCCX5oCGMWo2JjU,1294
|
3
3
|
drap/gui.py,sha256=LzBBQwFiF6IcOZfBkWB6wnKsBKD-v-6Un8VoJMG7eKU,1553
|
4
|
-
drap/main.py,sha256=
|
4
|
+
drap/main.py,sha256=FHiki3tcip7BOvsEFxVacdienu1D3QHneuXEidBfBXs,1200
|
5
5
|
drap/qt_adjust.py,sha256=Ru99Qz_5bqxwDNGxREQnF17BZ0Nda0eeuQvH2-w98S8,1317
|
6
6
|
drap/terminal_interface.py,sha256=vCnobMdtxKvCUaFsu0fWmChd65a-Osn41LdMtSdMdO4,2201
|
7
|
-
drap/utils.py,sha256=
|
7
|
+
drap/utils.py,sha256=IZSKId6gGP74myeouZOid86vbbRn_GKr7HDz44eXPT0,67369
|
8
8
|
drap/resources/DrapuserGuide_eng.pdf,sha256=EF9GwitgqOB9MPAWta6fXgPTaKU6O8_ERCcb6mbrj4A,553887
|
9
9
|
drap/resources/DrapuserGuide_pt.pdf,sha256=KjbIWg5df5eAWFtx4eGFUcIb6ktTlHG8bztMk6l0_d4,547977
|
10
10
|
drap/resources/name_videos.dat,sha256=-BC_xVXnRDN-zIcQk95_DUi0WLbmARlap2ML9N8LszI,481
|
11
|
-
drap-0.0.4.
|
12
|
-
drap-0.0.4.
|
13
|
-
drap-0.0.4.
|
14
|
-
drap-0.0.4.
|
15
|
-
drap-0.0.4.
|
16
|
-
drap-0.0.4.
|
11
|
+
drap-0.0.4.post6.dist-info/licenses/LICENSE,sha256=iHcEhVN-5ifqXsDa1Ny38sIBS7SJ9-eYJQRtHiJ3QU0,1098
|
12
|
+
drap-0.0.4.post6.dist-info/METADATA,sha256=nFbZKDTL610Dc8nqSmc2ZfUAqoDxweGbyweq16S8vus,1491
|
13
|
+
drap-0.0.4.post6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
14
|
+
drap-0.0.4.post6.dist-info/entry_points.txt,sha256=8AnGrT_RVCkh26SYRqjRTbstT4BMuOO68qRFqPfPr8M,69
|
15
|
+
drap-0.0.4.post6.dist-info/top_level.txt,sha256=jYMnBoijRdvPMYoMlILxlRNbSdKUX3_uwMa7DLRE4zE,5
|
16
|
+
drap-0.0.4.post6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|