gicio Posted August 4, 2005 Posted August 4, 2005 Hi! I am looking for something like image recognition in .NET. Short story what will I do: Imagine I have a jpeg picture with a man on it. The background is much brighter as the man on it. Imagine it so: You have a white paper and a black figure on it. I will automatically add 10 textboxes on the picture. But the 10 textboxes can not be positioned on any part of the figure. I need a framework or a sample code to recognize the image and set automatically the 10 textboxes of any position on the picture where the background is white. do you know any sample code or a open source framework that provide me this possibility? Regards, gicio Quote
*Experts* DiverDan Posted August 5, 2005 *Experts* Posted August 5, 2005 I think you need to loop through and examine the picture's pixels for color intensity Dim bmp As New Bitmap(myPortrait.bmp) Dim x, y As Integer For y = 0 To bmp.Height - 1 For x = 0 To bmp.Width - 1 If Not bmp.GetPixel(x, y).ToArgb = 0 Then '0 being a transparent pixel If bmp.GetPixel(x, y).B > 10 Then 'this finds the black color intensity and might be what will work 'x and y are the pixel coordinates within the bmp picture End If End If Next Next Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
trend Posted August 7, 2005 Posted August 7, 2005 You could always use: the Open Computer Vision Library (OpenCV) which was formally an intel project but is now open source. It isn't .net but it is pretty nice from what I hear from the robotics society :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.