Template class can't be compiled to shared library.
Use array template class for object recognition.