ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Image type in asp.net<p>Could you please explain what you want to do?</p>http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/Mon, 18 Jun 2012 23:38:40 GMTImage type in asp.net<p>This is a function written in c#. I want to write it in asp.net. can u please help me to convert this code...</p> <p>this is a function which is used to draw rectangle arround face and eyes... I used opencv library in this project...</p> <pre class="brush: csharp"> internal static Image&lt;Bgr,Byte&gt; Run(Image&lt;Bgr,Byte&gt; image) { // throw new NotImplementedException(); Image&lt;Gray, Byte&gt; gray = image.Convert&lt;Gray, Byte&gt;(); //Convert it to Grayscale //normalizes brightness and increases contrast of the image gray._EqualizeHist(); //Read the HaarCascade objects HaarCascade face = new HaarCascade(&#34;haarcascade_frontalface_alt_tree.xml&#34;); HaarCascade eye = new HaarCascade(&#34;haarcascade_eye.xml&#34;); //Detect the faces from the gray scale image and store the locations as rectangle //The first dimensional is the channel //The second dimension is the index of the rectangle in the specific channel MCvAvgComp[][] facesDetected = gray.DetectHaarCascade(face,1.1, 10, Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING, new Size(20, 20)); foreach (MCvAvgComp f in facesDetected[0]) { //draw the face detected in the 0th (gray) channel with blue color image.Draw(f.rect, new Bgr(Color.Blue), 2); //Set the region of interest on the faces gray.ROI = f.rect; MCvAvgComp[][] eyesDetected = gray.DetectHaarCascade( eye,1.1,10, Emgu.CV.CvEnum.HAAR_DETECTION_TYPE.DO_CANNY_PRUNING,new Size(20, 20)); gray.ROI = Rectangle.Empty; foreach (MCvAvgComp e in eyesDetected[0]) { Rectangle eyeRect = e.rect; eyeRect.Offset(f.rect.X, f.rect.Y); image.Draw(eyeRect, new Bgr(Color.Red), 2); } } return image; } </pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/Tue, 19 Jun 2012 08:11:31 GMTImage type in asp.net<p>The type <code class="csharp plain">Image&lt;Bgr,Byte&gt;</code>&nbsp; does not belong to C# classes. You have used some ThirdParty control</p>http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/http://www.aspforums.net/Threads/893276/Image-type-in-aspnet/Tue, 19 Jun 2012 23:34:21 GMT