org.opencv.video.Video类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.2k)|赞(0)|评价(0)|浏览(144)

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

Video介绍

暂无

代码示例

代码示例来源:origin: kongqw/OpenCVForAndroid

public static void calcOpticalFlowFarneback(Mat prev, Mat next, Mat flow, double pyr_scale, int levels, int winsize, int iterations, int poly_n, double poly_sigma, int flags)
{
  
  calcOpticalFlowFarneback_0(prev.nativeObj, next.nativeObj, flow.nativeObj, pyr_scale, levels, winsize, iterations, poly_n, poly_sigma, flags);
  
  return;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel, TermCriteria criteria, int flags, double minEigThreshold)
{
  Mat prevPts_mat = prevPts;
  Mat nextPts_mat = nextPts;
  Mat status_mat = status;
  Mat err_mat = err;
  calcOpticalFlowPyrLK_0(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel, criteria.type, criteria.maxCount, criteria.epsilon, flags, minEigThreshold);
  
  return;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel)
{
  Mat prevPts_mat = prevPts;
  Mat nextPts_mat = nextPts;
  Mat status_mat = status;
  Mat err_mat = err;
  calcOpticalFlowPyrLK_1(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  
  return;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static RotatedRect CamShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  RotatedRect retVal = new RotatedRect(CamShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon));
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static int meanShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  int retVal = meanShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon);
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static Mat estimateRigidTransform(Mat src, Mat dst, boolean fullAffine)
{
  
  Mat retVal = new Mat(estimateRigidTransform_0(src.nativeObj, dst.nativeObj, fullAffine));
  
  return retVal;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder, boolean tryReuseInputImage)
{
  Mat pyramid_mat = new Mat();
  int retVal = buildOpticalFlowPyramid_0(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel, withDerivatives, pyrBorder, derivBorder, tryReuseInputImage);
  Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  pyramid_mat.release();
  return retVal;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
{
  Mat pyramid_mat = new Mat();
  int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  pyramid_mat.release();
  return retVal;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err)
{
  Mat prevPts_mat = prevPts;
  Mat nextPts_mat = nextPts;
  Mat status_mat = status;
  Mat err_mat = err;
  calcOpticalFlowPyrLK_2(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj);
  
  return;
}

代码示例来源:origin: kongqw/OpenCVForAndroid

public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history, double dist2Threshold, boolean detectShadows)
{
  
  BackgroundSubtractorKNN retVal = new BackgroundSubtractorKNN(createBackgroundSubtractorKNN_0(history, dist2Threshold, detectShadows));
  
  return retVal;
}

代码示例来源:origin: tz28/Chinese-number-gestures-recognition

public static RotatedRect CamShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  RotatedRect retVal = new RotatedRect(CamShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon));
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static int meanShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  int retVal = meanShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon);
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static Mat estimateRigidTransform(Mat src, Mat dst, boolean fullAffine)
{
  
  Mat retVal = new Mat(estimateRigidTransform_0(src.nativeObj, dst.nativeObj, fullAffine));
  
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel, boolean withDerivatives, int pyrBorder, int derivBorder, boolean tryReuseInputImage)
{
  Mat pyramid_mat = new Mat();
  int retVal = buildOpticalFlowPyramid_0(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel, withDerivatives, pyrBorder, derivBorder, tryReuseInputImage);
  Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  pyramid_mat.release();
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static int buildOpticalFlowPyramid(Mat img, List<Mat> pyramid, Size winSize, int maxLevel)
{
  Mat pyramid_mat = new Mat();
  int retVal = buildOpticalFlowPyramid_1(img.nativeObj, pyramid_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  Converters.Mat_to_vector_Mat(pyramid_mat, pyramid);
  pyramid_mat.release();
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err)
{
  Mat prevPts_mat = prevPts;
  Mat nextPts_mat = nextPts;
  Mat status_mat = status;
  Mat err_mat = err;
  calcOpticalFlowPyrLK_2(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj);
  
  return;
}

代码示例来源:origin: farkam135/GoIV

public static BackgroundSubtractorKNN createBackgroundSubtractorKNN(int history, double dist2Threshold, boolean detectShadows)
{
  
  BackgroundSubtractorKNN retVal = new BackgroundSubtractorKNN(createBackgroundSubtractorKNN_0(history, dist2Threshold, detectShadows));
  
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static RotatedRect CamShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  RotatedRect retVal = new RotatedRect(CamShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon));
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: tz28/Chinese-number-gestures-recognition

public static int meanShift(Mat probImage, Rect window, TermCriteria criteria)
{
  double[] window_out = new double[4];
  int retVal = meanShift_0(probImage.nativeObj, window.x, window.y, window.width, window.height, window_out, criteria.type, criteria.maxCount, criteria.epsilon);
  if(window!=null){ window.x = (int)window_out[0]; window.y = (int)window_out[1]; window.width = (int)window_out[2]; window.height = (int)window_out[3]; } 
  return retVal;
}

代码示例来源:origin: farkam135/GoIV

public static void calcOpticalFlowPyrLK(Mat prevImg, Mat nextImg, MatOfPoint2f prevPts, MatOfPoint2f nextPts, MatOfByte status, MatOfFloat err, Size winSize, int maxLevel)
{
  Mat prevPts_mat = prevPts;
  Mat nextPts_mat = nextPts;
  Mat status_mat = status;
  Mat err_mat = err;
  calcOpticalFlowPyrLK_1(prevImg.nativeObj, nextImg.nativeObj, prevPts_mat.nativeObj, nextPts_mat.nativeObj, status_mat.nativeObj, err_mat.nativeObj, winSize.width, winSize.height, maxLevel);
  
  return;
}

相关文章