-
Notifications
You must be signed in to change notification settings - Fork 0
/
AmApi.h
37 lines (33 loc) · 1.16 KB
/
AmApi.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#pragma once
#include <string>
#include <memory>
#include "extraction/BmpExtractor.h"
#include "configuration/ConfigurationReader.hpp"
#include "common/Logger.hpp"
#include "extraction/MultipleExtractor.h"
#ifndef WIN32
#include "database/DataBaseCommunicator.h"
#endif
namespace am
{
class AmApi
{
public:
AmApi(const Configuration& conf);
analyze::algorithm::DescObjects compare(const std::string &base_img, const std::string &cmp_img);
void compare_and_save_diff_img(const std::string &base_img, const std::string &cmp_img, std::string &&out_diff_img);
void enable_database_reports(const char *db_name);
const Configuration& getConfiguration();
void setConfiguration(const Configuration& newConf);
private:
std::shared_ptr<am::common::Logger> loggerPtr;
extraction::MultipleExtractor extractor;
std::unique_ptr<analyze::algorithm::ObjectDetector> detector;
std::string base_img_path;
std::string cmp_img_path;
#ifndef WIN32
std::unique_ptr<database::DataBaseCommunicator> dbcPtr;
#endif
Configuration configuration;
};
}