{"id":11872,"date":"2023-07-11T11:25:28","date_gmt":"2023-07-11T11:25:28","guid":{"rendered":"https:\/\/dgzx.hk?p=11872"},"modified":"2023-07-11T11:25:28","modified_gmt":"2023-07-11T11:25:28","slug":"what-is-the-ov7620-output-format-yuv422","status":"publish","type":"post","link":"https:\/\/dgzx.hk\/pt\/what-is-the-ov7620-output-format-yuv422\/","title":{"rendered":"What is the OV7620 output format YUV422?"},"content":{"rendered":"<p style=\"text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\" style=\"color: #2A2B2E; font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line;\">The output format of the camera has RGB565, YUY422 and other formats, and the output format of the first camera OV7620 that I came into contact with is YUV422.<\/span><span class=\"transSent\" style=\"color: #2A2B2E; font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line;\"> Let&#39;s introduce YUV422 to you.<\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\">The human eye is more sensitive to low frequency signals than high frequency signals. In fact, the human eye is more sensitive to changes in brightness than to changes in color.<\/span><span class=\"transSent\"> Therefore, people change the RGB three-color signal to YUV to represent, where Y is gray scale and UV is color difference.<\/span><span class=\"transSent\"> If it is to represent a color image, the same reason, YUV444 is a lossless storage method, but it requires 3 bytes, and the storage space is very expensive.<\/span><span class=\"transSent\"> Since the Y component is much more important than the UV component, it is represented by YUV422.<\/span><span class=\"transSent\"> In this way, the image is much compressed, and one byte can represent its color information.<\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\"><\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\">For OV7620, it has two sets of parallel data ports Y [7..0] and UV [7..0], where for data port Y [7..0], the output is gray value Y, and for UV [7..0], the output chrominance signal UV.<\/span><span class=\"transSent\"> The following figure shows the format of the k pixel (K byte) output.<\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\">OV762 is controlled using the SerialCameraControlBus (SCCB) protocol.<\/span><span class=\"transSent\"> SCCB&#39;s simplified I2C protocol, SIO-I is a serial clock input line, SIO-O is a serial bidirectional data line, respectively equivalent to the SCL and SDA of the I2C protocol.<\/span><span class=\"transSent\"> The bus timing of SCCB is basically the same as that of I2C, and its response signal ACK is generated by the 9th bit of a transmission unit of Chen Wei, respectively Donotcare and NA.Donotcare bits are generated by the slave.<\/span><span class=\"transSent\"> The NA bit is generated by the host. Since SCCB does not support multi-byte read and write, the NA bit must be high.<\/span><span class=\"transSent\"> In addition, SCCB has no concept of repeated start, so during the SCCB read cycle, when the host sends a read command, the slave will not generate a Donotcare response signal.<\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent\"><\/span><\/p>\n<p style=\"margin-bottom: 0px; padding: 0px; color: rgb(42, 43, 46); font-family: &quot;PingFang SC&quot;, &quot;Segoe UI&quot;, Arial, &quot;Microsoft YaHei&quot;, \u5fae\u8f6f\u96c5\u9ed1, \u5b8b\u4f53, &quot;Malgun Gothic&quot;, sans-serif; white-space: pre-line; text-indent: 2em; line-height: 1.5em;\"><span class=\"transSent highlight\" style=\"background-color: rgba(255, 228, 181, 0.7);\">Due to some subtle differences between I2C and SCCB, GPIO is used to simulate the SCCB bus, and the connected pin of SCL is always set to the output mode, while the connected pin of SDA dynamically changes the input\/output mode of the pin by setting the value of IODIR during data transmission.<\/span><span class=\"transSent\"> The write cycle of SCCB directly uses the write cycle timing of I2C bus protocol.<\/span><span class=\"transSent\"> The SC-CB read cycle adds a bus stop condition.<\/span><\/p>\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>The output format of the camera has RGB565, YUY422 and other formats, and the output format of the first camera OV7620 that I came into contact with is YUV422. Let&#39;s introduce YUV422 to you. The human eye is more sensitive to low frequency signals than high frequency signals. In fact, the human eye is more sensitive to changes in brightness than to changes in color. Therefore, people change the RGB three-color signal to YUV to represent, where Y is gray scale and UV is color difference. If it is to represent a color image, the same reason, YUV444 is a lossless storage method, but it requires 3 bytes, and the storage space is very expensive. Since the Y component is much more important than the UV component, it is represented by YUV422. In this way, the image is much compressed, and one byte can represent its color information. For OV7620, it has two sets of parallel data ports Y [7..0] and UV [7..0], where for data port Y [7..0], the output is gray value Y, and for UV [7..0], the output chrominance signal UV. The following figure shows the format of the k pixel (K byte) output. OV762 is controlled using the SerialCameraControlBus (SCCB) protocol. SCCB&#39;s simplified I2C protocol, SIO-I is a serial clock input line, SIO-O is a serial bidirectional data line, respectively equivalent to the SCL and SDA of the I2C protocol. The bus timing of SCCB is basically the same as that of I2C, and its response signal ACK is generated by the 9th bit of a transmission unit of Chen Wei, respectively Donotcare and NA.Donotcare bits are generated by the slave. The NA bit is generated by the host. Since SCCB does not support multi-byte read and write, the NA bit must be high. In addition, SCCB has no concept of repeated start, so during the SCCB read cycle, when the host sends a read command, the slave will not generate a Donotcare response signal. Due to some subtle differences between I2C and SCCB, GPIO is used to simulate the SCCB bus, and the connected pin of SCL is always set to the output mode, while the connected pin of SDA dynamically changes the input\/output mode of the pin by setting the value of IODIR during data transmission. The write cycle of SCCB directly uses the write cycle timing of I2C bus protocol. The SC-CB read cycle adds a bus stop condition.<\/p>","protected":false},"author":5,"featured_media":9741,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","footnotes":""},"categories":[381],"tags":[394],"class_list":["post-11872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge","tag-ov7620"],"_links":{"self":[{"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/posts\/11872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/comments?post=11872"}],"version-history":[{"count":0,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/posts\/11872\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/media\/9741"}],"wp:attachment":[{"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/media?parent=11872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/categories?post=11872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dgzx.hk\/pt\/wp-json\/wp\/v2\/tags?post=11872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}