In need of help on VB
-
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?
-
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?
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
-
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?
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 -
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 KreskowiakThank 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?
-
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?
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 -
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?
-
Zyprost wrote:
Actually this is a class assignment,
What year are you in? And what languages did you cover yet? :)
I are Troll :suss:
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.
-
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.
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:
-
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 KreskowiakEven 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
-
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
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 -
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 KreskowiakNice riposte, although one might consider something more recent such as Fast Pointerless Image Processing in .NET[^]
Dwayne J. Baldwin
-
Nice riposte, although one might consider something more recent such as Fast Pointerless Image Processing in .NET[^]
Dwayne J. Baldwin
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 -
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:
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!!
-
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?
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
-
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?