Windows Installation

CowCatcher AI runs on the open-source AI Detector engine. Follow the eight steps below and your barn is being monitored live — everything runs locally on your own Windows PC, without a subscription.

👉 Download via GitHub Releases

Choose the correct file for your hardware in the latest release.

Go to Releases →

Before you start: which version do you need?

You need a computer with Windows 10 or Windows 11. Your graphics card (GPU) decides which build of the AI engine you install. All versions are fast enough for accurate detection; a NVIDIA card simply processes more frames per second.

FileHardware RequirementsTime per frame
aidetector-winml-<version>.zipWindows 11 with any GPU (Intel HD/UHD/Iris or AMD Radeon)200 – 600 ms
aidetector-nvidia-cu130-<version>.zipWindows 10 with NVIDIA RTX 3000 series or newer10 – 40 ms
aidetector-nvidia-cu126-<version>.zipWindows 10 with NVIDIA GTX 1000 / RTX 2000 series or older40 – 60 ms
aidetector-web-windows-<version>.exeThe user interface, needed on every PC

Not sure which one to choose?: Start with the winml version on Windows. Only use a cuda build if you are certain that your NVIDIA setup matches that specific CUDA version.

Step-by-step installation

1

Download the two files from GitHub

  1. Open the releases page of the AI Detector project with the button above, or search Google for “CowCatcher AI GitHub” and click Releases in the right-hand menu.
  2. Download exactly two files: the AI engine that matches your graphics card, and the web version (aidetector-web-windows) — the interface where you set everything up.

For the standard winml version you can download without an account. For the NVIDIA (CUDA) builds GitHub requires you to be signed in: go to github.com, click Sign in and choose ‘Continue with Google’ to use your existing Google account. That takes a few seconds.

The releases page: the engine builds are listed under Assets and in the release description.
2

Create a folder and unpack the files

  1. Right-click an empty spot on your desktop and choose New → Folder. Give it the clear name Cowcatcher.
  2. Open File Explorer, go to Downloads and select both .zip files. Press Ctrl + X, open the Cowcatcher folder and press Ctrl + V.
  3. Right-click the first zip file and choose Extract All…, then confirm. Do exactly the same for the second zip file.
  4. Both programs are now unpacked in the folder. You can safely delete the original .zip files.
The Cowcatcher folder with both programs unpacked: the AI engine (winml) and the web interface.
3

Allow Windows to run the program

CowCatcher AI is not distributed through the Microsoft Store, so Windows shows a security warning as a precaution. Two short actions remove it for good.

A — Unblock the files

  1. Right-click the program (.exe) and choose Properties at the very bottom.
  2. On the General tab, under Security, you see the text: “This file came from another computer and might be blocked to help protect this computer.”
  3. Tick Unblock, click Apply and then OK. Do this for both programs.

B — Get past Windows SmartScreen

  1. The first time you open the program a blue screen may appear saying “Windows protected your PC” (Windows Defender SmartScreen).
  2. Click the small link More info and then the button Run anyway that appears. The program now has full permission.
Right-click the .exe → Properties → tick ‘Unblock’ under Security and confirm with OK.
4

Prepare your cameras (RTSP)

RTSP (Real Time Streaming Protocol) is the network address your IP cameras use to send their live video over the local network. CowCatcher AI reads that stream and analyses it frame by frame.

Settings per camera brand

  • Reolink — RTSP is switched off at the factory, so you have to enable it once. Open the Reolink app on your computer or phone, select the camera, tap the gear icon and go to Network → Advanced → Server Settings. Tick RTSP and save. Confirm with Yes when the camera asks if you are sure.
  • Hikvision & Dahua — RTSP is already enabled by default. You do not have to change anything in the camera software.
  • Axis, Foscam, Ubiquiti UniFi — also allow RTSP streaming out of the box, on the standard port 554.

Find the IP address of your camera

You need the IP address of the camera to connect it. You will find it in the camera's mobile app, on the network page of your router, or in the software of the camera brand. An IP address almost always looks like 192.168.1.31 or 192.168.178.50.

Always use the substream

Nearly every IP camera sends out two video streams: a mainstream in high resolution (4K or 1080p) that costs a lot of computing power, and a substream in a lower resolution (640x480 or 720p). For the AI the substream is more than sharp enough to recognise cows, mounting behaviour and calving activity — and it saves up to 80% of the load on your processor. Always pick the substream.

Example: enabling RTSP in the Reolink app under Network → Advanced → Server Settings.
5

Add your camera streams

  1. Open the folder of the web version and start the application. Your browser opens the local user interface.
  2. If your browser or firewall asks for network access, choose Allow.
  3. Go to Streams and click Add.
  4. Enter a clear Label, for example Heifers barn 1 or Calving pen west.
  5. Paste the RTSP address of the camera in the Source field. Use the template for your brand below.
  6. Click Test. If the connection succeeds you immediately see the live camera image.
  7. Click Save, and repeat these steps for every camera you want to add.

Find the RTSP URL for your camera

Replace [PASS] and [IP] with the password and IP address of your own camera. Prefer the Sub stream where available — it uses far less processing power.

