can anyone help me in making a program bout image compression/resizing in c#..?
can anyone help me in making a program bout image compression/resizing in c#..?
for image compression you can use third party softwares like lead tools to do this.
or you can also use the overloaded bitmap.save option it has options for encoders and stuff.
as for image resizing you can try to do this..
Code:Bitmap sourcebit = new Bitmap("someImage.jpg"); Bitmap destbit = new Bitmap(200,500); Graphics g = Graphics.FromImage(destbit); Rectangle destRect = new Rectangle(0,0,100,250); g.DrawImage(sourcebit, destRect, sourcebit.GetBounds(GraphicsUnit.Pixel), GraphicsUnit.Pixel); g.Dispose(); destbit.Save("newresizedimage.jpg");
i want to resize the image that i capture from a webcam..is that code applicable also..?
do you mean from a webcam stream?. can you clarify please..
it would be better if you discuss what application you are trying to create
yup frm a webcam...im creating a projct of character recognition...im trying to resize the image captured from a camera so the processing time would be reduced...
if you need it from an image stream you can do it i think Bitmap object can be initialized with streams
or you could just let the webcam save the image and from that you read it as a file.
also if you want it to "process" faster youll have to read the image pixels from its bytearray instead of reading from getpixel()
you can use unsafe-image-processing to do this:
lead tools has built-in OCR bro.. or is this a school project?.
Downsizing ang dapat nga term Pila sad ang ideal resolution sa imong OCR?Originally Posted by christiantanilong
yup this is skul projct...a resolution of 10X10 wub be great...im adviser had made this projct and mange to downsize the image from 640x480 to 8x8....
cen made that kind of project before
but a 8x8 resolution is too small to even recognize "a,B,g,q,p" i donno bro... you'll need to create a faster algo if your concern of the processing speed
the bigger the resolution the more accurate.
it is possble to recognize a character in a resulotion of 8x8...i just need to make the 8x8 image into a binary matrix and feed it as an input on a neural network...
Similar Threads |
|