version:2.1.5

bugfixes:
update:拨号使用ocr进行识别
This commit is contained in:
2025-05-22 14:30:12 +08:00
parent a86592005f
commit d7e830985f
226 changed files with 66016 additions and 81139 deletions

View File

@@ -37,53 +37,59 @@
#include "opencv2/core.hpp"
#include "opencv2/core/utility.hpp"
namespace cvflann {
namespace cvflann
{
/**
* A start-stop timer class.
*
* Can be used to time portions of code.
*/
class StartStopTimer {
int64 startTime;
class StartStopTimer
{
int64 startTime;
public:
/**
* Value of the timer.
*/
double value;
public:
/**
* Value of the timer.
*/
double value;
/**
* Constructor.
*/
StartStopTimer() {
reset();
}
/**
* Constructor.
*/
StartStopTimer()
{
reset();
}
/**
* Starts the timer.
*/
void start() {
startTime = cv::getTickCount();
}
/**
* Starts the timer.
*/
void start()
{
startTime = cv::getTickCount();
}
/**
* Stops the timer and updates timer value.
*/
void stop() {
int64 stopTime = cv::getTickCount();
value += ((double) stopTime - startTime) / cv::getTickFrequency();
}
/**
* Stops the timer and updates timer value.
*/
void stop()
{
int64 stopTime = cv::getTickCount();
value += ( (double)stopTime - startTime) / cv::getTickFrequency();
}
/**
* Resets the timer value to 0.
*/
void reset() {
value = 0;
}
/**
* Resets the timer value to 0.
*/
void reset()
{
value = 0;
}
};
};
}