Fix File Format

This commit is contained in:
2020-01-19 14:13:43 -08:00
parent d1188afc47
commit bcaa8e5b2e

View File

@@ -80,7 +80,7 @@ void ImageManager::ProcessImage(int width, int height, uint8_t *imgPointer)
drawContours(viewfinder, contours, i, Scalar(ZERO, BITS8, ZERO), 2);
std::vector<uchar> imageBuffer;
imencode("pgm", frame, imageBuffer);
imencode(".pgm", frame, imageBuffer);
QByteArray* imageBytes = new QByteArray(reinterpret_cast<const char*>(imageBuffer.data()), imageBuffer.size());
((FaultFinder*)(parent()))->fault_mgr->SaveImage(imageBytes);