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.

  • TI Thinks Resolved

DLP4500: Getting a PG_FLYCAP_C_SET_FORMAT_7_FAILED Error when using Point Grey Camera and DLP4500.

Prodigy 235 points

Replies: 24

Views: 2698

Part Number: DLP4500

Hello,

I am using the DLP4500 for 3D Pointcloud generation. My setup also includes a BFLY-PGE-13E4C/M-CS Point Grey BlackFly camera (Global Shutter). I have made the connections according to the manual. The connections between the camera and the DLP4500 are as follows:

DLP4500 - J11                   ||           PointGrey  BlackFly Camera (6-pin GPIO connector)

Pin 2                                  -->                          Pin 3 (Red Wire)

Pin 3                                 -->                            Pin 5 (Blue Wire)

The GPIO connecter labelling for the camera mentined above was referenced from here : https://www.ptgrey.com/support/downloads/10202

I have followed all the steps for installing and running the DLP_LightCrafter_4500_3D_Scan_Application. On startup however I get the ERROR: PG_FLYCAP_C_SET_FORMAT_7_FAILED message. The full output on startup is as follows:

 Connecting to projector...
Configuring projector...
Connecting to camera...
Configuring camera...
Camera setup FAILED!
ERRORS: 2 and WARNINGS: 0
ERROR: PG_FLYCAP_C_SET_FORMAT_7_FAILED
ERROR: CAMERA_NOT_SETUP

Step 2: Prepare DLP LightCrafter 4500 (once per projector) also runs perfectly but in the camera calibration step (Step 4) I get the following errors:

Loading camera calibration settings...
Setting up camera calibration
Camera calibration setup FAILED:
ERRORS: 4 and WARNINGS: 0
ERROR: CALIBRATION_PARAMETERS_MODEL_SIZE_MISSING
ERROR: CALIBRATION_PARAMETERS_MODEL_SIZE_MISSING
ERROR: CALIBRATION_PARAMETERS_IMAGE_SIZE_MISSING
ERROR: CALIBRATION_PARAMETERS_IMAGE_SIZE_MISSING

