AForge.NET

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

Spoild Image From Ip Camera

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

Spoild Image From Ip Camera

Postby Biinfo878 » Mon Jul 18, 2016 5:36 am

Please help me
Problem:I want to Display VideoSource's Frames Into PictureBox From a Hikvision ipCamera 2CD-2032.Image Is Bad And Spoiled.

Code: Select all
Private Sub VideoSource_NewFrame(ByVal sender As Object, ByVal eventArgs As AForge.Video.NewFrameEventArgs) Handles VideoSourceCamera.NewFrame
            PictureBox.Image = eventArgs.Frame.Clone
End Sub
Attachments
Untitled.png
Untitled.png (112.87 KiB) Viewed 14817 times
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am

Re: Spoild Image From Ip Camera

Postby andrew.kirillov » Mon Jul 18, 2016 7:34 am

What is the resolution of your images? Both JPEGStream and MJPEGStream video sources have private buffer size constant, which 1M. If your images are very big, potentially this buffer size may get too small. So you may need changing it. This will require a change in the framework code and rebuilding it.
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: Spoild Image From Ip Camera

Postby Biinfo878 » Mon Jul 18, 2016 3:07 pm

Connectionstring=rtsp://admin:3800000aB@172.20.30.41:554/streaming/channels/1
Resolution=2048*1536
My Project is License Plate Recognition and Need High Resolution So i Can Not Set resolution to lower than 2048*1536
I use aforge.video.ffmpeg.dll
My ip camera don't support jpeg or MJPEG Stream.Please Help me?
I try for this problem for one year and can not solve it please help me.
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am

Re: Spoild Image From Ip Camera

Postby Biinfo878 » Mon Jul 18, 2016 3:10 pm

"This will require a change in the framework code and rebuilding it"
I can not understand above statement so what is "changing in the framework" ?
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am

Re: Spoild Image From Ip Camera

Postby Biinfo878 » Tue Jul 19, 2016 9:32 am

I need to solve my problem Please Help me
with best regards :cry:
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am

Re: Spoild Image From Ip Camera

Postby andrew.kirillov » Tue Jul 19, 2016 9:35 am

Biinfo878 wrote:so what is "changing in the framework" ?

Changing source code of the AForge.NET Framework.

Not sure what you do. AForge.NET Framework did not provide RTSP support. So not clear how you access your camera using the framework.
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: Spoild Image From Ip Camera

Postby Biinfo878 » Tue Jul 19, 2016 2:17 pm

This is my Code :
Private WithEvents VideoSourceCamera As AForge.Video.IVideoSource
myCnn="rtsp://admin:3800000aB@172.20.30.41:554/streaming/channels/1"
VideoSourceCamera = New AForge.Video.FFMPEG.VideoFileSource(myCnn)
VideoSourceCamera.Start()

Private Sub VideoSourceCamera_NewFrame(ByVal sender As Object, ByVal eventArgs as AForge.Video.NewFrameEventArgs) Handles VideoSourceCamera.NewFrame
Try
PicCamera.Image = eventArgs.Frame.Clone
Catch ex As Exception
ViewReport("VideoSourceCamera_NewFrame:" + ex.Message)
End Try
end sub :roll:
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am

Re: Spoild Image From Ip Camera

Postby Biinfo878 » Wed Jul 20, 2016 3:33 pm

With Best Regards
Please Help me to solve my project
Biinfo878
 
Posts: 6
Joined: Sun Jul 17, 2016 9:50 am




Return to Image Processing and Computer Vision