Sample Program Descriptions

The sample programs are applicable to Gige_2.1 cameras, located at {Camport4 SDK download path}/camport4/sample/sample_genicam_sfnc, and include:

  • sample_read_calibration_data: reads camera calibration parameters.

  • sample_binocular_streamceStorage: displays left and right grayscale images with speckle patterns.

  • sample_parameters_depthrange: filters the depth map based on the set minimum and maximum depth thresholds, and displays the processed depth image in real time.

  • sample_parameters_exp_time: selects the color image format and display the color image after setting the exposure time.

  • sample_parameters_laser: sets laser brightness.

  • sample_rw_feature: reads or sets camera features via command lines.

  • sample_stream: selects a specified image format and resolution, and outputs the image data.

  • sample_ForceDeviceIP: forcibly sets the IP address of a network depth camera.

  • sample_trigger: selects the camera work mode and outputs image data.

  • sample_userset_ctl: demonstrates how to obtain the number of User Sets supported for selection and loading by the camera. It uses the User Set 0 (value 8) as an example to perform operations such as adding a description, saving, and reading the description.

  • sample_UserSetCurrent: iterates through the UserSets supported by the camera and determine whether they can be loaded.

  • sample_UserSetDefault: sets the default UserSet to be loaded after the camera is powered on.

  • sample_UserSetDescription: reads the description information of the UserSets supported by the camera.

  • sample_UserSetLoad: iterates through the UserSets currently supported by the camera and determine whether each UserSet can be loaded.

  • sample_UserSetSave: batches save the camera’s current complete parameter configuration to all user-defined configuration sets (UserSets) in the camera. The configurations will be persistently stored in the camera in file form.

  • 3sample_UserSetSelector: queries the detailed information of the camera’s “User Set Selector” function and print key information, such as which configuration sets are supported and their enumeration values. For example, the GM461-E1 currently reads as supporting 2 factory-default sets and 8 user-defined sets.

  • sample_get_rw_api: detects whether the camera’s TL version is Gige_2_1 or Gige_2_0 (the latter is non-GenICam compliant). Users can decide which set of APIs to invoke accordingly.

  • sample_file_iostream: reads the content from one User Set file and writes it to another.

  • sample_reconnect: handles data connection anomalies caused by factors such as environmental instability.