Replies: 11 comments
-
视频源是 YUV420P 格式,意味着 U、V 分辨率要比 Y 小。此时不可能组成一个 ndarray。 |
Beta Was this translation helpful? Give feedback.
-
视频源是YUV420P格式,那如果我直接用444的方式对它进行输出,生成的YUV能组成一个ndarray吗? |
Beta Was this translation helpful? Give feedback.
-
如果是444,意味着分辨率相同,可以组成一个ndarray。但前提是你要得到444。你需要升采样UV或降采样Y。 |
Beta Was this translation helpful? Give feedback.
-
色彩通道可能错了。例如 RGB 存成了 BGR。 |
Beta Was this translation helpful? Give feedback.
-
您好,我尝试着修改过了,可是颜色还是不对,请问还有别的原因会导致这个问题吗? |
Beta Was this translation helpful? Give feedback.
-
可以看一下完整代码吗?从YUV到RGB的 |
Beta Was this translation helpful? Give feedback.
-
这部分并没有代码。我是将444格式的YUV分量直接cat成3通道的ndarray作为网络输入的。后面我察觉到可能是没转成RGB的问题。 |
Beta Was this translation helpful? Give feedback.
-
可以试试。效果都差不多。建议参考:https://en.wikipedia.org/wiki/YUV |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions