⚠ Under heavy construction

As of July 11, 2026, Sorter V2 is not yet in a position to be built.

The documentation that exists is incomplete. Any given page may be accurate, inaccurate, present only as an example, or badly out of date. We do not yet recommend that anyone attempt to build Sorter.

For the most live updates on our progress, join our Discord.

SorterOS — Operate

Tuning

Reference

The Classification channel, Object tracker and Piece link tuning pages under Settings, with every field, its default, and what it changes. Use it when the classification channel misfeeds or sticks, when piece ids change between frames, or to try the experimental piece-link matcher.

Author JensR80

AI-generated first draft. Written from SorterOS's own source, not from a running machine. It has no screenshots yet, and none of the advice has been checked against a real machine.

The Tuning group in the Settings side menu holds four pages. This page covers three of them: Classification channel, Object tracker and Piece link (experimental). The fourth, Feeder simple pulse, has its own page: Feeder simple pulse.

The defaults suit a stock machine. Change a setting when you can name the symptom it addresses, and change one at a time.

How the pages work

  • Open Settings, then press the page's name under the Tuning heading.
  • On Classification channel and Object tracker, each setting is a row with a name, a short explanation under it, and a number box or a switch. A row you have changed from its default is tinted and shows a Reset to button with the default value. It puts the default back in the form; you still press Save to keep it.
  • Save stores the values on the machine. Reset to saved reloads what the machine has and drops your edits. Piece link (experimental) has its own layout, described below.
  • Saved changes take effect on a running machine with no restart. The page says when: the next piece for Classification channel, about a second for Object tracker.

Classification channel

This page tunes the rev01 state machine that runs the classification channel (C4): how it turns the platter, photographs a piece at rest, sends the pictures to be classified, and shakes a piece loose if it sticks. The page title is Classification channel tuning. Changes apply to the next piece.

It moves the classification platter. A faster speed moves pieces faster but can fling light pieces, and the discharge and jitter settings decide how the platter is driven when a piece will not drop. The page does not check values against a range, so change one setting at a time and watch the next few pieces.

The page lists every setting in one Parameters panel. They are grouped by purpose below.

Rotation

  • Rotate speed (µsteps/s): motor speed for normal C4 platter rotation. Default 7000.
  • Move-to-precise converge speed (µsteps/s): motor speed for the reverse move into the narrow precise staging band. Slower than normal rotation so the approach is gentle. Default 5000.
  • Move-to-precise: precise-centre tolerance (output deg): how close the piece must be to the centre of the precise band to count as parked. Default 4.
  • Home offset (output deg): the offset from the homing sensor position to the channel's actual zero. Default 22.
  • Rotate timeout (s): give up on a rotation if the stepper has not reported done within this long. It raises an incident instead of hanging. Default 30.

Detecting a piece

  • Presence streak to start rotation: consecutive frames a piece must be detected before the channel starts processing it. It filters one-frame detector blips. Default 2.
  • Empty streak to abort rotation: consecutive empty frames during rotation before the machine decides the piece is gone and aborts the cycle. Default 3.
  • Idle: zero-read streak to confirm clear (open feed gate): consecutive zero-piece readings, while idle, before the channel counts as clear and C3 may feed the next piece. It guards against a one-frame detector dropout causing a double feed. Default 3.
  • Multi-feed: frames of >=2 pieces to confirm: consecutive distinct frames showing two or more pieces on the channel before a multi-feed is declared, which sends the whole cycle to MISC. It stops a one-frame split detection from mis-flagging. Default 3.
  • Stuck-in-exit-zone warn timeout (s): if a piece sits in the exit zone this long without dropping, the operator is warned. Default 30.