StreamRTSP URL
Mainrtsp://admin:[PASS]@[IP]:554/h264Preview_01_main
Subrtsp://admin:[PASS]@[IP]:554/h264Preview_01_sub
Streams → Add: give the camera a label, paste the RTSP URL and press Test before you save.
6

Set up Telegram notifications

Telegram is the fastest and cheapest way to receive alerts on your phone, including the photo of the detection.

  1. Go to Notifications and click AddTelegram.
  2. Give the channel a Label, for example My phone or Family group.
  3. Fill in the Token of your bot. You get this from Telegram’s BotFather when you create your own notification bot.
  4. Fill in your Chat ID: a unique ten-digit number (for example 1234567890) that tells the bot which account or group chat the photos must go to.
  5. Click Test notification and check your phone. Did the test message arrive? Then click Save.

Several notification groups

You can add as many Telegram recipients or groups as you like. A practical split: one group Heat detection heifers for the farmer and the staff, and a second group Calving alerts for the whole family or the night shift.

Home Assistant webhook (optional)

Do you use Home Assistant on the farm? Then you can also enter a webhook URL. CowCatcher AI sends a JSON signal to your Home Assistant server on every detection, so you can switch on the barn lighting automatically or trigger a physical siren relay.

Notifications → Add Telegram: enter the bot token and your chat ID, then press ‘Test notification’.
7

Create your detectors

In the Detectors tab you create the actual AI jobs: here you link the cameras, the type of detection and the settings together.

Heat detection (Cow Catcher)

  1. Click Add and choose the preset Cow Catcher (heat detection / mounting).
  2. Select the streams that are aimed at the cows or heifers in heat.
  3. Select the Telegram channels that must receive a message when a mount is detected.
  4. Set the Confidence (see the table below) and click Save.

Calving detection (Calving Catcher)

  1. Click Add and choose the preset Calving Catcher.
  2. Select the camera(s) of the calving pen or the straw boxes, plus the Telegram channels for calving alerts.
  3. With calving you do not want any delay, so set the alert interval to 1: every detection is sent through immediately.
  4. Set Required detected frames to about 15. The AI checks roughly once per second, so 15 seconds of continuous signal (feet or water bag) sets off the alarm.

Confidence explained

The confidence decides how sure the AI has to be of its case before an alert is sent.

ValueWhat it means
0.92Very strict. Virtually zero false alerts, but a very short or very fast mount can occasionally be missed.
0.90Recommended setting. The ideal balance between a very high hit rate and minimal false alerts.
0.88Sensitive. Registers practically everything, but gives a false alert now and then — for example when two cows stand close together.
0.85Not recommended: too many false alerts.

Advanced parameters

Behind the Advanced switch you will find extra parameters such as the detection interval, timeouts and video export. Everything you save here is written automatically to the config.json file in your program folder — you never have to edit that file by hand.

See what every setting does →

Detectors → Add: pick a preset, link the streams and Telegram channels, and set the confidence.
8

Start the AI engine

  1. Open the Cowcatcher folder and start the AI detector — the engine, not the web interface.
  2. A dark terminal window opens. Do not close this window! This is the engine that processes all the camera images in the background.
  3. On the very first start the program downloads the latest AI model from the server. Depending on your internet speed this takes one to three minutes. It then converts the model automatically to the fastest format for your hardware.

Reading the log

Once the AI is active you see a line scroll by for every processed frame, with the detection time in milliseconds. As long as those lines keep coming, you know the AI is watching your barn live.

aidetector.detection.detector - INFO - Detection time: 38ms for 1 frame(s). Avg: 38ms
aidetector.detection.detector - INFO - Detection time: 37ms for 1 frame(s). Avg: 37ms
aidetector.detection.detector - INFO - Checking for timeouts
The engine’s terminal window: every line shows how long one frame took to process.

Where your detections are stored

Every time the AI sees a mount or calving activity, two things happen: an alert goes straight to Telegram, and the photo with the AI box drawn on it is saved locally in the detections/ folder in your program folder. That way you automatically build up a local archive of every heat and calving moment, without depending on a cloud subscription. Your footage stays 100% on your own computer.

Help and support

  • YouTube — search for “CowCatcher AI” for step-by-step video guides from start to finish, plus extra videos about connecting an automatic barn alarm and down-cow detection.
  • E-mail — questions or problems? Mail us directly: cowcatcherai@gmail.com
  • Facebook / community — ask your question in the comments under the YouTube videos or on our Facebook page, for quick help and experiences from fellow farmers.

Keep it running 24/7

  • Use a network cable. Connect both the AI computer and the IP cameras with a wired connection (UTP/ethernet). Wi-Fi in a barn can be unstable, which makes the RTSP streams stutter.
  • Switch off sleep mode. Does the AI stop detecting at night? Then Windows put the PC to sleep. Go to Settings → System → Power & sleep, set the screen to switch off after e.g. 15 minutes, but set Sleep to Never.
  • Start automatically after a power cut. Press Windows + R, type shell:startup and press Enter. Right-click your CowCatcher AI program, choose Create shortcut and drag that shortcut into the Startup folder that just opened. The program now starts by itself whenever the computer boots.
Tip: Keep the terminal window open as long as the detector is running. If it closes immediately, there is an error in your config.json — check carefully that you haven't forgotten any quotation marks (") or commas (,).