Tesseract experiments
How do I make an tesseract experiments?
What is a tesseract experiments? How do you make a tesseract experiments? This script and codes were developed by Rafael Abensur on 12 September 2022, Monday.
Tesseract experiments - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>tesseract experiments</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="row"> <div class="input"> <h4>input</h4> <input id="image" type="file" accept="image/*" onchange="handleFiles(this.files[0])" /> <img id="imagePreview" /> </div> <div class="output"> <h4>output</h4> <div id="outputMessages"></div> </div> <div class="result"> <h4>result</h4> <div id="resultContent"></div> </div>
</div> <script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.10/dist/tesseract.js'></script> <script src="js/index.js"></script>
</body>
</html>
Tesseract experiments - Script Codes CSS Codes
html { box-sizing: border-box; -webkit-font-smoothing: antialiased;
}
html *, html *::before, html *::after { box-sizing: inherit;
}
body { margin: 20px; background: #e2e2e2;
}
h4 { margin: 0; color: #888; font-weight: 400; padding-bottom: 5px;
}
.row { display: -webkit-box; display: -ms-flexbox; display: flex; -ms-flex-flow: row wrap; flex-flow: row wrap; width: 100%; background: #fff; padding: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.43), 0 1px 3px rgba(0, 0, 0, 0.53);
}
.row .input,
.row .output { -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
}
.row .result { -webkit-box-flex: 0; -ms-flex: 0 100%; flex: 0 100%;
}
.row .input { margin-right: 10px;
}
.row .output { margin-left: 10px;
}
.row .input input { margin: 10px 0 20px;
}
.row .input img { width: 100%; height: auto; outline: 1px solid black; min-height: 100px; min-width: 100px;
}
.row .result { margin-top: 20px;
}
Tesseract experiments - Script Codes JS Codes
'use strict';
console.clear();
var nodes = { imagePreview: document.querySelector('#imagePreview'), outputMessages: document.querySelector('#outputMessages'), resultContent: document.querySelector('#resultContent')
};
var pMessages = [];
var handleFiles = function handleFiles(file) { imagePreview.src = URL.createObjectURL(file); Tesseract.recognize(file).progress(tProgress).catch(function (err) { return console.error('err', err); }).then(tResult);
};
var tProgress = function tProgress(message) { var className = message.status.replace(/\ /g, '').replace(/\./g, ''); var log = message.status + ': ' + message.progress * 100 + '%'; if (outputMessages.querySelector('.' + className)) { outputMessages.querySelector('.' + className).innerHTML = log; } else { var newMessage = document.createElement('div'); newMessage.innerHTML = log; newMessage.classList.add(className); outputMessages.appendChild(newMessage); }
};
var tResult = function tResult(result) { resultContent.innerHTML = result.text;
};
Developer | Rafael Abensur |
Username | abensur |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 3,557 Kb |
Views | 107,272 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
React Progress Bar | 8,893 Kb |
Divinding circle | 2,390 Kb |
React Loader | 9,370 Kb |
New Pen Template | 1,233 Kb |
A Pen by Rafael Abensur | 5,301 Kb |
Algorithm practice | 5,620 Kb |
Food Seasons | 6,522 Kb |
Roundout Ribbon | 2,907 Kb |
Responsive SVG thermometer | 3,711 Kb |
Amadurou Logo Animation | 3,208 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Caputre Cam with JS | KimmoCommit | 2,795 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
Geildanke typography | Fischaela | 3,249 Kb |
Full page table inside the grid | Twikito | 1,864 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Chuck Norris Background | Manz | 1,967 Kb |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Pure CSS Menu | Bronsrobin | 3,321 Kb |
Expandable Left Side Bar with jQuery animate | Retrofuturistic | 2,483 Kb |
Layout 11 | Altynai | 1,690 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!