void NoobaPlugin::onUpdateFrameViewerRequest(const QString &title, const QImage &frame) { // this intermediate map is used to store a copy of the image to pass the image to // GUI thread without loosing the content; _frameViewerDataMap.value(title)->_img = frame.copy(); emit updateFrameViewer(_alias, title, _frameViewerDataMap.value(title)->_img); }
void Faceanomaly1Plugin::inputData(const QStringList& strList, QList<QImage> imageList){ int i; frameNum=strList.at(1); if (!strList.at(0).isEmpty()) i= strList.at(0).split(" ")[0].toInt(); if(!imageList.isEmpty()){ imageList.at(0); updateFrameViewer("Output",imageList.at(0).copy()); } if( i>=threasholdFaceCount){ debugMsg(QString("<FONT COLOR='#ff0000'>%1 faces detected on frame %2 ").arg(threasholdFaceCount).arg(frameNum)); generateAlert("Output","Too many people",nooba::RedAlert); } i=0; }