Photographing and classifying

  • Capture-at-rest window (ms): how long the piece is photographed at rest. The burst ends at this window or at the frame ceiling, whichever comes first. Default 350.
  • Burst frames to grab per piece (hard ceiling): the most frames the at-rest burst grabs for one piece. It is deliberately more than the classification ceiling, so the automatic quality selection has frames to choose from. Default 6.
  • Burst frames to use for classification (ceiling): the most burst frames ever sent to be classified. The quality selection picks which, and often sends fewer when part of the burst is motion-blurred or the piece is not fully in the crop. Default 4.
  • Also classify the last burst frame alone, in parallel (keep best): also send just the last burst frame as its own request and keep whichever result scores highest. A lone clean frame often recognises a piece the combined set confuses. Default on.
  • Crop padding (px): extra pixels added around the detected box when cropping the piece image for classification. Default 15.
  • Classify timeout (s): give up on the classification request after this long. The piece is sent to MISC. Default 30.

Discharge

The discharge drives a classified piece off the platter. It moves the platter in repeated bounded moves until the channel reads clear.

  • Discharge speed (µsteps/s): motor speed for discharge moves, which drive the piece into the fall-off zone. Default 5000.
  • Discharge: fall-off centre tolerance (output deg): how close the piece must be driven to the centre of the fall-off zone before the closed-loop discharge stops commanding moves. Default 3.
  • Discharge: max single converge move (output deg): a clamp on any single discharge move, so a bad angle reading can never spin the platter wildly. Default 270.
  • Discharge: total budget before give-up (ms): one overall time budget for discharging a piece-set, not per move. If it runs out with the channel still occupied, the stuck-piece handling starts. Default 30000.
  • Discharge: continuous-clear window to confirm drop (ms): how long the exit must read clear without interruption before the piece counts as dropped. One non-clear frame restarts the window, so one-frame detector blinks cannot fake a drop. Default 500.
  • Discharge: settle delay before auto-crediting on give-up (ms): when the discharge runs out of attempts without a confirmed clear, usually because the piece did drop and a newcomer is holding the count up, wait this long for the channel to settle, then credit the piece and return to idle. Default 1500.

Unsticking a piece

If a piece sits in the fall-off region for too long, the platter shakes it loose with a short back-and-forth jitter.

  • Discharge: dwell in fall-off region before jitter (ms): a piece that sits continuously in the fall-off region this long is parked, so the machine shakes it loose. A piece dropping normally is there only for a frame or two. Default 250.
  • Verify-discharge: settle wait before re-check (ms): after a discharge move settles, wait this long before the first exit-zone re-check. Default 1000.
  • Verify-discharge: max jitter attempts: if the piece still reads stuck after the settle wait, run up to this many jitter attempts before giving up. Default 3.
  • Jitter: pause between attempts (ms): the pause between attempts, giving the piece time to fall before shaking again. Default 350.
  • Jitter amplitude (motor deg): the size of each back-and-forth oscillation. Default 8.
  • Jitter cycles per burst: back-and-forth oscillations per attempt. Default 6.
  • Jitter speed (µsteps/s): motor speed during the oscillations. Default 4000.
  • Jitter accel (µsteps/s²): motor acceleration during the oscillations. It is high, so the shake is sharp enough to unstick a piece. Default 80000.

Legacy settings

The labels and explanations of these three rows say they belong to a fallback path used only without perception, and that the active perception path does not use them. Leave them alone.

  • Capture sweep (output deg, legacy): default 180.
  • Kick-off move (output deg): default 180.
  • Post-discharge pause (ms): default 300.

Object tracker

The tracker gives each piece on the classification channel one id from frame to frame, so a piece keeps its id through brief detector dropouts. Open Object tracker under Tuning. Changes apply within about a second.

Screenshot of the Object tracker page with the Tracker panel, the Presets panel and the first parameter sections.

Choose the tracker

The Tracker panel offers three trackers. The one in use is marked (running). A machine that has never had one chosen uses Ordered + Color (channel).

  • ByteTrack: follows each piece by motion and by how much its box overlaps the last one, with no appearance. Fast and simple, but loses ids when a piece moves far, curves, or briefly leaves the frame.
  • Angular + Color: follows each piece by its angle around the channel centre, so circular motion and off-screen excursions are predicted correctly, with a colour gate. It is best at keeping ids through the curve and brief disappearances.
  • Ordered + Color (channel): on a one-way platter pieces never pass each other, so it matches each frame's detections to the pieces it is following in travel order, requiring only that the order is kept and pieces move forward. Colour and size only break ties. It copes with the platter's large jumps between frames, and is described as best for 0 to 4 pieces.

