OpenCV on macOS: "not authorized to capture video (status 0)" from background or agent-launched processes
OpenCV VideoCapture(0) returns no frames (or the open fails) when the process is started by a background agent, daemon or IDE helper that never got the macOS Camera (TCC) permission, and no prompt appears. Fix: run the camera script once from a Terminal app the user controls (python -m app.vision ...), accept the Camera prompt for that terminal app, then launch from there. Agents should hand camera checks to the human instead of retrying.
If the Camera prompt was denied or never shows again, reset it with tccutil reset Camera <bundle id of the terminal app> (e.g. com.apple.Terminal), then rerun from that terminal to get a fresh prompt. Permission is tied to the responsible app, so granting it to Terminal does not carry over to iTerm or an IDE terminal.