org.opencv.core.Core.getTickFrequency()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(157)

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

Core.getTickFrequency介绍

[英]Returns the number of ticks per second.

The function returns the number of ticks per second.That is, the following code computes the execution time in seconds: ``

// C++ code:

double t = (double)getTickCount();

// do something...

t = ((double)getTickCount() - t)/getTickFrequency();
[中]返回每秒的滴答数。
该函数返回每秒的滴答数。也就是说,以下代码以秒为单位计算执行时间:``
//C++代码:
double t=(double)getTickCount();
//做点什么。。。
t=((双)getTickCount()-t)/getTickFrequency();

代码示例

代码示例来源:origin: jtsky/EasyPR_Android

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

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

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

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

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: SouvDc/face-detection

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

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

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: imistyrain/EasyPR4Android

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: ctodobom/OpenCV-3.1.0-Android

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: SOFTPOWER1991/OpenCVCheck

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: DuckDeck/AndroidDemo

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: abhn/marvel

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(40);
}

代码示例来源:origin: InnoFang/Android-Code-Demos

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: hschott/Camdroid

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: leadrien/opencv_native_androidstudio

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: ytai/IOIOPlotter

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: akshika47/OpencvAndroid

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: KePeng1019/SmartPaperScan

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

代码示例来源:origin: raulh82vlc/Image-Detection-Samples

public void init() {
  mFramesCouner = 0;
  mFrequency = Core.getTickFrequency();
  mprevFrameTime = Core.getTickCount();
  mStrfps = "";
  mPaint = new Paint();
  mPaint.setColor(Color.BLUE);
  mPaint.setTextSize(20);
}

相关文章

Core类方法