|
Evo 7.13.0-TM26061101
Evo LPR Engine
|
Picture class More...
#include <Picture.hpp>
Public Member Functions | |
| virtual const EvoImage & | GetImage (void)=0 |
| virtual int64_t | GetTime (EvoTimeUnit unit=EVOTU_MS) const =0 |
| virtual EvoRC | SaveInJPEG (const char *path, int quality=95)=0 |
| virtual EvoRC | SaveInPNG (const char *path, int compression=1)=0 |
This class represents the captured image and several related information.
|
pure virtual |
Get image data of the picture.
|
pure virtual |
Get time stamp when captured.
| [in] | unit | Precision of the time stamp. |
time_t timeRaw;
int64_t timeMS;
struct tm *timeInfo = NULL;
int64_t timeUTC = pic->GetTime(EVOTU_MS);
timeMS = timeUTC % 1000;
timeRaw = time_t(timeUTC / 1000);
timeInfo = localtime(&timeRaw);
cout << timeInfo->tm_year + 1900 << '-'
<< timeInfo->tm_mon + 1 << '-'
<< timeInfo->tm_mday << ' '
<< timeInfo->tm_hour << ':'
<< timeInfo->tm_min << ':'
<< timeInfo->tm_sec << '.'
<< timeMS << endl;
|
pure virtual |
Create JPEG file of the picture.
| [in] | path | Path to JPEG file which must have either of the extensions '.jpg' or '.jpeg'. |
| [in] | quality | Quality level of compressed picture, which has the range [1, 100]. |