PClassifierInfo.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2019 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 #include <PString.h>
18 
19 PAPILLON_BEGIN_NAMESPACE
20 
21 class PStringList;
22 
35 class PAPILLON_API_CORE PClassifierInfo : public PObject {
36  public:
41 
45  explicit PClassifierInfo(const PStringList& classLabels, float threshold = 0, const PString& unknownLabel = "unknown");
46 
50  explicit PClassifierInfo(const PClassifierInfo& other);
51 
55  ~PClassifierInfo() override;
56 
61 
65  int32 GetNumClasses() const;
66 
70  const PStringList& GetClassLabels() const;
71 
75  float GetThreshold() const;
76 
80  const PString& GetClassLabel(int32 classIndex) const;
81 };
82 
83 PAPILLON_END_NAMESPACE
The PClassifierInfo class holds information about classifier and designed for conversion between clas...
The PString class provides an Unicode character strings.
Definition: PString.h:37
The PObject class is the root class of all Papillon classes; all PObject behaves like shared referenc...
Definition: PObject.h:27
Class PString: an unicode character strings (use copy-on-write idiom).
The PStringList class represents a list of PString; NOT thread-safe.
Definition: PStringList.h:26
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