Pressing Save switches the running tracker to the one selected, and stores the parameters shown for it. Each tracker keeps its own parameters, so switching back later brings its tuning with it.

Presets

The Presets panel appears for ByteTrack and Angular + Color, and not for Ordered + Color (channel). A preset fills in the parameters below. Review them, then press Save.

  • ByteTrack, Balanced: activation threshold 0.1, min consecutive frames 1, matching threshold 0.9, lost-track buffer 30, frame rate 30. About a one second hold.
  • ByteTrack, Sensitive: the same but matching threshold 0.95 and lost-track buffer 60. About a two second hold. It still loses ids when a piece curves or leaves the frame. Use the Angular tracker for that.
  • Angular + Color, Balanced: a default gate and about a 2.5 s coast. Good for 0 to 2 pieces.
  • Angular + Color, Sticky (recommended): a wide angular gate (24°) and a 4 s coast, so a fast piece that rounds the curve or leaves the frame keeps its id. The colour gate is on to avoid mixing up pieces.
  • Angular + Color, Tight: a narrow gate (8°), a strict colour match and a 1.5 s coast, for when three or four pieces crowd close together and you want to avoid id swaps.

ByteTrack parameters

  • Activation threshold (Track creation): the minimum detection confidence to start a new track. Keep it below the detector's own confidence threshold or pieces will not get tracked. Default 0.1.
  • Min consecutive frames (Track creation): frames in a row a detection must be tracked before it gets a stable id. 1 labels it immediately. Raise it to suppress one-frame false detections. Default 1.
  • Matching threshold (Matching): a pair of boxes matches when 1 minus their overlap is below this, so 0.9 accepts an overlap of 0.1 or more. The boxes must actually overlap: a piece that leaves the frame and curves back gets a new id whatever this is set to. Default 0.9.
  • Lost-track buffer (frames) (Occlusion / lifetime): frames a track keeps coasting after detections stop before it loses its id. At 30 frames a second, 30 is about one second. Default 30.
  • Frame rate (Occlusion / lifetime): the frame rate the tracker assumes. It only scales the lost-track buffer into a real frame count. Set it near the perception loop's actual rate. Default 30.

Angular + Color parameters

  • Min hits (Track creation): frames a new detection must be seen before it gets a stable id. Default 1.
  • Activation score (Track creation): the minimum detection confidence to start a new track. Default 0.1.
  • Match gate (°) (Matching): the largest angle around the channel centre between a track's predicted position and a new detection for them to be the same piece. Raise it to tolerate faster pieces or longer gaps. Lower it if nearby pieces get confused. Default 14.
  • Radius gate (fraction) (Matching): the largest difference in distance from the centre, as a fraction of the radius. It rejects matches that jump across the channel width. 0.3 is within 30%. Default 0.3.
  • Use color gate (Color): require a detection's average colour to resemble the track's before matching. Default on.
  • Color tolerance (0–1) (Color): how different two average colours can be and still match, 0 being identical and 1 anything. Only used when the colour gate is on. Lower is stricter. Default 0.22.
  • Velocity smoothing (0–1) (Motion): smoothing for the estimated angular speed used to predict where a piece will be after a gap. Higher reacts faster to speed changes, lower is steadier. Default 0.5.
  • Coast time (s) (Occlusion / lifetime): how long to keep predicting a piece's position after it stops being detected before giving up its id. Default 2.5.

