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 line
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,OAAOD,EA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