Tips & Tutorials

Javascript Image To Text With OCR (Simple Examples)

Welcome to a tutorial on how to convert an image to text in Javascript. Yes, image-to-text has already been around for some time, and it is called “Optical Character Recognition” (OCR). There is an open-source OCR library called TesseractJS that we can use: async conv () { const worker = await Tesseract.createWorker(); await worker.loadLanguage(“eng”); await

Javascript Image To Text With OCR (Simple Examples) Read More »

Capture Photos With Webcam In Javascript (Simple Example)

Welcome to a tutorial on how to capture photos with a webcam in Javascript. Yes, the Stone Age of the Internet is long over, and it is totally possible to take pictures directly using Javascript. navigator.mediaDevices.getUserMedia({ video: true }).then(stream => { // WEBCAM STREAM TO VIDEO let v = document.createElement(“video”); v.autoplay = true; v.srcObject =

Capture Photos With Webcam In Javascript (Simple Example) Read More »

Simple Javascript Progress Bar With Percentage (Free Download)

Welcome to a tutorial on how to create a progress bar with Javascript. Looking to add some nice “now processing” visuals to your website? We can use the HTML <progress> tag to create a very simple fuss-free progress bar: <style> #demo { -webkit-appearance: none; } ::-webkit-progress-bar { background: gray; } ::-webkit-progress-value { background: orange; }

Simple Javascript Progress Bar With Percentage (Free Download) Read More »