Skip to the page
Docs menu

Docs Sawlogs

Accuracy and limits

What a measurement is, the stages it passes through, what refinement adds, how adjustment policies are recorded, and the known limits.

Reference for step 2 (Scan) and step 3 (Sync). What a log's measurement is, how final it is, and what the current build cannot do.

Availability#

TopicState
Measurement records, stages and provenanceAvailable in the current build
Manual override measurementsAvailable in the current build
Server refinementDepends on image storage and the segmentation endpoint. Not verified end to end
Adjustment policy recordingAvailable in the current build
Accuracy evidenceNone published

Accuracy evidence#

Timbereye publishes no accuracy figure.

This page states no accuracy figure. An accuracy figure holds only with its conditions: species, volume rule, capture mode, pipeline version, and whether an adjustment policy was on. Do not quote a Timbereye accuracy number to your customers.

What a measurement is#

A measurement is the diameters of one log end, with the evidence behind them. The API calls a log an item. It is immutable. A change adds a new measurement. It is never an edit.

FieldMeaning
diameter_short_m, diameter_long_mRaw diameters in metres, three decimals
adjustmentsNamed policies applied after measurement, each { policy, field, from, to }
effective_short_m, effective_long_mThe diameters after adjustments. Volume uses these
perimeterA 50-point normalised polygon outlining the log end
scaleHow perimeter units convert to metres: source, m_per_unit_x, m_per_unit_y
qualityconfidence (0 to 1) and rejection_gates scores, where available
provenanceDetector and segmenter model ids and versions, SDK and app version, device model, OS, actor
reasonRequired for manual_override. Null otherwise
image_id, scan_idThe log-end photo, and the scan (the sitting of scanning) it came from

scale.source is qr_tag (the tag's printed size is side_mm), ar_raycast, or legacy for records made before the platform. The two scale factors differ when the tag is viewed at an angle.

Every measurement records the models that produced it as id@version. That is what a claim rests on if a measurement is disputed. Read the history with GET /items/{id}/measurements.

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": [
        {
            "id": "msr_8Rt4Vb",
            "object": "measurement",
            "stage": "server_refined",
            "method": "qr_scale",
            "diameter_short_m": 0.477,
            "diameter_long_m": 0.492,
            "scale": { "source": "qr_tag", "side_mm": 62, "m_per_unit_x": 0.81, "m_per_unit_y": 0.8 },
            "provenance": {
                "detector": { "id": "log-detector", "version": "2.1.0" },
                "segmenter": { "id": "log-segmenter", "version": "1.3.0" }
            },
            "reason": null
        }
    ],
    "has_more": false,
    "next_cursor": null
}

The detector's confidence#

A device estimate may carry quality.detection_confidence, and the item detection_confidence: the log detector's score for the box the phone measured in. It is about the detection (was this box a log end), not the measurement: it is not a tolerance, not a probability that the diameters are right, and scores from different detector versions do not compare. Flag low scores for a person to check; do not convert them into an error margin.

The stages#

StageProduced byNotes
assignedA nominal diameter class from the group specNo image. Not a measurement of the log. Not billed
device_estimateThe capture engine on the phoneImmediate. Works offline
server_refinedServer segmentation of the item imageFollows the estimate, after the image upload
manual_overrideA person, with a required reasonWins over every other stage

Precedence: manual_override, then server_refined, then device_estimate, then assigned. The effective measurement is the newest one of the highest stage.

An assigned value is a class you set. It is a way to get a volume from a tag count. Do not treat it as the size of the log. A group's summary.measured does not count assigned items. They are reported in summary.assigned_count.

Add an override:

TypeScript
const override = await timbereye.items.createMeasurement("itm_5Lw2Nc", {
    diameterShortM: 0.31,
    diameterLongM: 0.33,
    reason: "Checked with calipers at the roadside",
})
curl
curl https://api.timbereye.com/v1/items/itm_5Lw2Nc/measurements \
  -H "Authorization: Bearer $TIMBEREYE_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{ "diameter_short_m": 0.31, "diameter_long_m": 0.33, "reason": "Checked with calipers at the roadside" }'
CLI
timbereye items measurements create itm_5Lw2Nc --diameter-short 31cm --diameter-long 33cm \
  --reason "Checked with calipers at the roadside" --json
