GithubHelp home page GithubHelp logo

Help me ! about webcam_object_tracking HOT 3 OPEN

minhthien0711 avatar minhthien0711 commented on July 25, 2024
Help me !

from webcam_object_tracking.

Comments (3)

Aleksey3ltt avatar Aleksey3ltt commented on July 25, 2024

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.

minhthien0711 avatar minhthien0711 commented on July 25, 2024

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.

Aleksey3ltt avatar Aleksey3ltt commented on July 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.