Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. In need of help on VB

In need of help on VB

Scheduled Pinned Locked Moved Visual Basic
tutorialhelpquestion
15 Posts 7 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    Zyprost
    wrote on last edited by
    #1

    I am kinda new with Visual Basic, and I am trying to make a system where I browse a video file, display it on a form, and process the video frame by frame to detect movements. Ive read all over the place and most say use Windows SDK, ICImage something and etc..But I still cant understand any of them. Anyone mind sharing knowledge on how to do this? If anyone wouldnt mind giving me a step by step tutorial?

    D D P H 4 Replies Last reply
    0
    • Z Zyprost

      I am kinda new with Visual Basic, and I am trying to make a system where I browse a video file, display it on a form, and process the video frame by frame to detect movements. Ive read all over the place and most say use Windows SDK, ICImage something and etc..But I still cant understand any of them. Anyone mind sharing knowledge on how to do this? If anyone wouldnt mind giving me a step by step tutorial?

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      Search the articles here on codeproject. There are quite a few relating to motion detection. That should get you started. If your new to it all, then video handling and motion detection is maybe a bit much to take on to begin with. just a thought.........

      Dave Find Me On: Web|Facebook|Twitter|LinkedIn


      Latest Article:Data Historians! You Bought It, Use It! Real World Example Latest Tip/Trick:Google Charting API and Formula Imaging


      1 Reply Last reply
      0
      • Z Zyprost

        I am kinda new with Visual Basic, and I am trying to make a system where I browse a video file, display it on a form, and process the video frame by frame to detect movements. Ive read all over the place and most say use Windows SDK, ICImage something and etc..But I still cant understand any of them. Anyone mind sharing knowledge on how to do this? If anyone wouldnt mind giving me a step by step tutorial?

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You can try this, but VB.NET is no the first choice to do any kind of image processing. Why? Because VB.NET doesn't support pointers. Getting at image data fast enough to do this requires the use of pointers. You won't find any image processing or motion detection articles in VB.NET because of this. This is better done in C# or C/C++. Also, if your a beginner, this is not a good project to take on because of the complexity involved.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak

        Z D 2 Replies Last reply
        0
        • D Dave Kreskowiak

          You can try this, but VB.NET is no the first choice to do any kind of image processing. Why? Because VB.NET doesn't support pointers. Getting at image data fast enough to do this requires the use of pointers. You won't find any image processing or motion detection articles in VB.NET because of this. This is better done in C# or C/C++. Also, if your a beginner, this is not a good project to take on because of the complexity involved.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          Z Offline
          Z Offline
          Zyprost
          wrote on last edited by
          #4

          Thank you for the pointers. Actually this is a class assignment, one which I really hope can do well, or at least have some functions in it. I do have some basics in C++ but its all blurry at times. At least anyone can show me how to use the library to access video files on a form?

          D L 2 Replies Last reply
          0
          • Z Zyprost

            Thank you for the pointers. Actually this is a class assignment, one which I really hope can do well, or at least have some functions in it. I do have some basics in C++ but its all blurry at times. At least anyone can show me how to use the library to access video files on a form?

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            THIS is a class assignment? Very strange or a VB class. I also have no idea what library you're talking about. The name you posted doesn't come up, but others of variants of the name you posted do.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak

            1 Reply Last reply
            0
            • Z Zyprost

              Thank you for the pointers. Actually this is a class assignment, one which I really hope can do well, or at least have some functions in it. I do have some basics in C++ but its all blurry at times. At least anyone can show me how to use the library to access video files on a form?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Zyprost wrote:

              Actually this is a class assignment,

              What year are you in? And what languages did you cover yet? :)

              I are Troll :suss:

              Z 1 Reply Last reply
              0
              • L Lost User

                Zyprost wrote:

                Actually this is a class assignment,

                What year are you in? And what languages did you cover yet? :)

                I are Troll :suss:

                Z Offline
                Z Offline
                Zyprost
                wrote on last edited by
                #7

                Yes it is a class assignment. We were to find an interesting topic,and make a proposal example,so i choose on movement detection, but I didnt knew that we actually have to make a system afterward lol. We covered c++ last year, but only the basic functions, this year is java and some php. Some classmate said VB is like java so I wanted to try it. And on the library I said, think it was for c++, or was it java.idk, Many links I found said in order to display a video file on a form, I have to use them.

                L 1 Reply Last reply
                0
                • Z Zyprost

                  Yes it is a class assignment. We were to find an interesting topic,and make a proposal example,so i choose on movement detection, but I didnt knew that we actually have to make a system afterward lol. We covered c++ last year, but only the basic functions, this year is java and some php. Some classmate said VB is like java so I wanted to try it. And on the library I said, think it was for c++, or was it java.idk, Many links I found said in order to display a video file on a form, I have to use them.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Zyprost wrote:

                  We were to find an interesting topic,and make a proposal example,so i choose on movement detection,

                  Definitely an interesting topic, you were right on that! It's also a complex topic, and I'm wondering why the teacher didn't mention that when he was reviewing the proposals.

                  Zyprost wrote:

                  We covered c++ last year, but only the basic functions, this year is java and some php.

                  I'd love to see the curriculum of the school. Is there a website that lists the courses?

                  Zyprost wrote:

                  And on the library I said, think it was for c++

                  This implies that you're allowed to use libraries written by others? If that's the case, start with this[^] CodeProject-article.

                  I are Troll :suss:

                  Z 1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    You can try this, but VB.NET is no the first choice to do any kind of image processing. Why? Because VB.NET doesn't support pointers. Getting at image data fast enough to do this requires the use of pointers. You won't find any image processing or motion detection articles in VB.NET because of this. This is better done in C# or C/C++. Also, if your a beginner, this is not a good project to take on because of the complexity involved.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    D Offline
                    D Offline
                    Dwayne J Baldwin
                    wrote on last edited by
                    #9

                    Even in c#, pointers are unsafe and unmanaged and must be declared as such. You need to jump through hoops to point to managed objects. You can use complex and often misused compilation tricks in either c# or vb.net to create a QuasiManagedPointer, but it not recommended, period. C++.net is the only way to go should you ever happen to really need to waste time in that direction. Complexity is in the eye of the developer, especially with newbies who may look at this from a totally different perspective and use top pixel counts and thresolds to determine an image change (otherwise known as motion detection). .net managed code uses the CLR in any language. Stop spreading this nonsense. :)

                    Dwayne J. Baldwin

                    D 1 Reply Last reply
                    0
                    • D Dwayne J Baldwin

                      Even in c#, pointers are unsafe and unmanaged and must be declared as such. You need to jump through hoops to point to managed objects. You can use complex and often misused compilation tricks in either c# or vb.net to create a QuasiManagedPointer, but it not recommended, period. C++.net is the only way to go should you ever happen to really need to waste time in that direction. Complexity is in the eye of the developer, especially with newbies who may look at this from a totally different perspective and use top pixel counts and thresolds to determine an image change (otherwise known as motion detection). .net managed code uses the CLR in any language. Stop spreading this nonsense. :)

                      Dwayne J. Baldwin

                      D Offline
                      D Offline
                      Dave Kreskowiak
                      wrote on last edited by
                      #10

                      Dwayne J. Baldwin wrote:

                      Even in c#, pointers are unsafe and unmanaged and must be declared as such.

                      Hence the "unsafe" keyword...

                      Dwayne J. Baldwin wrote:

                      You need to jump through hoops to point to managed objects. You can use complex and often misused compilation tricks in either c# or vb.net to create a QuasiManagedPointer

                      Not really, when you know what you're doing. Various cases in point...[^]

                      Dwayne J. Baldwin wrote:

                      C++.net is the only way to go should you ever happen to really need to go in that direction.

                      I'm not about to talk anyone through that little maze of confusion. There are far more articles that are "newbie understandable" about C# pointers and image processing than there are on C++/CLI and VB.NET integration.

                      Dwayne J. Baldwin wrote:

                      Stop spreading this nonsense

                      When everyone else does, and/or VB.NET gets better at faster image processing.

                      A guide to posting questions on CodeProject[^]
                      Dave Kreskowiak

                      D 1 Reply Last reply
                      0
                      • D Dave Kreskowiak

                        Dwayne J. Baldwin wrote:

                        Even in c#, pointers are unsafe and unmanaged and must be declared as such.

                        Hence the "unsafe" keyword...

                        Dwayne J. Baldwin wrote:

                        You need to jump through hoops to point to managed objects. You can use complex and often misused compilation tricks in either c# or vb.net to create a QuasiManagedPointer

                        Not really, when you know what you're doing. Various cases in point...[^]

                        Dwayne J. Baldwin wrote:

                        C++.net is the only way to go should you ever happen to really need to go in that direction.

                        I'm not about to talk anyone through that little maze of confusion. There are far more articles that are "newbie understandable" about C# pointers and image processing than there are on C++/CLI and VB.NET integration.

                        Dwayne J. Baldwin wrote:

                        Stop spreading this nonsense

                        When everyone else does, and/or VB.NET gets better at faster image processing.

                        A guide to posting questions on CodeProject[^]
                        Dave Kreskowiak

                        D Offline
                        D Offline
                        Dwayne J Baldwin
                        wrote on last edited by
                        #11

                        Nice riposte, although one might consider something more recent such as Fast Pointerless Image Processing in .NET[^]

                        Dwayne J. Baldwin

                        D 1 Reply Last reply
                        0
                        • D Dwayne J Baldwin

                          Nice riposte, although one might consider something more recent such as Fast Pointerless Image Processing in .NET[^]

                          Dwayne J. Baldwin

                          D Offline
                          D Offline
                          Dave Kreskowiak
                          wrote on last edited by
                          #12

                          Good find. Though it's not entirely pointerless as the author claims. It's still requiring unsafe code and the pinning pretty much just tells the GC to keep its mitts off the object and returns, of all things, a managed pointer to it. Different semantics doing the same thing...

                          A guide to posting questions on CodeProject[^]
                          Dave Kreskowiak

                          1 Reply Last reply
                          0
                          • L Lost User

                            Zyprost wrote:

                            We were to find an interesting topic,and make a proposal example,so i choose on movement detection,

                            Definitely an interesting topic, you were right on that! It's also a complex topic, and I'm wondering why the teacher didn't mention that when he was reviewing the proposals.

                            Zyprost wrote:

                            We covered c++ last year, but only the basic functions, this year is java and some php.

                            I'd love to see the curriculum of the school. Is there a website that lists the courses?

                            Zyprost wrote:

                            And on the library I said, think it was for c++

                            This implies that you're allowed to use libraries written by others? If that's the case, start with this[^] CodeProject-article.

                            I are Troll :suss:

                            Z Offline
                            Z Offline
                            Zyprost
                            wrote on last edited by
                            #13

                            Eddy Vluggen wrote:

                            Definitely an interesting topic, you were right on that! It's also a complex topic, and I'm wondering why the teacher didn't mention that when he was reviewing the proposals.

                            Ha ha maybe he didn't know that I was weak with programming. My scores were just average in class. So I need a big boost to get back what I lost. And thanks for the link. Ive read them before and find it was interesting. I guess I will not use VB and use C++ instead. I will make sure to give credit to anyone involved.

                            Eddy Vluggen wrote:

                            I'd love to see the curriculum of the school. Is there a website that lists the courses?

                            I don't even know if we have one at all. All I can focus on are my subjects, and finishing my assignments. I will seek more help in the right section from now on I guess, but hopefully I wont need them. Thanks for helping. Rock on!!

                            1 Reply Last reply
                            0
                            • Z Zyprost

                              I am kinda new with Visual Basic, and I am trying to make a system where I browse a video file, display it on a form, and process the video frame by frame to detect movements. Ive read all over the place and most say use Windows SDK, ICImage something and etc..But I still cant understand any of them. Anyone mind sharing knowledge on how to do this? If anyone wouldnt mind giving me a step by step tutorial?

                              P Offline
                              P Offline
                              popkutty
                              wrote on last edited by
                              #14

                              To get fram by frame, you can go for VLC media player plug in.. There you could have an option to snap video file which is playin'on it.. By using Timer set the interval and use snap make the video in to Image and then process whatever you want.. Still you had doubt, mail me at whitewinter_alone@yahoo.co.in

                              1 Reply Last reply
                              0
                              • Z Zyprost

                                I am kinda new with Visual Basic, and I am trying to make a system where I browse a video file, display it on a form, and process the video frame by frame to detect movements. Ive read all over the place and most say use Windows SDK, ICImage something and etc..But I still cant understand any of them. Anyone mind sharing knowledge on how to do this? If anyone wouldnt mind giving me a step by step tutorial?

                                H Offline
                                H Offline
                                hugoguan
                                wrote on last edited by
                                #15

                                you just need to use the openfilediag component and set a condition to test the file if it is the file extension you need or not. and display them is ok.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups