Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×
Graphics Software HP Input Devices Technology

HP Restores Creased Photos With Flatbed Scanners 125

An anonymous reader writes "Scientists at HP have developed a technique to detect creases in photographs using standard, unmodified flatbed scanners. Once correctly scanned into a computer, software can determine where the photograph's defect is, and artificially correct it to remove any trace of a crease or fold. The result is a spotless JPEG scan from a creased photo, with absolutely no modified hardware and no technical know-how required on the part of the user." They're using multiple light sources to do this, in a way that reminds me of last year's description of 3D image creation using an ordinary digital camera.
This discussion has been archived. No new comments can be posted.

HP Restores Creased Photos With Flatbed Scanners

Comments Filter:
  • Nice (Score:5, Funny)

    by thewils ( 463314 ) on Wednesday August 12, 2009 @01:07PM (#29041435) Journal

    A fold-less centerfold :)

  • Wait, wait (Score:5, Funny)

    by sottitron ( 923868 ) on Wednesday August 12, 2009 @01:07PM (#29041439)
    Won't this ruin my collection of photographs of creased paper?
  • !unmodified (Score:3, Interesting)

    by muyla ( 1429487 ) on Wednesday August 12, 2009 @01:09PM (#29041471)

    In the article it says that they use an unmodified scanner, but later on they claim to control the lights of the scanner individually... how is this not modifing the hardware?

    • Modification implies a hardware change. Using lights individually is simply a new way to use something. Does not imply a hardware change.

      • Re: (Score:2, Informative)

        by muyla ( 1429487 )

        Yeah, but I'm guessing there was no reason for the scanners to come with individual controls for each light before this technology

        • Re: (Score:3, Insightful)

          There's also no reason for them to include the switches for each light in hardware when they can do it in firmware.
        • Contrast control, avoiding light pollution in the sensors when scanning an undersized object, lamp longevity, improved support for scanning coarse film grain photographs, glare reduction on shiny objects...

          I could think of a few.

    • Re: (Score:3, Informative)

      by mcgrew ( 92797 )

      From a different FA: [newscientist.com]

      Now Malzbender's team has achieved the same effect using an off-the-shelf flatbed scanner. They rely on the fact that modern scanners use two separate light bulbs. This feature was added to scanners to improve colour quality, but it also lets you capture the image from two different angles. Re-scanning the object after rotating it 90 degrees provides a total of four different angles, more than enough to deduce 3D information about the object - mathematically, you only need three.

      To fix

    • by do0b ( 1617057 )
      From TFA:

      Most flatbed scanners use two separate light bulbs to accurately capture all the colour in a photo. By controlling these independently of each other, two slightly different images (each taken from different directions as the bulbs move under the photo) can be captured of the same photograph. From these, rudimentary 3D information can be generated.

  • nothing worse than scanned centerfold porn. porn-wise, i mean. (:
  • Not really (Score:5, Insightful)

    by Radagast ( 2416 ) on Wednesday August 12, 2009 @01:14PM (#29041549) Homepage

    I was hoping they were using that 3D information to do something interesting to actually restore the image. They're not.

    They're basically using rudimentary 3D information that they can get out of the scanner to determine that a crease exists. They then remove it with a simple infill algorithm, which is as basic as it gets (although it often works ok), and which you can find in most image editing software. It's no coincidence that the example image they use has a crease going over mostly similarly colored and low-detail areas.

    So what they're doing is not an improvement to restoration, it's just an improvement to defect detection. Basically, it saves you having to tell the software where the defect to be fixed is, the fixing is the same quality as it's always been.

    • Re: (Score:3, Interesting)

      by TheRaven64 ( 641858 )
      Could still save some people a lot of money. I did some consulting a while back for a company that, among other things, digitises archives. Libraries send them books and they scan them then manually open each file, draw a line along the curve of the page, and then let the machine deform the image to remove the curve along the line of the text. This step takes several times longer than the scanning phase to do well. If a machine can recognise the creases then they can get rid of the humans in this proces
      • by calc ( 1463 )

        Just use the Google method, of course there is the little problem of it being patented.

      • The scanning process Google use takes an image of the book from multiple angles, then they flatten out the image mathematically. But I doubt they are using off the shelf scanners to do it.
    • If the crease did not destroy image detail (a creased Polaroid instant picture often gets nondestructive creases) this could remove warping and glare problems.
    • So what they're doing is not an improvement to restoration, it's just an improvement to defect detection.

      That's still helpful, isn't it? It seems to me that part of the problem with any algorithm to automatically fix photos is that you have to make sure the software knows the difference between a defect and a detail. If it detects what it thinks is a crease or a scratch, but it's really part of the image, it might edit out something you don't want it to.

  • . . . found ONLY along the crease, then they can't interpolate what was there. Period. This is just an improved version of the various touch-up tools in Photoshop etc.
    • Strictly speaking that's true, although some really smart software could restore the original image with high probability, given that almost all real-world images contain certain predictable elements such as faces, grass, clouds, etc. If I give you a picture of the President's face with a little bit torn out, there are many other images where you can find most of the information that was almost certainly there. Now is it possible something novel was actually happening at that point on his face at the time?
  • by bugnuts ( 94678 ) on Wednesday August 12, 2009 @01:17PM (#29041597) Journal

    The rudimentary 3D info can be used for improving all sorts of scans.

    How about...

    - Flattening a scan of a book (by the spine)
    - Focusing an area that's raised (products like Focus magic [focusmagic.com] assume a section is all out of focus at the same level, whereas a map of the amount of lost focus is possible here).
    - Using the above, scanning non-flat items.
    - Scanning nearly-flat 3d surfaces.

    Add a lens that can vary focus (based on the light differential) and you'd have a good 3D scanner for one side of a mostly-flat item, and a flatbed scanner that wouldn't lose focus on slightly-raised papers.

    • The application that comes to mind first for me is using this technique to capture realistic bump maps for use in 3d graphics.

  • by gurps_npc ( 621217 ) on Wednesday August 12, 2009 @01:23PM (#29041685) Homepage
    What we really need is a copy machine/scanner that can detect the valley formed by the spine of a book being copied and automatically correct for it. That would be worth it.
    • Re: (Score:3, Interesting)

      by Anonymous Coward

      Xerox did this already a few years back. And Google does it for their book scanning by projecting a laser grid and determining the 3d surface curvature of the book.

      • Epson scanners with DigitalIce do this too.
    • Re: (Score:1, Interesting)

      by Anonymous Coward

      Atiz makes consumer (simple, cheap) and professional (more options, expensive) software to do this, and they also sell the hardware (though you can just use a scanner or camera+tripod).

      It actually works pretty well. The only caveat is that you must frame the photos to meet their specifications (e.g. need a solid background border around the book being photographed). It is also pretty slow to process several hundred pages...

      http://snapter.atiz.com
      http://www.atiz.com/

    • by BACPro ( 206388 ) on Wednesday August 12, 2009 @01:52PM (#29042097)

      Just package that which Google has patented...
      http://hurstassociates.blogspot.com/2009/05/article-patent-reveals-googles-book.html [blogspot.com]

    • by macraig ( 621737 )

      But, but, but... that would ruin my collection of photos of the valleys of female cleavage and buttocks!

  • Applied Science Fiction was the first company to successfully market this as a 'dust and scratches' solution.

    Same idea, taken to a new level. Now, I hope HP's management is smart enough to get out of the way and bring this to market. It should definitely sell a few more scanners.

    • Applied Science Fiction was the first company to successfully market this as a 'dust and scratches' solution. Same idea, taken to a new level. Now, I hope HP's management is smart enough to get out of the way and bring this to market. It should definitely sell a few more scanners.

      Quoting a certain Francis Ford Coppola flick -- "I love the smell of (lawsuits) in the morning. You know, one time we had a (HP sued), (logging untold number of billable hours.) When it was all over, I (finally looked) up (the pate

  • by Animats ( 122034 ) on Wednesday August 12, 2009 @01:29PM (#29041771) Homepage

    Multiple light sources offer some interesting options. A few years ago, someone modified a digital camera (I think a Canon PowerShot) to have four flash sources instead of the usual one. The camera would take four pictures in quick succession, one with each flash. This allowed better edge detection.

    It was useful for applications like taking a picture of complex, dirty machinery (as under a car hood) and locating the edges, even where everything was roughly the same shade. It also helped when photographing very shiny objects, where the reflection from the flash was a problem. With each reflection from each flash unit in a different place, all reflections could be removed.

    It was too specialized to become mainstream, though. That seems to be the fate of 3D from 2D systems. Good ones have been built [canoma.com], but most have been either discontinued or turned into very expensive products for specialized use.

    • Re: (Score:2, Interesting)

      by Spy Hunter ( 317220 )

      There will soon be much less need for 3D from 2D hacks, because there's a new technology coming that produces 3D pictures directly: Time-of-flight cameras [wikipedia.org]. Today they are really expensive but they're going to become much cheaper very soon. This is what XBox's Project Natal is based on.

    • The original work on using multiple flashes for edge detection was done at MIT although I don't recall who it was actually done by. Not long after the paper came out I worked on an implementation of it for an undergrad research project with one of my professors ( Chris Brown [rochester.edu]). We definitely used a canon powershot and built a rig to support the external flashes and microcontroller needed to control the process.

      Our particular aim was automating detection and classification of small bombs in natural scenes. Th

  • by vandelais ( 164490 ) on Wednesday August 12, 2009 @01:29PM (#29041773)

    since it will restore the upskirt I took of Carly Fiorina that I accidentally creased.

  • I don't have any creased photos that I need to restore, but I've got boxes of matte finish prints that are a pain to scan. I wonder if a similar technique couldn't be used to automatically remove the scanning artifacts (little regularly-spaced crescent moon shapes) from those.

  • Turn the picture around and re-scan, that way you effectively have the light coming from different angles by each scan. No need to modify the scanner.
  • Do you suppose HP will be nice consumer-friendly guys and update their PrecisionScan software for previous scanner models? Nope: they'll roll this feature into software that'll only work with new scanners they wanna sell you. So, even though it doesn't REQUIRE new hardware, you can bet they'll figure out how to restrict it so that you still have to buy new hardware in order to use it.

  • .. would like to patent the concept of removing the creases from a newspaper by ironing it under a dry towel.

  • The result is a spotless JPEG scan from a creased photo

    I'm not sure if artifacts and compression are much better than just leaving the crease in the image...
    • Yeah, I was wondering about that too. Really, there is no good excuse to not be using PNG these days.

      • PNG? Don't you mean RAW, PSD or DNG? PNG is useful for things like web distribution, but you wouldn't want to use it as a production format.
        • PNG is lossless but compressed, whereas JPG is lossy and compressed. Apparently these devices arn't already using RAW, PSD, or DNG but rather opting for JPG. If you're going to use a more "common" format like that, it should at least be something that's not nearly so shitty.

          • PNG is lossless but compressed

            So is TIFF, plus it has more features than PNG. So, why would I use PNG over TIFF?

            If you're going to use a more "common" format like that, it should at least be something that's not nearly so shitty.

            What do you mean by "these devices"? A scanner doesn't deliver a JPEG to the computer - it delivers raw data. It's up to the software to save the file in whatever format it supports. And I don't believe I've ever come across scanning software that doesn't support formats other than JPEG, they usually support TIFF and BMP at the very least.

            Anyway, JPEG isn't so bad. The compression ratio is excellent, and at higher quality sett

  • Scientists invented the wheel too but I don't want to see it posted on Slashdot. Seriously, isn't this really old news? Removing creases in photos was one of the first things I remember everybody doing when scanners went mainstream sometime in the 80'.s
    • Scientists invented the wheel? I don't think so. It was invented before science.
      • A scientist is a person that practices science. Science is the business of knowing. The origins of the wheel do not predate "knowing" or the pursuit or investigation of new knowledge.
        • No, a scientist is someone who applies the scientific method. The scientific method had not been invented before the wheel was. Do you even know what science is? By your definition, I'm a scientist because I know the name of my next-door neighbor.
  • This does nothing to restore creased photographs. What it does is scan the photograph, manipulate the digital image obtained, so that you can print out the image onto another piece of paper. This is not restoring the photograph. The photograph still has a crease in it.

    As a practitioner of traditional photography, I'm annoyed to no end by people who talk as if the concepts of "photograph" and "image" were one and the same. Photographs are unique physical objects that have mass. Speaking as if photographs are
    • Re: (Score:3, Interesting)

      by dangitman ( 862676 )

      As a practitioner of traditional photography, I'm annoyed to no end by people who talk as if the concepts of "photograph" and "image" were one and the same. Photographs are unique physical objects that have mass. Speaking as if photographs are digital images is like speaking as if symphonies are .mp3 files.

      That's stupid. A traditional print is made from a negative or slide, so by your purist philosophy, restoring the print isn't actually restoring "the photograph." Digital images are photographs and vice versa. What matters is the image, not the medium it is presented on.

      Your idea of the photograph would be considered silly and outdated by the photographers of 50 years ago.

      • I'm amazed at the confusion over the semantic difference between a photograph and an image, but I point it out in this case because TFS cleary implies that they are restoring creased photographs, when what they are really doing is copying an image of the photograph and manipulating the image. That is noble if you want to save the image; to some people the image is all that matters. But you are not restoring the photograph, and to some people the photograph itself matters.

        ""A traditional print is made from a
        • ...if an object itself carries an image that was literally drawn with light, that object is a photograph.

          But why does a photograph have to be an object? Where in the definition and practical use of the term is this specified?

          Furthermore, why does an object have to be physical? There is such a thing as a digital object.

          Digital images are not photographs any more than drawings or paintings or reflections in mirrors or many other kinds of images are photographs.

          Nonsense. An image in a mirror or a telescope is not a photograph, because it is not fixed, or recorded. A digital photograph is a photograph, because it is a fixed or recorded image. Put a digital sensor on that telescope, and you can make a photograph.

          Is an article published in an online journ

    • Re: (Score:3, Insightful)

      by dangitman ( 862676 )

      P.S:

      I probably shouldn't have used the term "purist philosophy" to describe your attitude towards photography in my previous post. Because it is neither pure or philosophy. A more apt description would be "nostalgic shortsightedness" or "ludditism."

      The word "photography" at its root, means painting, drawing or writing with light. And "light" is really the key theme, the other root of the word describing "capturing" the light more than anything else. A digital image displayed on a screen that is never printe

      • I have no illusions of granduer nor do I feel that photographic processes are better at imaging than digital processes; I'm sorry if you got that idea somewhere. You seem to have your panties in a bunch over the fact that I understand the difference between an image and a photograph. Digital imaging is superior to photographic imaging in countless ways that I shouldn't have to mention; that's why photography is obsolete and digital is taking over everything commercially. Doesn't change the fact that a digit
        • Digital imaging is superior to photographic imaging in countless ways that I shouldn't have to mention; that's why photography is obsolete and digital is taking over everything commercially.

          Photography is obsolete? Since when? Digital imaging is photography. Photography is more relevant than ever.

          Doesn't change the fact that a digital image is not a photograph. You can print a digital image out photographically and obtain a photograph, but that doesn't make the digital image a photograph.

          Where the hell do you get this idea from that a photograph has to be printed on paper? Digital imaging is a photographic process. Nothing about the definition requires the light-sensitive medium to be chemical.

          You can can take a lens and some light-sensitive material and obtain a photograph of the Grand Canyon photographically; that does not make the Grand Canyon a "photograph".

          What the hell? When did anyone ever say that taking a photograph of an object makes the object itself a photograph?

          Your assertion that photographs and images are the same thing is groundless and nonsensical.

          No, your assertion that a digital image is not a photograph is groundless and n

        • by jabuzz ( 182671 )

          No you don't understand the difference between a photograph and an image, because your comprehension of the English language is flawed.

  • There is no tool to cut out an image of an item from the background automatically. It is needed for the e-commerce, because an item should be "flying in the air".

    There are several tools, but they are using technique of analyzing colors and by this detecting borders on an item. It does not work with every image, more correctly it does not work with almost every image. It sometimes work if an item is, say, of even dark color on a white background.

    We are always shooting the same items: bottles, boxes, can

    • ...but Quick Mask is your friend. I used to muck about with the path tool (no end of frustration there), but being able to paint/erase the quick mask and switch back to selection has changed all of that. Use an automated selection tool to get your selection 90% of the way there, use quick mask to get the rest of the way...

"Pull the trigger and you're garbage." -- Lady Blue

Working...