<?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>i.MX Processors中的主题 Re: Brightness control from UVC endpoint</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1786347#M218535</link>
    <description>&lt;P&gt;Ok, I have found the function in usb_device_video.c.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;USB_DeviceVideoVcProcessingUnitRequest&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the openCV command below does not trigger the function. Does openCV need UVC version 1.5 in order to work? What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;exposure = cap.set(cv2.CAP_PROP_BRIGHTNESS, 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 19:33:56 GMT</pubDate>
    <dc:creator>Bariel76</dc:creator>
    <dc:date>2024-01-10T19:33:56Z</dc:date>
    <item>
      <title>Brightness control from UVC endpoint</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1786237#M218529</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;It is my first time with a UVC endpoint. I read a lot on the protocol in the last days. But I still have problem using the options of the processing unit descriptors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is a little context:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I merged the&amp;nbsp;"evkmimxrt1060_dev_video_virtual_camera_bm" demo project with the "evkmimxrt1060_csi_raw8" project.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to get a video feed in RGB565 format from the MT9M114 camera. I use opencv2 in python to get the feed.&lt;/P&gt;&lt;P&gt;I am using the UVC class version 1.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the problem:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I set the processing descriptors to unable the brightness control&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    /* Processing Unit Descriptor start*/
    USB_VIDEO_VIRTUAL_CAMERA_VC_PROCESSING_UNIT_LENGTH, /* Size of this descriptor, 10+n */
    USB_DESCRIPTOR_TYPE_VIDEO_CS_INTERFACE,             /* CS_INTERFACE, descriptor type */
    USB_DESCRIPTOR_SUBTYPE_VIDEO_VC_PROCESSING_UNIT,    /* VC_PROCESSING_UNIT, descriptor subtype */
    USB_VIDEO_VIRTUAL_CAMERA_VC_PROCESSING_UNIT_ID,     /* A non-zero constant that uniquely identifies the
                                                           Terminal within the video function. This value is
                                                           used in all requests to address this Terminal. */
    USB_VIDEO_VIRTUAL_CAMERA_VC_INPUT_TERMINAL_ID,      /* ID of the Unit or Terminal to which this Terminal is
                                                           connected */
    0x00U, 0x00U, /* This field indicates the maximum digital magnification, multiplied by 100U */
    0x02U,        /* Size of the bmControls field, in bytes: n */
    0x00U, 0x01U, /* Brigthness control */

    0x00U, /* A bitmap of all analog video standards supported by the Processing Unit */&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;However, when I send the following, there is not breakpoint I can place anywhere that will get triggered.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cap = cv2.VideoCapture(&lt;SPAN&gt;1&lt;/SPAN&gt;)&lt;BR /&gt;exposure = cap.set(cv2.CAP_PROP_BRIGHTNESS, &lt;SPAN&gt;0.1&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any ideas on how to make this work?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 17:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1786237#M218529</guid>
      <dc:creator>Bariel76</dc:creator>
      <dc:date>2024-01-10T17:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Brightness control from UVC endpoint</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1786347#M218535</link>
      <description>&lt;P&gt;Ok, I have found the function in usb_device_video.c.&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;USB_DeviceVideoVcProcessingUnitRequest&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the openCV command below does not trigger the function. Does openCV need UVC version 1.5 in order to work? What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;exposure = cap.set(cv2.CAP_PROP_BRIGHTNESS, 1)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 19:33:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1786347#M218535</guid>
      <dc:creator>Bariel76</dc:creator>
      <dc:date>2024-01-10T19:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Brightness control from UVC endpoint</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1788939#M218724</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP support.&lt;/P&gt;
&lt;P&gt;We have the following &lt;A title="application note" href="https://www.nxp.com/docs/en/application-note/AN12103.pdf" target="_blank" rel="noopener"&gt;application note&lt;/A&gt; that explain how to implement and use an UVC device on the RT. I think this could be helpful as a guide for your project.&lt;/P&gt;
&lt;P&gt;Please let me know if there is anything else where I can help you.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 18:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Brightness-control-from-UVC-endpoint/m-p/1788939#M218724</guid>
      <dc:creator>nxf77486</dc:creator>
      <dc:date>2024-01-15T18:55:43Z</dc:date>
    </item>
  </channel>
</rss>

