Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to develop a software for recognizing a soft drink bottle in an image.
I am using visual studio 2010. I am confused whether I should use open CV or Aforge for processing images.. with Aforge i am facing some memory related issues.

and I also want to store intermediate processes images for templates in sql server how can i do that.How can I store "temp" or "i2" in sql server database
AForge.Imaging.Filters.FiltersSequence filter2 = new AForge.Imaging.Filters.FiltersSequence();

C#
// add filters to the sequence
filter2.Add(new AForge.Imaging.Filters.Grayscale(0.300, 0.580, 0.2));
filter2.Add(new AForge.Imaging.Filters.OtsuThreshold());

// apply the filter sequence
UnmanagedImage iu = new UnmanagedImage(idata);

UnmanagedImage temp = filter2.Apply(iu);
System.Drawing.Image i2 = temp.ToManagedImage();

// show image
pictureBox1.Image = i2;
pictureBox1.Size = i2.Size;
iu.Dispose();
Posted
Updated 27-Apr-13 0:05am
v2
Comments
[no name] 27-Apr-13 6:31am    
"How can I store "temp" or "i2" in sql server database", you write some code that is how. What have you tried? Searching google for "save image in sql server" only returns 3,460,000 results so we know you did not try searching for an answer first.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900