This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DepthCapture SDK for Depth Camera: CDK-OPT8241

Other Parts Discussed in Thread: OPT9221, OPT8241

I compiled and execute the SDK: "DepthCapture". A file was generated. However, what is inside this output file ? It is a binary file but I cannot open it using any software ?

  • Voxel Viewer can play the file.

    File -> Open Saved Stream.
  • VoxelViewer stop functions when I try to open the file, with error: "VoxelViewer.exe has stopped working". I try to generate all type of capture (raw/raw_processed/depth/pointcloud) with the same error. Does it means that my "DepthCapture" program has problems ?

    When I execute DepthCapture, some warning message appear (although the output file can be generated) and it mentions: "Found register map with name 'OPT9221' (vPG1P0)", but my depth camera should be: "OPT8241". I am compile/execute "DepthCapture" in Windows 7 using Visual Studio 2013. Can anyone provide me the correct version source code for Winows 7 ?
     

    Below is the message when I execute "DepthCapture":


    D:\TI Working\Example Program\voxelsdk-examples-master\DepthCapture\x64\RelWithDebInfo>depthcapture.exe -v 0451 -p 9105 -s 948184947628 -f testimg.vxl -n 1 -t depth
    WARNING: CameraSystem: Failed to load or register a depth camera factory from library ti3dtof.dll. Ignoring this library.
    WARNING: CameraSystem: Failed to load or register a depth camera factory from library voxel.dll. Ignoring this library.
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\calculuscdk.dll
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\haddockcdk.dll
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\rts5825camera.dll
    WARNING: CameraSystem: Failed to load or register a depth camera factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\ti3dtof.dll. Ignoring this library.
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\tintincdk.dll
    WARNING: CameraSystem: Failed to load or register a depth camera factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\voxel.dll. Ignoring this library.
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\voxel14.dll
    INFO: CameraSystem: Successfully loaded factory from library C:\Program Files\Voxel SDK 0.6.5\lib\voxel\voxeld.dll
    Detected devices:
    0::0451:9105::948184947628
    INFO: TintinCDKCamera: Board revision = 2.0
    INFO: ParameterDMLParser: Found register map with name 'OPT9221' (vPG1P0)

    INFO: HardwareSerializer: Received 43087 bytes from hardware in 1.94081 s
    INFO: Data2DCodec: Original number of 8-bit offsets = 434
    INFO: Data2DCodec: Number of invalid pixels in original data = 0
    INFO: Data2DCodec: Current number of 8-bit offsets = 434
    INFO: CameraSystem: Successfully refreshed parameters for TintinCDKCamera(0::045
    1:9105::948184947628).
    Successfully loaded depth camera for device 0::0451:9105::948184947628
    INFO: ToFCameraBase: Starting with 320x240@30.0001fps
    _dealiasedPhaseMask = 2, _dealiasedPhaseMaskInPhaseOffset = 4
    INFO: Capturing at a frame rate of 30.0001 fps
    Capture frame 0@1480646686563869
    Width320
    Height240
    INFO: DepthCamera: Streaming stopped.

  • I am so sorry.

    I was mis-understood.

    I think DepthCapture program is just a example program using voxel sdk.

    It generate a binary data from tof camera. thre file is binary data.

    if you see the source. you know the data structure.
  • Thank You for your reply.
    Could you please tell me what is the use of that binary data file ?
    Is there any mean to generate jpg file (automatically and continuously) from the camera ? (I know in the VoxelViewer, user can manually select to export jpg image, but I need to have jpg file generated automatically and continuously).
  • Hi, have you find the method to generate jpg files automatically and continuously?
  • Bruce,

    To see example of dumping image look at Test/CameraSystemTest. It is written in C++. I recommend you add OpenCV support (see github.com/.../DemoApplications for numerous examples).

    With OpenCV, export image looks as simple as saving it in JPG file.
    See: docs.opencv.org/.../reading_and_writing_images_and_video.html

    -Larry