I have checked my camera in the FlyCap software and I'm able to get live video and capture images from it perfectly. I would appreciate any help on this problem. Thank you.

  • Hi Sidharth,
    Welcome to DLP forum and thank you for your interest in DLP technology.
    We will review it and get back to you.

    regards,
    Vivek
  • In reply to Vivek Thakur:

    Hi Sidharth,

    The SDK was written with Point Grey Flea3 camera, please note that for "Point Grey BlackFly camera" the format-7 settings needs to be changed, this is discussed here

    e2e.ti.com/.../719113

    Basically you will have to look at why the camera functions failing, it may either, camera trigger settings or the resolution, which you are feeding may be incorrect.

    In the SDK you will find config_camera.txt file with these settings for PointGrey camera

    These may need to adjusted for your specific model, also look at the resolution, in recommend reading the PointGrey documentation for your model and understand more the Format-7 settings for the mode.


    ####################
    ##PointGrey Camera #
    ####################
    PG_FLYCAP_PARAMETERS_GAIN_DB = 18
    # For below parameter set
    # Rolling shutter color Camera - MONO8
    # Global shutter Monochrome camera - RAW8
    PG_FLYCAP_PARAMETERS_PIXEL_FORMAT = RAW8
    PG_FLYCAP_PARAMETERS_SHUTTER_EXPOSURE_MS = 33
    PG_FLYCAP_PARAMETERS_FRAME_RATE_HZ = 30
    PG_FLYCAP_PARAMETERS_STROBE_SOURCE = 2
    PG_FLYCAP_PARAMETERS_STROBE_ENABLE = 1
    PG_FLYCAP_PARAMETERS_STROBE_POLARITY = 1
    # For below parameter
    # Rolling shutter color camera - 5.0
    # Glocal shutter Monochrome camera - 0.0
    PG_FLYCAP_PARAMETERS_STROBE_DELAY = 0.0
    PG_FLYCAP_PARAMETERS_STROBE_DURATION = 1.0
    PG_FLYCAP_PARAMETERS_AUTOEXPOSURE = 0
    PG_FLYCAP_PARAMETERS_EXPOSURE = 1.0

    If a post answers your question, please click on "Verify Answer" button

  • In reply to Sanjeev:

    Hi Sanjeev,

    In the link to the other question that you provided, where is the file pg_flycap2_c.cpp located? I have searched through the FlyCap2 install files and also the TI-DLP Application files but there is no such file. Also, my camera_config.txt file is identical to the one you provided in the answer. Could you please help me as to where I could locate the pg_flycap2_c.cpp file ?
  • In reply to Sanjeev:

    Ok, I downloaded the SDK from the link in the other answer and found the pg_flycap2_c.cpp file. However, the manual only mentions downloading and using TIDA-00254_3D_Scanner_LCr4500-2.0 software and no mention of the SDK in the link. Could you please explain what the SDK would be used for ? How was the TIDA-00254_3D_Scanner_LCr4500-2.0 application running without the pg_flycap2_c.cpp file and the SDK?
  • In reply to Sidharth Makhija:

    Hi Sidharth,

    Okay there are two things -

    TIDA-00254_3D_Scanner_LCr4500-2.0 application is pre-built binary that is built using DLP 3D SDK you use it for out-of-box demo using specific model of PointGrey camera or a general web-cam.

    Since you talked about making it work with another model of camera which is not supported in the DLP 3D SDK first thing you need to add support for it and make it work, and then rebuild the application with updated SDK.

    I hope this helps.

    Regards,
    Sanjeev

    If a post answers your question, please click on "Verify Answer" button

  • In reply to Sanjeev:

    Sanjeev
    Hi Sidharth,

    Okay there are two things -

    TIDA-00254_3D_Scanner_LCr4500-2.0 application is pre-built binary that is built using DLP 3D SDK you use it for out-of-box demo using specific model of PointGrey camera or a general web-cam.

    Since you talked about making it work with another model of camera which is not supported in the DLP 3D SDK first thing you need to add support for it and make it work, and then rebuild the application with updated SDK.

    I hope this helps.

    Regards,
    Sanjeev

    Hi Sanjeev,

    When you mention adding support for the camera, you mean altering the Format 7? Is there any resource I could refer to where another camera support is added to the SDK. Right now I am following the steps from the follwoing manual: http://www.ti.com/lit/ug/dlpu019a/dlpu019a.pdf

    Would modifying the cpp file in the SDK folder affect how the DLP_LightCrafter_4500_3D_Scan_Application behaves? I'm not very clear on how that part. Could you please explain abit more on that? Thank you.
    Also, I have also contacted the PointGrey and they have mentioned that there is no significant difference between the Flea3 and BlackFly which I am using in the case of Format 7.

  • In reply to Sidharth Makhija:

    Hi Sidharth,

    >>When you mention adding support for the camera, you mean altering the Format 7?
    Our SDK makes specific Format-7 settings for the Pointe Grey camera, now as you can see from the application output, the Format-7 setting applied is not working. You need to investigate why the Format-7 settings is failing?

    Camera setup FAILED!
    ERRORS: 2 and WARNINGS: 0
    ERROR: PG_FLYCAP_C_SET_FORMAT_7_FAILED
    ERROR: CAMERA_NOT_SETUP


    One this is have a look at the Chapter 4: Troubleshooting guidelines www.ti.com/.../dlpu019a.pdf


    >>Would modifying the cpp file in the SDK folder affect how the DLP_LightCrafter_4500_3D_Scan_Application behaves? I'm not very clear on how that part. Could you please explain abit more on that? Thank you.

    I don't think so, the behavior remains same.



    >> Also, I have also contacted the PointGrey and they have mentioned that there is no significant difference between the Flea3 and BlackFly which I am using in the case of Format 7.
    I would recommend you to setup development environment i.e., start compiling the SDK and the application; this will be much easier for you, while debugging the code you need to investigate why fc2ValidateFormat7Settings() function is failing in pg_flycap2_c.cpp file.
    Also you first use the PointGrey FlyCapture2 Viewer tool then experiment setting Format-7 to the camera verify its working.

    Regards,
    Sanjeev

    If a post answers your question, please click on "Verify Answer" button

  • In reply to Sanjeev:

    "I would recommend you to setup development environment i.e., start compiling the SDK and the application; this will be much easier for you, while debugging the code you need to investigate why fc2ValidateFormat7Settings() function is failing in pg_flycap2_c.cpp file.
    Also you first use the PointGrey FlyCapture2 Viewer tool then experiment setting Format-7 to the camera verify its working."

    Could you please help me in th esteps to compile the SDK after making changes to the cpp file? I referred to this thread: e2e.ti.com/.../383897

    Is it still the case that DLP_LightCrafter_4500_3D_Scan_Application only supports the Flea camera as mentioned in that thread? Could you point to what changes I would need to make for adding support for the BlackFly camera ?

    I have spoken to the PointGrey support and they informed me that the registers for setting up the Format 7 for the BlackFly and the flea are the same. So could you point out what settings might need changing for getting support for the BlackFly? And could you guide me through the steps for compiling the SDK ? Thank you for your help on this.

    Best regrads,
    Sidharth Makhija
  • In reply to Sidharth Makhija:

    Hi Sidharth,

    For BlackFly as i mentioned in my previous post, you must experiment with their FlyCap GUI tool and then configure and experiment setting it in Format 7 mode, this step/exercise is nothing to do with DLP. Only after you are successful in configuring in Format 7 mode on BlackFly you can go back to DLP SDK.

    >>
    Is it still the case that DLP_LightCrafter_4500_3D_Scan_Application only supports the Flea camera as mentioned in that thread? Could you point to what changes I would need to make for adding support for the BlackFly camera ?

    Yes, if you are using specific model as described in the TI design, you should be use the demo application as it is.

    For BlackFly model, i agree that there won't be many changes, you need to find the correct setting for the Format 7 mode. I recommend you read the BlackFly model Format 7 setup instructions in the PointGrey document. Once you confirm its working, i can help you with the what needs to be changes in the DLP SDK.

    Also i suggest that while discussing with PointGrey folks make sure you provide which version of the PointGrey out user document referring.

    Regards,
    Sanjeev

    If a post answers your question, please click on "Verify Answer" button

  • In reply to Sanjeev:

    Hi Sidharth,

    Let me know you are able to make progress and where you are stuck.

    Were you able to setup Format 7 mode on BlackFly camera model with Pointgrey libraries and GUI software? This part is nothing to do with the TI DLP SDK. If it worked please attache the PointGrey GUI snap-shot settings with this thread.

    Regards,

    Sanjeev

    If a post answers your question, please click on "Verify Answer" button

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.