Skip to content

C# Examples

The C# examples are located in a folder in the installation directory:

/RVCSDK/examples/CSharp

RVC C# SDK provides several examples. The examples follow the image acquisition process, display the operation steps, device information and capture parameters, capture, and convert the acquired data to OpenCV, Halcon, and VisionPro formats.

The corresponding functions of the examples are as follows. Click the example name to view the corresponding example code.

  • CameraTest: Select one or more scanners, print the device information and capture parameters of each scanner in turn, capture, save point cloud, 2D image and depth map. If it is a binocular scanner, it will use the left camera, right camera and dual camera mode to take turns to capture.

  • CaptureOptions_X1: Print capture parameters in monocular mode, the four ways of passing parameters are described, and the in-scanner parameters are called for capturing.

  • CaptureOptions_X2: Print capture parameters in binocular mode, the four ways to passing parameters are described, and the in-scanner parameters are called for capturing.

  • MultiCamera: Call multiple scanners at the same time.

  • QuickCapture_X1: Basic flow of monocular mode image acquisition. Connect to the first scanner searched, print the capture parameters, capture, and save the point cloud, 2D image and depth map.

  • QuickCapture_X2: Basic flow of binocular mode image acquisition. Connect to the first scanner searched, print the capture parameters, capture, and save the point cloud, 2D image and depth map.

  • ProtectiveCover: Control the Protective Cover status (opening or closing) of the RVC-M series.

  • SwingLineScan: RVC-M Series Swing Line Scan Mode parameter settings and capture.

  • SetSwingLineScanROI: In SwingLineScan mode, by setting a Region of Interest (ROI), you can achieve local scanning, which can increase the scanning speed and point cloud density.

  • FixedLineScan: RVC-M Series Fixed Line Scan Mode parameter settings and capture.

  • CaptureCallback_X1: Callback when scanner monocular mode capture is complete.

  • CaptureCallback_X2: Callback when scanner binocular mode capture is complete.

  • MarkerDetection: Detect the coded circles in the captured area.

  • PointCloudStitchingExample: Point cloud stitching.

  • Halcon_Extension: Transform the data structure of RVC into a data structure supported by Halcon.

  • Opencv_Extension: Transform the data structure of RVC into a data structure supported by OpenCV.

  • VisionPro_Extension: Transform the data structure of RVC into a data structure supported by VisionPro.