docs: Calculate runs measure after length and thickness
This commit is contained in:
+6
-4
@@ -32,11 +32,13 @@ Otherwise the app opens Add photo.
|
|||||||
2. App decodes the photo and opens Mask. App keys green or black and shows an overlay: slab stays the photograph; removed pixels are a light gray checkerboard.
|
2. App decodes the photo and opens Mask. App keys green or black and shows an overlay: slab stays the photograph; removed pixels are a light gray checkerboard.
|
||||||
3. User sets sheet Auto / Green / Black and sensitivity 0–100 (slider or minus / plus). App updates the control immediately. App recomputes the overlay 2.0 seconds after the last sensitivity change. User adjusts until only the slab remains, then approves. App blocks approve if the mask has no slab pixels; user retakes. The approved mask is the footprint for every later step.
|
3. User sets sheet Auto / Green / Black and sensitivity 0–100 (slider or minus / plus). App updates the control immediately. App recomputes the overlay 2.0 seconds after the last sensitivity change. User adjusts until only the slab remains, then approves. App blocks approve if the mask has no slab pixels; user retakes. The approved mask is the footprint for every later step.
|
||||||
4. App draws the minimum-area bounding rectangle of the mask and the length axis on the long side of that rectangle. User rotates the axis if it does not follow the slab length, then approves the axis.
|
4. App draws the minimum-area bounding rectangle of the mask and the length axis on the long side of that rectangle. User rotates the axis if it does not follow the slab length, then approves the axis.
|
||||||
5. User enters length `L` in inches (1/8 in steps) and thickness (1/8 in steps).
|
5. User enters length `L` in inches (1/8 in steps) and thickness (1/8 in steps), then presses Calculate.
|
||||||
6. App sets `scale = longest_axis_px / L`.
|
6. App sets `scale = longest_axis_px / L`.
|
||||||
7. App computes widths, sqft, and bdft from the mask, and writes the inventory PNG.
|
7. App computes widths, sqft, and bdft from the mask, and writes the inventory PNG.
|
||||||
8. User sees the PNG and the numbers. Milestone 1 stops here.
|
8. User sees the PNG and the numbers. Milestone 1 stops here.
|
||||||
|
|
||||||
|
Calculate does not create a WooCommerce product.
|
||||||
|
|
||||||
## Browsers
|
## Browsers
|
||||||
|
|
||||||
Phone: iOS Safari, Android Chrome.
|
Phone: iOS Safari, Android Chrome.
|
||||||
@@ -51,7 +53,7 @@ One photo component is reused. Each state advances on approve. Back returns to t
|
|||||||
2. Add photo — camera or picker. One photo. Setup rules visible.
|
2. Add photo — camera or picker. One photo. Setup rules visible.
|
||||||
3. Mask — background removal on that photo.
|
3. Mask — background removal on that photo.
|
||||||
4. Length axis — bounding rectangle and long-side axis on the same photo.
|
4. Length axis — bounding rectangle and long-side axis on the same photo.
|
||||||
5. Measure — length, thickness, inventory PNG, widths, sqft, bdft. Milestone 1 stops here.
|
5. Measure — length, thickness, Calculate, inventory PNG, widths, sqft, bdft. Milestone 1 stops here.
|
||||||
|
|
||||||
## Display
|
## Display
|
||||||
|
|
||||||
@@ -89,14 +91,14 @@ On the same photo, draw the minimum-area bounding rectangle of the mask and the
|
|||||||
|
|
||||||
## Measure
|
## Measure
|
||||||
|
|
||||||
User enters length `L` in inches (1/8 in steps) and thickness (1/8 in steps).
|
User enters length `L` in inches (1/8 in steps) and thickness (1/8 in steps), then presses Calculate.
|
||||||
|
|
||||||
- `scale = longest_axis_px / L`
|
- `scale = longest_axis_px / L`
|
||||||
- Widths: min, max, avg, sampled every 6 in along the approved length axis, perpendicular to it
|
- Widths: min, max, avg, sampled every 6 in along the approved length axis, perpendicular to it
|
||||||
- `sqft = (mask_pixels / scale²) / 144` (2 decimals)
|
- `sqft = (mask_pixels / scale²) / 144` (2 decimals)
|
||||||
- `bdft = sqft × thickness_in` (2 decimals)
|
- `bdft = sqft × thickness_in` (2 decimals)
|
||||||
|
|
||||||
User sees the inventory PNG and those numbers. Stop.
|
User sees the inventory PNG and those numbers. Stop. Calculate does not create a WooCommerce product.
|
||||||
|
|
||||||
## Device draft
|
## Device draft
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user