Results 1 to 5 of 5

Thread: Box detector

  1. #1
    DouglasBell is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.0
    Join Date
    Aug 2011
    Posts
    34
    Reputation
    24

    Box detector

    Hi all

    Not sure if this is possible but looking for a little advice. I would like to use a webcam to count the number of boxes that pass in front of it, if a box hasn't passed for a certain period of time then i would like the program to flag this up on some sort of display. Is it possible to use the webcam in this way via Visual Studio 2005 using vb.net. I know it will involve some sort of motion detection, but just don't know the ins and outs of using external devices within vb.

    Cheers

    Dj

  2. #2
    Herman is offline VB.NET Forum Miyagee
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    448
    Reputation
    346
    It would be much easier to use a proper sensor and controller board hooked via USB. What you want to do is possible, but very complicated on the software side. A simple pulse or count every second or so is enough to tell you if things are moving, you don't need a full sized image.

  3. #3
    DouglasBell is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.0
    Join Date
    Aug 2011
    Posts
    34
    Reputation
    24
    Hi Herman

    Thanks for the reply I have looked at the usb sensor boards and have thought about using one, but I would have to get enclosures made to house the sensor board and I would also have to supply an extra 24v to the photoelectric sensors, it would be much cleaner if I could use the webcam.

    Cheers

    Dj

  4. #4
    Herman is offline VB.NET Forum Miyagee
    .NET Framework
    .NET 4.0
    Join Date
    Oct 2011
    Location
    Montreal, QC, CA
    Posts
    448
    Reputation
    346
    Trust me, it might be cleaner on paper, but not in the real world. By all means try it, you will understand why the webcam might not be the best approach soon enough.

  5. #5
    DouglasBell is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 3.0
    Join Date
    Aug 2011
    Posts
    34
    Reputation
    24
    Hi Herman

    I am still looking into the sensor approach as well, the webcam system idea came from a system that's actually inbuilt into one of my production machines, it basically counts components, scans for defects then outputs the results, so I thought of creating a much simpler system using a webcam. From what you have said though I get the impression it might just give me a sore head instead :-).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking