<div dir="ltr"><div>I tried to perform K-Nearest algorithm with a binary search directly on memory and a binary search on the database, with a dataset of about 16000 faces. The one with the KD-Tree on the memory is pretty quick, which takes about 120ms to recognize a face. The one performed directly on the database is slower (700ms per search). The current version of SQL driver supported by Qt doesn't support spatial indexing so I have to implement the binary search by multiple consecutive queries, so it takes a bit of time.</div><div><br></div><div> I estimate that it would take about 10Mb to stock 16000 faces information. Therefore I think 200Mb cache will be enough to store the entire KD-Tree structure on RAM for the facial recognition process. </div><div><br></div><div>Nghia<br></div></div>