Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! Please i am working on a motion detector application with aforge framework. But my major problem is this: videosource.NewFrame += New NewFrameEventHandler(video_NewFrame)

It gives me a serious error that i have to use raise event for it

Please somebody should help me out.

Thanks.
Posted
Comments
Kornfeld Eliyahu Peter 7-Dec-14 5:13am    
You should check documentation at http://www.aforgenet.com/framework/
But in any case posting your relevant code may help someone to answer your question...
Nelek 7-Dec-14 6:45am    
Don't think we can read minds or do astral projections to see your monitor. If you need help, the least you could do is to add some relevant code to your question or to explain your problem in such a way, that the users of CP can understand it. Otherwise, nobody will be able to help you.

Please use the "improve question" and add relevant information or a piece of code envolved. There are thousands of ways to screw things up, how are we supposed to know which one did you choose?

Worth to read:
What have you tried?[^]
How to ask a question?[^]

1 solution

below is my code on the form_load event

Dim videoDevices = New FilterInfoCollection(FilterCategory.VideoInputDevice)
' create video source

videosource = New VideoCaptureDevice(videoDevices(0).MonikerString)
VideoSourcePlayer1.BackColor = Color.White
' set NewFrame event handler

videoSource.NewFrame += new NewFrameEventHandler(video_NewFrame)
' start the video source
VideoSourcePlayer1.VideoSource = videosource
videosource.Start()
VideoSourcePlayer1.BorderColor = Color.Aquamarine
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900