element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project14
  • Challenges & Projects
  • More
Project14
Forum Counting Boats and Where They are Heading
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 10 answers
  • Subscribers 175 subscribers
  • Views 3886 views
  • Users 0 members are here
  • lorawan
  • tracking
  • direction
Related

Counting Boats and Where They are Heading

phlindop
phlindop over 4 years ago

Spurred on by this week's AI and Livestock webinar I have a question for the community.

 

We are doing work on a canal in Scotland and have started a digitisation project around one of their locks as a PoC.  LoRaWAN based sensors, gate status, water level in lock and between locks etc.

 

What I wanted to add is a boat counter that also records direction of travel.  There are different vessel types using the canal and may sail through in groups, but not side by side.  Would locate the detectors immediately before or after a lock so that there can't be boats passing in opposite directions.

 

Has anyone done a similar project with count and direction?

 

What would be the best kit to use with LoRaWAN connectivity for end product?

 

Many thanks,

 

Paul

  • Sign in to reply
  • Cancel

Top Replies

  • BigG
    BigG over 4 years ago +7 suggested
    I've not come across anything similar myself. I do know there's a fair amount of research published on vision based road traffic vehicle identification and counting systems, which could be modified to…
  • dougw
    dougw over 4 years ago +6 suggested
    You could set up a bright LED or laser with a photodetector on either side and a retro reflector across the canal. Whichever detector loses signal first tells you which direction the boat is going. The…
  • beacon_dave
    beacon_dave over 4 years ago +5 suggested
    A pair of 'break beam' type sensors could potentially give you count and direction. Some IP CCTV cameras have the ability to set motion detection zones and trigger events upon detection. Could also perhaps…
  • BigG
    0 BigG over 4 years ago

    I've not come across anything similar myself. I do know there's a fair amount of research published on vision based road traffic vehicle identification and counting systems, which could be modified to suit. There's also a fair amount of tutorials out there that show you how to use OpenCV (Python) for real time vehicle detection and identification, for example. Similarly with TensorFlow.

     

    Cameras and image processing is quite power hungry so would need a decent power source etc. but no doubt a solution can be engineered to suit environment.

     

    As this is a PoC, you could just start with a Single Board Computer like a Raspberry Pi, for example and add a high quality camera - there's also a roadtest on this Raspberry Pi HQ Camera - Review . Alternatively you could try a low cost ESP32CAM, but I suspect this may struggle with this sort of application. Anyway, I'm sure other E14 members will offer advice.

    • Cancel
    • Vote Up +7 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • phlindop
    0 phlindop over 4 years ago in reply to BigG

    BigG - much appreciated.  Will look into those suggestions.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • dougw
    0 dougw over 4 years ago

    You could set up a bright LED or laser with a photodetector on either side and a retro reflector across the canal.

    Whichever detector loses signal first tells you which direction the boat is going.

    The signal probably should be modulated at a high frequency, so the detector signals can filter out sunlight.

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 4 years ago

    A pair of 'break beam' type sensors could potentially give you count and direction.

     

    Some IP CCTV cameras have the ability to set motion detection zones and trigger events upon detection. Could also perhaps be used to help collect sample data sets of images for training machine learning systems later on.

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • BigG
    0 BigG over 4 years ago in reply to phlindop

    Here's another very recent tutorial on how to get started with object recognition using Edge Impulse and TinyML on a Raspberry Pi.

     

    https://www.raspberrypi.org/blog/edge-impulse-and-tinyml-on-raspberry-pi/

     

    There is also a range of vision related projects using Beaglebone AI on the Element14 website to guide you too: Vision Thing

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 4 years ago

    There is quite an easy going introduction to using OpenCV with Python for object tracking on YouTube:

       Object Tracking with Opencv and Python - YouTube

     

    You perhaps have an advantage that canal boats tend to move a little slower. image

     

    It assumes though that you are allowed to set-up a camera securely in an appropriate location which can sometimes result in a lot of paperwork.

     

    Perhaps also consider this if using a R-Pi HQ Camera based project:

       Project14 | Photography: We're Giving Away Raspberry Pi HQ Camera Kits for Projects that Use Them!

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • BigG
    0 BigG over 4 years ago

    Although I don't have any personal experience using this product, I thought for completeness to suggest that you could also the Arduino Portenta H7 (https://store.arduino.cc/portenta-h7 ) and the Arduino Portenta Vision Shield for your application. I note that the vision shield also includes a LoRa module, which may be of use https://store.arduino.cc/portenta-vision-shield-lora.

     

    According to the vision shield description on the webpage, Arduino has teamed up with OpenMV to offer object recognition etc. There's also a tutorial available: https://www.arduino.cc/pro/tutorials/portenta-h7/por-openmv-bt

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 4 years ago

    This short paper on the IOP Science site may be of some interest. It's looking at image recognition of small boats for collision avoidance purposes using Python, TensorFlow and OpenCV.

     

    Use of deep learning algorithms for real-time detection of vessels in confined spaces using the Tensorflow framework - IOPscience

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • kmikemoo
    0 kmikemoo over 4 years ago in reply to beacon_dave

    Interesting abstract.  I wonder what they classify as a "small object"?  Boat?  Buoy?  Rock?  If 22% are boat on boat, what are the other 88%?  Boat vs. land?  Great concept.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • beacon_dave
    0 beacon_dave over 4 years ago in reply to beacon_dave

    Another one.

     

    Boat Detection - Image Processing with a Convolutional Neural Network

    https://nickgrattandatascience.wordpress.com/2017/09/03/image-processing-with-raspberry-pi-zero/

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube