仙女不下凡 2021-11-04 16:06 采纳率: 0%
浏览 21

vue需求识别监控中的图像人物加上红框,移动的车辆加上绿框,类似于图片识别功能

我的监控呈现实现代码

import HlsJsPlayer from 'xgplayer-hls.js';
  computed: {
    ...mapState({
      list: (state) => state.videoList.listone,
    }),
    newlist() {
      return JSON.parse(JSON.stringify(this.list));
    },
  },
  mounted() {
    this.videoBox();
  },
  methods: {
    videoBox() {
      // console.log('videoSrc:', videosrc);
      if (this.player) {
        this.player.destroy(true);
        this.player = null;
        // this.player.src = this.list.rtmpUrl
        // console.log(this.player.currentSrc)
      }
      if (this.list.status == 1) {
        this.player = new HlsJsPlayer({
          id: 'videoElement',
          url: this.list.rtmpUrl,
          lang: 'zh-cn',
          autoplay: true,  //自动播放
          playsinline: true,  
          fluid: true,
          ignores: ['volume'],//控制条忽略相关配置项 ['time', 'definition', 'error', 'fullscreen', 'i18n', 'loading', 'mobile', 'pc', 'play', 'poster', 'progress', 'replay', 'volume']
          fitVideoSize: 'fixWidth',
        });
      }
    },
  },
  beforeDestroy() {
    if (this.player) {
      this.player.destroy(true);
      this.player = null;
    }
  },
  • 写回答

1条回答 默认 最新

  • 崽崽的谷雨 2021-11-04 16:17
    关注

    这个 一般 有 第三方的 功能支持 。如果自己开发 可能周期会长一些

    评论

报告相同问题?

问题事件

  • 创建了问题 11月4日

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度