mirror of
https://github.com/Kagami/go-face.git
synced 2025-09-26 19:51:16 +08:00

We don't need additional level of indirection and can store category in distances vector right away.
11 lines
197 B
C++
11 lines
197 B
C++
#pragma once
|
|
|
|
typedef dlib::matrix<float,0,1> descriptor;
|
|
|
|
int classify(
|
|
const std::vector<descriptor>& samples,
|
|
const std::vector<int>& cats,
|
|
const descriptor& test_sample,
|
|
float tolerance
|
|
);
|