Image Acquisition from IP Cameras

Hi,

Is there a common solution to acquire image and video from IP cameras from different vendors How can I acquire video from 2 different cameras at the same time There are WIA, TWAIN and DirectShow technologies which are popular but what is the difference between DirectShow and WIA Detailed explanations and source codes would be appreciated :)




Answer this question

Image Acquisition from IP Cameras

  • Moorstream

    Sorry i never work with cameras, only want help you with work with several hardware devices at same time :P

    Regards.


  • shehz

    Multithreading is ok, but what I need is what you would use for the // Code for read data from a device and send

    Would you use Twain, WIA or DirectShow Which one has which advantages and disadvantages

    Thanks for the code friend.



  • mike11d11


    How can I acquire video from 2 different cameras at the same time


    About this question, i acquire data from 5 GSM modems at the same time, the way will be similar. I create a class for reading and pre-procesing data from the modem with a independent thread working in it, when i launch (create) the object, it send periodically the pre-processed data to a main form, the way is simple:

    class ReadFromHardwareDevice : IDisposable
    {
    private bool MustRun=false;
    public ReadFromHardwareDevice() // Constructor
    {
    // code to create and config the object.
    Thread NewThread = new Thread(new ThreadStart(this.Run));
    this.MustRun=true;
    NewThread.Start();
    }
    private void Run()
    {
    while(MustRun)
    {
    // Code for read data from a device and send
    // You can send the data with a event or witn a asynchronous call for example.
    Thread.Sleep(1000); // here config the frecuency of the read.
    }
    this.Dispose();
    }
    public void Stop()
    {
    MustRun=false;
    }
    [... Rest of functions, include implement of Dispose ...]
    }


    I hope that this be usefull for you.

    Regards.


  • Image Acquisition from IP Cameras