From fd5f277bd7cb5d563d902d197d9ea01ce181bed5 Mon Sep 17 00:00:00 2001 From: bio-punk Date: Thu, 24 Jan 2019 16:18:23 +0800 Subject: =?UTF-8?q?=E5=A4=B4=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4star?= =?UTF-8?q?=E4=B8=8A=E5=8D=83=E7=9A=84=E9=A1=B9=E7=9B=AE=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E4=BD=95=E8=A3=85=E4=BD=9C=E7=BB=8F=E5=B8=B8=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E7=9A=84=E6=A0=B7=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bio-punk --- Bio-punk/20190124143731.bmp | Bin 0 -> 2665386 bytes Bio-punk/20190124143818.bmp | Bin 0 -> 5499990 bytes Bio-punk/20190124143909.png | Bin 0 -> 827680 bytes Bio-punk/20190124143959.bmp | Bin 0 -> 649566 bytes Bio-punk/20190124144017.bmp | Bin 0 -> 1109574 bytes Bio-punk/20190124144201.bmp | Bin 0 -> 6748950 bytes Bio-punk/20190124144332.bmp | Bin 0 -> 2868534 bytes Bio-punk/20190124144351.bmp | Bin 0 -> 3674934 bytes Bio-punk/20190124144638.png | Bin 0 -> 746172 bytes Bio-punk/20190124144705.png | Bin 0 -> 902963 bytes Bio-punk/20190124144740.png | Bin 0 -> 923246 bytes Bio-punk/20190124144824.png | Bin 0 -> 1608723 bytes Bio-punk/20190124144856.png | Bin 0 -> 1319044 bytes Bio-punk/20190124144925.png | Bin 0 -> 1132964 bytes Bio-punk/20190124145008.bmp | Bin 0 -> 2051862 bytes Bio-punk/20190124145059.png | Bin 0 -> 775895 bytes 16 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 Bio-punk/20190124143731.bmp create mode 100644 Bio-punk/20190124143818.bmp create mode 100644 Bio-punk/20190124143909.png create mode 100644 Bio-punk/20190124143959.bmp create mode 100644 Bio-punk/20190124144017.bmp create mode 100644 Bio-punk/20190124144201.bmp create mode 100644 Bio-punk/20190124144332.bmp create mode 100644 Bio-punk/20190124144351.bmp create mode 100644 Bio-punk/20190124144638.png create mode 100644 Bio-punk/20190124144705.png create mode 100644 Bio-punk/20190124144740.png create mode 100644 Bio-punk/20190124144824.png create mode 100644 Bio-punk/20190124144856.png create mode 100644 Bio-punk/20190124144925.png create mode 100644 Bio-punk/20190124145008.bmp create mode 100644 Bio-punk/20190124145059.png (limited to 'Bio-punk') diff --git a/Bio-punk/20190124143731.bmp b/Bio-punk/20190124143731.bmp new file mode 100644 index 0000000..4690e4d Binary files /dev/null and b/Bio-punk/20190124143731.bmp differ diff --git a/Bio-punk/20190124143818.bmp b/Bio-punk/20190124143818.bmp new file mode 100644 index 0000000..20f0f8e Binary files /dev/null and b/Bio-punk/20190124143818.bmp differ diff --git a/Bio-punk/20190124143909.png b/Bio-punk/20190124143909.png new file mode 100644 index 0000000..440c7ba Binary files /dev/null and b/Bio-punk/20190124143909.png differ diff --git a/Bio-punk/20190124143959.bmp b/Bio-punk/20190124143959.bmp new file mode 100644 index 0000000..3c937e9 Binary files /dev/null and b/Bio-punk/20190124143959.bmp differ diff --git a/Bio-punk/20190124144017.bmp b/Bio-punk/20190124144017.bmp new file mode 100644 index 0000000..c1321e9 Binary files /dev/null and b/Bio-punk/20190124144017.bmp differ diff --git a/Bio-punk/20190124144201.bmp b/Bio-punk/20190124144201.bmp new file mode 100644 index 0000000..b97a025 Binary files /dev/null and b/Bio-punk/20190124144201.bmp differ diff --git a/Bio-punk/20190124144332.bmp b/Bio-punk/20190124144332.bmp new file mode 100644 index 0000000..f08fef5 Binary files /dev/null and b/Bio-punk/20190124144332.bmp differ diff --git a/Bio-punk/20190124144351.bmp b/Bio-punk/20190124144351.bmp new file mode 100644 index 0000000..51a1fe8 Binary files /dev/null and b/Bio-punk/20190124144351.bmp differ diff --git a/Bio-punk/20190124144638.png b/Bio-punk/20190124144638.png new file mode 100644 index 0000000..4629c6b Binary files /dev/null and b/Bio-punk/20190124144638.png differ diff --git a/Bio-punk/20190124144705.png b/Bio-punk/20190124144705.png new file mode 100644 index 0000000..c79c496 Binary files /dev/null and b/Bio-punk/20190124144705.png differ diff --git a/Bio-punk/20190124144740.png b/Bio-punk/20190124144740.png new file mode 100644 index 0000000..a2154c5 Binary files /dev/null and b/Bio-punk/20190124144740.png differ diff --git a/Bio-punk/20190124144824.png b/Bio-punk/20190124144824.png new file mode 100644 index 0000000..1681e6a Binary files /dev/null and b/Bio-punk/20190124144824.png differ diff --git a/Bio-punk/20190124144856.png b/Bio-punk/20190124144856.png new file mode 100644 index 0000000..d2cd119 Binary files /dev/null and b/Bio-punk/20190124144856.png differ diff --git a/Bio-punk/20190124144925.png b/Bio-punk/20190124144925.png new file mode 100644 index 0000000..1a8f62d Binary files /dev/null and b/Bio-punk/20190124144925.png differ diff --git a/Bio-punk/20190124145008.bmp b/Bio-punk/20190124145008.bmp new file mode 100644 index 0000000..26545cc Binary files /dev/null and b/Bio-punk/20190124145008.bmp differ diff --git a/Bio-punk/20190124145059.png b/Bio-punk/20190124145059.png new file mode 100644 index 0000000..1368b8c Binary files /dev/null and b/Bio-punk/20190124145059.png differ -- cgit v1.2.3 From 9204d28650c86fb3bbc48f66b316a0fa4ba234db Mon Sep 17 00:00:00 2001 From: bio-punk Date: Thu, 24 Jan 2019 20:41:13 +0800 Subject: =?UTF-8?q?=E7=94=A8python=E5=92=8Copencv=E5=86=99=E4=BA=86?= =?UTF-8?q?=E4=B8=AA=E5=8E=8B=E7=BC=A9=E5=9B=BE=E7=89=87=E7=9A=84=EF=BC=8C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8E=8B=E7=BC=A9=E5=88=B01366=E7=9A=84jpg?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=20=E5=8E=8B=E7=BC=A9=E4=BA=86=E5=8E=9F?= =?UTF-8?q?=E6=9D=A5=E7=9A=84=E7=85=A7=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bio-punk/.gitignore | 2 ++ Bio-punk/20190124143731.bmp | Bin 2665386 -> 0 bytes Bio-punk/20190124143731.bmp.jpg | Bin 0 -> 81733 bytes Bio-punk/20190124143818.bmp | Bin 5499990 -> 0 bytes Bio-punk/20190124143818.bmp.jpg | Bin 0 -> 343535 bytes Bio-punk/20190124143909.png | Bin 827680 -> 0 bytes Bio-punk/20190124143909.png.jpg | Bin 0 -> 157665 bytes Bio-punk/20190124143959.bmp | Bin 649566 -> 0 bytes Bio-punk/20190124143959.bmp.jpg | Bin 0 -> 46306 bytes Bio-punk/20190124144017.bmp | Bin 1109574 -> 0 bytes Bio-punk/20190124144017.bmp.jpg | Bin 0 -> 100097 bytes Bio-punk/20190124144201.bmp | Bin 6748950 -> 0 bytes Bio-punk/20190124144201.bmp.jpg | Bin 0 -> 555930 bytes Bio-punk/20190124144332.bmp | Bin 2868534 -> 0 bytes Bio-punk/20190124144332.bmp.jpg | Bin 0 -> 160194 bytes Bio-punk/20190124144351.bmp | Bin 3674934 -> 0 bytes Bio-punk/20190124144351.bmp.jpg | Bin 0 -> 254696 bytes Bio-punk/20190124144638.png | Bin 746172 -> 0 bytes Bio-punk/20190124144638.png.jpg | Bin 0 -> 180264 bytes Bio-punk/20190124144705.png | Bin 902963 -> 0 bytes Bio-punk/20190124144705.png.jpg | Bin 0 -> 213113 bytes Bio-punk/20190124144740.png | Bin 923246 -> 0 bytes Bio-punk/20190124144740.png.jpg | Bin 0 -> 242458 bytes Bio-punk/20190124144824.png | Bin 1608723 -> 0 bytes Bio-punk/20190124144824.png.jpg | Bin 0 -> 605190 bytes Bio-punk/20190124144856.png | Bin 1319044 -> 0 bytes Bio-punk/20190124144856.png.jpg | Bin 0 -> 250894 bytes Bio-punk/20190124144925.png | Bin 1132964 -> 0 bytes Bio-punk/20190124144925.png.jpg | Bin 0 -> 428759 bytes Bio-punk/20190124145008.bmp | Bin 2051862 -> 0 bytes Bio-punk/20190124145008.bmp.jpg | Bin 0 -> 155785 bytes Bio-punk/20190124145059.png | Bin 775895 -> 0 bytes Bio-punk/20190124145059.png.jpg | Bin 0 -> 178329 bytes Bio-punk/zipPhoto.py | 27 +++++++++++++++++++++++++++ 34 files changed, 29 insertions(+) create mode 100644 Bio-punk/.gitignore delete mode 100644 Bio-punk/20190124143731.bmp create mode 100644 Bio-punk/20190124143731.bmp.jpg delete mode 100644 Bio-punk/20190124143818.bmp create mode 100644 Bio-punk/20190124143818.bmp.jpg delete mode 100644 Bio-punk/20190124143909.png create mode 100644 Bio-punk/20190124143909.png.jpg delete mode 100644 Bio-punk/20190124143959.bmp create mode 100644 Bio-punk/20190124143959.bmp.jpg delete mode 100644 Bio-punk/20190124144017.bmp create mode 100644 Bio-punk/20190124144017.bmp.jpg delete mode 100644 Bio-punk/20190124144201.bmp create mode 100644 Bio-punk/20190124144201.bmp.jpg delete mode 100644 Bio-punk/20190124144332.bmp create mode 100644 Bio-punk/20190124144332.bmp.jpg delete mode 100644 Bio-punk/20190124144351.bmp create mode 100644 Bio-punk/20190124144351.bmp.jpg delete mode 100644 Bio-punk/20190124144638.png create mode 100644 Bio-punk/20190124144638.png.jpg delete mode 100644 Bio-punk/20190124144705.png create mode 100644 Bio-punk/20190124144705.png.jpg delete mode 100644 Bio-punk/20190124144740.png create mode 100644 Bio-punk/20190124144740.png.jpg delete mode 100644 Bio-punk/20190124144824.png create mode 100644 Bio-punk/20190124144824.png.jpg delete mode 100644 Bio-punk/20190124144856.png create mode 100644 Bio-punk/20190124144856.png.jpg delete mode 100644 Bio-punk/20190124144925.png create mode 100644 Bio-punk/20190124144925.png.jpg delete mode 100644 Bio-punk/20190124145008.bmp create mode 100644 Bio-punk/20190124145008.bmp.jpg delete mode 100644 Bio-punk/20190124145059.png create mode 100644 Bio-punk/20190124145059.png.jpg create mode 100644 Bio-punk/zipPhoto.py (limited to 'Bio-punk') diff --git a/Bio-punk/.gitignore b/Bio-punk/.gitignore new file mode 100644 index 0000000..39ba4e8 --- /dev/null +++ b/Bio-punk/.gitignore @@ -0,0 +1,2 @@ +/*.bmp +/*.png diff --git a/Bio-punk/20190124143731.bmp b/Bio-punk/20190124143731.bmp deleted file mode 100644 index 4690e4d..0000000 Binary files a/Bio-punk/20190124143731.bmp and /dev/null differ diff --git a/Bio-punk/20190124143731.bmp.jpg b/Bio-punk/20190124143731.bmp.jpg new file mode 100644 index 0000000..949125e Binary files /dev/null and b/Bio-punk/20190124143731.bmp.jpg differ diff --git a/Bio-punk/20190124143818.bmp b/Bio-punk/20190124143818.bmp deleted file mode 100644 index 20f0f8e..0000000 Binary files a/Bio-punk/20190124143818.bmp and /dev/null differ diff --git a/Bio-punk/20190124143818.bmp.jpg b/Bio-punk/20190124143818.bmp.jpg new file mode 100644 index 0000000..275a9bd Binary files /dev/null and b/Bio-punk/20190124143818.bmp.jpg differ diff --git a/Bio-punk/20190124143909.png b/Bio-punk/20190124143909.png deleted file mode 100644 index 440c7ba..0000000 Binary files a/Bio-punk/20190124143909.png and /dev/null differ diff --git a/Bio-punk/20190124143909.png.jpg b/Bio-punk/20190124143909.png.jpg new file mode 100644 index 0000000..d6d7104 Binary files /dev/null and b/Bio-punk/20190124143909.png.jpg differ diff --git a/Bio-punk/20190124143959.bmp b/Bio-punk/20190124143959.bmp deleted file mode 100644 index 3c937e9..0000000 Binary files a/Bio-punk/20190124143959.bmp and /dev/null differ diff --git a/Bio-punk/20190124143959.bmp.jpg b/Bio-punk/20190124143959.bmp.jpg new file mode 100644 index 0000000..13cfe04 Binary files /dev/null and b/Bio-punk/20190124143959.bmp.jpg differ diff --git a/Bio-punk/20190124144017.bmp b/Bio-punk/20190124144017.bmp deleted file mode 100644 index c1321e9..0000000 Binary files a/Bio-punk/20190124144017.bmp and /dev/null differ diff --git a/Bio-punk/20190124144017.bmp.jpg b/Bio-punk/20190124144017.bmp.jpg new file mode 100644 index 0000000..366df66 Binary files /dev/null and b/Bio-punk/20190124144017.bmp.jpg differ diff --git a/Bio-punk/20190124144201.bmp b/Bio-punk/20190124144201.bmp deleted file mode 100644 index b97a025..0000000 Binary files a/Bio-punk/20190124144201.bmp and /dev/null differ diff --git a/Bio-punk/20190124144201.bmp.jpg b/Bio-punk/20190124144201.bmp.jpg new file mode 100644 index 0000000..92d2dca Binary files /dev/null and b/Bio-punk/20190124144201.bmp.jpg differ diff --git a/Bio-punk/20190124144332.bmp b/Bio-punk/20190124144332.bmp deleted file mode 100644 index f08fef5..0000000 Binary files a/Bio-punk/20190124144332.bmp and /dev/null differ diff --git a/Bio-punk/20190124144332.bmp.jpg b/Bio-punk/20190124144332.bmp.jpg new file mode 100644 index 0000000..8540d76 Binary files /dev/null and b/Bio-punk/20190124144332.bmp.jpg differ diff --git a/Bio-punk/20190124144351.bmp b/Bio-punk/20190124144351.bmp deleted file mode 100644 index 51a1fe8..0000000 Binary files a/Bio-punk/20190124144351.bmp and /dev/null differ diff --git a/Bio-punk/20190124144351.bmp.jpg b/Bio-punk/20190124144351.bmp.jpg new file mode 100644 index 0000000..48f130c Binary files /dev/null and b/Bio-punk/20190124144351.bmp.jpg differ diff --git a/Bio-punk/20190124144638.png b/Bio-punk/20190124144638.png deleted file mode 100644 index 4629c6b..0000000 Binary files a/Bio-punk/20190124144638.png and /dev/null differ diff --git a/Bio-punk/20190124144638.png.jpg b/Bio-punk/20190124144638.png.jpg new file mode 100644 index 0000000..f3de04b Binary files /dev/null and b/Bio-punk/20190124144638.png.jpg differ diff --git a/Bio-punk/20190124144705.png b/Bio-punk/20190124144705.png deleted file mode 100644 index c79c496..0000000 Binary files a/Bio-punk/20190124144705.png and /dev/null differ diff --git a/Bio-punk/20190124144705.png.jpg b/Bio-punk/20190124144705.png.jpg new file mode 100644 index 0000000..bd15086 Binary files /dev/null and b/Bio-punk/20190124144705.png.jpg differ diff --git a/Bio-punk/20190124144740.png b/Bio-punk/20190124144740.png deleted file mode 100644 index a2154c5..0000000 Binary files a/Bio-punk/20190124144740.png and /dev/null differ diff --git a/Bio-punk/20190124144740.png.jpg b/Bio-punk/20190124144740.png.jpg new file mode 100644 index 0000000..9fd6d3b Binary files /dev/null and b/Bio-punk/20190124144740.png.jpg differ diff --git a/Bio-punk/20190124144824.png b/Bio-punk/20190124144824.png deleted file mode 100644 index 1681e6a..0000000 Binary files a/Bio-punk/20190124144824.png and /dev/null differ diff --git a/Bio-punk/20190124144824.png.jpg b/Bio-punk/20190124144824.png.jpg new file mode 100644 index 0000000..0e58198 Binary files /dev/null and b/Bio-punk/20190124144824.png.jpg differ diff --git a/Bio-punk/20190124144856.png b/Bio-punk/20190124144856.png deleted file mode 100644 index d2cd119..0000000 Binary files a/Bio-punk/20190124144856.png and /dev/null differ diff --git a/Bio-punk/20190124144856.png.jpg b/Bio-punk/20190124144856.png.jpg new file mode 100644 index 0000000..1b190c9 Binary files /dev/null and b/Bio-punk/20190124144856.png.jpg differ diff --git a/Bio-punk/20190124144925.png b/Bio-punk/20190124144925.png deleted file mode 100644 index 1a8f62d..0000000 Binary files a/Bio-punk/20190124144925.png and /dev/null differ diff --git a/Bio-punk/20190124144925.png.jpg b/Bio-punk/20190124144925.png.jpg new file mode 100644 index 0000000..53dbea6 Binary files /dev/null and b/Bio-punk/20190124144925.png.jpg differ diff --git a/Bio-punk/20190124145008.bmp b/Bio-punk/20190124145008.bmp deleted file mode 100644 index 26545cc..0000000 Binary files a/Bio-punk/20190124145008.bmp and /dev/null differ diff --git a/Bio-punk/20190124145008.bmp.jpg b/Bio-punk/20190124145008.bmp.jpg new file mode 100644 index 0000000..c338279 Binary files /dev/null and b/Bio-punk/20190124145008.bmp.jpg differ diff --git a/Bio-punk/20190124145059.png b/Bio-punk/20190124145059.png deleted file mode 100644 index 1368b8c..0000000 Binary files a/Bio-punk/20190124145059.png and /dev/null differ diff --git a/Bio-punk/20190124145059.png.jpg b/Bio-punk/20190124145059.png.jpg new file mode 100644 index 0000000..4727220 Binary files /dev/null and b/Bio-punk/20190124145059.png.jpg differ diff --git a/Bio-punk/zipPhoto.py b/Bio-punk/zipPhoto.py new file mode 100644 index 0000000..5036255 --- /dev/null +++ b/Bio-punk/zipPhoto.py @@ -0,0 +1,27 @@ +# -*- coding: utf-8 -*- + +import cv2 +from os import listdir +from re import match +from re import I as flag +import numpy as np + +def resize_width(image, width=1200): + power = width * 1.0 / image.shape[1] + dim = (width, int(image.shape[0] * power)) + resized = cv2.resize(image, dim, interpolation=cv2.INTER_AREA) + return resized + +def zip_photo(filepath): + targetWidth = 1366 + image = cv2.imread(filepath) + if image.shape[0] > targetWidth: + image = resize_width(image=image, width = targetWidth) + cv2.imwrite("{}.jpg".format(filepath), image) + +dirpath = "." +for filename in listdir(dirpath): + ans = match("^(.*)[.]((png)|(bmp)|(jpg)|(jpeg))$", filename, flag) + if ans is not None: + print (filename) + zip_photo("{}/{}".format(dirpath, filename)) \ No newline at end of file -- cgit v1.2.3 From 1eadcb3f2da9e34cb10cbf011bd139cd33e9db04 Mon Sep 17 00:00:00 2001 From: WZK Date: Sun, 27 Jan 2019 11:26:03 +0800 Subject: =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=88=A0=E6=8E=89=E8=BF=99=E5=BC=A0?= =?UTF-8?q?=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bio-punk/20190124144638.png.jpg | Bin 180264 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 Bio-punk/20190124144638.png.jpg (limited to 'Bio-punk') diff --git a/Bio-punk/20190124144638.png.jpg b/Bio-punk/20190124144638.png.jpg deleted file mode 100644 index f3de04b..0000000 Binary files a/Bio-punk/20190124144638.png.jpg and /dev/null differ -- cgit v1.2.3