Camera mapping
Camera mapping connects the camera image to the real composition. In Toposync, this product concept is Spatial Camera Mapping: the camera view, camera position, mapped areas, and image points line up inside the same home model.
It lets Toposync understand where the camera is installed, what area it sees, and how image points relate to the world.
Mapping is also what makes 360 View possible: mapped live video can be projected over the composition.
Single-frame reference
Every enabled video source can use Use current frame in its panorama settings, including sources without ONVIF or movement control. Toposync saves a fresh decoded frame, its identity and a full coverage mask. Select the useful area, then use the same composition mapping editor with at least four floor correspondences. Image coordinates remain relative to the full frame; a static crop cannot wrap across an edge.
Sources with movement control also offer panorama acquisition over a larger region. Using the current frame remains an explicit alternative; a failed scan never changes capture mode automatically. Static references have no pointing or live panorama actions.
The static mapping applies to the captured framing. Moving, zooming or physically repositioning the camera requires a new reference and mapping. Live detections from a fixed source use the planar transform with their frame identity and source geometry. A static reference from a source marked as movable can be mapped and projected as a saved image, but live detection projection requires an expanded reference with visual framing verification. No camera pose or lens parameters are inferred from the still image.
Assisted calibration
Open the camera element and choose Map in composition. Prepare a compatible saved panorama first if one is not available. You can also open Settings → Cameras → Mapping and use the mapping button beside the composition. If the camera appears more than once, choose the camera element first. The separate editor button opens the composition without starting mapping. Unsaved camera changes must be resolved before leaving settings.
Start with four recognizable places on the same floor, spread across the region that matters. Mark the same place in both views, in either order. Numbers identify pairs; they do not define polygon edges. Additional controls are optional and all complete controls participate in the calculation.
A usable calculation shows ghost points immediately. Move the pointer to compare views. With no numbered place selected, click, tap or use the keyboard to keep a precise target: its ring fades while its centre remains. These queries do not save points or move the camera. Refine a control to update the preview before saving. Adding an unfinished control does not erase a usable preview.
Use Use this mapping when it meets your needs. There are no independent A/B check points or mandatory error threshold. Approximate fits show a warning; missing pairs, degenerate geometry or incompatible source revisions explain what must change. Visual acceptance does not certify measured accuracy or physical camera pointing.
The outline shows the distribution of controls. Ghosts and pipeline positions continue beyond it as extrapolated positions. Near the horizon the estimate can be very sensitive; a ray with no valid ground intersection has no fabricated position. Observations retain their available direction and reason when their ground position is unavailable.
Both views stay visible on one screen, side by side or stacked on small displays. Rotation in 90-degree steps, zoom, dragging and keyboard controls remain available. Select a numbered place to adjust its two references. Confirm the pair to save it, or choose Finish adjustment to return to queries while retaining draft changes. Use the nearby remove button and undo to refine places. To find a pinned target outside the current framing, use Center target in that panel; it preserves zoom and rotation. Hover never recentres either view. Rotation changes presentation only. Saved drafts can be reopened; editing a replacement draft preserves the active revision until you accept the new result.
Reference, mapping and positioning
The camera source owns the saved panorama; each composition element owns its accepted mapping revision. Camera settings show the visual reference, mapping and positioning separately. A partial image can remain useful while mapping is absent or pointing is unqualified. Old calibration records do not certify an active panorama.
Acquisition now saves causal movement responses with the final reconstruction geometry. It does not create an extra preset after reconstruction or require manual approach points. A local continuous response candidate only predicts a bounded pulse inside consistent observed support, with fixed optical zoom. Fresh stopped video and the existing independent arrival measurement remain mandatory. Candidate data are not physical qualification; automatic prediction stays disabled until qualified. Without it, the existing visual navigator measures its response live.
Saved approach points are retired from navigation. Their managed resources can still be cleaned up explicitly; foreign camera presets are preserved. Opening settings, inspecting mapping and editing a crop do not move the camera.
Metric calibration remains a separate resource: a ground mapping does not supply camera height or three-dimensional extrinsics. Existing metric records remain readable. An active panorama also prevents attention from silently selecting an obsolete view preset; the canonical target resolver returns a ray and revision without moving the camera. Attention profiles now select the panorama mapping, an explicit region and return point. Software integration is available in shadow; physical arrival and return require separate qualification. The camera editor can copy existing metric records into metric_calibrations without overwriting records or inferring lens/pose data.
Static image mapping smoke
A static RTSP image is a good controlled source for camera mapping. It can prove that snapshot capture, calibration, live publication, area clipping, and 360 View projection are wired correctly against a stable frame.
It does not prove real people detection. A still frame can validate mapping and 360 View while producing no detection, tracking, notification, or pin. Motion gates may ignore a frame that never changes, and model-based detection still depends on a prepared artifact on the selected processing server.
Use Test without a real camera for the static image streaming path. Use Image processing when the test needs model readiness, person detection, tracking, notifications, or Spatial Events.
Start with placement
First place the camera element near its real position in the composition. The placement does not need to solve projection by itself. It should make the camera easy to find and explain what it sees.
After placement, calibrate the view from a current camera snapshot.
Legacy ground correspondence model
The older snapshot correspondence model described in this section is separate from the panorama assistant above:
- capture a current frame;
- click a stable mark on the ground in the image;
- click that same mark on the composition;
- add six fit pairs, then two independent check pairs;
- save only after the check pairs pass.
The image remains visually unchanged. Numbered markers mean the same thing on both surfaces, and the shaded polygon on the composition is the only region that can produce world coordinates. A point above the horizon, such as sky, has no finite intersection with the ground plane and is deliberately unmapped.
Use the two rotation controls beside Floor plan when the plan is reversed relative to the camera. They turn only the calibration presentation in 90° steps; pointer input is converted back to real composition coordinates, and the selected orientation is saved with the calibrated view.
Dragging a marker changes that marker only; there are no corners, edge handles, or local mesh corrections in this workflow.
A view is ready only with at least six fit points, 80% fit inliers, 5% image coverage, and two check points each no farther than 0.5 m from their known world position. These checks are independent of the points used to fit.
Lenses and frame identity
The mapper first normalizes the lens and then fits the ground plane. A source can provide a rectilinear, Brown distortion, or fisheye KB4 lens profile. When no verified profile is available, the workflow uses the rectilinear default and the independent checks decide whether it is acceptable.
Every saved view is bound to its physical view_id, source, and image geometry.
The same role name is not enough: a main, zoom, crop, mirrored stream, or a
different lens needs its own calibration.
Prepare a panorama and review existing mapping
Open Settings → Cameras, choose the camera and stream, then select Generate panorama. No lens, angle or scan fields are required. Toposync discovers the available controls, explores both horizontal directions and the available vertical bands, observes when the image settles, and assembles overlapping photographs automatically. It checks presentation orientation from confirmed horizontal movements. The camera moves during capture and Toposync attempts to restore its initial framing afterward. Progress is saved on the server; you can leave the screen and return.
Choose Select useful area to draw a rectangle, select two opposite corners or use the keyboard. The full photograph remains saved. Editing or exporting this selection does not move the camera. Stop interrupts capture without starting an unexpected return; returning afterward is a separate action.
Coverage that cannot be confirmed stays partial. This panorama is a reusable visual resource belonging to the stream. It does not activate floor-plan mapping or establish pointing accuracy.
Existing panorama mappings and drafts remain available through Review existing mapping in the camera element. They retain their original optical profile and geometry checks; normalized ONVIF positions are not degrees.
- Open the saved panorama and mark at least four distributed floor locations.
- Explore using the pointer, taps and keyboard; adjust places while watching the preview.
- Choose Use this mapping when the result meets your needs.
Runtime image points use the geometry bound to each frame. Positions beyond the control region remain available and are marked as extrapolated. Movement, unknown pose, changed zoom or incompatible source geometry can prevent mapping. Composition geometry changes invalidate the reference; cosmetic renaming does not. Physical pointing retains its separate operational requirements.
This version covers one approximately planar region at one optical zoom. It does not calibrate stairs, uneven terrain, multiple floors, or moving objects. A selected panorama supplies the ground layer for 360 View and the target contract for semantic attention. If its reference is invalid, old projection layers and preset destinations are not revived.
PTZ optical and metric references
A physical view identifies the optical stream and capture geometry. It is not a list of permitted attention destinations. Existing metric calibrations remain separate: lens, numeric pose and independent ground correspondences may be needed for body pointing and metric projection. Missing extrinsics are never inferred from a projective panorama.
Semantic PTZ attention uses the selected source mapping, an explicit permitted polygon and return point. Arrival and return require visual evidence and a current qualification for that exact revision.
Area clipping for 360 View
A camera element can optionally choose one area as a 360 View clip area. This limits the projected video to that area.
Use area clipping when the camera sees beyond the space you want to render, for example ceiling, street, sky, or a neighboring room.
Area clipping is a spatial crop. It can make the projected video look cropped or zoomed even when the video transport is correct.
Letterbox correction
The calibration snapshot may use the useful camera image, while the live transmission may be resized with black bars around it.
Toposync handles this automatically through media metadata called
content_rect. The 360 View renderer uses that rectangle to ignore black
letterbox padding when projecting video.
Do not recalibrate just because a transmission has black bars. First confirm whether the 360 View projection is using the useful content and whether an area clip is cutting the projection.
What mapping affects
Camera mapping can affect:
- 360 View 2D and 360 View 3D projection;
- camera markers and spatial context;
- Spatial Events produced from mapped camera detections;
- pipelines that use camera-to-world coordinates;
- Semantic PTZ attention view selection and return behavior.
It does not replace live viewing. A camera must still have an active transmission/publication before it can be projected as live video.
Practical checklist
- Confirm the snapshot is current and comes from the physical source to map.
- Confirm live viewing works for that source.
- Place the camera element in the composition.
- Add at least four well-spread pairs on the ground; avoid sky, people, shadows, and moving vehicles.
- Explore ghost points, refine important regions, and accept the result when it meets your needs.
- Keep the optical source identity and fixed zoom compatible with the saved panorama.
- For PTZ attention, define the permitted region and mapped return point; begin in shadow.
- Use area clipping only when you want a spatial crop in 360 View.
- Open 360 View and check that the video, marker, and warnings make sense.
Spatial availability in notifications
Detections retain a mapping failure reason through tracking, grouping, and notification storage. A group with only some located members reports partial mapping; it does not assign one member's position to another. The mapping node reports degraded spatial processing when calibration is unavailable or detected objects cannot be located, and clears that state after recovery.
Notifications distinguish missing spatial location, degraded processing, and a partial trajectory after recovery. Previously recorded points remain available, but the displayed trail uses the latest continuous segment and does not connect positions across a recorded mapping gap. Closed events preserve the mapping result of their last observed frame. Existing notifications are not automatically reprocessed, and these indicators do not certify physical calibration accuracy.