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.

DLP3000: problem with projector calibration

Part Number: DLP3000

Hi,

Need help with projector calibration part/ When I run DLP_LightCrafter_3D_Scan_Application.exe , executed options 1,3 and 4 successfully. When I run option 5 i.e calibrate system, I don't see any checkerboard been projected by projector. And images which get created i.e. from lcr3000_sequence_images_10.bmp to lcr3000_sequence_images_21.bmp are complete black images. PFA screenshots.

Note: I am not using point grey camera. I am using OpenCV compatible webcam. I can calibrate camera and also I do get camera calibration parameters. thanks in advance

  • My problem is similar to the video in this discussion
    e2e.ti.com/.../627144
    I have tried whatever suggested in that post but didn't resolve my problem. Without projector calibration I can't proceed ahead too. Please help
    Thank You
  • Hello Shravani,

    Sorry you are running into issues. I am curious if you have access to a PointGrey camera or a Windows 7 operating system? Most of the development for this SDK was done using the PointGrey camera and Windows 7. This would be a useful step to see if the issue is related to one of these two items as opposed to something else.

    Thanks,
    Kyle
  • Hi Shravani,

    Hope you are following the instructions provided in this document http://www.ti.com/lit/ug/tidu985a/tidu985a.pdf 

    Also for Webcam type system, please note you need to edit the config.txt in the application, look at page #26, Figure 3-1, camera_type = 0. Also when you run the step #3, camera calibration, you must see window with actual camera live feed appearing, if not then you must look at adjusting the camera settings exposure etc.. so that you can see clear video.

    Regards,

    Sanjeev

  • Hi Kyle,

    Thanks for your reply. Unfortunately I do not have access to point grey camera and I am using Windows 10 operating system

  • Hi Sanjeev,

    Yes, I am following the instructions provided in that document. I am getting the live feed- you can see that in the screenshots I have attached earlier query.I have made those changes you have suggested earlier itself(guide suggests so) else I wouldn't get live feed at all. This is the error message I receive while performing 'calibrate system'.  And the reasons listed here are not a problem because I have checked them and there is no glare , and all other conditions are satisfied... yet I don't understand why I am getting this error message. Also I made sure the feed that appears is almost similar to the pic that is showed in user guide, yet for some reasons it doesn't accept the pic and hence I can't proceed further. Please suggest accordingly

  • Also I don't understand the generation of those 12 black images. Can you describe regarding them?
    Thank You
  • In the live preview window are you not seeing printed checkerboard pattern?
    Regards,
    Sanjeev
  • I can see checkerboard pattern projection but its not been captured and I get that error message.
  • Hi ,
    By changing the position of camera - basically placed it as in the guide i.e vertically above projector, I can now capture the projected checkerboard in system calibration but the hit rate is too low- out of 10 trials 1 or 2 captured successfully. Please can you explain me the importance of those 12 black images.
    Thank You
  • Hi Shravani,

    In your shown picture there is someother unwanted portion of chess board is appearing, make sure this is not there and try again.

    Regards,

    Sanjeev

  • Hi Sanjeev,

    That isn't a problem. I have tried whatever you suggested. But doesn't make a difference in hit rate. 

    I have another doubt - shall I ask in same thread here or make another thread?

    Doubt: The OpenCV camera I am using is compatible with the application and captures required images and gives point cloud as output. But my problem here is, the pics captured are of resolution 640x480, whereas my camera's resolution is 2592x1944 . I have checked all config files available, I couldn't find anywhere the option to modify camera's resolution. Can you guide me on this i.e changing camera's resolution from 640x480 to 2592x1944 or anything else I desire. I even tried to look at the files in source code available. but I got lost. Can you help me on this?

    Thank You

  • Shravani,

    The application through OpenCV setup for default resolution setting which is 640x480. Could you try with another webcamera with smaller HD720p/VGA resolution?

    If you can rebuild the application with debug enabled it can give more information about how the camera is configured and what are its settings as done by OpenCV

    I would still think in a captured frame if there unwanted content that looks like chess board as i marked above could also cause the issue - basically OpenCV findchessboardcorner function is not passing.

    One more thing - write your standalone opencv application and then directly call opencv capture and save image functions see how they are looking. If they are looking dark then we have to fix it.

    Regards,

    Sanjeev

  • Hi Sanjeev,

    Thanks for your help regarding resolution, I could set my camera resolution. But I am still facing problems with projector calibration. 

    Here is the link to video of projector calibration setup in my case. Please suggest accordingly. Thank You

    drive.google.com/.../view

  • Hi Shravani,
    Thanks for the video. That explains the things better.
    I am suspecting the projector exposure time is not correct for the camera to capture the displayed image, suspecting this could be causing the issue, in your downloaded application, i would suggest to start changing the projector exposure time configuration to do this -
    goto "config" directory edit config_projector.txt file.

    Looks like below -

    DLP_PLATFORM_PARAMETERS_SEQUENCE_EXPOSURE_US = 25000
    DLP_PLATFORM_PARAMETERS_SEQUENCE_PERIOD_US = 25000
    LCR3000_PARAMETERS_LED_CURRENT_RED = 200
    LCR3000_PARAMETERS_LED_CURRENT_GREEN = 200
    LCR3000_PARAMETERS_LED_CURRENT_BLUE = 200
    LCR3000_PARAMETERS_INPUT_TRIGGER_TYPE = 2
    LCR3000_PARAMETERS_INPUT_TRIGGER_DELAY = 0
    LCR3000_PARAMETERS_OUTPUT_TRIGGER_ENABLE = 1
    LCR3000_PARAMETERS_OUTPUT_TRIGGER_POLARITY = POSITIVE
    LCR3000_PARAMETERS_OUTPUT_TRIGGER_PULSE_WIDTH_US = 250
    LCR3000_PARAMETERS_OUTPUT_TRIGGER_DELAY_US = 0
    LCR3000_PARAMETERS_PATTERN_LED_SELECT = GREEN


    Adjust these parameters -
    DLP_PLATFORM_PARAMETERS_SEQUENCE_EXPOSURE_US = 25000
    DLP_PLATFORM_PARAMETERS_SEQUENCE_PERIOD_US = 25000

    These values are in us, so set to something like 100ms i.e., set value to 100000 or 50000 (50ms)

    See if it make difference.

    Similarly, if the captured image is too saturated then you can increase or reduce the current. Scale 0-255

    LCR3000_PARAMETERS_LED_CURRENT_RED = 200
    LCR3000_PARAMETERS_LED_CURRENT_GREEN = 200
    LCR3000_PARAMETERS_LED_CURRENT_BLUE = 200

    Note whenever you edit the config parameters, recommend to restart the calibration from beginning.

    Regards,
    Sanjeev
  • Shravani,
    We haven't heard from you whether the above suggestion helped to narrow down the issue. Let us know.
    Regards,
    Sanjeev
  • Hi Sanjeev,

    Extremely sorry, couldn't update. Your suggestion didn't help me. But I could solve the problem by debugging the available source code. The following function 

    projector_calib.RemovePrinted_AddProjectedBoard(camera_printed_board,projector_black,projector_camera_combo,&projector_pattern,&success);

    I saved the images that are input to above function. Realized they weren't proper - maybe due to some delay with webcam while using it at 1280x720 resolution. Added delay and made sure that appropriate images are captured i.e white projection. no projection and combo projection images. And also verified, by saving the output image, which removes the projected from combo for further projector calibration. Whenever opencv's findchessboardcorners function doesn't find corners, it gives error. This implies now the code is fine , I just need to make sure to capture well focused images so that it can find corners.

    So far this is what I have debugged. Since there is no trigger_in  and webcam's default resolution is 640x480, I am facing problem and adding some delay with trial &error , could just make it work.

    Conclusion: Change Camera (as it is a fixed focus webcam with default resolution 640x480).  When new camera arrives, I shall try and let you know. 

    Thank You

  • Hi Shravani,
    Sure. No issues. The code we developed was experimented with few sample webcams, certainly the delay in reading images can have issues in capturing the image.
    Thank you for letting us know.
    I will close this ticket.
    Regards,
    Sanjeev
  • I am also facing this type of issue but I get useful ideas from errorcode0x.com/.../. Hope you will also get useful ideas here.
  • Allen,
    Thank you sharing the link, if you could point link specific to the discussion in this thread it will be helpful.
    Regards,
    Sanjeev
  • Kyle,

    I was wondering if I could get help in buying camera. As per BOM for TIDA00361, FL3‐U3‐13Y3M is the part name. is the link to the part number mentioned. But nothing has been mentioned about lens' specifications been used. I would like to know the specs of lens been used by TI.

    Thank You

  • Hi Shravani,
    We have used computar.com/.../M1614-MP2 to create demo.
    Regards,
    Sanjeev
  • Thank you, Sanjeev