Posts Tagged application

Webcam Surveillance System

 * Bạn có thể tìm thấy phiên bản giới thiệu tiếng Việt ở bên dưới.

Introduction:

This is a simple video surveillance system that makes use of webcams as recording devices. It provides basic functionalities such as motion detection and alarm, and is designed to be extensible: developers can develop their own sensors and plug into the program. The ability to create source filters creates some interesting effects: the program can be transformed completely into a remote desktop viewer!

This program is written completely in C# and composes of three components:

  • Recorder: record video and stream to server
  • Server: dispatch video streams to remote clients
  • Client: connect to server to view video

Note:

  • Recorder uses DirectShow source filter to communicate with webcams. You can create your own source filter for different purposes. Many free source filters are available on the Internet. Consult Directshow documentation for more details on how to create a source filter.
  • You can also create custom sensors to match your need. To create custom sensors, implement interface ISensor. All sensors are stored in Sensors folder and loaded dynamically at runtime. Just copy your custom sensor to that folder and it will appear on the sensor list when the program runs.

Requirements:

- To run the program, you will need:

  • .NET Framework 4

- To build the projects, you will need these things in addition:

This program was tested on Windows XP SP3 and Windows 7 32 bit. It may run on other platform as well.

Known issues:

Due to the complexity of multi-threaded programming and relatively short development time, this program may still contain a lot of bugs. Client may disconnect mysteriously after about 10 minutes. I haven’t found out the reason and currently don’t have the time to fix it. Hope it would be much better on the next release (if any)!!!

Download:

http://wcssystem.codeplex.com/
Project licensed under Apache license 2.0

————————-*****————————-

Giới thiệu:

Đây là hệ thống quan sát từ xa đơn giản tận dụng các webcam làm thiết bị thu hình. Hệ thống cung cấp các chức năng cơ bản như phát hiện chuyển động và báo động, và được thiết kế với khả năng mở rộng. Lập trình viên có thể thiết kế các cảm biến riêng và thêm vào chương trình. Bên cạnh đó, khả năng tạo các source filter đem lại những hiệu ứng thú vị: chương trình có thể chuyển đổi nhanh chóng thành một chương trình xem màn hình desktop từ xa.

Chương trình viết hoàn toàn bằng C# và gồm ba thành phần chính:

  • Recorder: thu nhận hình ảnh và truyền tới Server
  • Server: tiếp nhận và điều phối hình ảnh đến các client từ xa
  • Client: kết nối tới server để xem hình ảnh

Lưu ý:

  • Recorder sử dụng các source filter của DirectShow để giao tiếp với webcam. Bạn có thể tạo source filter của riêng mình cho các mục đích khác nhau. Bạn cũng có thể tìm thấy nhiều source filter miễn phí trên Internet. Xem tài liệu DirectShow để biết chi tiết về cách tạo source filter.
  • Bạn cũng có thể tạo các sensor riêng cho phù hợp với nhu cầu. Để tạo custom sensor, hiện thực interface ISensor trong chương trình. Tất cả các sensor được chứa trong thư mục Sensors của Recorder và được load động vào thời gian thực thi. Chỉ cần copy sensor của bạn vào thư mục trên và nó sẽ xuất hiện khi chương trình chạy.

Yêu cầu:

- Để chạy chương trình cần có:

  • .NET Framework 4

- Để build project, bạn cần thêm những công cụ và thư viện sau:

 Chương trình đã được chạy thử trên Windows XP SP3 và Windows 7 32-bit.

Các vấn đề:

Do những phức tạp của lập trình đa luồng và thời gian phát triển ngắn, chương trình có thể còn nhiều lỗi. Một vấn đề đã được biết là client có thể bị ngắt kết nối sau khoảng 10 phút. Hiện tôi chưa có thời gian để khắc phục các vấn đề này, hi vọng rằng chương trình sẽ tốt hơn trong các bản phát hành sau (nếu có)!

Tải về:

http://wcssystem.codeplex.com/
Chương trình đăng kí bản quyền theo Apache License 2.0

,

1 phản hồi

Follow

Get every new post delivered to your Inbox.