- 文档
- 使用 Vigiora
- Floor plans
此页面暂无简体中文版本,以英文显示。
Floor plans自 1.6.13 起
Put your cameras, rooms and sensors on a drawing of the building, or let the AI draw one from your description, see where each camera looks and what each sensor reports, and find an alert at a glance.
在应用中: /floor-plans
A floor plan is a drawing of a building or a floor, such as a warehouse or a shop. You upload it, or build it from building blocks, or from version 1.6.17 describe the place in words and the AI draws it, or from version 1.6.23 let the cameras scan it, or from version 1.6.25 walk through with your phone. You place each camera on it with the area it sees, and add speakers, rooms, Analytics areas and, from version 1.6.19, IoT devices such as door contacts and sensors. In the live view, each camera shows its status, a red pulse marks an alert, each device pin shows its live value, and a click opens the camera or the device.
Where to find floor plans#
Floor plans belong to a site. Each site can have several plans, one per floor for example.
- Floor plans in the left menu (from version 1.6.16): the live plans of your sites on their own page. A site without plans offers Upload floor plan and Describe it instead to admins and operators. From version 1.6.19 the page has a second tab, Rooms: see Rooms.
- Cameras → Map: switch the map from World to Plans. Pick a Site, then a floor.
- Sites: click Plans on a site's row. The site's page opens with an Overview tab and a Plans tab.
The floor chips at the top (Ground, Floor 1, Basement 1 and so on) switch between the site's plans. A chip shows how many unacknowledged alerts that floor has.
Ways to make a plan#
You never have to start from a blank page. Pick the way that suits the place, and edit the result like any other plan.
| Way | Good when | Where |
|---|---|---|
| Draw it from the editor's building blocks | You know the layout and want it exact | Place cameras and draw areas |
| Upload a drawing (PNG, JPEG, SVG, PDF) | You already have an architect's plan | Add a plan |
| Describe it in words | You can say what is where, in your own language | Describe your plan with AI |
| Scan it with your cameras | The cameras are already installed and named | Scan from your cameras |
| Walk through with a phone video | You can walk the place, indoors and out | Walk through with your phone |
All of them are on the New plan button of the Floor plans page (Upload floor plan, Describe a plan, Scan to build floor plan, Walk through). The plan that comes out is an ordinary floor plan, and a drawn, scanned or walked plan can be mixed: add a block, move a room, place a camera by hand.
Add a plan#
Open the site's plans
Open Cameras → Map → Plans, or the site's Plans tab, and click Add plan.
Choose the image
Under Plan image, pick a PNG, JPEG, SVG or PDF file of up to 18 MB. A PDF or SVG is converted to an image in your browser; for a PDF with several pages, choose the PDF page.
Name the plan
Enter a Name, such as "Warehouse". Optionally set the Floor number (from -20 to 200, empty for none) and the Sort order.
Upload
Click Upload. The plan opens in the editor.
The image can be at most 8192 pixels on a side and 40 megapixels in all. From version 1.6.16, a phone photo is turned upright, and a larger image (up to 16384 pixels and 80 megapixels) is shrunk to fit instead of refused. The server strips any hidden data, such as camera or location details, from the file. To change the name or the image later, open the editor and click Plan details.
Describe your plan with AI#
From version 1.6.17, a site with no drawing can be described in words: Vigiora draws a schematic plan, places the cameras it recognises, and you refine it by chatting. The plan it makes is an ordinary floor plan: you can edit it, move cameras and draw areas on it like on an uploaded one.
Describing a plan uses AI, so the server must be connected to Vigiora cloud with AI on. Each generation or change uses your AI allowance like a Guardian chat and appears in Billing as Floor plan from description. Without AI, the panel says so and links to the settings. Like uploads, it works from a computer or tablet, not a phone, and needs the rights to add a plan (see Who can do what).
Open the panel
On Floor plans, or on a site's Plans tab, click Describe it instead (next to Upload floor plan when the site has no plan), or Describe a plan in the toolbar.
Describe the place
Write a few sentences in Describe your place (10 to 4000 characters), in your own language. See How to write a description below.
Generate
Click Generate. Drawing the plan… (up to a minute) shows while the AI works; the plan then appears next to the panel, with the AI's note about what it assumed. Cameras it couldn't match are listed under Not placed (no camera with that name).
Refine it
Type a change in Ask for a change, such as "move the kitchen to the left of the entrance" or "make the pool smaller and add a terrace between the living room and the pool", and click Send. The plan is redrawn as a new version; what you didn't mention stays where it was, and cameras you dragged by hand keep their place.
Finish
Click Looks right to close the panel and keep the plan. Undo last change goes back one step (one level, no AI call). Start over deletes the plan so you can describe it again.
To reopen the chat on a plan the AI drew, click Change with AI on its toolbar. Plans drawn this way keep their history: the chat and the Undo state are there when you come back.
How to write a description#
The AI reads sizes and spatial relations from your sentences, and the server lays the areas out from those relations. Short, concrete sentences work best.
- Name each area and say what it is: living room, kitchen, bathroom, garage, driveway, lane, pool, garden, terrace. Rooms are drawn as rectangles side by side; only a garden or yard can surround other areas.
- Give sizes when you know them: "the living room is about 6 by 5 metres". Stated sizes are kept exactly. Without them, the AI uses realistic sizes (a bedroom 3 to 4 m, a kitchen 3 to 5 m, a bathroom 2 to 3 m, a single garage 3 × 6 m).
- Say where things are, one relation per phrase: "the kitchen is behind the living room, on the west side", "a bathroom next to the kitchen", "the pool is to the right of the driveway", "the lane runs along the south side". The AI understands behind, in front of, left of, right of, north/south/east/west of, next to, inside, across and between A and B. "Behind", "left" and "right" are read from the front of the property: the lane or road side, else the driveway or gate side, else the south.
- Mention the entrances: "the front door at the north end of the driveway opens into the living room", "an entrance gate on the south side onto the driveway". Doors are drawn where two areas touch; a gate onto a named lane or street goes between the two.
- One sentence per camera, naming it like the camera is named in Vigiora, and saying where it is fixed and what it looks at: "the Living room camera is on the north wall looking south", "a camera above the gate looking at the driveway", "the Entrance camera at the front door looking at the driveway", "a camera on the lane side of the house looking along the lane". A camera can be fixed to a wall of a room, corridor or garage, to a pole in the garden, or at a gate or door.
- Compass directions ("the pool to the east") add a north arrow to the plan.
An example that draws well:
A single-storey house. The front door opens into a hall; the living room, about 6 by 5 metres, is to the right of the hall and the kitchen behind it on the west side, with a bathroom next to the kitchen. Two bedrooms along the back. A garage on the left. A driveway south of the house with an entrance gate on the south side onto a lane. A pool to the right of the driveway. The Front door camera looks at the entrance. The Living room camera is on the north wall looking south.
How cameras are placed#
- The AI matches a camera to one of your cameras by its name or the room it is assigned to: "the Living room camera" matches the camera named "Living room". A camera it can't match stays on the plan with the name from your sentence and is listed as not placed; drag the right camera onto it from the sidebar in the editor.
- When the site has fewer cameras than your description mentions, your other cameras (enabled, and visible to you) are offered too, marked as not assigned to the site. Placing one on the plan doesn't change its site.
- Position and direction come from the camera's sentence: the wall it is on, the area it looks at, "looking south", "looking along the lane". A camera at the front door is put on the house wall with the door, looking out.
- Cameras get the usual view cone. The plan image itself has no cameras drawn on it: the pins are items you can move, like on an uploaded plan.
What the AI can't do yet#
- Areas are rectangles. L-shaped rooms become two areas, and curved walls are straight.
- There is no "corner" or "along the east wall" relation yet: "the pool in the south-east corner" lands on the south or east side, not always in the corner.
- A camera named by its model number, such as "DS-2CD2047G2", can't be matched from words like "the gate camera". Rename the camera first, or place it by hand after.
- A camera "on the lane side of the house" is put on the house wall facing the lane, even when the driveway lies between them, so its cone may cover the driveway rather than the lane.
- "A camera looking at the driveway and the lane" looks at the first of the two.
- Doors are drawn only between areas that touch, or on the outside of the building; windows aren't drawn.
- Each change redraws the whole floor; big rewrites are better as a new description with Start over.
- A configuration export carries the plan as an image: an imported AI plan can be edited but no longer refined by chat.
The AI sometimes ignores a relation or places something oddly. When that happens, say exactly what to change ("the bathroom is east of the kitchen, sharing its wall") or use Undo last change. The server checks every answer, asks the AI once more when areas overlap or a stated size was changed, and repairs what is left; its note tells you what it changed.
Scan from your cameras#
On the Floor plans page, Scan to build floor plan builds a plan from the cameras themselves. The button appears when the site has cameras but no scanned plan, and it re-scans an existing scanned plan too. Vigiora takes a picture from every camera of the site (a PTZ camera sweeps a panorama), reads the room geometry with AI (floor, walls, doorways, the horizon) and draws the plan. It is one request: a spinner shows while it runs, then the result appears.
- What it draws: one room per camera. Cameras named "
<Room> – <position>" that share a room become one room, with the cameras spread along their wall. Doors are drawn where doorways were seen, and every camera is pinned on the wall it is mounted on, looking the way it looks. Rooms, doors and cameras are ordinary plan items: in edit mode, move, resize, rotate, rename or delete them. - Scale: the scan estimates metres from things of known size (doors, people, cars, floor tiles). The result shows a scale badge that reads Scanned (estimate) until you lock it. See Set the scale.
- Names first: a camera whose name is not yet "
<Room> – <position>" is named from its own picture before the scan, and the panel says Named 3 cameras from their pictures. - A second look: Vigiora tries several layouts and keeps the one that fits what the cameras saw best (Compared 9 layouts in 3 rounds; the best scored 9/10.), then checks a few simple rules (a gate sits in the fence, a pool is not on the street) and has the AI look at the finished drawing: Checked the drawing: 1 moved, 1 removed. Where it can't settle something, Grid rules says how many items are left to fix by hand. Reading a camera with a local model on your server is free; otherwise it uses your AI allowance like a Guardian chat.
- Cameras it could not tie in (no floor visible, for example a camera pointing at a window) are placed in a row below the plan, labelled, for you to drag where they belong.
- A re-scan replaces what the previous scan drew: rooms, doors, cameras and landmarks. Hand-made changes to those items are lost; your uploaded plans are never touched.
- The grounds, too. When a camera sees outside the building, the scan also draws what it sees around it: the gate, the street, a driveway, a fence, a pool, a garden. A feature two cameras see from different angles (say, two cameras on the gate) is placed where their lines of sight cross; a camera looking through a window or a glass door counts as well. These landmarks are ordinary plan items: in edit mode, drag, resize, rotate or rename them like a room, or delete them. A re-scan redraws them. Landmarks sit outside the rooms: a gate in the fence line, a street beyond it, a driveway from the gate to the house, a pool and a garden beside the house. A driveway is drawn only when a camera saw it inside the yard.
Set the scale#
A scanned plan shows distances and room sizes in metres once it has a scale. To lock it in place of the estimate:
- In the scan panel, click Draw a known distance, drag a line on the plan across something whose length you know (a wall, a door, a car), then answer How long is that line, in metres? and click Save scale. Every room is rescaled. A line that is too short is refused: Draw a longer line, or enter a real length.
Walk through with your phone#
From version 1.6.25, you can film a walk through the place and Vigiora turns it into a floor plan, one room per real room, with the doors, windows and main furniture it sees, and the grounds if you walk outside. Use it when no plan exists and the cameras can't see everything.
Open Walk through
On Floor plans, choose a site and click New plan → Walk through. Recording is meant for a phone; on a computer you can upload a video.
Record the walk
Tap Record and walk slowly through every room and the grounds, holding the phone upright. The panel counts Time, Steps, Heading and GPS while you walk. Recording needs a camera and a secure (https) page. If it isn't possible, or you prefer, click Upload a video and pick one you filmed earlier (up to 1 GB and 30 minutes).
Show the QR code to your cameras
While recording, tap Show to camera when you pass one of your cameras and hold the screen toward it for a few seconds, with the brightness up. Your cameras look for the code while you film, so Vigiora learns which camera is in which room and pins it there. This step is optional.
Stop and wait
Tap Stop. The video uploads in small pieces and retries on a weak connection, then the panel shows what Vigiora is doing: Picking the best frames…, Looking at each room…, Laying out the plan…, Saving the plan….
Open the plan
The panel says Made a new plan. or Added to your existing plan., with the number of rooms, doors, windows and furniture items and the cameras placed in rooms. Click Open the plan.
What the sensors add: your steps give the scale, the compass gives north, and the GPS places the site on the map. A plan from a walk is a first draft: check the room names and sizes, then edit it.
- It never draws over your work. If the site already has a plan, the walk is added to it without moving anything you placed; what Vigiora would have changed is listed in the notes instead.
- Reading the video uses AI, like a Guardian chat. Without credits, the panel says Out of AI credits.
- Your walks: the panel lists earlier walks with their state (Done, Failed, Reading…) and how many rooms and cameras they gave. Open the plan, Watch the video, Run again (always makes a new plan) or Delete. Vigiora keeps the video until you delete it; deleting a walk leaves its plan in place.
For developers: API v1 has the walk-through operations, and GET /api/v1/server lists the feature on servers that have it.
Place cameras and draw areas#
Click Edit plan to open the editor. The sidebar lists what you can put on the plan: Blocks (from version 1.6.25), Cameras, Speakers, Rooms, Devices (from version 1.6.19) and Areas (Analytics areas).
- Blocks: from version 1.6.25, the plan is built from ready-made pieces at their real size. The Blocks tab has three groups: Structure (rooms such as a bedroom or a kitchen, doors, double doors, windows), Furniture (sofas, beds, tables, kitchen and bathroom pieces, stairs, a shop counter) and Outside (driveway, gate, fence, street, parking, patio, pool, garden, tree). Type in the search box to find one; each block shows its size. Drag one onto the plan, or click it and then click the plan. A room lands as a box, named automatically ("Bedroom 2"…) and selected with its handles ready; type its real name under Room name. A door or window lands on the nearest wall of the nearest room (with no room on the plan yet, Vigiora asks you to add one first). Furniture and outside pieces are items you can move, resize, turn and duplicate; furniture travels with its room.
- Grid: on a plan with a scale, blocks snap to a 1 m grid (furniture to 0.5 m), so rooms line up.
- Cameras and speakers: drag one onto the plan, or click Place and then click the plan.
- View cone: a placed camera shows the area it sees. Drag its handles to turn it and to change how far it reaches, or set Direction °, Angle ° and Range % in Selected item.
- Rooms and Analytics areas: drag one from the Rooms or Areas tab onto the plan for a ready-made box, or click Draw and then click the corners on the plan for another shape. Double-click, or click the first corner, to finish. Esc cancels. A room outline is a Vigiora room: see Rooms on the plan.
- Move, resize, turn: drag a room or area by its body to move it. When it is selected, pull one of the eight handles on its edges and corners to resize it, and drag the round handle above it to turn it. A room carries its cameras, devices, doors and windows with it; an analytics area moves on its own. While you drag, the edges snap to neighbouring rooms and to the plan's border, and a pink guide line shows what they snapped to; hold Alt to place freely.
- Duplicate (Ctrl + D) copies the selected room next to itself, doors and windows included, as "Kitchen copy".
- Doors and windows: besides dropping them from Blocks, select a room and click + Door or + Window under Doors & windows. A door is drawn brown, a window blue. When the plan has a scale, a new door is 0.9 m wide and a new window 1.2 m, on every wall, and an opening keeps its real width when you move it to another wall (from 1.6.25). Drag one along its wall to move it; drag its end to set the width.
- Devices: drag a sensor or switch onto the plan like a camera. See Devices on the plan.
- Label on the plan sets the text shown next to an item. Remove from plan takes it off (Delete does too).
- Canvas in the toolbar is the plan's workspace size in pixels. Change the width or height and click Apply to give the drawing more room: space is added at the right and the bottom, and the rooms, cameras and scale stay exactly where they are (from 1.6.25; earlier versions stretched the drawing to the new size). Save your changes first. A canvas smaller than the drawing is refused.
- Undo (Ctrl + Z) steps back. Changes save with Save; click Done to leave the editor.
If someone else saved the same plan while you were editing, Vigiora says Someone else saved this plan. Reload to see their changes. Click Reload, then make your changes again.
Vigiora also uses the plan to describe where a camera is, for example to AI agents through the API.
Plan where cameras go#
From version 1.17.3 three tools help you plan cameras on a floor plan: a camera's mount height and tilt, blind spots, and a printable plan. None of them is required. A camera without a height or tilt, or a plan without a scale, keeps its usual view cone.
Mount height and tilt#
Select a camera in the editor. Under Selected item, type Height m, how high the camera hangs above the floor in metres (in English the feet are shown beside it), and Tilt ° down, how far it points down: 0 is level, 90 is straight down. Vertical ° shows the camera's vertical angle, worked out from its Angle ° for a 16:9 picture.
When the plan has a scale and the camera has both a height and a tilt, its cone shows the real part of the floor it sees, for example Sees the floor from 1.2 m to 9.5 m; the floor nearer the camera is not seen. The floor right under the camera, which it does not see, is drawn dashed. Without a scale, Vigiora tells you to give the plan its real size first: Detail zones › Measure a known distance (see Set the scale).
Blind spots#
Click Show blind spots (in the plan view under Planning, and in the editor's toolbar) to shade the parts of the rooms and analytics areas that no camera sees. Walls block the view; doors and windows let it through. The plan shows Covered: N %, a panel under the map lists Coverage per room, and the room's own settings show its share too. The figures change as you drag a camera or a room. Your browser remembers whether blind spots are shown.
Print the plan#
Click Print plan for a one-page preview: the plan with its rooms, doors and windows, the numbered cameras with their cones, the blind spots when they are shown, and a list of the cameras with their room, angle, height, tilt, range and the floor they see, in metres when the plan has a scale. It also shows the coverage, the site and the date. Click Print, and choose the paper (A4 or Letter) in the print dialog. The page is printed in dark ink on white whatever the app's theme, and holds no live video or snapshots.
The height and tilt are kept with the plan, in the configuration export, and in API v1.
Rooms on the plan#
From version 1.6.19, a room outline drawn on a plan is a room, not just a label:
- Drop a Room block onto the plan (from version 1.6.25), or in the Rooms tab of the sidebar drag an existing room onto the plan or pick it and click Draw, or click New room from the plan, type a Room name such as "Kitchen" and click Draw the new room. Saving the plan creates the room, in the plan's site, and the Label on the plan and the room's name stay the same both ways: renaming either renames both. A new room needs a name before you can save (a dropped block already has one).
- The cameras whose pin is inside the outline belong to the room. Move a camera on the plan and it changes room; take it off the plan and it leaves. Cameras you added to the room by hand on the Rooms page stay. When a pin is inside several outlines, the smallest one wins.
- Plans the AI drew from a description draw their areas as room outlines too, so the rooms exist as soon as the plan does.
- Remove from plan on a room outline turns the room back into an ordinary room: it keeps its members, and you manage them by hand again. Deleting the room on the Rooms page leaves the outline on the plan without a room.
On the Rooms page, such a room carries a Floor plan badge with the plan's name, and the cameras that come from the plan are locked in its form: From the floor plan — move the camera on the plan to take it out.
Devices on the plan#
From version 1.6.19, the Devices tab of the sidebar lists the IoT devices shared with Vigiora: door and window contacts, motion sensors, temperature and humidity sensors, plugs, lights, locks. Drag one onto the plan, or click Place and then click the plan; the IoT devices page's Place on floor plan opens the editor with the device ready to drop.
- Each device pin shows a chip with the device's headline value, such as Open, Motion, 21.8 °C or On. Under Selected item, The pin shows picks which of the device's readings the chip shows; Headline value (automatic) lets Vigiora choose (a contact shows open or closed, a motion sensor motion, a temperature sensor its temperature).
- Inside a room outline the device belongs to that room: Guardian and AI Live get its state as context for that room's cameras, like a device you linked by hand (see Link devices to cameras and rooms). Moving the pin out of the outline takes it out of the room; links you made by hand are never removed.
- A device that is no longer shared with Vigiora stays on the plan, marked not shared with Vigiora, without values.
In the live view, the chip keeps its live value; click a pin for the device's readings, the room it is in, and Open device, which opens it on the IoT devices page.
The live view#
Outside the editor, the plan is live:
- Each camera's cone takes the colour of its status: Online, Standby, Offline or Disabled.
- Hover a camera to see a live thumbnail.
- Click a camera to open a popover with the live video. From there you can move a PTZ camera, type a message and click Speak to talk through the camera's speaker, Acknowledge its alerts, or Open camera.
- A camera with an unacknowledged alert from the last 24 hours pulses red. Acknowledge clears all of that camera's alerts.
- From version 1.6.19, each device pin shows its live value in a chip under the pin. Click it for all its readings and Open device.
- Open all cameras shows every camera on the plan in a grid. On a computer, Save as layout saves them as a layout.
Live occupancy#
With Vigiora Analytics, each Analytics area on the plan shows how many people are inside now, against its capacity, for example 27 / 40. Without Analytics, the plan says Live occupancy needs the Analytics add-on.
Detail zones#
From version 1.17.0, a plan can show how much detail each camera gives, place by place. Click Detail zones in the plan's toolbar. Each camera's view is coloured by the four detail levels of the European CCTV standard EN 62676-4. They depend on how many pixels of the picture fall on one metre at that distance:
| Level | Pixels per metre | What you can do with the picture |
|---|---|---|
| Identify | at least 250 | Tell who a person is |
| Recognise | at least 125 | Tell whether it is someone you know |
| Observe | at least 62 | See what a person is doing |
| Detect | at least 25 | See that someone is there |
The plan needs its real size: if it has none, click Measure a known distance, drag a line across something whose length you know and enter its length in metres.
Below the plan, a table lists each camera with the picture width and field of view used, where each came from, and how far it gives each level. Vigiora finds these by itself, from the camera's recordings, its settings, the lens in its model name or the usual value for its kind of camera. A value marked Estimate can be corrected: click the pencil and enter the horizontal field of view from the camera's data sheet. Automatic goes back to Vigiora's own value.
Required detail#
Mark places that need a level, such as "identify at the front door", and Vigiora checks them against your cameras. Under Required detail, choose the Level needed, give it a name if you like, click Add on the plan and click the place. Each place shows Met (with the camera and its pixels per metre), Not met, or Not checked when the plan has no real size.
Everyone who can see the plan sees the zones. Adding or removing required places needs the right to edit the plan; correcting a field of view needs the right to manage the camera.
On a phone#
On a phone the plan fills the screen and a camera opens in a sheet at the bottom of the screen. You can watch, acknowledge and talk, but not edit the plan.
Who can do what#
| Role | Can |
|---|---|
| Admin | Add, describe, edit and delete every plan. |
| Operator who manages the site | Add, describe, edit and delete that site's plans. |
| Viewer, or an operator who doesn't manage the site | See the plans, with only the cameras and devices they are allowed to see. |
Items a person can't see stay on the plan when someone else edits it.