Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Posted

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 :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...