Coder Social home page Coder Social logo

cameraviewer's Introduction

CameraViewer

视频监控系统-监控端

简介

该系统分为3个部分,监控端被监控端中转服务器。监控端和被监控端基于Android平台,中转服务器要部署到VPS上。功能有查看单一监控、查看多屏监控、监控录像、录像回放、图像质量调整、过滤相似帧以及扫描二维码一键添加设备等功能。

原理

1.通信过程

监控端和被监控端使用TCP传输协议,分为两种情况。当被监控端可以向外网暴露端口,则监控端和被监控端直接连接。当被监控端无法暴露端口,则监控端和被监控端都连接到一个中转服务器上,监控端发出的指令先发给服务器,服务器再中转给被监控端(通过设备ID来区分发给谁)。被监控端给监控端回送消息也需要中转服务器。

2.数据传输

直接传输预览帧,在传输前会将原始YUV压缩、降低分辨率封装到Bitmap类后转换成字节数组后加入到队列,然后开启发送线程直接从队列取出图像封装到一个Data类中。Data类实现了序列化接口,共有3个成员变量:byte[] data,String password,tag。分别代表图像数据、密码、请求类型。

截图



cameraviewer's People

Contributors

pwrliang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.