Yay

Katalog numarası: 6117

Uygulama: PAN17| PAN19-1 | PAN22-1

Net fiyat:
Brüt fiyat:
2,94 EUR
2,94 EUR
Ürün Açıklaması

Yay

    1476 && lines[i].Words[j].Top > 22 ) { console.log(lines[i].Words[j].Left + ', ' + lines[i].Words[j].Top); console.log(lines[i].Words[j].WordText); imgP.append(''); l++; } } } } //== Odczytaj obrazek, weź dane OCR z cache lub wyślij zapytanie var ocrCache = false; var descrTxt = $('#spvTxt').html(); var img = $('#spvTxt img[src*="tabelka"]'); var imgP = img.parent(); //console.log( imgP ); imgP.css({'position': 'relative'}); img.css({'position': 'relative'}); if( typeof img[0] !== 'undefined' ) { var imgWidth = img[0].width; var imgHeight = img[0].height; console.log( imgWidth ); console.log( imgHeight ); var k = 1882 / imgWidth; // natural image width to resized ratio var m = 688 / imgHeight; //alert(descrTxt); var arr = descrTxt.match(/src=\"([\w\.\:\/\s]*tabelka\/[\w\.\/\s]*)/i); $imgUrl = arr[1].replace(/\n/g,''); //-- Sprawdź Cache i Wczytaj if( typeof(Storage) !== "undefined" ) { if( localStorage.getItem('lines') !== null) { var lines_stored = JSON.parse( localStorage.getItem('lines') ); var lines = lines_stored[1261]; console.log('--- READ ---'); if( typeof(lines) !== "undefined" ) { ocrCache = true; } } } console.log(ocrCache); if( !ocrCache ) { console.log('--- SENDING... ---'); var jsonUrl = 'https://api.ocr.space/parse/imageurl?apikey=644fedde0388957&url='+$imgUrl+'&isOverlayRequired=true'; console.log(jsonUrl); $.getJSON( jsonUrl, processOcrData ); } else { processOcrData( { 'ParsedResults': [ { 'TextOverlay': {'Lines': lines } } ] } ); } }