How to get an IP camera stream into C#?

后端 未结 5 703
心在旅途
心在旅途 2021-01-31 23:07

I\'ve used AForge library to make this little program, that shows live feed from a webcam into a PictureBox.

private FilterInfoCollection VideoCaptureDevices;
pr         


        
5条回答
  •  离开以前
    2021-01-31 23:38

    Same problem was with me like you, and that was my final year project to develop or customize the Ip camera solutions using c#. But i wasted my time a lot on by doing browsing to get any piece of code that written in C# that can easily access the ip camera stream, and i found very soon third party Ozeeki sdk. But this one is the trial and expire near a week and wont work also.Or may be Ozeeki wants just a Backlinks for their site. First of all you have to limit yourself to select one of the camera. In my case i have a HIkvision Network Camera. Just download the Device Network SDK for Hikvision Camera from here: http://www.hikvision.com/en/us/download_more.asp?id=1482

    Extract it and you may found in the SDK folder, 4 sub folders. Inside the "doc" folder, you will find "Device Network SDK Programming Manual" Open it and expand the "Programming Guideline" tree. Click on Main Procedure API Reference or Preview Module Procedure. Here you will find all the road Map what steps you have to take to call the functions to get live stream from the camera. The declaration of all the functions are inside the "Basic Interface Definition" tree expand it and read them all one by one. The Game is not over here but just got a start; The SDk with all of the functions are written in C/C++ Unmanaged code base.And cant be added in a Manged C# project solution References. So you have to make a wrapper for all of them that are use in getting a stream from the camera, and call them from c#.Just go through the documentation manual what functions they are. follow me on twitter : https://twitter.com/CodingVampire Wish you Best of Luck

提交回复
热议问题