<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Request for Assistance with Hi-846 Camera Color Correction on NXP imx8mm Yocto System in i.MX Solutions</title>
    <link>https://community.nxp.com/t5/i-MX-Solutions/Request-for-Assistance-with-Hi-846-Camera-Color-Correction-on/m-p/2110598#M621</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237575"&gt;@shixuanlin-ddcx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears since the Hi-846 outputs 10-bit Bayer data and your current pipeline uses a generic bayer2rgb conversion without any calibration,&amp;nbsp;the resulting RGB image often lacks accurate color fidelity.&lt;/P&gt;
&lt;P&gt;You can try using&amp;nbsp;videobalance in your pipeline:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 \
! "video/x-bayer,format=grbg,width=3264,height=2448" \
! bayer2rgb \
! videoconvert \
! videobalance red=1.2 green=1.0 blue=1.6 \
! jpegenc \
! filesink location=/tmp/output_corrected.jpg&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adjust the values as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this can helps to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 17:56:04 GMT</pubDate>
    <dc:creator>Manuel_Salas</dc:creator>
    <dc:date>2025-06-04T17:56:04Z</dc:date>
    <item>
      <title>Request for Assistance with Hi-846 Camera Color Correction on NXP imx8mm Yocto System</title>
      <link>https://community.nxp.com/t5/i-MX-Solutions/Request-for-Assistance-with-Hi-846-Camera-Color-Correction-on/m-p/2107664#M619</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output_gst_ori.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/340601i745BD5605855B717/image-size/medium?v=v2&amp;amp;px=400" role="button" title="output_gst_ori.jpg" alt="output_gst_ori.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Dear NXP Support Team, &lt;/P&gt;&lt;P&gt;I hope this email finds you well. I am reaching out to seek your expertise regarding a color correction issue with the Hi-846 camera on our NXP-based embedded system.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;System Details&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Platform&lt;/STRONG&gt;: NXP (imx8mm)&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;OS&lt;/STRONG&gt;: Yocto-based system&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Kernel&lt;/STRONG&gt;: Linux 5.15&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Camera&lt;/STRONG&gt;: Hi-846&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Issue Description&lt;/STRONG&gt;: We are using the following GStreamer pipeline to capture a single frame from the Hi-846 camera:&lt;/P&gt;&lt;PRE&gt;gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! "video/x-bayer,format=grbg,width=3264,height=2448" ! bayer2rgb ! videoconvert ! jpegenc ! filesink location=/tmp/output_gst_ori.jpg&lt;/PRE&gt;&lt;P&gt;notes：&lt;/P&gt;&lt;PRE&gt;v4l2-ctl --list-formats-ext -d /dev/video0&lt;BR /&gt;ioctl: VIDIOC_ENUM_FMT&lt;BR /&gt;[17066.470076] mx6s_captuere.c: mbus_code 300a&lt;BR /&gt;Type: Video Capture&lt;BR /&gt;&lt;BR /&gt;[0]: 'BA10' (10-bit Bayer GRGR/BGBG)&lt;BR /&gt;Size: Discrete 3264x2448&lt;BR /&gt;Size: Discrete 640x480&lt;BR /&gt;Size: Discrete 1280x720&lt;BR /&gt;Size: Discrete 1632x1224&lt;/PRE&gt;&lt;P&gt;The pipeline successfully captures a photo, but the image exhibits a noticeable greenish tint. The scene includes a white notebook as the background and a red pen as the subject, both of which appear distorted in color. I will attach the captured photo (&lt;SPAN class=""&gt;output_gst_ori.jpg&lt;/SPAN&gt;) to this email for your reference.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request&lt;/STRONG&gt;: Could you please advise if NXP has any recommended solutions or guidelines for color correction with the Hi-846 camera on a Yocto-based system? Specifically, we are looking for:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Driver or firmware configurations to address the greenish tint.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Post-processing techniques (e.g., via GStreamer or other tools) for accurate color reproduction.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Any relevant documentation or sample code for camera calibration.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if you need further details, such as system logs, driver configurations, or additional test results. We greatly appreciate your support and look forward to your guidance.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 05:49:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Solutions/Request-for-Assistance-with-Hi-846-Camera-Color-Correction-on/m-p/2107664#M619</guid>
      <dc:creator>shixuanlin-ddcx</dc:creator>
      <dc:date>2025-05-30T05:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Request for Assistance with Hi-846 Camera Color Correction on NXP imx8mm Yocto System</title>
      <link>https://community.nxp.com/t5/i-MX-Solutions/Request-for-Assistance-with-Hi-846-Camera-Color-Correction-on/m-p/2110598#M621</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/237575"&gt;@shixuanlin-ddcx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It appears since the Hi-846 outputs 10-bit Bayer data and your current pipeline uses a generic bayer2rgb conversion without any calibration,&amp;nbsp;the resulting RGB image often lacks accurate color fidelity.&lt;/P&gt;
&lt;P&gt;You can try using&amp;nbsp;videobalance in your pipeline:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 \
! "video/x-bayer,format=grbg,width=3264,height=2448" \
! bayer2rgb \
! videoconvert \
! videobalance red=1.2 green=1.0 blue=1.6 \
! jpegenc \
! filesink location=/tmp/output_corrected.jpg&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adjust the values as necessary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this can helps to you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 17:56:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Solutions/Request-for-Assistance-with-Hi-846-Camera-Color-Correction-on/m-p/2110598#M621</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2025-06-04T17:56:04Z</dc:date>
    </item>
  </channel>
</rss>

