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.

Noght mode operation of DM365 IPNC Camera

Hi,

I am using DM365 IPNC from appro. I want to implement automatic IR cut filter mechanism in the camera using GPIO mechanism. I need to trigger the GPIO when the ambient light is reduced and the APPRO 2A engine makes the picture black and white (I am using the night mode setting from fine tune page). But Iam not able to understand when the picture goes to black and white. At the same time, i want to remove the IR cut filter from infront of the sensor and turn on the IR lighting (the mechanical for this is ready and i just need to give a gpo trigger). Please explain when and how the video goes to black and white mode.

Also during night mode operation of the camera under IR illumination , I have observed that everything works fine if the ambient light is around 0 lux. But if there is some ambient light present, the picture sometimes goes completely white (seems to be due to over exposure). pls suggest how to solve this also

  • Appro 2A includes adaptive function which changes ISP parameter including reducing color in dark condition. As it is Appro's IP, we don't know how it is controlled (it is in library (not in source code). As far as I understand, there isn't any sudden color removal and it is gradually reduced.

    The question is related to Appro 2A, please contact Appro to get any support.

    As you may know, we also have TI 2A which doesn't change color strength in dark condition. This might be your alternative option. 

     

    regards,

    Sang-Yong

  • Thanks Sang-Yong

    Is there any way to operate the DM365 in black and white mode. We need to operate the camera in Black and white mode during night time. Is there any way to operate the camera in black and white mode by changing the value in any DM365 registers. Please give me some pointers.

  • There are multiple ways to make it.

    One of easiest method is Changing RGB2YUV matrix by making the coefficients related to U and V to zero.

    For lower noise, I also recommend to use default RGB2RGB which has 256 on diagonal and 0 on all others. Depending on 2A algorithm you use, RGB2RGB parameters can be changed automatically (updated by 2A algorithm). So you need to override the change.

     

    Regards,

    Sang-Yong

     

  • Thanks Sang - Yong

    Your reply was very helpful for me

  • Hi Sang-Yong,

    I want to get a black and white image from my Appro IPNC DM365.

    SANG-YONG said:

    One of easiest method is Changing RGB2YUV matrix by making the coefficients related to U and V to zero.

    Where can i find this RGB2YUV matrix in the source code?

    The only references i could find were in the following files, however these I could not get to work by setting U,V=0

    ipnc_app/av_capture/framework/alg/src/alg_aewb_control.c (RGB2RGB)

    ipnc_app/multimedia/avi_save/armffmpeg/libswscale/rgb2rgb_template.c (Y, V, U definitions)

     

    Any pointers will be appreciated.

    Kind Regards

    Manfred

  • Please take a look at 'drv_ipipe.c' in IPNC v2.5.

    You may have to add your own function for programming rgb2yuv.

  • Thanks Gang Hua for the reply. I will be looking into that soon.

    thanks 

    Regards