Skip to the page
Docs menu

Docs Start

How a measurement is made

The model proposes, the person decides. Each stage of a sawlog measurement and a lumber count, what the model and the app do at it, and the API fields that carry it.

Where it runs. Sawlogs run in test mode; measuring on a phone is tested off the phone, not run on phones. Lumber counting from a photo: the iPhone app proposes a count with the board-end counter, tested in the simulator, not on a phone. See What is available.

A model on the phone proposes what it sees in the picture; the app narrows the proposal to what is being measured and puts it in front of the operator; the operator confirms or corrects it; the server may measure again. Your system reads the result, and each step leaves a field behind. This page lists them. The site shows the same steps in pictures: The model proposes. The person decides.

Models make characteristic mistakes, and the design assumes they do. The log detector boxes every log end in view, cut-off ends at the edge of the frame included, and cannot know which one is meant. The board-end counter boxes board ends on neighbouring stacks and can count a board twice or miss one, and it cannot tell which of its boxes are wrong. So nothing a model proposes becomes data until the app has narrowed it and a person on site has had the chance to see it.

Sawlogs#

The stages below are those of the scale-with-tags and AR scale modes, as the Swift SDK implements them.

StageWho does itWhat happensWhere it shows in the API
1. FindModelThe log detector boxes every log end in the camera frame.Not stored for a measured log. A photo count keeps its boxes as the group image's detections[]
2. ChooseAppOnly boxes scoring above 0.50 whose centre lies in the middle of the view (0.30 to 0.70 of the frame on both axes) qualify; the widest is measured. The operator chooses by pointing the phone.measurement.measured_rect: the chosen log's box in its crop
3. CloserApp, modelThe app crops in around the chosen log, runs the detector again, crops again and runs it once more, keeping the centre log each time.image_id: the crop the log was measured on; photo.source_image_id and photo.box when the phone sent the scene photo
4. ScaleAppScale with QR tag reads the QR tag in the crop; a tag already used in this scan is refused. AR scale (iPhone) raycasts to the plane of the log face and rejects unstable hits with a hint to the operator.measurement.method (qr_scale, ar_scale), scale, tag_corners, quality.rejection_gates
5. EstimateAppThe phone saves the log with its diameters as a device estimate and marks it in the camera view. In AR scale, a log scanned again in the same place asks "Possible duplicate scan detected. Save this rescan?" before it is saved.A measurement with stage: device_estimate, diameter_lines, provenance (the user, device, app, SDK and detector), created_at
6. CheckPersonBefore the scan is sent, the operator can correct a log's species, length or grade, or discard it. Diameters cannot be typed over on the phone: a doubtful log is discarded and scanned again.The item's species, length (source: operator), grade; a discarded log never reaches the API
7. RefineServerAfter upload, the server traces the log end's outline on the saved photo and measures it again. In the app the log's badge turns from Estimate to Final.A new measurement with stage: server_refined, perimeter (50 points), diameter_lines; refinement.status
8. Correct after uploadPersonYour system, through the API: a figure entered by a person, with a reason; or the log removed.A new measurement with stage: manual_override and reason, actor your key; or status: removed

Measurements are never edited: each stage adds one, and the item's measurement is the newest of the highest stage (manual_override over server_refined over device_estimate over assigned). The whole history, newest first:

TypeScript
const timbereye = new Timbereye() // reads TIMBEREYE_SECRET_KEY
const history = await timbereye.items.listMeasurements("itm_5Lw2Nc")
curl
curl https://api.timbereye.com/v1/items/itm_5Lw2Nc/measurements \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY"
CLI
timbereye items measurements list itm_5Lw2Nc --json
JSON
{
    "object": "list",
    "data": [
        {
            "stage": "server_refined",
            "method": "qr_scale",
            "diameter_short_m": 0.477,
            "diameter_long_m": 0.492,
            "provenance": { "actor": { "type": "system", "id": null } },
            "image_id": "img_K3s9",
            "created_at": "2027-02-03T14:40:52Z"
        },
        {
            "stage": "device_estimate",
            "method": "qr_scale",
            "provenance": {
                "actor": { "type": "user", "id": "usr_7Qx2mK9pLs4T" },
                "device_model": "iPhone15,3"
            },
            "image_id": "img_K3s9",
            "created_at": "2027-02-03T14:12:31Z"
        }
    ],
    "has_more": false,
    "next_cursor": null
}

Abbreviated, with example values. To show the picture beside the figure, read the item with expand[]=photo: photo.download_url is the photo the effective measurement was made on, and its perimeter, diameter_lines, tag_corners and measured_rect are normalised to it, so you can draw them over it. Fields in full: Read logs, volume and photos and Accuracy and limits.

Lumber: counting board ends#

Where it runs. In the iPhone app, tested in the simulator and not on a phone. Where the server offers the board-end counter (0.9.0), the operator corrects the proposed region and dots and confirms, sent as vision_count with method: model. Without the counter the operator taps each board end (method: operator_taps).

StageWho does itWhat happensWhere it shows in the API
1. FindModelThe board-end counter boxes every board end in one photo of the bundle's end, neighbouring stacks included.Not stored
2. JoinAppWhere a steel strap cuts a board in two, the two boxes are joined into one. The rule would rather miss a join than join two real boards.Not stored
3. Which bundleApp, personA region is proposed around the bundle being counted; the operator drags its corners to change it, and the count is the dots inside it. With no bundle found, the app asks the operator to draw the region first.Not stored: only the dots inside it are sent
4. CorrectPersonThe operator taps to remove a wrong dot or add a missed one, then confirms. The count stays a proposal until then.vision_count.counted_pieces, regions (the dots), confirmed: true
5. SendAppThe tally goes up with the photo it was counted on.vision_count.method: model, vision_count.model, vision_count.image_id, image_ids
6. CompareServerThe tally reports the count beside the boards keyed, so a missed or doubled entry shows. A mismatch blocks nothing.counted_pieces, count_method, count_matches, count_difference
7. Correct after uploadPersonYour system corrects lines through the API, each change with a reason.POST /groups/{id}/tally/corrections; GET /groups/{id}/tally/revisions; a higher revision

The count as the tally carries it:

JSON
{
    "client_id": "B-03:tally:1",
    "replaces_revision": 0,
    "image_ids": ["img_7Dk2"],
    "lines": [
        { "width": { "value": 9.3, "unit": "in" }, "length": { "value": 9.25, "unit": "ft" }, "count": 1 }
    ],
    "vision_count": {
        "counted_pieces": 43,
        "image_id": "img_7Dk2",
        "method": "model",
        "confirmed": true,
        "regions": [{ "x": 812, "y": 455 }]
    }
}

vision_count.model names the model's id and version when a model proposed the dots. The tally and its corrections are in Lumber and panels.

What this page does not claim#

No accuracy figure is given here. The model's mistakes described above are the kinds it makes, shown so you can design around them; how often it makes them on your wood is not stated. See Accuracy and limits.