Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1

    Default Can anyone help me bout C#


    can anyone help me in making a program bout image compression/resizing in c#..?

  2. #2

    Default Re: Can anyone help me bout 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");

  3. #3

    Default Re: Can anyone help me bout C#

    i want to resize the image that i capture from a webcam..is that code applicable also..?

  4. #4

    Default Re: Can anyone help me bout C#

    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

  5. #5

    Default Re: Can anyone help me bout C#

    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...

  6. #6

    Default Re: Can anyone help me bout C#

    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?.


  7. #7

    Default Re: Can anyone help me bout C#

    Quote Originally Posted by christiantanilong
    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...
    Downsizing ang dapat nga term Pila sad ang ideal resolution sa imong OCR?

  8. #8

    Default Re: Can anyone help me bout C#

    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....

  9. #9

    Default Re: Can anyone help me bout C#

    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.

  10. #10

    Default Re: Can anyone help me bout C#

    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...

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. Can anyone help me to find a part time job
    By hahahahaha in forum Business, Finance & Economics Discussions
    Replies: 0
    Last Post: 12-22-2009, 03:47 PM
  2. Problem with my HDD. Can anyone help me?
    By Jason4eveR in forum Computer Hardware
    Replies: 14
    Last Post: 12-08-2009, 01:36 AM
  3. Can anyone help me??
    By aaron ramirez in forum General Discussions
    Replies: 8
    Last Post: 11-10-2009, 02:20 PM
  4. can anyone help me where to buy rabbit
    By donrey in forum Pets
    Replies: 22
    Last Post: 06-09-2009, 01:36 AM
  5. Replies: 12
    Last Post: 04-17-2008, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top