NeuroDactyl
detector.h
Go to the documentation of this file.
1 
8 #ifndef _DETECTOR_H_
9 #define _DETECTOR_H_
10 
11 #pragma once
12 
13 #include <memory>
14 #include <vector>
15 
16 #include "config.h"
17 #include "image.h"
18 #include "export.h"
19 
20 
21 namespace NeuroDactyl {
26  struct Point {
27  float x;
28  float y;
29  };
30 
35  struct BBox {
36  float x0;
37  float y0;
38  float x1;
39  float y1;
40  };
41 
46  class Detection {
47  public:
48  virtual float confidence() const = 0;
49  virtual NeuroDactyl::BBox bbox() const = 0;
50  virtual NeuroDactyl::Point cpoint() const = 0;
51  virtual float direction() const = 0;
52 
53  virtual ~Detection() = default;
54  };
55 
66  int dpi,
67  NeuroDactyl::Point& center,
68  float angle);
69 
75  class Detector {
76  public:
85  virtual void detect(const NeuroDactyl::Image* image,
86  int dpi,
87  float confidence,
88  std::vector<NeuroDactyl::Detection*>& detections) = 0;
89 
90  virtual ~Detector() = default;
91  };
92 
101 }
102 
103 
104 #endif /* _DETECTOR_H_ */
Class for system configuration.
Definition: config.h:27
Fingerprint detection class.
Definition: detector.h:46
virtual NeuroDactyl::BBox bbox() const =0
Detection bounding box.
virtual float confidence() const =0
Detection confidence.
Detector class Detector object is required for fingerprint detection.
Definition: detector.h:75
virtual void detect(const NeuroDactyl::Image *image, int dpi, float confidence, std::vector< NeuroDactyl::Detection * > &detections)=0
Image Class for work with images.
Definition: image.h:23
Header file with configuration description.
FPSERVERSDK_API NeuroDactyl::Detector * createDetector(const NeuroDactyl::Config *cfg)
FPSERVERSDK_API NeuroDactyl::Detection * constructDetection(const NeuroDactyl::Image *image, int dpi, NeuroDactyl::Point &center, float angle)
Header file with Image description.
Namespace containing all symbols from the NeuroDactyl SDK.
Definition: config.h:21
Bounding box structure.
Definition: detector.h:35
Point structure.
Definition: detector.h:26