Warehouse Vision
Transform your warehouse operations with cutting-edge computer vision and machine learning technology
Created on 29th May 2025
•
Warehouse Vision
Transform your warehouse operations with cutting-edge computer vision and machine learning technology
The problem Warehouse Vision solves
Our project, Warehouse Vision, is designed to streamline and automate various essential tasks within a warehouse or inventory management setting by leveraging advanced computer vision and machine learning, including the capabilities of the advanced AI models.
Traditional warehouse operations often involve many manual, time-consuming, and error-prone tasks. Warehouse Vision aims to tackle these challenges by:
Reducing Manual Labor: Automates the process of identifying products, reading labels, counting items, and checking freshness, which otherwise require significant human effort.
Minimizing Human Error: Manual data entry and visual checks can lead to mistakes. Computer vision offers more consistent and potentially more accurate data extraction.
Speeding Up Operations: Automating these tasks significantly reduces the time taken for processes like inventory intake, stock auditing, and quality checks.
Improving Data Accuracy for Decision Making: Provides more reliable data for inventory planning, waste reduction, and sales forecasting.
Enhancing Product Traceability and Information Access: Quickly digitizes information from physical products and labels.
Warehouse Vision offers a suite of tools that make various tasks easier and more efficient, leveraging advanced computer vision and powerful generative AI models:
Automated Product Identification (Brand & Product Recognition)
Intelligent Inventory Counting (Item Counting)
Quality Control for Perishables (Freshness Detection)
Effortless Data Capture from Labels (Nutrition Info & MRP-Expiry Detection).
Challenges we ran into
Camera Not Starting :
Hurdle: One of the earliest and most persistent challenges was getting the camera functionality in the frontend (ImageUpload.tsx) to work reliably. Users would click "Use Camera," and it would get stuck on the "Starting camera..." message. Console logs often showed that the getUserMedia call was successful (a MediaStream object was received), but the video feed wouldn't appear.
Troubleshooting & Resolution: This involved several steps:
We initially suspected permission issues or incorrect useEffect dependencies.
A key breakthrough was realizing that the <video> HTML element's ref (videoRef.current) was often null when the useEffect hook that tried to attach the MediaStream was running. This was due to the conditional rendering logic: the video tag was only mounted after the loading state (isStartingCamera) was false, creating a race condition.
The Fix: We refactored the JSX to ensure the <video> tag was rendered as soon as showCamera became true. The isStartingCamera state was then used to control an overlay loading indicator, rather than the mounting of the video element itself. This ensured videoRef.current was available when needed.
We also made the useEffect more robust by using the onplaying event of the video element as the definitive trigger to set isStartingCamera to false.
Frontend Mismatch with Backend Data Structure:
Hurdle: After the backend changed the nutrients field from an object to an array of objects, the frontend (which was still using Object.entries() expecting an object) started displaying array indices (0, 1, 2...) as nutrient names.
Troubleshooting & Resolution:
The Fix: We updated the frontend React component's interface (NutritionInfo) and its rendering logic to correctly iterate over the nutrients array and access the nutrient_name, amount, and daily_value properties from each object in the array.
