for(auto p : platforms)
{
- DebugOut(1)<<"platform: "<<p->platformName<<" vendor: "<<p->platformVendor<<endl;
+ DebugOut(0)<<"platform: "<<p->platformName<<" vendor: "<<p->platformVendor<<endl;
}
cv::ocl::DevicesInfo info;
cv::ocl::getOpenCLDevices(info, cv::ocl::CVCL_DEVICE_TYPE_ALL);
- DebugOut(1)<<"There are "<<info.size()<<" OpenCL devices on this system"<<endl;
+ DebugOut(0)<<"There are "<<info.size()<<" OpenCL devices on this system"<<endl;
if(!info.size())
{
cv::Scalar stdDev;
cv::ocl::oclMat src(qImg), gray;
cv::ocl::cvtColor(src, gray, CV_BGR2GRAY);
- cv::ocl::meanStdDev(src, avgPixelIntensity, stdDev);
+ cv::ocl::meanStdDev(gray, avgPixelIntensity, stdDev);
#endif
}
else if(shared->useCuda)
}
driverDrowsiness->setValue(true);
+ routingEngine->updateProperty(driverDrowsiness.get(), this->uuid());
}
else
{
+ DebugOut() << "No eyes!!!" << endl;
driverDrowsiness->setValue(false);
+ routingEngine->updateProperty(driverDrowsiness.get(), this->uuid());
}
}
- routingEngine->updateProperty(driverDrowsiness.get(), this->uuid());
+
}