JSON
{
    "id": "msr_2Hc7Wn",
    "object": "measurement",
    "item_id": "itm_5Lw2Nc",
    "stage": "manual_override",
    "method": "manual",
    "diameter_short_m": 0.31,
    "diameter_long_m": 0.33,
    "reason": "Checked with calipers at the roadside",
    "provenance": { "actor": { "type": "key", "id": "3kXq9TnB7mLp" } }
}

The actor is recorded as your key.

What refinement adds#

Refinement takes the cropped item image and runs a segmentation model on the server. It produces a refined outline and refined diameters. The device estimate is quick and runs offline. The refined value is the one Timbereye bills, and the one a dispute should rest on.

AspectBehaviour
TriggerAn item image upload is completed (POST /images/{id}/complete)
TimingRefinement follows the image upload; the queue is picked up every minute. Treat a log as stuck only if it has neither a refined value nor a failure after an hour
Status per itemrefinement.status: queued, running, succeeded, failed
Outlineoutline.status: pending, ready (the 50-point outline in outline.points), failed or not_available, with a reason; measurement.provenance.diameter_source says whether the diameters are the segmentation's or the phone's
On failureA failed attempt is retried; after five attempts (about ten minutes) the status is failed, the device estimate stays effective, and item.refinement_failed is emitted
Scan statusA sitting's scan record is refined once every log in it is refined or has a recorded failure

Test mode runs the same model. A real photo from a phone in test mode is segmented by the real model, exactly as in live mode, so you see the real outline and measurement while you evaluate. It is never billed and is capped at 50 logs per organisation per UTC day; past the cap the phone's values stand and the log's outline.reason is test_limit_reached. Nothing is simulated unless you ask: only scans you create with POST /test/scans/simulate (for automated integration tests) get the simulator's practice values, marked provenance.simulated: true and diameter_source: simulator, with no outline. Show those as practice values, never as measurements.

While logs are only estimated, treat their numbers as estimates. Wait for group.measured, sent once no log of a submitted scan is still being refined; its volume says how many logs are refined and how many are estimated_only. A later scan or correction sends the next revision. See Stay in sync.

Adjustment policies#

An adjustment policy is a named, versioned rule applied after measurement. It is recorded on the measurement in adjustments as { policy, field, from, to }. The raw diameters stay in diameter_short_m and diameter_long_m. The effective ones carry the adjustment. Nothing is changed silently.

The one policy is class_boundary_nudge_v1. It moves a short diameter that falls just below a diameter-class boundary up to that boundary. It is a commercial calibration that was built for one existing program.

  • It is recorded only on server_refined measurements.
  • It is on for logs that predate the platform and belong to no platform account, so existing numbers do not move.
  • It is off by default for items owned by a platform account. You get the raw refined diameters.
  • Policies are switched on per account.

To see whether a policy changed a value, read adjustments on the measurement.

Known limits#

LimitDetail
Tag-based scale comes first on AndroidThe first Android release scales with a QR tag. It does not scale untagged logs
Untagged scale needs an iPhone with ARAR scale uses ARKit plane raycasting. On Android it needs ARCore and is deferred
Android counts tags without ARThe Android SDK does not use ARCore: no check mark is pinned on each log. It outlines counted tags on screen and counts each tag once
Tropical species are not validatedAccuracy on tropical hardwoods has not been established. Do not assume it matches other species
Photo counting is not built on the serverServer-side counting is not available. The count is the client's detections, and a photo count ends at estimated
Refinement is not instantThe queue is picked up every minute; see What refinement adds
One rule on the serverThe server computes jas only. Board-foot rules are in the open library, where three are verified against published tables
Single logsNo taper estimation, bark deduction, defect or grade
Phone capture is not proven on phonesCamera screens, device layer, journal and upload exist and are tested off the phone. Not run in the field
The log detector is new on phonesGET /models/detector serves log detector 1.0.0, and the iPhone app downloads it on a real iPhone; the measuring modes need it and are not run on phones. Weaker on small pulpwood ends
The drop-in scanner is not provenTimbereyeScanner is in the Swift and Kotlin SDKs; neither is run on a phone. See Scan in your app

Name the capability "AR scale" and not "LiDAR". The engine raycasts onto the plane of the log face through ARKit, with tuned constants, and does not read scene depth itself. On an iPhone with LiDAR, ARKit's plane detection uses it, so AR scale is LiDAR-assisted on iPhone Pro; the scan record of each sitting says whether the device has LiDAR. Android scales with tags.

Only the hosted pipeline issues a Timbereye measurement for settlement. Settlement, grading policy and disputes with your buyers stay with you.