Coder Social home page Coder Social logo

young1024 / ipcamera-cpython-interface Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1996scarlet/ipcamera-cpython-interface

0.0 0.0 0.0 14.94 MB

兼容主流海康和雄迈IPC的适用于C++和python的帧数据获取接口

License: GNU General Public License v3.0

C++ 11.56% CMake 0.56% Python 0.09% C 87.79%

ipcamera-cpython-interface's Introduction

IPCamera-CPython-Interface-v4

这是什么东西(What is this)

  • 兼容主流海康和雄迈IPC的适用于C、C++和python2/3的帧数据获取接口
  • 简化海康和雄迈IPC连接、登录、注册回调、解码(FFMPEG)、取帧的步骤
  • 通过Ctypes支持python2和python3(编译时修改CMAKE的TARGET_PYTHON_VERSION

性能对比(Performance comparison)

一张图看懂取帧接口版本差异

原理简要说明(Brief description of the principle)

一张图看懂取帧接口处理流程

接口调用方式(C/C++/Python)

环境要求(the environment require)

尽管本repo提供基于以下环境的预编译so文件

  • Ubuntu 18.04.1 LTS(国内镜像)
  • Python 3.6.X(apt下载)
  • Opencv 4.0.X(源码编译)
  • FFmpeg 4.1.X(源码编译)

但还是建议额外安装以下依赖环境自行编译

目录结构说明(Files-Tree)

  • hk_interface - 存放海康接口源码、测试demo、SDK
  • xm_interface - 存放雄迈接口源码、测试demo、SDK
  • 每个关键子目录下都附带README文件

注意事项(Cautious)

  • 使用内存管道方法配合nginx_rtmp_module推流延迟较高,需要低延迟推流可以考虑使用基于类MJPEG协议的推流框架
  • 编译安装ffmpeg前需要设置./configure --enbale-shared来防止opencv编译过程无法引用动态库导致的video.so相关错误
  • 编译安装opencv时若出现xfeatures2d相关错误,需要重新下载curl并按照如下步骤编译安装
    1. cd /root/Downloads/curl
    2. ./configure --with-ssl
    3. make
    4. sudo make install
  • 在Ubuntu 18.04上安装openCV可以参考这个链接

ipcamera-cpython-interface's People

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.