Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.
Tell me when someone crosses a line, in the direction I care about.You draw a line on a camera’s view and say which way across it matters. TruRec AI alerts you when a person crosses it that way, during the hours you choose.
Good for
A fence line or a site perimeter
A doorway into a back-of-house area
The edge of a yard, a loading dock or a car park
A gate that should only be used one way
Set it up
1
Draw the boundary
The line is required, because it’s the whole point of the job. It starts on a suggested line on a still from the camera. Choose Adjust the line and drag each end to where people actually walk. Put it a little inside the real boundary, so a foot on the line doesn’t count. See Lines.A short line can’t be crossed cleanly, so it needs to be at least about 5% of the view long. The app won’t save a shorter one.
A line across a yard gate, just inside it, with the arrow marked In pointing into the yard.
2
Choose which direction matters
Coming in means crossing the line the way the arrow on the frame points. Use Flip direction to turn the arrow round. Going out is the opposite way. Either way alerts on both.Crossings in the other direction are still recorded as detections, but they don’t send an alert.
3
Choose what should count
Choose People. Vehicle detection isn’t available yet.
4
Choose when it matters
Choose All day, every day for a perimeter. Choose Only during hours I set if crossings are normal during opening times, and set the hours when they’re not. Outside those hours, crossings are still recorded as detections, but they don’t send an alert.
5
Choose how urgent it is
A perimeter crossing is usually urgent, so Urgent is the default: alerts are emailed to your alert list. For a busy gate in opening hours, In-app only keeps alerts in Alerts without emailing anyone, as long as none of your other boundary crossing jobs is Urgent. Urgency applies to all your boundary crossing jobs together. See Choose who gets alerts.
What you’ll get
Each alert shows the camera and the time, usually with a short clip. Before you save, you’ll see a summary, for example:
On yard-gate, you’ll be alerted when a person is coming in across the line you drew, all day, every day.
How a crossing is counted
TruRec AI follows where a person’s feet are, not their head or their hands. A crossing counts when the feet are clearly on one side of the line and then clearly on the other, and the person keeps walking the same way for about a second and a half. Turning back before then cancels it.
Someone who steps over and straight back doesn’t count. With Either way, the walk back can count as a crossing the other way, if they keep going.
Someone standing on the line may not count at all.
Someone walking along the line, or past the end of it, doesn’t count. Only a path that goes through the line does.
Someone leaning or reaching across the line doesn’t count: their feet didn’t cross.
Once a person has set off an alert, the same person doesn’t set off another for five minutes. Everyone else who crosses still sets off alerts, so a busy gate can send a lot. Set hours, or choose In-app only, for a gate people use all the time.
The five minutes follow the person as TruRec AI tracks them. If someone is hidden for a moment, for example in a crowd, and then seen again, they can set off a second alert.
Limits
A line is stricter than an area. If you want to know about anyone who is in a place, not just how they got there, use Restricted-area entry instead.
It can’t tell you who someone is, or whether they were allowed through.
It won’t call anyone. Urgent alerts are emailed to your alert list.
It only detects people. Vehicle detection isn’t available yet.
It can’t see through glare or heavy rain, or past a camera that’s been knocked out of position.
Not validated at night yet. We haven’t finished measuring how well it works. So far it’s been tested on daytime indoor scenes. At night, on infrared, or on high-mounted cameras, expect more missed and wrong alerts.
Tips
Draw the line on the ground, across the path, not up a door or along a fence. The camera has to see feet cross it.
Draw it a little inside the real boundary, so a foot on the fence line or the threshold doesn’t count.
Pick a direction rather than Either way when you can. One direction is the most reliable; Either way also alerts on everyone leaving.
Getting alerts during a shift? Set hours, so normal working traffic through a gate doesn’t alert.
Getting alerts for people who never crossed? They’re probably working right next to the line, for example bending down or pushing a trolley. Move the line a little further from where people stand.
On Enterprise: use cases are planned with you, so settings and limits can differ from this page.
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"TruRec AI Docs","description":"The user-facing docs of the TruRec AI computer vision intelligence platform.","colors":{"primary":"#9A3412","light":"#EA580C","dark":"#9A3412"},"logo":{"light":"https://mintcdn.com/trurec-ai-public-docs/sK0NNlXp7lv7wtbj/images/logo.png?fit=max\u0026auto=format\u0026n=sK0NNlXp7lv7wtbj\u0026q=85\u0026s=94ed585fd1a42344ab36807a00ed52e8","dark":"https://mintcdn.com/trurec-ai-public-docs/sK0NNlXp7lv7wtbj/images/logo.png?fit=max\u0026auto=format\u0026n=sK0NNlXp7lv7wtbj\u0026q=85\u0026s=94ed585fd1a42344ab36807a00ed52e8","href":"https://trurec.ai"},"favicon":"https://mintcdn.com/trurec-ai-public-docs/5I91lj0e8JsZnCM3/images/favicon.svg?fit=max\u0026auto=format\u0026n=5I91lj0e8JsZnCM3\u0026q=85\u0026s=02ee0cc49deaf6c45f2ad4d584d0eb7c","background":{"decoration":"gradient"},"navbar":{"links":[{"href":"/support/get-help","label":"Get help"},{"href":"https://cal.com/team/tru-rec-ai","label":"Book a call"}],"primary":{"type":"button","label":"Sign in","href":"https://app.trurec.ai/sign-in"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/tru-rec-ai"},"links":[{"header":"TruRec AI","items":[{"label":"Website","href":"https://trurec.ai"},{"label":"Sign in","href":"https://app.trurec.ai/sign-in"},{"label":"Book a call","href":"https://cal.com/team/tru-rec-ai"},{"label":"Contact us","href":"https://trurec.ai/contact"}]},{"header":"Legal","items":[{"label":"Privacy policy","href":"https://trurec.ai/legal/privacy-policy"},{"label":"App privacy policy","href":"https://trurec.ai/legal/app-privacy-policy"},{"label":"Terms of service","href":"https://trurec.ai/legal/terms-of-service"},{"label":"Acceptable use policy","href":"https://trurec.ai/legal/acceptable-use-policy"}]}]},"search":{"prompt":"Search the TruRec AI docs"},"seo":{"metatags":{"robots":"noindex, nofollow"}},"fonts":{"family":"Geist","weight":300},"icons":{"library":"lucide"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trurec-ai-public-docs","hasAudioNarration":false,"actualSubdomain":"trurec-ai-public-docs","customDomains":["docs.trurec.ai"],"gitSource":{"type":"github","owner":"trurecognition","repo":"public-saas-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6af5ce40aa1faedf27c3110c","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":41},{"language":"default","tag":"Connect your cameras","count":12},{"language":"default","tag":"Use cases","count":7},{"language":"default","tag":"Get started","count":6},{"language":"default","tag":"Account and billing","count":4},{"language":"default","tag":"Alerts","count":3},{"language":"default","tag":"Legal","count":3},{"language":"default","tag":"Privacy and security","count":3},{"language":"default","tag":"Help","count":2},{"language":"default","tag":"Changelog","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"use-cases/boundary-crossing","slug":"/use-cases/boundary-crossing","pageMetadata":{"title":"Boundary crossing","description":"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.","editions":["saas"],"tag":"SaaS","status":"draft","href":"/use-cases/boundary-crossing"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Frame,Heading,Note,OptimizedImage,Step,Steps}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:_jsx(_components.em,{children:`Tell me when someone crosses a line, in the direction I care about.`})}),`\n`,_jsx(_components.p,{children:`You draw a line on a camera’s view and say which way across it matters. TruRec AI alerts you when a person crosses it that way, during the hours you choose.`}),`\n`,_jsx(Heading,{level:`2`,id:`good-for`,children:`Good for`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A fence line or a site perimeter`}),`\n`,_jsx(_components.li,{children:`A doorway into a back-of-house area`}),`\n`,_jsx(_components.li,{children:`The edge of a yard, a loading dock or a car park`}),`\n`,_jsx(_components.li,{children:`A gate that should only be used one way`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`set-it-up`,children:`Set it up`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Draw the boundary`,children:[_jsxs(_components.p,{children:[`The line is required, because it’s the whole point of the job. It starts on a suggested line on a still from the camera. Choose `,_jsx(_components.strong,{children:`Adjust the line`}),` and drag each end to where people actually walk. Put it a little inside the real boundary, so a foot on the line doesn’t count. See `,_jsx(_components.a,{href:`/use-cases/drawing-zones#lines`,children:`Lines`}),`.`]}),_jsx(_components.p,{children:`A short line can’t be crossed cleanly, so it needs to be at least about 5% of the view long. The app won’t save a shorter one.`}),_jsx(Frame,{caption:`A line across a yard gate, just inside it, with the arrow marked In pointing into the yard.`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=cd3bd9c442ab7dceeb8e32b18c90962c`,alt:`A camera still of a gate in a wooden fence. An orange line runs across the gateway just inside the gate, and a white arrow labelled In points from the line into the yard. An Adjust the line button sits in the corner.`,\"data-og-width\":`970`,width:`970`,\"data-og-height\":`606`,height:`606`,\"data-path\":`images/use-cases/boundary-line-yard-gate.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=280\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=edb43069643c2f5480af94abe1b729d4 280w, https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=560\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=e050250552c8145048a3870145e2c931 560w, https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=840\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=1467fd14a98b111bf17829de24eaad4f 840w, https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=1100\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=0deb79174c0828eb6bdf08e25deded60 1100w, https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=1650\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=176957cdca03f3360369d64d83e291fc 1650w, https://mintcdn.com/trurec-ai-public-docs/9VQKp94LpB0n4hkt/images/use-cases/boundary-line-yard-gate.png?w=2500\u0026fit=max\u0026auto=format\u0026n=9VQKp94LpB0n4hkt\u0026q=85\u0026s=f676480ce619c2a8ef0ac0dc7912b529 2500w`})})]}),_jsxs(Step,{title:`Choose which direction matters`,children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Coming in`}),` means crossing the line the way the arrow on the frame points. Use `,_jsx(_components.strong,{children:`Flip direction`}),` to turn the arrow round. `,_jsx(_components.strong,{children:`Going out`}),` is the opposite way. `,_jsx(_components.strong,{children:`Either way`}),` alerts on both.`]}),_jsx(_components.p,{children:`Crossings in the other direction are still recorded as detections, but they don’t send an alert.`})]}),_jsx(Step,{title:`Choose what should count`,children:_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`People`}),`. Vehicle detection isn’t available yet.`]})}),_jsx(Step,{title:`Choose when it matters`,children:_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`All day, every day`}),` for a perimeter. Choose `,_jsx(_components.strong,{children:`Only during hours I set`}),` if crossings are normal during opening times, and set the hours when they’re not. Outside those hours, crossings are still recorded as detections, but they don’t send an alert.`]})}),_jsx(Step,{title:`Choose how urgent it is`,children:_jsxs(_components.p,{children:[`A perimeter crossing is usually urgent, so `,_jsx(_components.strong,{children:`Urgent`}),` is the default: alerts are emailed to your alert list. For a busy gate in opening hours, `,_jsx(_components.strong,{children:`In-app only`}),` keeps alerts in Alerts without emailing anyone, as long as none of your other boundary crossing jobs is `,_jsx(_components.strong,{children:`Urgent`}),`. Urgency applies to all your boundary crossing jobs together. See `,_jsx(_components.a,{href:`/alerts/notification-routing`,children:`Choose who gets alerts`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you’ll-get`,children:`What you’ll get`}),`\n`,_jsx(_components.p,{children:`Each alert shows the camera and the time, usually with a short clip. Before you save, you’ll see a summary, for example:`}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[`On `,_jsx(_components.code,{children:`yard-gate`}),`, you’ll be alerted when a person is coming in across the line you drew, all day, every day.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-a-crossing-is-counted`,children:`How a crossing is counted`}),`\n`,_jsx(_components.p,{children:`TruRec AI follows where a person’s feet are, not their head or their hands. A crossing counts when the feet are clearly on one side of the line and then clearly on the other, and the person keeps walking the same way for about a second and a half. Turning back before then cancels it.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Someone who steps over and straight back doesn’t count. With `,_jsx(_components.strong,{children:`Either way`}),`, the walk back can count as a crossing the other way, if they keep going.`]}),`\n`,_jsx(_components.li,{children:`Someone standing on the line may not count at all.`}),`\n`,_jsx(_components.li,{children:`Someone walking along the line, or past the end of it, doesn’t count. Only a path that goes through the line does.`}),`\n`,_jsx(_components.li,{children:`Someone leaning or reaching across the line doesn’t count: their feet didn’t cross.`}),`\n`,_jsxs(_components.li,{children:[`Once a person has set off an alert, the same person doesn’t set off another for five minutes. Everyone else who crosses still sets off alerts, so a busy gate can send a lot. Set hours, or choose `,_jsx(_components.strong,{children:`In-app only`}),`, for a gate people use all the time.`]}),`\n`,_jsx(_components.li,{children:`The five minutes follow the person as TruRec AI tracks them. If someone is hidden for a moment, for example in a crowd, and then seen again, they can set off a second alert.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`limits`,children:`Limits`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A line is stricter than an area. If you want to know about anyone who is in a place, not just how they got there, use `,_jsx(_components.a,{href:`/use-cases/restricted-area-entry`,children:`Restricted-area entry`}),` instead.`]}),`\n`,_jsx(_components.li,{children:`It can’t tell you who someone is, or whether they were allowed through.`}),`\n`,_jsx(_components.li,{children:`It won’t call anyone. Urgent alerts are emailed to your alert list.`}),`\n`,_jsx(_components.li,{children:`It only detects people. Vehicle detection isn’t available yet.`}),`\n`,_jsx(_components.li,{children:`It can’t see through glare or heavy rain, or past a camera that’s been knocked out of position.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Not validated at night yet.`}),` We haven’t finished measuring how well it works. So far it’s been tested on daytime indoor scenes. At night, on infrared, or on high-mounted cameras, expect more missed and wrong alerts.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`tips`,children:`Tips`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Draw the line on the ground,`}),` across the path, not up a door or along a fence. The camera has to see feet cross it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Draw it a little inside the real boundary,`}),` so a foot on the fence line or the threshold doesn’t count.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Pick a direction`}),` rather than `,_jsx(_components.strong,{children:`Either way`}),` when you can. One direction is the most reliable; `,_jsx(_components.strong,{children:`Either way`}),` also alerts on everyone leaving.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Getting alerts during a shift?`}),` Set hours, so normal working traffic through a gate doesn’t alert.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Getting alerts for people who never crossed?`}),` They’re probably working right next to the line, for example bending down or pushing a trolley. Move the line a little further from where people stand.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/alerts/tuning-false-positives`,children:`Reduce false alerts`}),` for more.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`On Enterprise:`}),` use cases are planned with you, so settings and limits can differ from this page.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Boundary crossing","description":"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.","editions":["saas"],"tag":"SaaS","status":"draft","href":"/use-cases/boundary-crossing"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Good for","slug":"good-for","depth":2,"children":[]},{"title":"Set it up","slug":"set-it-up","depth":2,"children":[]},{"title":"What you’ll get","slug":"what-you’ll-get","depth":2,"children":[]},{"title":"How a crossing is counted","slug":"how-a-crossing-is-counted","depth":2,"children":[]},{"title":"Limits","slug":"limits","depth":2,"children":[]},{"title":"Tips","slug":"tips","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"trurec-ai-public-docs","siteName":"TruRec AI Docs","title":"Boundary crossing - TruRec AI Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T14:33:23.472Z","originalFileLocation":"use-cases/boundary-crossing.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\">\u003cmeta data-mint-head name=\"application-name\" content=\"TruRec AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"noindex, nofollow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Boundary crossing - TruRec AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"TruRec AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trurec.ai/use-cases/boundary-crossing\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trurec-ai-public-docs.mintlify.site/_mintlify/api/og/v2?division=Use+cases\u0026amp;title=Boundary+crossing\u0026amp;description=Get+an+alert+when+someone+crosses+a+line+you+draw%2C+such+as+a+fence+line%2C+a+doorway+or+the+edge+of+a+yard%2C+in+the+direction+you+care+about.\u0026amp;theme=1928247747cb841521261c31\u0026amp;signature=3144ce0eaf667c6b0945470d8d0787363205a4c6550bff4c9aa825f939e5a772\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Boundary crossing - TruRec AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trurec-ai-public-docs.mintlify.site/_mintlify/api/og/v2?division=Use+cases\u0026amp;title=Boundary+crossing\u0026amp;description=Get+an+alert+when+someone+crosses+a+line+you+draw%2C+such+as+a+fence+line%2C+a+doorway+or+the+edge+of+a+yard%2C+in+the+direction+you+care+about.\u0026amp;theme=1928247747cb841521261c31\u0026amp;signature=3144ce0eaf667c6b0945470d8d0787363205a4c6550bff4c9aa825f939e5a772\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/trurec-ai-public-docs/3pD22gqjwIZkbYEz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"TruRec AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9A3412\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trurec.ai/use-cases/boundary-crossing\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/use-cases/boundary-crossing.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trurec.ai/#organization\",\"name\":\"TruRec AI Docs\",\"url\":\"https://docs.trurec.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trurec-ai-public-docs/sK0NNlXp7lv7wtbj/images/logo.png?fit=max\u0026auto=format\u0026n=sK0NNlXp7lv7wtbj\u0026q=85\u0026s=94ed585fd1a42344ab36807a00ed52e8\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trurec.ai#website\",\"name\":\"TruRec AI Docs\",\"url\":\"https://docs.trurec.ai\",\"publisher\":{\"@id\":\"https://docs.trurec.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trurec.ai/use-cases/boundary-crossing#webpage\",\"url\":\"https://docs.trurec.ai/use-cases/boundary-crossing\",\"name\":\"Boundary crossing\",\"description\":\"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\",\"dateModified\":\"2026-11-12T14:33:23.472Z\",\"isPartOf\":{\"@id\":\"https://docs.trurec.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trurec.ai/use-cases/boundary-crossing#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trurec.ai/use-cases/boundary-crossing#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Use cases\",\"item\":\"https://docs.trurec.ai/use-cases/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Boundary crossing\",\"item\":\"https://docs.trurec.ai/use-cases/boundary-crossing\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.trurec.ai/use-cases/boundary-crossing#article\",\"headline\":\"Boundary crossing\",\"name\":\"Boundary crossing\",\"description\":\"Get an alert when someone crosses a line you draw, such as a fence line, a doorway or the edge of a yard, in the direction you care about.\",\"url\":\"https://docs.trurec.ai/use-cases/boundary-crossing\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trurec.ai/use-cases/boundary-crossing#webpage\"},\"dateModified\":\"2026-11-12T14:33:23.472Z\",\"publisher\":{\"@id\":\"https://docs.trurec.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trurec.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"TruRec AI Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"TruRec AI Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/use-cases/boundary-crossing.md","siteName":"TruRec AI Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","icon":"rocket","pages":[{"title":"TruRec AI documentation","sidebarTitle":"Welcome","href":""},{"title":"How TruRec AI works","sidebarTitle":"How it works","href":"/getting-started/how-it-works"},{"title":"What TruRec AI does and doesn't do","sidebarTitle":"What we do and don't do","href":"/reference/what-trurec-is-not"},{"title":"SaaS and Enterprise","href":"/getting-started/editions"},{"title":"Set up TruRec AI","sidebarTitle":"Quickstart","tag":"SaaS","href":"/getting-started/quickstart"},{"title":"Your first week","href":"/getting-started/your-first-week"}]},{"group":"Connect your cameras","icon":"video","pages":[{"title":"Connect a camera with a camera link","sidebarTitle":"Connect with camera links","tag":"SaaS","href":"/getting-started/camera-links"},{"title":"Find your camera's RTSP URL","sidebarTitle":"Find RTSP URLs","href":"/getting-started/rtsp-urls"},{"title":"Connect an NVR","href":"/getting-started/connect-an-nvr"},{"title":"Connect a VMS","href":"/getting-started/connect-a-vms"},{"title":"Create a read-only VMS user","sidebarTitle":"Create a read-only user","href":"/getting-started/read-only-vms-user"},{"title":"Ports and firewalls","href":"/networking/ports-and-firewalls"},{"title":"Sign in to your router","tag":"SaaS","href":"/networking/sign-in-to-your-router"},{"title":"Find and fix your recorder's address","sidebarTitle":"Your recorder's address","href":"/networking/fix-your-recorders-address"},{"title":"CGNAT and public IP addresses","sidebarTitle":"CGNAT and public IP","tag":"SaaS","href":"/networking/cgnat-and-public-ip"},{"title":"Two routers (double NAT)","sidebarTitle":"Two routers","tag":"SaaS","href":"/networking/two-routers"},{"title":"Networking in plain words","href":"/networking/plain-words"},{"title":"Camera health","href":"/streams/camera-health"}]},{"group":"Use cases","icon":"scan-eye","pages":[{"title":"Use cases","sidebarTitle":"Choose a use case","href":"/use-cases/overview"},{"title":"Restricted-area entry","tag":"SaaS","href":"/use-cases/restricted-area-entry"},{"title":"After-hours activity","description":"Get an alert when there's someone on site while it's closed, such as overnight or at weekends. You set your opening hours, day by day.","tag":"SaaS","href":"/use-cases/after-hours-activity"},{"title":"Boundary crossing","tag":"SaaS","href":"/use-cases/boundary-crossing"},{"title":"Dwell or loitering","description":"Get an alert when the same person stays in view, or in an area, for longer than you set.","tag":"SaaS","href":"/use-cases/dwell-or-loitering"},{"title":"Mark an area","href":"/use-cases/drawing-zones"},{"title":"Request a custom use case","href":"/use-cases/custom-requests"}]},{"group":"Alerts","icon":"bell","pages":[{"title":"Review and flag alerts","href":"/alerts/reviewing-and-flagging"},{"title":"Choose who gets alerts","sidebarTitle":"Who gets alerts","href":"/alerts/notification-routing"},{"title":"Reduce false alerts","href":"/alerts/tuning-false-positives"}]},{"group":"Account and billing","icon":"circle-user","pages":[{"title":"Users and roles","href":"/account/users-and-roles"},{"title":"Invite people","tag":"SaaS","href":"/account/inviting-people"},{"title":"Delete your workspace","tag":"SaaS","href":"/account/deleting-your-workspace"},{"title":"How camera pricing works","sidebarTitle":"Plans and pricing","tag":"SaaS","href":"/billing/how-camera-pricing-works"}]},{"group":"Privacy and security","icon":"shield","pages":[{"title":"How we protect your data","sidebarTitle":"Security","href":"/privacy/security"},{"title":"Data retention","href":"/privacy/data-retention"},{"title":"Signage and consent","href":"/privacy/signage-and-consent"}]},{"group":"Legal","icon":"scale","pages":[{"title":"Terms of service","sidebarTitle":"Terms of service","tag":"SaaS","href":"/legal/terms-of-service"},{"title":"Privacy policy","sidebarTitle":"Privacy policy","tag":"SaaS","href":"/legal/privacy-policy"},{"title":"Sub-processors","sidebarTitle":"Sub-processors","tag":"SaaS","href":"/legal/sub-processors"}]},{"group":"Enterprise","icon":"building-2","pages":[{"title":"TruRec AI Enterprise","sidebarTitle":"Enterprise overview","tag":"Enterprise","href":"/enterprise/overview"}]},{"group":"Help","icon":"life-buoy","pages":[{"title":"Get help","href":"/support/get-help"},{"title":"Frequently asked questions","sidebarTitle":"FAQ","href":"/support/faq"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Boundary crossing - TruRec AI Docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-otd7Y6S-.js","DynamicMarkdown-QJ7LkRm3.js","zoom-image-lightbox-BodsesVp.js","lightbox-handle-r17bVUz3.js"]}