PExampleSet.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Digital Barriers plc. All rights reserved.
3  * Contact: http://www.digitalbarriers.com/
4  *
5  * This file is part of the Papillon SDK.
6  *
7  * You can't use, modify or distribute any part of this file without
8  * the explicit written agreements of Digital Barriers.
9  */
10 
15 #pragma once
16 #include <PObject.h>
17 
18 PAPILLON_BEGIN_NAMESPACE
19 
20 class PDetection;
21 class PDetectionList;
22 class PGuid;
23 class PObjectType;
24 
51 class PAPILLON_API_CORE PExampleSet : public PObject
52 {
53 public:
57  PExampleSet();
58 
62  PExampleSet(const PString& name, const PObjectType& objectType, const PGuid& identityId);
63 
67  PExampleSet(const PExampleSet& other);
68 
72  virtual ~PExampleSet();
73 
77  PExampleSet& operator=(const PExampleSet& other);
78 
82  bool operator==(const PExampleSet& other) const;
83 
87  void Clear();
88 
92  bool IsEmpty() const;
93 
98  void SetMaxSize(papillon::int32 maxSize);
99 
103  papillon::int32 Size() const;
104 
108  void Add(const PDetection& d);
109 
113  void Add(const PDetectionList& d);
114 
119  const PDetection& Get(papillon::int32 n) const;
120 
124  void SetName(const PString& name);
125 
129  const PString& GetName() const;
130 
134  void SetIdentityId(const PGuid& objectId);
135 
139  const PGuid& GetIdentityId() const;
140 
144  const PObjectType& GetObjectType() const;
145 
149  void SetObjectType(const PObjectType& objectType);
150 };
151 
152 PAPILLON_END_NAMESPACE
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PDetectionList class represents nothing more than a collection of detections (PDetection), Typically PDetectionList&#39;s are returned from a PDetector.
The PObject class is the root class of all Papillon classes; all PObject behaves like shared referenc...
Definition: PObject.h:27
The PDetection class represents something that has been detected by a PDetector.
Definition: PDetection.h:61
The PGuid class represents a Globally Unique Identifier (GUID); PGuid instances are immutable (thread...
Definition: PGuid.h:28
Class PObject: the root class of all Papillon classes.
PObject & operator=(const PObject &obj)
Performs a shared copy of other to this object.
Definition: PObject.h:45
The PExampleSet class represents a collection of PDetection&#39;s of the same identity (unknown or known)...
Definition: PExampleSet.h:51
The PObjectType class represents a type of object found in a video stream (can be Face...
Definition: PObjectType.h:26