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.

Why projector only cast 18 patterns, but image to decode is 18 + 18=36?

Other Parts Discussed in Thread: TIDA-00254

Hi,

I use 3D_Scanner_LCr4500_PGcam.exe and run step 6 to scan object.

I only see projector cast 18 patterns and scan images after scan_capture_18.bmp is almost black. I think it should project 36 patterns, right?

something wrong in my setting?

 BR,

frank

NOTE FROM MODERATOR: This post describes an issue when using a Point Grey Flea3 color camera instead of the recommended Point Grey FL3-U3-13Y3M monochrome camera for the TIDA-00254 reference design.

  • Hello Frank,

    First, make sure that you ran step 2 to properly prepare the projector. If that does not solve the problem, I think there are two other possibilities.

    Most likely the frame rates and exposure times for the camera and projector are not set correctly which causes a synchronization issue. Which camera are you using? Make sure that the camera settings match your Point Grey camera's capabilities. Check the camera setting file to ensure proper resolution, frame rate, and exposure times.

    • File
      • 3D_Scanner_LCr4500_PGcam\config\system_settings_camera.txt
    • Settings
      • PG_FLYCAP_SETTINGS_ROWS = Height of your camera resolution
      • PG_FLYCAP_SETTINGS_COLUMNS = Width of your camera resolution
      • PG_FLYCAP_SETTINGS_FRAME_RATE = How many captures per second
      • PG_FLYCAP_SETTINGS_SHUTTER_SPEED = How long the shutter captures light = 1 / Frame Rate
      • Monochrome camera
        • Recommended for better speed with reference design (use Point Grey FL3-U3-13Y3M)
        • PG_FLYCAP_SETTINGS_PIXEL_FORMAT = RAW8
        • PG_FLYCAP_SETTINGS_IMAGE_FORMAT = MONO8
      • Color Camera
        • Not tested with reference design, but should work is following settings are adjusted (in addition to frame rate and shutter speed)
        • PG_FLYCAP_SETTINGS_PIXEL_FORMAT = RGB8
        • PG_FLYCAP_SETTINGS_IMAGE_FORMAT = RGB8

    The other possibility is that the include inverted flag in both of your structured light setting files could be set to 0 instead of 1. Check the following files and ensure the include inverted setting is set to 1.

    • Files
    • 3D_Scanner_LCr4500_PGcam\config\structured_light_horizontal_settings.txt
    • 3D_Scanner_LCr4500_PGcam\config\structured_light_vertical_settings.txt
    • Setting
      • STRUCTURED_LIGHT_SETTINGS_IMAGE_INCLUDE_INVERTED = 1

    Let me know if this helps! 

    Best regards,

    Blair

     

  • Hi Blair,

    I run step 2 twice. it doesn't work.

    The setting in system_settings_camera.txt is as below. It works in test version.

    PG_FLYCAP_SETTINGS_ROWS = 1048
    PG_FLYCAP_SETTINGS_COLUMNS = 1328
    PG_FLYCAP_SETTINGS_EXPOSURE = 1
    PG_FLYCAP_SETTINGS_SHUTTER_SPEED = 80
    PG_FLYCAP_SETTINGS_FRAME_RATE  = 10
    PG_FLYCAP_SETTINGS_VIDEO_MODE = MODE0_FULL_RESOLUTION
    PG_FLYCAP_SETTINGS_PIXEL_FORMAT = RGB8
    PG_FLYCAP_SETTINGS_IMAGE_FORMAT = RGB8

    exposure time and period in system_settings_projector.txt

    DLP_PLATFORM_SETTINGS_PATTERNSEQUENCE_EXPOSURE = 16000
    DLP_PLATFORM_SETTINGS_PATTERNSEQUENCE_PERIOD = 16000

     the setting in vertical and horizontal setting are the same.

    STRUCTURED_LIGHT_SETTINGS_IMAGE_INCLUDE_INVERTED = 1

    there is no inver pattern in the scan_images file folder.

    any idea?

    BR,

    frank

     

  • Hello Frank,

    If I remember correctly from our previous discussions, didn't you need to adjust the strobe settings for your color camera? 

    Best regards,

    Blair

  • Hi Blair,

    I found I need to slow down the camera speed to 5hz.Then it can display 36 patterns.

    PG_FLYCAP_SETTINGS_SHUTTER_SPEED = 100
    PG_FLYCAP_SETTINGS_FRAME_RATE  = 5

    if my NB is slow, the LcR4500 should wait for trigger from camera, right?

    Or inverted pattern is controlled by period setting, not controlled by tirgger.

     

    BR,

    frank

     

  • Also, if I set the memory channels for Camera to "Default", the capture speed is up to 9Hz.

    BR,

    frank

     

     

  • Hello Frank,

    All of the patterns will be triggered by the camera, including the inverted ones. When you change the camera frame rate and shutter speed, also adjust the projector timings accordingly (which are in microseconds).

    Also check that the input trigger is turned off on the FlyCapture GUI, that will slow down the speed of the camera.

    Best regards,

    Blair