Ordered + Color parameters

  • Backward tolerance (°) (Matching): a detection that moved backward by more than this many degrees cannot be the same piece. It absorbs detection jitter. Default 8.
  • Backward tolerance while landing (°) (Matching): a piece that has just landed bounces back as well as forward. In the drop zone a detection may be this much further back and still be the same piece, so it keeps the id it was photographed and classified under. Default 60.
  • Same piece when one box holds the other (Matching): the detector can box one piece two ways from frame to frame. A box that would start a new piece is instead the piece whose last box it sits inside or around, when that piece went unseen in the same frame. This share of the smaller box must overlap the larger. Two boxes seen in the same frame are always two pieces. 0 turns it off. Default 0.8.
  • Fastest a piece moves forward (°/s) (Matching): a detection further ahead than this speed over the time since the piece was last seen, plus 20°, is another box and not this piece. Pieces move at most about 300°/s. Default 400.
  • Max match cost (Matching): the upper bound on the colour, size and radius cost for a match. Above it, the pair is treated as one piece exiting and a different one arriving. Lower is stricter about appearance changes. Default 0.6.
  • Color weight, Size weight and Radius weight (Appearance): how strongly colour, relative box size and distance from the channel centre separate two candidates the order cannot tell apart. Defaults 1, 0.4 and 0.4.
  • Color sample (center fraction) (Appearance): the centred fraction of the box used to sample colour. 0.5 is the middle half. Smaller focuses on the piece, and too small gets noisy. Default 0.5.
  • Coast time (s) (Lifetime): how long to keep a track alive with no matching detection before dropping its id. A piece that really left the exit ages out here, and its disappearance is what marks it ejected. Default 1.5.
  • Unmatched-track cost (Lifetime): the cost of leaving a live track with no detection this frame. Raise it to hold ids harder through dropouts, lower it to give them up sooner. Default 0.7.
  • New-track cost (Lifetime): the cost of starting a new id for a detection that matched no track. A box in the drop zone is discounted. Raise it to suppress spurious new ids elsewhere. Default 0.7.
  • Activation score (Track creation): the minimum detection confidence to start a new track. Default 0.1.
  • Confirm frames (ghost filter) (Track creation): frames a new detection must persist before it gets an id and counts as a real piece. Raise it if false boxes still slip through. Lower it toward 1 if real pieces are slow to be picked up. 3 is about a quarter of a second. Default 3.
  • Tentative coast (s) (Track creation): how long an unconfirmed track is kept after it stops being detected before it is discarded. Short, so a one-frame ghost vanishes fast. Default 0.3.
  • Color smoothing (0–1) (Motion): smoothing for the running colour estimate. Higher reacts faster, lower is steadier. Default 0.5.

The Piece link (experimental) page carries an Experimental badge, and the page itself is titled Piece link matching. Given a piece just classified on C4, it scores which of the pictures taken earlier on C2 and C3 show the same piece. It uses the pictures and the timing and position data, and it replaces the hand-tuned time and angle scoring behind the piece page's "Possibly the same piece" gallery. It is off by default, and costs one small model pass on the processor for each lookup.

The model only re-ranks pictures the time and angle lookup already found. It cannot find pictures that lookup missed, so turning it off always falls back to the old scoring.

Screenshot of the Piece link matching page with a model installed, showing the Matching and Model panels.

Install a model first

Until a piece-link model is installed, the page says No piece-link model is installed, and the switch and the Minimum confidence box are greyed out. Open Local models (the link in that message goes there), and download a model with the purpose set to Piece link (experimental). Then come back. A piece-link model is listed greyed out on that page, because it is used from this page and not activated there.

Matching

  • Use the model to rank the possible crops: the on and off switch. When on, the piece page shows a "Model" badge and each picture's match probability in place of the old score. Default off.
  • Minimum confidence: pictures scoring at or above this, from 0 to 1, count as the same piece. Below it they still show on the piece page, unchecked, and are never added to the pictures used for the classification. This overrides the cutoff built into the model (0.5 for link-v3). Default 0.95. On save the page limits the value to between 0 and 1.

Turning this on changes which pictures are sent for classification, not only what the piece page shows.

Model

This panel appears once a model is installed. Leave it on Automatic, which uses whichever model is installed, unless there is more than one and you want to pin a version. Each installed model is listed by name with its download date.

Feature contract

Below the buttons, Feature contract lists the time and position features this version of the software feeds the model, in order. A model trained on anything different refuses to load rather than score nonsense. If the log shows a mismatch error, the model and the software are out of step.

Saving

Save applies at once, and the next lookup uses the new model or setting without a restart. The Save button is disabled when there is no model installed and the switch is off.