barcode-scanner / index.html
SarowarSaurav's picture
Update index.html
8309108 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Barcode Scanner</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h1>Barcode Scanner</h1>
<div class="upload-section">
<label for="imageUpload" class="upload-label">
<span>Upload Image with Barcode</span>
<input type="file" id="imageUpload" accept="image/*">
</label>
</div>
<div class="preview-section">
<div class="image-preview">
<h2>Image Preview</h2>
<div id="scanner-container">
<img id="preview" src="#" alt="Preview" style="display: none;">
<canvas id="scanCanvas"></canvas>
</div>
</div>
<div class="result-section">
<h2>Recognition Result</h2>
<div id="status">Upload an image or use camera to start recognition</div>
<div id="result"></div>
</div>
</div>
<!-- Load ZXing library -->
<script src="https://unpkg.com/@zxing/library@latest"></script>
<script src="app.js"></script>
</body>
</html>