AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

IP CAMERA AND other questions

The forum is to discuss topics related to different areas of image processing and computer vision.

IP CAMERA AND other questions

Postby francescomc » Tue Feb 17, 2009 2:49 pm

Hi Andrew,
first, sorry for my eng.
I'm a community member of codeproject and i have used and read your articles on imageprocessing and Aforge.
Very very nice.Good work.

My first question is:
I have used for my application on videosurveillance opencvdotnet but with this library is very difficulty capture image from ip camera and is very hard capture from 2 video source.
-With AForge wath is method for capture image from ip camera???i have linksys ip camera and i have access on this from ip 192.169.1.xx
Can you post 2/3 lines of example code?

Second:
-i can capture from 2 video source in same time?example usb camera and ip camera?.

Andrew very tnx for your help, and your work.
Cheers,Franz.
francescomc
 
Posts: 3
Joined: Tue Feb 17, 2009 2:39 pm

Re: IP CAMERA AND other questions

Postby andrew.kirillov » Tue Feb 17, 2009 3:36 pm

Hello,

francescomc wrote:With AForge wath is method for capture image from ip camera???

Yes, AForge.NET framework may be used to access most IP cameras, which provide a link for JPEG snapshot or MJPEG stream. However MPEG is not supported by the framework. In the case of MJPEG stream, tou may use MJPEGStream class (sample code in documentation).

francescomc wrote:i have linksys ip camera and i have access on this from ip 192.169.1.xx

It looks like Liksys cameras support MJPEG streams, which is available by the next URL:
Code: Select all
http://<ipaddress>:<port>/img/mjpeg.cgi

So all you need is to use the above mentioned MJPEGStream class and provide URL of your camera's MJPEG stream.

I would recommend trying Motion Detector sample application from AFroge.NET framework's collection, which may be used to test your MJPEG URL.

francescomc wrote:-i can capture from 2 video source in same time?example usb camera and ip camera?.


Yes, you may capture as many video stream as you want. Just create instance of video source provider class for each video feed you want. For MJPEG streams provided by IP cameras you may use MJPEGStream class. For USB web cameras you may use VideoCaptureDevice class.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: IP CAMERA AND other questions

Postby francescomc » Tue Feb 17, 2009 3:54 pm

very tnx.
francescomc
 
Posts: 3
Joined: Tue Feb 17, 2009 2:39 pm

Re: IP CAMERA AND other questions

Postby francescomc » Tue Feb 17, 2009 7:25 pm

Sorry, very sorry..........
i Have tried with motion detection sample

i have tried with my ip address http://ip:port/img/mjpeg.cgi
but returned output on window is----> "invalid format type "
sigh...

finally i have tried with Aforge.video dll library in a new sample project

AForge.Video.DirectShow.VideoCaptureDevice fcg = new AForge.Video.DirectShow.VideoCaptureDevice();
MJPEGStream mpeg = new MJPEGStream();
mpeg.Login = "username";
mpeg.Password = "pass";
mpeg.Source = "http://ip:port/img/mjpeg.cgi";
mpeg.Start();

but....result is null

sigh....can you help me?
francescomc
 
Posts: 3
Joined: Tue Feb 17, 2009 2:39 pm

Re: IP CAMERA AND other questions

Postby andrew.kirillov » Wed Feb 18, 2009 8:01 am

Hello,

It is hard to say for sure what is wrong. It may happen that Linksys cameras have a bit their own MJPEG format. I was using MJPEGStream class from AForge.NET framework connecting to many different IP cameras - worked fine.

By the way, did you try adding useUnsafeHeaderParsing option to your config file? (see documentation of MJPEGStream class)

If you could fine an open Linksys camera on the Internet, I could try debugging.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

web camera as frame grabber $ storing as bitmap on hard disk

Postby Imad Azmat » Fri Mar 06, 2009 2:04 am

Hi,
My name is Imad and am a student in G.I.K. Institute, Pakistan. I am doing a Final Year Project that involves frame grabbing. i have extracted some code from the sample/vision/motion detection that is provided in the library.
once i have the new frame from the following code

lastFrame = (Bitmap) e.Frame.Clone( );

==>i need to find out how to save this frame on hard disk.
==>futhermore, i need to use some kind of a trigger that would do this task automatically for me.
in my case the trigger would be from an external device.i havent decided weather i will use a usb port or a serial port to provide this trigger.

i will be greatfull.
Last edited by Imad Azmat on Fri Mar 06, 2009 7:33 pm, edited 1 time in total.
Imad Azmat
 
Posts: 1
Joined: Thu Mar 05, 2009 3:22 am

Re: IP CAMERA AND other questions

Postby andrew.kirillov » Fri Mar 06, 2009 7:11 am

Hello,

Imad Azmat wrote:==>i need to find out how to save this frame on hard disk.

If you need to save it, then save ... Did you try using MSDN and .NET documentation? :shock:
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: IP CAMERA AND other questions

Postby permana » Mon Apr 20, 2009 6:19 pm

How about IP Camera with only MPEG support?
Thanks..
User avatar
permana
 
Posts: 2
Joined: Mon Apr 06, 2009 5:35 pm

Re: IP CAMERA AND other questions

Postby andrew.kirillov » Wed Apr 22, 2009 10:36 am

MPEG cameras are not supported by the AForge.NET Framework. Check SDK provided by camera's manufacturer.
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Re: IP CAMERA AND other questions

Postby fins » Fri Oct 14, 2016 4:07 pm

Hi all,

has anyone tried with LevelOne Ip Camera? It said that it supports MJPEG but it is not working with me?

Thanks.
fins
 
Posts: 1
Joined: Fri Oct 14, 2016 4:05 pm




Return to Image Processing and Computer Vision