How do you remove noise in a jpeg picture in php?

Discussion in 'PHP' started by pachecus, Oct 9, 2008.

  1. #1
    I need to extract an object from a jpeg using php, and I think the only way to do it is to group all pixel with the same colors. But those extra pixels (which I think are noise), I can't extract the picture correctly. I'm not sure of what function to use.. Please help! Thanks in advance.
     
    pachecus, Oct 9, 2008 IP
  2. wing

    wing Active Member

    Messages:
    210
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    58
    #2
    wing, Oct 9, 2008 IP
  3. Jake-Johnson

    Jake-Johnson Peon

    Messages:
    839
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Just use PNGs :]
     
    Jake-Johnson, Oct 9, 2008 IP
  4. gzav

    gzav Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Or maybe gifs if they aren't complicated.
     
    gzav, Oct 9, 2008 IP
  5. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #5
    If you have time, check out Intels openCV library & consider writing a PHP extension for it.

    There's http://www.xarg.org/project/php-facedetect/ which is a wrapper for facial recognition, but it's slow and klunky. It's a starting point though.
     
    joebert, Oct 10, 2008 IP