Very dark image

  • Thank you for your exploration of luckfox-pico usage.

    Just as you speculated,the issue you encountered with dark image capture in the example code seems to stem from the loading of the ISP algorithm on the VI pipe, rather than being an encoding problem.

    While it's possible to set venc to receive single images in the example code, VI captures images in a stream format independently of venc.
    simple_dark.jpg
    Therefore, when loading the ISP algorithm, it doesn't process individual frames but rather the entire stream. The ISP algorithm documentation (unfortunately, only available in Chinese) indicates that after 3A statistics and 3A calculations, exposure parameters are updated to the sensor driver. Consequently, the exposure parameters for the first few frames captured by VI are not properly set, resulting in darker images.
    simple_dark02.jpg
    The solution is to introduce a delay or manually skip the initial frames.
    simple_dark03.jpg

    Code: Select all

    sleep(1);
    
    or

    Code: Select all

        for(int i = 0 ;i < 6;i++)
        {
            retval = RK_MPI_VI_GetChnFrame( vi_pipe, vi_chn, &frame , 1000 );
            if( retval != RK_SUCCESS ) std::cerr << "MPI vi GetChnFrame failed" << retval << '\n';
            RK_MPI_VI_ReleaseChnFrame( vi_pipe, vi_chn, &frame );
        }
    
    I hope this can answer your doubts.

    Furthermore, if you need attachments, you can try compressing them into a .zip or .7z file and then upload them.
    Attachments
    Downloaded 186 times
  • Thank you sir, this was most helpful.