Initialize the SDK running environment when calling SDK in the program, to improve the subsequent API calling fluency.
You can refer to the following sample code when initializing the running environment, and deinitializing SDK when exiting the program.
int main()
{
return nRet;
}
-
Call MV_CC_Initialize() to initialize the SDK running environment This can apply for and distribute needed resources in advance, and improve the subsequent API calling fluency.
-
After initializing SDK, call other APIs here to initialize the camera or frame grabber, configure parameters, collect, and process the image.
-
After all these operations, you can call MV_CC_Finalize() to finalize the SDK and release the system resources occupied by the SDK.
- Attention
- In a single program, you can execute MV_CC_Initialize() and MV_CC_Finalize() each for once.