I'm working on image detection on screenshot project and i have tried many ways to make my program find image and i have read many posts on many forums non of them is working.
Now I'm trying to make it with converting bitmap to hash and matching with other image hash and if there will be some similarity i would know is there my image on screenshot or not. However I have problems with converting Bitmap into hash. this is my code:
Bitmap ScreenShot = new Bitmap(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
Graphics g = Graphics.FromImage(ScreenShot);
g.CopyFromScreen(Point.Empty, Point.Empty, Screen.PrimaryScreen.WorkingArea.Size);
pictureBox1.Image = ScreenShot;
pictureBox1.Size = Screen.PrimaryScreen.WorkingArea.Size;
System.Drawing.ImageConverter ic = new System.Drawing.ImageConverter();
byte[] SS = new byte[1];
SS = (byte[])ic.ConvertTo(ScreenShot, SS.GetType());
SHA256Managed hash = new SHA256Managed();
byte[] hash1 = hash.ComputeHash(SS);
textBox1.Text = hash1.ToString();
and this is what textbox shows : System.Byte[]