C # Video Monitoring series (1): Preparation

Source: Internet
Author: User

 

Preface

Occasionally, there are opportunities to access video surveillance. At the beginning, there were no flies, books, and several times of shopping in Zhongguancun, asking friends for wiring and testing cameras, I finally ran the example in the haikang SDK! Next, go to the source code website and use Google to find the code. The source code is not VC ++ or Delphi (I don't know about Delphi, but VC ++ can understand little bit -_-#), finally, I found a client article developed by C #, and an error occurred while running! I ran to the haikang official website and asked no one to get angry !! Calm down and look at the built-in VC ++ client code. We can see that it is also a standard interface called, but it is only called using VC ++, therefore, I want to directly translate the code of the self-built VC ++ client into the corresponding C # WinForm program, and then find an article on the C # encapsulated hikvision DVR client SDK, when I was a child, my results proved that I was right !! The video data collected by the camera is displayed in my WinForm program !! Next, I will share with you and discuss my Video Monitoring System Development Series ......

 

Body

I. Purchase Order

1. hikvision Audio and Video Acquisition Card

H.264 video and audio compression card, four channels, directly go to his company to get 264, you can call his website customer service contact.

Figure 1 Figure 2

2. gun-mounted infrared cameras

Sony head, with power 200. Cover the camera with your hands and see from the seams if you can see the red light.

Figure 3

3. Picker

The price is 18, 38, 50, without power supply, without conversion head, the line is bare, so you have to buy another power supply, the connector asks him to help or come back and directly weld it to the audio port.

Figure 4

4. Wire and adapter

The red line is connected to the video, the white line is connected to the audio, This is a 4-way wiring, each connector is labeled with a few channels. After the acquisition card is inserted on the motherboard, it is connected to the camera and picker.

Figure 5

Ii. Download

1. SDK

Http://www.hikvision.com/uploadfile/4000HC_SDK_4.3.rar

Iii. Installation

1. Hardware

1.1 shut down and insert the video capture card to the PCI slot

1.2 wiring, connect the power cord, connect the camera and picker to the line connected to the acquisition card (figure 4), and distinguish between the audio and video lines and the number of channels.

2. Software

You can directly run DS-4000HC, HCS, HC +, HF, HS, MD Driver and SDK and Demo Install 4.3 \ install.exe, you can also Install separately as follows:

2.1 install driver

DS-4000HC, HCS, HC +, HF, HS, MD Driver and SDK and Demo Install 4.3 \ Driver Install.exe

2.2 install SDK and Demo

DS-4000HC, HCS, HC +, HF, HS, MD Driver and SDK and Demo Install 4.3 \ SDK and Demo \ setup.exe

Iv. Run

1. Run the Server: Bin \ Net Server Demo.exe. If everything works, you can now see the video. Congratulations !! You have successfully achieved the purpose of this article !! If not, check the line wiring

2. Run the Client: Bin \ Net Client Demo (Soft decdoe0000.exe, enter the IP address text box below and enter the IP address of the Local Machine. Then click the start button on the far left to view the screen.

 

Notes

The picture may fail due to the following reasons:

1. The connection is too long and the connection is not in good contact.

2. Camera power supply failure.

3. the ports are occupied. The default ports opened on the server and client are 5050 and 6050.

4. according to my experience (-I didn't see this in the document), the machine needs an independent video card. Otherwise, even if the server side can access the image, the client access is unrestricted, you can still see the image, because the data is still collected.

 

End

The process is hard. Please do everything you can. When you are helpless and worried, please calm down and think about it. The harvest is not far from you :)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.