This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Plugin] signalk-forward-watch — AI obstacle detection for bow cameras
#1
So radar is expensive. Like, really expensive. And I'm a boater, which
  means I'm already broke. Since the ice is still in the rivers, eh  I was wondering
  if anyone can help be test out my new obstacle detection system.

  So naturally I did the completely reasonable thing — I spent months
  building an AI-powered obstacle detection system from scratch instead.

  Meet signalk-forward-watch. It watches your bow camera, runs a
  custom-trained YOLOv8 marine AI model, and when it spots a boat, buoy,
  kayak, log, or floating debris ahead — it drops it straight onto your
  OpenCPN chart as an AIS target. No radar. No extra hardware. Just a
  cheap IP camera on your bow and a Raspberry Pi you probably already have.

  If you're running OpenPlotter it just works — Signal K and OpenCPN are
  already connected, detections appear on the chart automatically.

  Is it as good as radar? Absolutely not.
  Does it work at night? No. Possibly if you have night vision built in your camera but probably not.
  Does it see through fog? Also no.
  Did it cost me significantly more time than just buying a radar would
  have? Possibly yes.

  But it's FREE, it's open source, and it puts obstacles on your chart.

  ? https://github.com/SkipperDon/signalk-forward-watch

  Runs on Pi 4 or 5, CPU only, no GPU needed. Install instructions and model
  download in the README.

  Use it, break it, tell me what's wrong with it. PRs welcome.
  
  Stay where you’re to ’til I comes where you’re at.
Skipper Don

AtMyBoat.com
skipperdon@atmyboat.com

I watched enough Gilligan’s Island as a kid to explain this
 
Reply
#2
Photo 
[Image: signalk-forward-watch.jpg]
The latest test of experimental SignalK‑Forward‑Watch running through d3kOS showed a solid improvement in how the bow CCTV camera works with SafeHelm and the Collision Warning system. The camera now identifies objects ahead and gives each one a certainty percentage, making it easy to see what it’s confident about.
During the run, the system displayed two clear arrows:
  • Green for the collision‑risk boat
  • Yellow for floating debris
Both were detected correctly. What it didn’t pick up were white or light‑colored objects — channel markers, buoys, and similar items simply blended into the background. The next step is checking whether the CCTV camera can use IR mode to improve contrast and help detect those missing targets.
In AvNav, switching AIS to “Show All” allowed Forward‑Watch objects to appear alongside regular AIS targets. That made the overlays usable and consistent. I haven’t tested this yet in OpenCPN, but AvNav confirmed the integration works.
This is a good step forward, and with IR testing next, detection should get even better.
Skipper Don

AtMyBoat.com
skipperdon@atmyboat.com

I watched enough Gilligan’s Island as a kid to explain this
 
Reply
#3
Would this work with a camera facing backwards?
I'm an inland cruiser on rivers and canals with lots of commercial traffic that is twice as fast as I go. Often looking behind is needed and that is why I have my camera installed looking backwards. But still I'm sometimes surprised by traffic close behind me.
Reply
#4
Right now it's forward-only — the bearing math assumes the camera centre = straight ahead (boat heading). If you mount it facing astern, detections will be plotted in the wrong direction on the chart. A stern camera would need a 180° bearing offset baked in.

It's a one-line fix in the plugin (bearing_deg = boatHeading + **180** + ...), but I have built a config option see message below. If you want to give it a shot, 1 added a "Camera bearing offset" field to the config in a new version i just published.

Ok it's ready, 

Good news — just pushed support for this. Update to the latest version and you'll see a new "Camera bearing offset (degrees)" field in the plugin config. see npm

Set it to 180 for a stern-facing camera. The plugin will then plot detections behind the boat where they actually are, not ahead.

Values: 0 = bow (default), 180 = stern, 90 = starboard, 270 = port.  for you npm install signalk-forward-watch@latest and set camera_bearing_offset = 180

npm install signalk-forward-watch@latest

Then in Signal K → Plugin Config → Forward Watch, set Camera bearing offset = 180 and restart the plugin. Give it a shot and let me know if the targets appear in the right place.

Hey let me know if it works, eh.
Skipper Don

AtMyBoat.com
skipperdon@atmyboat.com

I watched enough Gilligan’s Island as a kid to explain this
 
Reply
#5
Thank you very much, will definitly try it out but not soon. Boat is in winter storage till April.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)