1 | initial version |
Hi, To be able to use this camera you have to download Sapera LT 8.12 SDK (or whatever version there is now). As this SDK for me was real pain to use I have used CVB libraries that I have got from my camera provider.
Anyway:
void * pBuffer;
pSaperaBuffer->GetAddress(pSaperaBuffer->GetIndex(), &pBuffer);
"pSaperaBuffer" is the SapBuffer that's used in every Sapera ++ demo.
With that you have the starting address of the Sapera Buffer and that should help you "cast" it to an OpenCV compliant buffer.
Should also work when pBuffer is of type UINT8 (if the Nano outputs 8bit) or UINT16.
Hope this helps - for more, please check the various SapMyProcessing.cpp versions in the Sapera demos\classes\vc samples,
2 | No.2 Revision |
Hi, To be able to use this camera you have to download Sapera LT 8.12 SDK (or whatever version there is now). As this SDK for me was real pain to use I have used CVB libraries that I have got from my camera provider.
Anyway:
void * pBuffer;
pSaperaBuffer->GetAddress(pSaperaBuffer->GetIndex(), &pBuffer);
"pSaperaBuffer" is the SapBuffer SapBuffer
that's used in every Sapera ++ demo.
With that you have the starting starting
address of the Sapera Buffer and that that
should help you "cast" it to an OpenCV OpenCV
compliant buffer.
Should also work when pBuffer is of of
type UINT8 (if the Nano outputs 8bit) 8bit)
or UINT16.
Hope this helps - for more, please please
check the various SapMyProcessing.cpp SapMyProcessing.cpp
versions in the Sapera Sapera
demos\classes\vc samples,
I hope it will help you.