Pure Javascript OCR for more than 100 Languages 📖🎉🖥
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1 lines
14 KiB

{"version":3,"sources":["dist/tesseract.js"],"names":["f","exports","module","define","amd","g","window","global","self","this","Tesseract","e","t","n","r","s","o","u","a","require","i","Error","code","l","call","length","1","process","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","setTimeout","clearTimeout","runTimeout","fun","runClearTimeout","marker","queue","draining","currentQueue","queueIndex","cleanUpNextTick","concat","drainQueue","timeout","len","run","nextTick","args","Array","arguments","push","Item","array","prototype","apply","title","browser","env","argv","version","versions","noop","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","name","binding","cwd","chdir","dir","umask","2","description","main","scripts","start","build","release","./src/node/index.js","author","license","devDependencies","babel-preset-es2015","babelify","browserify","concurrently","envify","http-server","pako","uglify-js","watchify","dependencies","file-type","isomorphic-fetch","is-url","jpeg-js","level-js","node-fetch","object-assign","png.js","tesseract.js-core","repository","type","url","bugs","homepage","3","defaultOptions","corePath","langPath","NODE_ENV","console","debug","workerPath","location","protocol","host","Math","random","toString","slice","spawnWorker","instance","workerOptions","Blob","URL","blob","worker","Worker","createObjectURL","onmessage","packet","data","_recv","terminateWorker","terminate","sendPacket","loadImage","payload","image","img","postMessage","cb","test","document","querySelector","im","Image","src","onload","xhr","XMLHttpRequest","open","responseType","response","onerror","send","File","fr","FileReader","result","readAsDataURL","getContext","tagName","c","createElement","width","naturalWidth","videoWidth","height","naturalHeight","videoHeight","ctx","drawImage","getImageData","canvas","../../package.json","_process","4","circularize","page","paragraphs","lines","words","symbols","blocks","forEach","block","para","line","paragraph","word","sym","5","_createClass","defineProperties","target","props","descriptor","enumerable","configurable","writable","Object","defineProperty","key","Constructor","protoProps","staticProps","_classCallCheck","TypeError","adapter","jobCounter","TesseractJob","id","_instance","_resolve","_reject","_progress","_finally","value","then","resolve","reject","catch","_catch","progress","fn","_send","action","jobId","_handle","runFinallyCbs","status","log","ret","warn","_dequeue","error","../node/index.js","6","create","undefined","TesseractWorker","assign","_currentJob","_queue","recognize","_this","options","_delay","job","lang","detect","_this2","_this3","shift","../package.json","./common/circularize.js","./common/job","./node/index.js"],"mappings":"CAAA,SAAUA,GAAG,UAAUC,UAAU,iBAAiBC,SAAS,YAAY,CAACA,OAAOD,QAAQD,SAAS,UAAUG,SAAS,YAAYA,OAAOC,IAAI,CAACD,OAAO,GAAGH,OAAO,CAAC,IAAIK,EAAE,UAAUC,SAAS,YAAY,CAACD,EAAEC,YAAY,UAAUC,SAAS,YAAY,CAACF,EAAEE,YAAY,UAAUC,OAAO,YAAY,CAACH,EAAEG,SAAS,CAACH,EAAEI,KAAKJ,EAAEK,UAAYV,MAA9T,CAAqU,WAAW,IAAIG,OAAOD,OAAOD,QAAQ,OAAO,SAAUU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIE,SAASC,SAAS,YAAYA,QAAQ,IAAIF,GAAGC,EAAE,OAAOA,EAAEF,GAAG,GAAG,GAAGI,EAAE,OAAOA,EAAEJ,GAAG,GAAG,IAAIhB,EAAE,IAAIqB,MAAM,uBAAuBL,EAAE,KAAK,MAAMhB,EAAEsB,KAAK,mBAAmBtB,EAAE,IAAIuB,EAAEV,EAAEG,GAAG,CAACf,QAAQ,IAAIW,EAAEI,GAAG,GAAGQ,KAAKD,EAAEtB,QAAQ,SAASU,GAAG,IAAIE,EAAED,EAAEI,GAAG,GAAGL,GAAG,OAAOI,EAAEF,EAAEA,EAAEF,IAAIY,EAAEA,EAAEtB,QAAQU,EAAEC,EAAEC,EAAEC,GAAG,OAAOD,EAAEG,GAAGf,QAAQ,IAAImB,SAASD,SAAS,YAAYA,QAAQ,IAAI,IAAIH,EAAE,EAAEA,EAAEF,EAAEW,OAAOT,IAAID,EAAED,EAAEE,IAAI,OAA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