From 0b751dc1601eb5acee0f0158e28c355ced27995f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20S=C3=A1=20Couto?= Date: Mon, 27 Jan 2020 23:54:44 +0100 Subject: [PATCH] Should work, needs heavy testing --- .DS_Store | Bin 8196 -> 10244 bytes mask_crop.py => bounding_box.py | 2 +- merge_files.sh | 2 +- mirror_crop.py | 33 +++++++++++++++++++++++++++++ rotation.py | 36 ++++++++++++++++++++++++++++++++ scans/.DS_Store | Bin 0 -> 6148 bytes workshop_stream.sh | 4 +++- 7 files changed, 74 insertions(+), 3 deletions(-) rename mask_crop.py => bounding_box.py (94%) create mode 100644 mirror_crop.py create mode 100644 rotation.py create mode 100644 scans/.DS_Store diff --git a/.DS_Store b/.DS_Store index 59fbf2370bb4a8a81115ba9318790f1954867408..a1d8211ea6794a14d585588602f65f2ccd0046f4 100644 GIT binary patch literal 10244 zcmeHMO>7%Q6n>MWu*Pk&O+wos1ePL14;4-%M1l~)I4LM1kf=`6RB3B=y%T$t^^UbW zj+2H+7E;Bn5?2s6epGSi&d-elC#0UZa76+MRpJKU%&uFlV0fT@+z#w1{ zFbF&f2;j_C#mXks)CK{AfI;9c0&0KA;Zd}Z(sn}i)`3c=0H7lf>jEBmfVRn{w2;zv zLbWM;CfNf^O<9^^u*4kgIi(I-NNGEvi8-;voLJg3OEVOvdxu?4s}n0E)YJw6gFrt5 zDt8}4wl1iN%)L8*7qm;SP=ofC0#R`T;X+d_t~cM{`WDF7D_9Qlo&ksoRMP*HeLWF16~)aye>q3vKU4o2tiBhl%xeT2~IkL>@T<74iq z*&AW@sJW zu0+d@dvZa9((ywcX@7~2E0_Gx6Ro0XhF+}oQ|Fprbz}{G ztm(pL8-pOqSedeYW`BQvcII4eZtmb*Zh!XGdGN2lHh*xCv8<_=-??zD`SH!qKL7Ho zufO@>M{Pwc{ry2FllQyzPvE+M^D8?k9PCC1j^DcAIDTSu%sx3bJ~lBi`RpnC%v9N) zaGlC_HB#{}h(JWepvlYjSPT@FDk5Bs_zp(DA^EN>`Pb1j-eYiqd)MxX*7h3EnY<^^ zPT!3<4>zlk@2zZY#awQ5@t3dYz9g?Ng5DL4=TQuL*@+@2tn%XC)xdFi zuo4!9l%l@jBSICGc2{aR6+f&_zx7uFPiDGsHsNfV?jUB_Y%O%^9F41qY`XAX+Gx>B zIA`9cb?o2Q=~McGZqax2GyO`x(;xH?V{C|J*$H-von}+)1@TIbZ>Wwa~u8&t2i;L-8w){_S#vlFp{o9A_>%x10Mx%CA4?CqO3`AIkR~50X zPnsC(PMs1C*0{t<7kaG^Sh2(3!lwIl9H*Av9k$`2rgw)jI0;`I-s*$SnUSd;A9yvz zAYc$M2p9wm0tSJ{9)aOxggJHpe;z+V?(_fuV~>Lwph4hCMu3ehmKKXZpp!iHf}!r( zb9g?)ql(gNCsdoD(%12z`Z^vj>N;NMWRT5(*9Ck*F`(^)fi5VKd>=)0ktjy3ca2DQdpIb!49Y);XfEKFih?f zH)3OO25Qopd`#SqhrtP`*a9NEIfiF7vmi5200<swxpt2MIxIniFbmkKDDSFKV+Relc^=>X>yhkPM6&IQM4H`+tp3W-`eiyJRaFNCy5H1G-o}t(MqS z+^q-O<6T=&o>3^YYg8c6M?V2*@Ep0aK_4&FVOIm2Bcrh2+=2NcV1#6q3><-hZ`WLI AMgRZ+ literal 0 HcmV?d00001 diff --git a/workshop_stream.sh b/workshop_stream.sh index 187732f..557800c 100755 --- a/workshop_stream.sh +++ b/workshop_stream.sh @@ -1,10 +1,12 @@ mkdir split mkdir rotated mkdir ocred +mkdir bounding_box mkdir cropped ./merge_scans.sh python3 burstpdf.py python3 rotation.py -python3 mask_crop.py +python3 bounding_box.py +python3 mirror_crop.py python3 tesseract_ocr.py ./merge_files.sh