Seeed-Jetson-DevelopTool / maskcam-nano
AGENTS.md57 starsChanged 4 months agoMITView on GitHub
Run MaskCam face mask detection on Jetson Nano 4GB using Docker. Streams results via RTSP. Requires JetPack 4.6 and a USB camera.
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository297 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-nvrAGENTS.md
- allxon-ota-updateAGENTS.md
- allxon-setupAGENTS.md
- alwaysai-setupAGENTS.md
- backup-restoreAGENTS.md
- bsp-source-buildAGENTS.md
- clawdbot-developmentAGENTS.md
- cochl-sense-setupAGENTS.md
- cvedia-setupAGENTS.md
- dashcamnet-xavier-nx-multicameraAGENTS.md
- deciai-setupAGENTS.md
- deepseek-quick-deployAGENTS.md
- deploy-deepseek-mlcAGENTS.md
- deploy-depth-anything-v3AGENTS.md
- deploy-diaAGENTS.md
- deploy-efficient-vision-engineAGENTS.md
- deploy-frigateAGENTS.md
- deploy-live-vlm-webuiAGENTS.md
- deploy-nvbloxAGENTS.md
- deploy-ollama-anythingllmAGENTS.md
- deploy-riva-llama2AGENTS.md
- developtool-deviceAGENTS.md
- disk-encryptionAGENTS.md
- diy-bsp-buildAGENTS.md
- ethercat-communicationAGENTS.md
- ethercat-setupAGENTS.md
- finetune-llm-llama-factoryAGENTS.md
- fix-browser-snap-jetsonAGENTS.md
- gapi-setupAGENTS.md
- generative-ai-introAGENTS.md
- gpt-oss-liveAGENTS.md
- gr00t-n1-5-deploy-thorAGENTS.md
- gr00t-n1-6-deploy-agxAGENTS.md
- hardhat-setupAGENTS.md
- hybrid-bsp-dk-to-recomputerAGENTS.md
- imx477-a603-setupAGENTS.md
- j501-viola-fruit-sortingAGENTS.md
- jetpack5-ssd-boot-fixAGENTS.md
- jetpack-flash-wsl2AGENTS.md
- jetpack-jetson-overviewAGENTS.md
- jetpack-ota-updateAGENTS.md
- jetson-ai-toolsAGENTS.md
- jetson-docker-setupAGENTS.md
- jetson-faqAGENTS.md
- jetson-pc-wired-shareAGENTS.md
- jetson-project-galleryAGENTS.md
- jetson-resource-indexAGENTS.md
- jetson-tutorial-exercisesAGENTS.md
- ko-module-buildAGENTS.md
- l4t-differencesAGENTS.md
- langchain-output-formattingAGENTS.md
- lerobot-env-setupAGENTS.md
- llama-cpp-rpc-distributedAGENTS.md
- llm-interface-controlAGENTS.md
- local-chatbot-multimodalAGENTS.md
- local-chatbot-physicalAGENTS.md
- local-llm-text-to-imageAGENTS.md
- local-rag-llamaindexAGENTS.md
- lumeo-setupAGENTS.md
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Run one phase at a time. After each phase:
- Very specific: line 16
If output contains [STOP] → stop immediately, consult the failure decision tree below.
- Very specific: line 17
If output ends with [OK] → tell the user "Phase N complete" and proceed to the next phase.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
MaskCam on Jetson Nano
Hardware required: Jetson Nano 4GB, JetPack 4.6, USB camera, Docker with nvidia runtime, docker-compose. MaskCam detects face mask compliance and streams annotated video over RTSP.
Execution model
Run one phase at a time. After each phase:
- Relay all command output to the user.
- If output contains
[STOP]→ stop immediately, consult the failure decision tree below. - If output ends with
[OK]→ tell the user "Phase N complete" and proceed to the next phase.
Prerequisites
| Requirement | Detail |
| Board | Jetson Nano 4GB |
| JetPack | 4.6 |
| Camera | USB camera connected before starting Docker |
| Docker | Installed with NVIDIA container runtime (nvidia-docker2) |
| Network | Jetson reachable on LAN for RTSP stream access |
Phase 1 — Pull Docker image
sudo docker pull maskcam/maskcam-betaVerify:
sudo docker images | grep maskcam
# Expected: maskcam/maskcam-beta listed with a recent tag[OK] when the image appears in docker images. [STOP] if pull fails — see failure decision tree.
Phase 2 — Get device IP address
sudo ifconfig
# Note the inet address for your active interface (e.g. eth0 or wlan0)
# Example: inet 192.168.1.42[OK] when you have the Jetson's IP address noted. You will use it to access the RTSP stream in Phase 4.
Phase 3 — Run MaskCam
sudo docker run --runtime nvidia -it --rm \
--network host \
-v /tmp/argus_socket:/tmp/argus_socket \
maskcam/maskcam-betaExpected: container starts and prints initialization logs, then begins processing camera frames. You should see inference output in the terminal.
[OK] when the container is running and printing frame inference results. [STOP] if the container exits immediately or errors — see failure decision tree.
Phase 4 — View RTSP stream
With MaskCam running, open the stream in VLC or any RTSP-capable player on another machine:
rtsp://<jetson-ip>:8554/maskcamReplace <jetson-ip> with the address noted in Phase 2.
In VLC: Media -> Open Network Stream -> paste the URL above.
[OK] when the annotated video stream is visible with mask detection overlays.
Failure decision tree
| Symptom | Action |
docker run fails with "unknown runtime: nvidia" | NVIDIA container runtime not configured. Install nvidia-docker2: sudo apt install nvidia-docker2 then sudo systemctl restart docker. |
| Container exits immediately with "no cameras available" | USB camera not detected. Confirm camera is connected: ls /dev/video*. Reconnect camera and retry. |
| Container exits with "failed to open argus socket" | Argus socket not available. Ensure /tmp/argus_socket exists on the host: ls /tmp/argus_socket. If missing, reboot the Jetson. |
| RTSP stream URL not accessible from another machine | Check that port 8554 is not blocked: sudo ufw status. Allow if needed: sudo ufw allow 8554. Confirm you are using the correct Jetson IP from Phase 2. |
| RTSP stream connects but shows black screen | Camera may not be initializing correctly inside the container. Check container logs for camera errors. Try a different USB port. |
| Very low FPS or inference stalls | Ensure no other GPU-heavy processes are running. Check Jetson power mode: sudo nvpmodel -m 0 (max performance). |
Reference files
references/source.body.md— full Seeed Wiki tutorial with screenshots and additional context (reference only)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

