使用QT5在arm上做攝像頭采集,為什么label上什么也不顯示呢?程式是從網上找的。請大神們幫忙看一看。void ProcessImage::paintEvent(QPaintEvent * event ) { rs = vd->get_frame((void **)&p,&len); convert_yuv_to_rgb_buffer(p,pp,320,240/*QWidget::width(),QWidget::height()*/); frame->loadFromData((uchar *)pp,/*len*/320* 240 * 3 * sizeof(char)); this->setAttribute(Qt::WA_PaintOutsidePaintEvent); label->setPixmap(QPixmap::fromImage(*frame,Qt::AutoColor)); rs = vd->unget_frame(); }
uj5u.com熱心網友回復:
好像并沒有打開攝像頭的操作。轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/262646.html
標籤:其他技術討論專區
上一篇:爬蟲開發
下一篇:GDG第一帖
