At a last mile hub, setup a tool or application that has the ability to measure the dimensions (length, breadth and height) and capture volumetric weights by image, depth or any sensory processing as required. The tool will scan an item placed before it one by one, and estimate the volumetric weight provided that same items are expected to have similar volumetric weight.
Tool will be assisted with a barcode or qr scanner to identify the items (with barcoding or qr code scanning not being the scope of the problem). If similar items do not have the weight or dimensions within a range of accepted error, such items should be flagged as erroneous.
Item Name | Purpose | Qty |
---|---|---|
Arduino Nano | Central Processing Unit | 1 |
Weighing Load Cell | Converts force into electric signal (transducer) | 4 |
Hx711 Weight Pressure Sensor | Amplification of electrical signals | 1 |
Liquid Crystal Display 1602 | Output | 1 |
12V Li-Ion Battery | Input Power Supply | 1 |
12V to 3.3V Voltage Convertor | Stepping-down voltage | 1 |
Wires and PCB | Connection | - |
Top-View of the Weight Machine (315 grams Multimeter being measured)
Side-View of the Weight Machine (Load cells at bottom of the plate)
Item Name | Purpose | Qty |
---|---|---|
Arduino Nano | Central Processing Unit | 1 |
SHARP Infrared Sensor[GP2Y0A41SK0F] | Distance Measuring Sensor | 1 |
Liquid Crystal Display 1602 | Output | 1 |
12V Li-ION Battery | Input Power Supply | 1 |
12 V to 3.3 V Voltage Converter | Stepping-down Voltage | 1 |
Wires and PCB | Connection | 1 |
cd '.\Volumetric Weight Estimation\'
docker build -t weight_estimation .
docker run -d -p 5000:5000 weight_estimation2
1. Get Volume and other details from an image file:
-
Method:
POST
-
Request
The request body should contain a payload of type
form-data
having the following properties:key value file image (file buffer) Supported image formats include
png
,jpg
andjpeg
. -
Success Response:
- Code: 201
Content:{ "area": float, "breadth": float, "length": float }
- Code: 201
-
Error Response:
-
Code: 406
Content:{ "message": "Poor Lightning Conditions, Fix and Try Again" }
-
Code: 400
{ "message": "No file part in the request" }
-
2. Get Volume and other details from Base64-encoded string:
-
Method:
POST
-
Request
The request body should contain a
json
payload having the following properties:key value file Base64-encoded string of the image's data -
Success Response:
- Code: 201
{ "area": float, "breadth": float, "length": float }
- Code: 201
-
Error Response:
-
Code: 406
{ "message": "Poor Lightning Conditions, Fix and Try Again" }
-
Code: 400
{ "message": "JSON payload not found" }
-