Amlogic NN Api: libnnsdk build

Where can I find the source files of libnnsdk.so in order to recompile the lib with the correct dependencies version I need?
For example I noticed that the libnnsdk.so installed in my updated Vim3 is dependent from opencv-3.4.7 when I would like to run opencv-4.5.1