User Manual of Machine Vision Camera SDK Demo (Halcon)
2.1.2 Operation Procedure
For Raw2Himage_C Demo, when connecting to the camera, image acquisition function is called to create a
thread for image data acquisition and image format transformation after starting acquisition.
2.2 Development Instruction
The development procedure of this demo is similar to that of HalconGrabImage Demo, please refer to Chapter
1.2 Development Instruction for details. The following steps mainly introduces the application method of
creating thread to acquire image data.
Steps:
1. Call API MV_CC_StartGrabbing of SDK to start for image acquisition.
2. Create a WorkThread.
3. Call API MV_CC_GetOneFrameTimeout of SDK repeatedly in the created thread.
4. Convert the image data and save in Himage format.
5. Call the Halcon API HalconDisplay to display the image.
7
    "