c# 4.0 - cveCvtColor causing error OpenCV: u->origdata == data -
i doing face detection using emgu cv in c#.net v4.0, below code code detection.
image<bgr, byte> imageframe = new image<bgr, byte>(currentimg); rectangle[] facesdetected; using (umat ugray = new umat()) { cvinvoke.cvtcolor(imageframe, ugray, emgu.cv.cvenum.colorconversion.bgr2gray); cvinvoke.equalizehist(ugray, ugray); facesdetected = evidencelibrary.face.detectmultiscale(ugray, 1.2, 4, new size(20, 20)); } ...
full stack trace is:
29/3/2017 12:04:46.132 pm: opencv: u->origdata == data :cvecvtcolor(0,0) stacktrace:: @ emgu.cv.cvinvoke.cverrorhandler(int32 status, intptr funcname, intptr errmsg, intptr filename, int32 line, intptr userdata) @ emgu.cv.cvinvoke.cvecvtcolor(intptr src, intptr dst, colorconversion code, int32 dstcn) @ emgu.cv.cvinvoke.cvtcolor(iinputarray src, ioutputarray dst, colorconversion code, int32 dstcn) @ evidencerepository.camerapreview.currentimage() inner exception as:
according stacktrace causing issue @ line cvinvoke.cvtcolor(imageframe, ugray, emgu.cv.cvenum.colorconversion.bgr2gray);
. searching cause of long time without success.
interesting exception occurring on 1 machine having windows 10 64 bit os. on other testing machine (same os) working well.
i have checked display drivers , latest version of it.
Comments
Post a Comment