EmguCV IImage ile EmguCV yapısını çevirmenin bir yolu var mı?Yapıya IImage Dönüştürme
Image<Bgr, Byte> Frame; // current frame from camera
Image<Bgr, Byte> Previous_Frame; // previous frame aquired
Image<Bgr, Byte> Difference; // difference between the two frames
double ContourThresh = 0.003; //stores alpha for thread access
int Threshold = 60; //stores threshold for thread access
private void ProcessFrame(object sender, EventArgs arg)
{
if (Frame == null)
{
Frame = imageBox1.Image; //error
Previous_Frame = imageBox2.Image; //error
}
else
{
Frame = imageBox1.Image;//error
Previous_Frame = imageBox2.Image;//error
Difference = Previous_Frame.AbsDiff(Frame);
Difference = Difference.ThresholdBinary(new Bgr(Threshold, Threshold, Threshold), new Bgr(255, 255, 255)); //if value > 60 set to 255, 0 otherwise
Previous_Frame = imageBox2.Image;
}
}
alıyorum:
Hata 14 dolaylı
Emgu.CV.Image<Emgu.CV.Structure.Bgr,byte>
türünüEmgu.CV.IImage
dönüştürülemez. Açık dönüştürme (bir döküm eksik?) Varlığından d: \ ece tasarım projesi \ aslt yazılım \ aslt yazılım \ seatplan.cs 917 25 ASLT Yazılım
iki resim kutuları arasındaki farkı almaya çalışıyorum, imageBox1
ve imageBox2
. * imageBox2
ms access veritabanına kaydedilir imageBox1 bir görüntü ise
imageBox1
Ne yapmaya çalışıyorum olduğunu .. kamera tarafından çekilen resimden bir işlenmiş görüntü Imagebox1 ile eşleşen veritabanında bir görüntü bulmak için .. burada ne yapıyorum ya da siz absdiff kullanmaktan daha iyi bir seçeneğiniz var mı? Bazı makalelerde gezindikten sonra kendi sorumu yanıtlamayı kendim buldum.
i anlık efendim yoluyla derleyici hatası eklendi i hata için yanlış ... –
bitti efendim., Teşekkürler, ve üzgün üzgün yaptıysanız . :) –
Düzenlemeler için teşekkürler., Birisi size yardımcı olabilir –