gpt4 book ai didi

org.openimaj.video.xuggle.XuggleVideo.getWidth()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 13:57:05 25 4
gpt4 key购买 nike

本文整理了Java中org.openimaj.video.xuggle.XuggleVideo.getWidth()方法的一些代码示例,展示了XuggleVideo.getWidth()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XuggleVideo.getWidth()方法的具体详情如下:
包路径:org.openimaj.video.xuggle.XuggleVideo
类名称:XuggleVideo
方法名:getWidth

XuggleVideo.getWidth介绍

暂无

代码示例

代码示例来源:origin: openimaj/openimaj

@Override
public int getWidth() {
  return vid.getWidth();
}

代码示例来源:origin: org.openimaj/data-scraping

@Override
public int getWidth() {
  return vid.getWidth();
}

代码示例来源:origin: openimaj/openimaj

public VideoWithinVideo(String videoPath) throws IOException {
  this.videoFile = new File(videoPath);
  this.video = new XuggleVideo(videoFile, true);
  this.capture = new VideoCapture(320, 240);
  nextCaptureFrame = capture.getNextFrame().clone();
  this.videoRect = new Rectangle(0, 0, video.getWidth(), video.getHeight());
  this.captureToVideo = TransformUtilities.makeTransform(
      new Rectangle(0, 0, capture.getWidth(), capture.getHeight()),
      videoRect
      );
  display = VideoDisplay.createVideoDisplay(video);
  new CaptureVideoSIFT(this);
  display.addVideoListener(this);
  // targetArea = new Polygon(
  // new Point2dImpl(100,100),
  // new Point2dImpl(200,150),
  // new Point2dImpl(200,230),
  // new Point2dImpl(0,200)
  // );
  //
  // Prepare the homography matrix
  pointList = new ArrayList<IndependentPair<Point2d, Point2d>>();
  pointList.add(IndependentPair.pair((Point2d) topLeftB, (Point2d) topLeftS));
  pointList.add(IndependentPair.pair((Point2d) topRightB, (Point2d) topRightS));
  pointList.add(IndependentPair.pair((Point2d) bottomRightB, (Point2d) bottomRightS));
  pointList.add(IndependentPair.pair((Point2d) bottomLeftB, (Point2d) bottomLeftS));
}

代码示例来源:origin: org.openimaj/sandbox

public VideoWithinVideo(String videoPath) throws IOException {
  this.videoFile = new File(videoPath);
  this.video = new XuggleVideo(videoFile, true);
  this.capture = new VideoCapture(320, 240);
  nextCaptureFrame = capture.getNextFrame().clone();
  this.videoRect = new Rectangle(0, 0, video.getWidth(), video.getHeight());
  this.captureToVideo = TransformUtilities.makeTransform(
      new Rectangle(0, 0, capture.getWidth(), capture.getHeight()),
      videoRect
      );
  display = VideoDisplay.createVideoDisplay(video);
  new CaptureVideoSIFT(this);
  display.addVideoListener(this);
  // targetArea = new Polygon(
  // new Point2dImpl(100,100),
  // new Point2dImpl(200,150),
  // new Point2dImpl(200,230),
  // new Point2dImpl(0,200)
  // );
  //
  // Prepare the homography matrix
  pointList = new ArrayList<IndependentPair<Point2d, Point2d>>();
  pointList.add(IndependentPair.pair((Point2d) topLeftB, (Point2d) topLeftS));
  pointList.add(IndependentPair.pair((Point2d) topRightB, (Point2d) topRightS));
  pointList.add(IndependentPair.pair((Point2d) bottomRightB, (Point2d) bottomRightS));
  pointList.add(IndependentPair.pair((Point2d) bottomLeftB, (Point2d) bottomLeftS));
}

代码示例来源:origin: openimaj/openimaj

@Override
  public void render(final MBFImageRenderer renderer, final Matrix transform, final Rectangle rectangle) {
    if (this.toRender == null) {
      this.toRender = new XuggleVideo(
          VideoColourSIFT.class.getResource("/org/openimaj/demos/video/keyboardcat.flv"), true);
      this.renderToBounds = TransformUtilities.makeTransform(new Rectangle(0, 0, this.toRender.getWidth(),
          this.toRender.getHeight()), rectangle);
    }
    final MBFProjectionProcessor mbfPP = new MBFProjectionProcessor();
    mbfPP.setMatrix(transform.times(this.renderToBounds));
    mbfPP.accumulate(this.toRender.getNextFrame());
    mbfPP.performProjection(0, 0, renderer.getImage());
  }
};

代码示例来源:origin: org.openimaj/demos

@Override
  public void render(final MBFImageRenderer renderer, final Matrix transform, final Rectangle rectangle) {
    if (this.toRender == null) {
      this.toRender = new XuggleVideo(
          VideoSIFT.class.getResource("/org/openimaj/demos/video/keyboardcat.flv"), true);
      this.renderToBounds = TransformUtilities.makeTransform(new Rectangle(0, 0, this.toRender.getWidth(),
          this.toRender.getHeight()), rectangle);
    }
    final MBFProjectionProcessor mbfPP = new MBFProjectionProcessor();
    mbfPP.setMatrix(transform.times(this.renderToBounds));
    mbfPP.accumulate(this.toRender.getNextFrame());
    mbfPP.performProjection(0, 0, renderer.getImage());
  }
};

代码示例来源:origin: openimaj/openimaj

@Override
  public void render(final MBFImageRenderer renderer, final Matrix transform, final Rectangle rectangle) {
    if (this.toRender == null) {
      this.toRender = new XuggleVideo(
          VideoSIFT.class.getResource("/org/openimaj/demos/video/keyboardcat.flv"), true);
      this.renderToBounds = TransformUtilities.makeTransform(new Rectangle(0, 0, this.toRender.getWidth(),
          this.toRender.getHeight()), rectangle);
    }
    final MBFProjectionProcessor mbfPP = new MBFProjectionProcessor();
    mbfPP.setMatrix(transform.times(this.renderToBounds));
    mbfPP.accumulate(this.toRender.getNextFrame());
    mbfPP.performProjection(0, 0, renderer.getImage());
  }
};

代码示例来源:origin: org.openimaj/demos

@Override
  public void render(final MBFImageRenderer renderer, final Matrix transform, final Rectangle rectangle) {
    if (this.toRender == null) {
      this.toRender = new XuggleVideo(
          VideoColourSIFT.class.getResource("/org/openimaj/demos/video/keyboardcat.flv"), true);
      this.renderToBounds = TransformUtilities.makeTransform(new Rectangle(0, 0, this.toRender.getWidth(),
          this.toRender.getHeight()), rectangle);
    }
    final MBFProjectionProcessor mbfPP = new MBFProjectionProcessor();
    mbfPP.setMatrix(transform.times(this.renderToBounds));
    mbfPP.accumulate(this.toRender.getNextFrame());
    mbfPP.performProjection(0, 0, renderer.getImage());
  }
};

代码示例来源:origin: openimaj/openimaj

System.out.println( "    - Size: "+video.getWidth()+"x"+video.getHeight() );
System.out.println( "    - Frame Rate: "+video.getFPS() );
System.out.println( "Detecting shots in video..." );

代码示例来源:origin: org.openimaj/FaceTools

System.out.println( "    - Size: "+video.getWidth()+"x"+video.getHeight() );
System.out.println( "    - Frame Rate: "+video.getFPS() );
System.out.println( "Detecting shots in video..." );

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com