Updates

Feb 24, 2025 - 04:28: Added Allergen Lookup

Feb 22: Manual Entry Option: Added a "Manual Entry" button with modal for direct barcode input. JavaScript Inlining: Moved all JavaScript into the HTML file to avoid file-not-found issues. Unified CSS: Standardized button sizes and fixed modal input field padding/box-sizing. Overlay Smoothing: Reduced the smoothing factor from 0.2 to 0.1 to decrease jitter. Detection Stability: Added a bounding box size check to ignore detections when the barcode is too small. Database Lookup: Increased Open Food Facts retries to 5 (500ms delay) before falling back to UPCItemDB. User Feedback: Updated on-screen text to "Barcode Found - Searching Database" with a 1500ms finalization delay. Focus & Lighting Modals: Introduced a 6-second timer to trigger a one-time Focus Issue Modal (with Yes/No options) that leads to either manual entry or a Lighting Modal with a "Proceed" button.

Feb 8-9: Added Open Food Fact database for more results and the ability to submit food items to the database. Minor UI/UX tweaks.

Feb 10, 2025: Added new barcode/UPC/QR scanner

Feb 11, 2025 - 04:28: Made camera window bigger

[2025-02-11] – Native Share Button Implementation Added a "Share" button below the "Submit Product" button in index.html. Implemented native sharing functionality in eh.js using the Navigator.share API, with a fallback to copying the URL via the Clipboard API. Updated CSS in index.html so that the "Share" button matches the fixed width (300px) of other action buttons (e.g., Coffee, Submit, etc.). Both index.html and eh.js have been updated to support this new feature.

Change Log Date: 2025-02-13 Time: 15:45:00 Camera View Improvements: Added CSS rule object-fit: cover to the video element to prevent the camera feed from appearing compressed or squished. Introduced an aspectRatio constraint (ideal value: 1.333) in the initialization to better match a typical 4:3 camera output. Overlay Enhancements: Updated CSS to ensure the overlay canvas sits on top of the video feed by setting appropriate z-index values for the video (z-index: 1) and canvas (z-index: 2). Implemented smoothing in the onProcessed callback by linearly interpolating the bounding box and scan line coordinates using values from the previous frame. This minimizes jitter and stabilizes the overlay. Debounce Mechanism: Added a debounce mechanism that requires three consecutive identical barcode detections before the system processes the result. This helps avoid false triggers due to partial or blurred captures. Failover Order Update: Configured the product lookup process to first query Open Food Facts. If no product is found, it falls back to other databases. General Code Improvements: Reset smoothing variables and debounce state each time the scanner is initialized to ensure consistency between scans. These changes aim to improve the overall user experience by delivering a stable, correctly proportioned camera feed with a smooth and accurate barcode detection overlay.

Thanks for the coffees—they're driving these updates!

Back to Scanner