Can an AI assistant look at a real workbench through a camera? Yes, if the assistant has a way to obtain the image and a model capable of interpreting it. In this tutorial, we connect Claude Code to a Wi-Fi camera using a local JPEG capture rather than giving an AI unrestricted access to a live stream.

What you need
- The Bench to Field camera firmware or another camera that provides a JPEG snapshot endpoint.
- A computer that can reach the camera over the local network.
- Claude Code running locally with image-reading capability and permission to access the working folder.
- A command-line HTTP client such as curl.
Local HTTP snapshot
curl saves JPEG
Read and interpret image
Step 1: Check the camera independently
Open the snapshot URL in a browser on the computer where Claude Code runs:
http://192.168.1.200/captureSubstitute the camera’s real IP. You should see a JPEG. If the browser cannot reach the camera, resolve the network issue before involving AI.
Step 2: Save an image in your working folder
Use a dedicated project directory without confidential files. Run the following command on Linux or macOS:
curl --fail --silent --show-error --max-time 10 -o camera.jpg http://192.168.1.200/captureIn Windows PowerShell, use:
curl.exe --fail --silent --show-error --max-time 10 -o camera.jpg http://192.168.1.200/captureOpen the file manually once to confirm that it contains the expected image. Saving the JPEG first is useful because you can reproduce the analysis and distinguish camera problems from AI interpretation problems.
Step 3: Ask Claude Code to inspect the JPEG
Start Claude Code in the folder containing the image. Try this prompt:
Read camera.jpg as an image and describe what is visible.
Separate clear observations from uncertain interpretations.
Point out glare, poor focus or obstructed areas.
Do not infer details that cannot be seen.Claude Code may ask for permission to read the image. If the image-reading capability is unavailable in your environment, attach the JPEG to a compatible AI chat instead. Review the resulting description against the original picture.
Step 4: Ask Claude Code to capture and inspect an image
Once the manual workflow works, try combining the steps. Use explicit scope and approve only the expected command:
Use curl to fetch one JPEG from
http://192.168.1.200/capture
with a 10-second timeout. Save it as camera.jpg in the
current project folder. Read camera.jpg as an image.
Describe the visible scene and report uncertainty.
Do not access any other device or change camera settings.The local CLI may execute the command using its shell tool and then read the resulting image. Permissions, sandbox settings, operating system and model capabilities can affect whether this works. Do not disable security controls globally to make the experiment succeed. A cloud-only session generally cannot route to a private LAN address.
Practical experiment: inspect a workbench
Position the camera so it can see the object under test. Try a narrow, verifiable question such as whether an indicator LED is visibly illuminated, or whether a known object is inside the frame. Repeat with different lighting. Compare the descriptions against what you can see yourself.
In the original Bench to Field experiment, Claude Code inspected a captured JPEG and identified overexposed regions. This demonstrates a local capture and image interpretation workflow, not certified measurement or continuous monitoring.
Moving from one picture to sampled video
For a sequence of images, FFmpeg can record the camera’s MJPEG stream and extract frames at a selected rate. Analyze a few frames first. More images mean more processing and potentially higher AI usage. An event that occurs between samples may be missed.
Security, privacy and limitations
- Keep the camera on a trusted local network. Do not forward the unprotected HTTP port to the internet.
- Use only images you are authorized to capture and send to the AI provider. Local CLI execution does not mean the model inference is local.
- Review tool permissions and any provider data-handling settings before processing confidential images.
- Do not treat image descriptions as reliable safety alarms or measurements without independent verification.
- Continuous event monitoring, alert delivery and remote 4G access require additional software and validation.
References
Claude Code permissions · Claude Code tools reference · curl documentation.
See Connect a Camera to Your AI for the hardware, firmware and free source package. These examples use the project’s local HTTP endpoints.