最近踩了个坑,usb摄像头在ubuntu上使用会有警告信息打印,并且比较卡顿:
1.问题:
Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
2.问题:
Corrupt JPEG data: premature end of data segment

  1. 解决办法:
    这个直接屏蔽掉opecv中的信息,重新编译即可。
    /3dparty/libjpeg/jdmarker.c:

if (cinfo->marker->discarded_bytes != 0) {
// WARNMS2(cinfo, JWRN_EXTRANEOUS_DATA, cinfo->marker->discarded_bytes, c);
cinfo->marker->discarded_bytes = 0;
}
2. 解决办法:

ubuntu 下使用USB摄像头出现卡段现象

相关文章:

  • 2021-11-28
  • 2021-06-19
  • 2022-01-01
  • 2021-08-13
  • 2023-01-12
猜你喜欢
  • 2021-08-12
  • 2022-02-09
  • 2021-08-02
  • 2022-01-01
  • 2021-08-06
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案