登录
首页 » Java » 海康摄相机接口实用实例

海康摄相机接口实用实例

于 2019-09-28 发布
0 193
下载积分: 1 下载次数: 0

代码说明:

    android平台下海康接口并不好找,本人也是费了好大力气才找到,接口使用文档更是少之又少,本工程实现视频监控的同时,并成功应用OSD功能添加字幕显示,现将本工程开源出来供大家研究。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • java 为图片添加水印 示例
    为图片添加水印 【核心代码】 /*** 添加水印* @param imagePath      图片绝对路径* @param watermarkPath  水印图片绝对路径* @param position  水印图片位置* @return 生成水印图片的绝对路径*/public static String addWatermark(String imagePath, String watermarkPath, String position) {logger.info("为图片({})在位置{}添加水印({})", imagePath, position, watermarkPath);if (StringUtils.isNotBlank(imagePath) && StringUtils.isNotBlank(watermarkPath)) {File image = new File(imagePath);File watermark = new File(watermarkPath);Position pos = getPostion(position);if (image.isFile() && image.exists() && watermark.isFile()) {try {BufferedImage bi = ImageIO.read(image);Builder builder = Thumbnails.of(imagePath);BufferedImage watermarkImg = ImageIO.read(watermark);File newWatermark = null;// 原图的宽或高是水印图片宽或高的2倍及以上,则直接打上水印原图;否则缩略水印图片,以原图宽或高的二分之一if (bi.getWidth() / watermarkImg.getWidth()
    2017-10-13下载
    积分:1
  • android 创建/删除快捷方式 示例源码下载
    android 创建/删除快捷方式 示例源码下载
    2014-03-25下载
    积分:1
  • android RelativeLayout 布局 实例
    android RelativeLayout 布局 实例
    2013-03-16下载
    积分:1
  • android 仿QQ的登录界面源码
    android 仿QQ的登录界面源码
    2015-06-16下载
    积分:1
  • 疯狂Android讲义(第2版)》.(李刚)源代码
    疯狂Android讲义(第2版)》.(李刚)源代码
    2015-03-15下载
    积分:1
  • Android 基于author2.0的新浪微博 例子源码,含侧边栏菜单类库源码
    基于author2.0的新浪微博 例子源码,含侧边栏菜单类库源码
    2014-09-22下载
    积分:1
  • android中ExpandableListView用法的一个简单实例 附效果图
    喜欢显示好友QQ那样的列表,可以展开,可以收起,在android中,以往用的比较多的是listview,虽然可以实现列表的展示,但在某些情况下,我们还是希望用到可以分组并实现收缩的列表,那就要用到android的ExpandableListView,今天研究了一下这个的用法,也参考了很多资料动手写了一个小demo,实现了基本的功能,但界面优化方面做得还不够好,有待改进,素材采用了Q版三国杀武将的图片,很有爱哈哈,下面直接上效果图以及源代码~!
    2013-03-07下载
    积分:1
  • 疫情信息查询android app源码
    【实例简介】
    2021-09-09 00:31:01下载
    积分:1
  • android 加班统计与记录 应用源码下载
    可以记录每天的加班时间,和统计出加班费。
    2015-06-19下载
    积分:1
  • 远程视频监控
    【核心代码】 public interface CameraSource {  static final String LOG_TAG = "camera";  /**  * Open the camera source for subsequent use via calls to capture().  *   * @return true if the camera source was successfully opened.  */  boolean open();  /**  * Close the camera source. Calling close on a closed CameraSource is  * permitted but has no effect. The camera source may be reopened after  * being closed.  */  void close();  /**  * The width of the captured image.  *   * @return the width of the capture in pixels  */  int getWidth();  /**  * The height of the captured image.  *   * @return the height of the capture in pixels  */  int getHeight();  /**  * Attempts to render the current camera view onto the supplied canvas.  * The capture will be rendered into the rectangle (0,0,width,height).  * Outstanding transformations on the canvas may alter this.  *   * @param canvas the canvas to which the captured pixel data will be written  * @return true iff a frame was successfully written to the canvas  */  boolean capture(Canvas canvas);  boolean saveImage(String savePath, String fileName); }
    2013-12-04下载
    积分:1
  • 696518资源总数
  • 106161会员总数
  • 5今日下载