Slashdot Mirror


PhotoSketch Image Manipulation Tool Taking the World by Storm

PhotoSketch, a new image manipulation program that combines stick-figure sketches, internet image search and pattern matching, seems to be spreading like wildfire. Created by five Chinese students at Tsinghua University and the National University of Singapore, the tool takes a basic sketch and simple labels and turns it into a polished image. "Although online image search generates many inappropriate results, our system is able to automatically select suitable photographs to generate a high quality composition, using a filtering scheme to exclude undesirable images," say the PhotoSketch team in an abstract outlining the tool. "We also provide a novel image blending algorithm to allow seamless image composition. Each blending result is given a numeric score, allowing us to find an optimal combination of discovered images. Experimental results show the method is very successful."

33 of 193 comments (clear)

  1. correct links by sopssa · · Score: 4, Informative

    Since the link to homepage in the article is some old-dated one, here's a correct one:

    And the binaries (it's a few command line programs, so no fancy UI)

    1. Re:correct links by sopssa · · Score: 5, Informative
    2. Re:correct links by mugnyte · · Score: 3, Informative

      Downloaded. NOTE: the as-compiled binaries require the OpenCV libraries of the 110 variety (SourceForge holds the 200 version now). So, get older 110 binaries. From the file list

      See the OpenCV Wiki on setting up and checking you OpenCV installation.

      I'm still setting up, but I'll post back when I get it working...

  2. Sketched by Iriscal · · Score: 4, Funny

    This image looks sketched. I can tell from a few of the pixels, and from having seen a few sketches in my time.

  3. What everyone want's to know... by jo42 · · Score: 3, Funny

    If you sketch a big circle and two hands, will it come up with goatse?

    1. Re:What everyone want's to know... by aicrules · · Score: 4, Funny

      If you tagged the big circle with distended anus, then probably so.

  4. This sums it up quite nicely by al0ha · · Score: 4, Funny

    The authors of the program--Tao Chen, Ming-Ming Cheng, Ping Tan, Ariel Shamir, and Shi-Min Hu at the Department of Computer Science and Technology, Tsinghua University, and the National University of Singapore--presented it at Siggraph Asia 2009.

    An event that will be remembered forever in the History of Humanity as the day in which a million dorks were finally able to put themselves in X-rated positions with Megan Fox.

    --
    Did you ever wake up in the morning, with a Zombie Woof behind your eyes? -- FZ
    1. Re:This sums it up quite nicely by NotBornYesterday · · Score: 3, Insightful

      An event that will be remembered forever in the History of Humanity as the day in which a million dorks were finally able to put themselves in X-rated positions with Megan Fox.

      Many with decent Photoshop skills already can, this just lets millions more into the club without the need for a little know-how.

      On a serious note, if this just outputs a flat .bmp, or .jpg, I just give it a "cool and fun, but not really useful". If this thing can output a .psd or .xcf with each element on a discrete layer, that would be excellent.

      --
      I prefer rogues to imbeciles because they sometimes take a rest.
    2. Re:This sums it up quite nicely by adonoman · · Score: 3, Insightful

      Well, this being a research project / proof of concept type of thing, it's probably going to be bought up by a larger company (Microsoft, Google, Adobe) and made into a more useful bit of software. The actual output of this app is irrelevant - even if they composite the images into a flat image, at some point in time they've isolated the components and getting those components into different layers of some other image format is really a trivial extension. The important parts are really pulling useful images off the internet, and pulling together the important parts of those images.

    3. Re:This sums it up quite nicely by Wraithlyn · · Score: 3, Interesting

      I'm amazed at how well this seems to automatically extract subjects from their background, something that usually requires a lot of painstaking manual work... honestly that's the real challenge of "photoshopping", becoming a ninja with the selection tools.

      --
      "Mind, as manifested by the capacity to make choices, is to some extent present in every electron." -Freeman Dyson
    4. Re:This sums it up quite nicely by Jah-Wren+Ryel · · Score: 4, Funny

      I'm amazed at how well this seems to automatically extract subjects from their background, something that usually requires a lot of painstaking manual work... honestly that's the real challenge of "photoshopping", becoming a ninja with the selection tools.

      The reason the software is a binary distribution is because it is actually sending the images to hundreds of thousands of chinese prisoners who are being made to use pirated copies of photoshop to select out the figures from the backgrounds and then send the results back.

      --
      When information is power, privacy is freedom.
  5. OH GREAT by mujadaddy · · Score: 5, Funny

    Now NO ONE will believe the pics of me with Jessica Biel, Kate Beckinsale and Dolly Madison are real!

    --
    Populus vult decipi, ergo decipiatur...
    "Force shits upon Reason's back." - Poor Richard's Almanac
  6. Photoshopped Politics by Anonymous Coward · · Score: 4, Funny

    This will make things way easier for Iran and North Korea.

  7. Cool idea, but lacks specificity by BadAnalogyGuy · · Score: 4, Interesting

    I tried to draw a picture of a man with an erection. I labeled him "porn guy". Then I drew a picture of a woman with her mouth open and labeled her "porn whore cumshot".

    The composite picture was fine except that the man and the woman were far apart from each other. In addition, even if I were to draw them closer together (hey, I'm working with a mouse here), the result would still have been sized incorrectly.

    This technology holds lots of promise and is already pretty cool. I hope they can work out the kinks.

    1. Re:Cool idea, but lacks specificity by PolygamousRanchKid+ · · Score: 3, Funny

      I hope they can work out the kinks.

      Oh, don't be so boring . . . let them leave the kink in!

      --
      Schroedinger's Brexit: The UK is both in and out of the EU at the same time!
    2. Re:Cool idea, but lacks specificity by Jesus_666 · · Score: 3, Funny

      You mean except for the binary on the website (linked to in another comment)?

      --
      USE HOT GRITS WITH STATUE OF NATALIE PORTMAN (NAKED AND PETRIFIED)
  8. This is unbelievable by rehtonAesoohC · · Score: 4, Interesting

    The reality is that it was only a matter of time before someone came up with something like this, with examples like Microsoft Photosynth, but this is an unbelievable implementation.

    I'm not 100% sure, but I can definitely see the potential for Google to snatch this up really fast and incorporate it into Picasa or even google image search or something. The fact that something like this allows anyone (not just artists) to come up with novel images with minimal effort is fantastic. I do wonder how canned the images were though. IE: did they GIS for an image first, then use the image as a basis to draw the stick figure, knowing that their algorithm would pick the image they selected in the first place? I would like to see a live demo with an unplanned audience member doing the drawing. Then I'll really be impressed.

  9. Copyright implications by capt.Hij · · Score: 5, Insightful

    In related news anyone supporting current copyright laws have reinvigorated the economy after having to go out and purchase new pants. Cue the next great debate about copyright as we continue to try to shoe horn old ideas into the new world.

  10. The end of creativity by fluor2 · · Score: 4, Insightful

    Soon I can write a story and then I just compile it and it will show sniplets of existing movies or rendered characters and woha it's converted to a real movie even with end credits: Directed and written by ME ME
    Oh I can't wait.

    1. Re:The end of creativity by Carthag · · Score: 3, Funny

      A Scanner Darkly

  11. Re:How does it mask? by StreetStealth · · Score: 4, Informative

    It appears from the video that it's running a fairly sophisticated series of algorithms to compare backgrounds and determine how difficult it would be to do a convincing mask-out of the foreground object, of which it appears to have a sort of heuristic expectation of shape from the user's sketch.

    For instance, if your background is a grassy field, the user has requested a dog running, and you have a photo of a dog running over grass and a dog running over pavement, the grass one will allow a greater margin of error in the masking and thus it gets selected.

    Overall, this looks like a fantastic step forward for computer vision, bringing the computer ever closer to the non-Cartesian way our brains see.

    --
    Your mind is clear / The things that you fear / Will fade with how much you / Believe what you hear
  12. Another awesome example of the power of photos by IamTheRealMike · · Score: 3, Informative

    That's pretty damn cool. It reminds me of scene completion, which is another take on the same idea - combining images from Flickr to create new images according to a brief sketch.

  13. Rough around the edges by jemtallon · · Score: 4, Interesting

    Having just taken a quick look through the config files and readme from the binary.zip file, it's pretty obvious this is very much a Proof of Concept release. You need to hard-code the number of sketched items, label them each in the config file, download the potential matched images to a specified directory, etc. It involves enough guess-work and too little documentation for me to proceed further, which is unfortunate. Has anyone else actually gotten it to work as described to confirm it does what it claims it can?

    1. Re:Rough around the edges by GigaHurtsMyRobot · · Score: 3, Informative
      I don't think all of the binaries were included. After getting the right CV kit, the error is that some applications aren't there.

      You make a Workspace folder and but a .jpg for each "item" with a simple line drawing. You make an ImageDownload folder, and in it a folder for each "item" with downloaded images in those folders.

      It's missing exe's for these two lines from the ini file:

      AttentioinCut = true

      ShapMatching = true

      They can be switched to false and it will run and create data in the Workspace folder. The images in the Segment folder are neat.... but looks like the executable to actually stitch the images together was not included.

  14. Let's download binaries from China! by winkydink · · Score: 5, Funny

    Anybody else see what's wrong with this picture?

    --

    "I'd rather be a lightning rod than a seismometer." -Ken Kesey

    1. Re:Let's download binaries from China! by Anonymous Coward · · Score: 5, Funny

      Seem to run about right here at Fermilabs.

  15. Interesting point: This research is in China by MaraDNS · · Score: 4, Insightful

    An interesting point: This research is being done in China, not the United States. Whatever happened to basic research being done in the US? Today's PARC laboratory is not in the US, but appears is in China.

    This is not a good thing for people who live in the US. America's increasing dependence on outsourcing is destroying the US' capability to be competitive in today's environment.

    The Harvard Business Review has an excellent article about how America is destorying its own future.

    --
    MaraDNS is an open-source DNS server.
    1. Re:Interesting point: This research is in China by PhysicsPhil · · Score: 3, Insightful

      Give the Chinese credit where it's due. Setting aside any arguments about how Americans don't value science and technology any more, to expect China not to produce good research is foolish. It is a large country that is putting resources into science and technology. Combined with the fact that stricter immigration laws make the United States a less desirable place for overseas students to study it's not a surprise. Based strictly on relative populations of China and America, we should be asking why the Chinese aren't producing even more groundbreaking work.

      Americans forget that one of the main reasons they were the top dog in science and technology was because most of the world's population was doing subsistence farming. The kids of those farmers are now becoming scientists and engineers, and there is real competition now.

  16. Re:Copyright implications, mashup by LordNimon · · Score: 3, Informative

    No. Mashups are clearly derived works, which fall under copyright quite clearly. Since this is in China, I'm pretty they're ignoring an IP laws and will probably get away with it. In the U.S., however, every one of those images better be licensed for royalty-free distribution, or they'd be sued.

    --
    And the men who hold high places must be the ones who start
    To mold a new reality... closer to the heart
  17. xkcd by TheGreatOrangePeel · · Score: 5, Interesting

    Wow. I'm instantly instilled with the urge to plug an XKCD comic into this and see what happens.

    1. Re:xkcd by GaryOlson · · Score: 3, Funny

      A single XKCD comic? Apply to all XKCD comics, then turn all the comics into a streaming video. See if you obtain a higher level of conciousness.

      --
      Every mans' island needs an ocean; choose your ocean carefully.
  18. Turn stick figures into photos? by zindorsky · · Score: 3, Interesting

    Someone should take all the XKCD comics, mark 'em up a bit, turn 'em into nice pictures, and .... Profit!!

    --
    If the geiger counter does not click, the coffee, she is not thick.
  19. Re:Copyright implications, mashup by Jah-Wren+Ryel · · Score: 3, Informative

    Isn't this the visual equivalent of a mashup?

    Aren't mashups already in a copyright gray area?

    In the US we have this really fucked up way of dealing with derivative works - the more complicated the work, the less of it needs to be incorporated into another work before it is considered an infringement. Yes, that's right the more information in the original the smaller the percentage of that information is required to disqualify any fair use defense.

    So you can quote a couple of lines of a short poem in a book or even have a character speak them in a movie and that's generally OK. But sample just 3 notes of another song and you are in deep doodoo. Similarly, any background artwork in a movie - simply just pictures hanging on the wall in the background of a scene and thus mostly out of focus and of very low effective resolution require clearance and licensing fees, frequently absurdly high fees and of course just about any clip of video used in another movie or show - even on a television in the background of a scene - is going to require licensing too.

    Most hollywood studies have an entire division devoted just handling these clearances (look in the credits for most movies and you'll see at least one person credited as head of the clearances group). This practice has the effect of keeping the "little guys" out of the motion picture business similar to the way patent pools are used to squash tech start-ups - all the studios have large "pools" of our culture under their copyright and the independent artist can't afford to license any of it for his work while the other studios can make each other sweetheart deals that guarantee cheap and easy access to each studio's "pool" of culture.

    So no, mash-ups, since they generally are 100% composed of samples of other songs, aren't anywhere near being gray in the USA.

    --
    When information is power, privacy is freedom.