Comments (3)
Hello!
A good guide to capturing video using the aforge.net library:
https://www.youtube.com/watch?v=_1GymNPQ248
Just need to repeat everything after this guy.
Aforge is a good library, you can also use emgu.cv.
from webcam_object_tracking.
thanks u !
ex : i will capture image form picturebox1 to picturebox4(show image captured) ?
How to start template matching at picturebox 4 ?
` if (minValFirst <= minVal1 & maxValFirst >= maxVal1 & maxValFirst0 >= maxValValid)
{
CvInvoke.Rectangle(source, rect, new MCvScalar(0, 255, 0), 3);
CvInvoke.DrawMarker(source, new Point(centerX, centerY), new MCvScalar(0, 255, 0), MarkerTypes.Diamond);
pictureBox4.Image = source.AsBitmap();
myQueueCountOK.Enqueue(count);
myQueueXOK.Enqueue(centerX);
myQueueYOK.Enqueue(centerY);
if (myQueueCountOK.Count > numberCount)
{
myQueueCountOK.Dequeue();
myQueueXOK.Dequeue();
myQueueYOK.Dequeue();
arrayCountOK = myQueueCountOK.ToArray();
arrayXOK = myQueueXOK.ToArray();
arrayYOK = myQueueYOK.ToArray();
BeginInvoke(new Action(() => { result.Text = "OK"; }));
}
else
{
arrayCountOK = myQueueCountOK.ToArray();
arrayXOK = myQueueXOK.ToArray();
arrayYOK = myQueueYOK.ToArray();
}
for (int i = 0; i < arrayCountOK.Length; i++)
{
CvInvoke.DrawMarker(source, new Point(arrayXOK[i], arrayYOK[i]), new MCvScalar(0, 255, 0), MarkerTypes.Cross, 4, 1);
}
}`
from webcam_object_tracking.
convert Image type to Image<Bgr, Byte>
for example:
var template = new Bitmap(pictureBox4.Image).ToImage<Bgr, byte>();
from webcam_object_tracking.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcam_object_tracking.