From ce520007ec16430af69602160eca74532ab346fd Mon Sep 17 00:00:00 2001 From: Jerome Wu Date: Tue, 27 Nov 2018 21:40:37 +0800 Subject: [PATCH] Update example and remove repeated files --- examples/node/basic.js | 2 +- examples/node/cosmic.png | Bin 13037 -> 0 bytes examples/node/detect.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 examples/node/cosmic.png diff --git a/examples/node/basic.js b/examples/node/basic.js index ee0d69c..515bdb1 100644 --- a/examples/node/basic.js +++ b/examples/node/basic.js @@ -2,7 +2,7 @@ const path = require('path'); const { TesseractWorker } = require('../../'); -const image = path.resolve(__dirname, 'cosmic.png'); +const image = path.resolve(__dirname, '../../tests/assets/images/cosmic.png'); const tessWorker = new TesseractWorker(); tessWorker.recognize(image) diff --git a/examples/node/cosmic.png b/examples/node/cosmic.png deleted file mode 100644 index b78d9da284ed46a600119de5eb804a239b52f09a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13037 zcmeI3S5y;U^zR8EqLhIC1nD3kA__`J2%sPukfI>HC;{mNq<7Sx1VpL=B2ADYNN=G9 zM1)Y3U=TtNJ%o^i9$Lsh{O(=%;XdDWpM1z#XJyXpJ?G4vJ)gb5XW~qZ?s1&uKg+diaF+3XxWLw#enFFC2+UrY{RznhZJYIsMt@4dbqHp;`UqOKC8iSpAT zA5W8A>@o&uR3d_mAfXU>JJTK&VHMQ71=2Y&Cl``@Y2(d+F0 zS^s9l%$1x|?aO^)nN?I&gX#aZX`!V81@PxdB5gpI<9MLAChFaGRi~0jYmfuB2*>f5 zBAD84j?OTsHO@=h27^W3D|S1_5j@7J7GQ@J_Nbad6mZHD6D(Uw5kv8n;XW7}kkpqc z?KRfVp@U~GM@KU=&HO&Hl0bmbcUdZFHel>k{COs1__U3LozLu;gF%aln`cn@=%O<& zW&1^ng6vg1acK;_Wo_z`=6@cn8JlA1OrN}m?T8-zO4 zxcKfZ@J(7IZ-0C~IIa)${K6Z+3r@1MLVX$LPQFqL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yx}S{F-ev1h7wa0pSx&Sm@pHZArvaXmOdPSc-fw=2`P10 zdDc#s&>6uUOE%$=EuKFtz3K@ZMk8G51V>u7qb>Yt>C3r@!8SHO2eOitA7n#dU?OXk zN)-4k4Zy=j!YeVQ!4He;jsyn+;2s0WjVs`Km6kI@Cu3`7^S|KP|X`#Ls-i=<>AT}Te1 z5}IB2Tje`(9Xqx@BNw_4zr^362U;T?O8kRnp>~FV{wd+8Jsn;#UuYFErx#V%|gr z=Nhb654U&k`0Bf=>nb@7pI>Q^QVcMT>gs~#Knk|cfoB#5u+tZ>dRHS{Ml9*&90L0U z@Y?=VpwW~2+2Ka54#SqKe(FD$?c$>ftcHhXAXf|qp>v6uu%m-V@Y$$?{s0xz^20Qo z0Y!OIO3#m712Ye*nV7NM=|p{1Dc?34&Sl#m|EM|m(+<3ep-It;O^3!^78znP9d|=r z-TKT0T7#EZ`m_S0KJ==8Jb*2~4)YGjTsyXT4rTkq`|o}f&jl@*kpk5ZOt#$@4{9lc z8C<($WEC)-Be^S;s#*U@{@67|z_kkCiy92@i#WP{sbg+1BH6w3`W<86)fyOP75VCqH%Q%1an`$zU3?`ExljL$g#momNVoFNlb8PkDz)i{ diff --git a/examples/node/detect.js b/examples/node/detect.js index b2e948a..c85bbd2 100644 --- a/examples/node/detect.js +++ b/examples/node/detect.js @@ -2,7 +2,7 @@ const path = require('path'); const { TesseractWorker } = require('../../'); -const image = path.resolve(__dirname, 'cosmic.png'); +const image = path.resolve(__dirname, '../../tests/assets/images/cosmic.png'); const tessWorker = new TesseractWorker(); tessWorker.detect(image)