VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    This was taken from a photo converted to BW, then maxed out the contrast. But there are holes and rough edges. Anyone have a slick way to fill the holes and smooth the edges? Looking for a procedural solution.

    Quote Quote  
  2. Member
    Join Date
    May 2007
    Location
    reality
    Search Comp PM
    I would use Photoshop. Zoom in and use a healing brush for the holes. The edges are not too bad and could be done with just a fine pen and some edge smoothing. I use a Wacom pen tablet but it could be done with a mouse and patience. Also, it may be easier to find the font and create a new one.
    Quote Quote  
  3. Another option is to use your vector/graphics (e.g. illustrator, inkscape) program to auto trace it . Preparation is the key before you trace (e.g. blur edges) so you reduce rough edges . You can play with the settings or speckle threshold to determine "when a hole becomes a hole"

    Or FX type programs (after effects) will also have matte repair type plugins that "plug" holes , clean edges



    Originally Posted by Video Head View Post
    Also, it may be easier to find the font and create a new one.
    ^This
    Quote Quote  
  4. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    So no magic bullet, basically?
    Quote Quote  
  5. What did the original look like ? There might be other methods to get mask paths that may work better
    Quote Quote  
  6. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    This is it.

    I used a basic color selection mask. But forgot to tweak the tolerance up and down. Like what you said about fuzzing the edge prior to tracing.

    To be honest, I don't care much for tracing, but since this is text, maybe better.

    Last edited by budwzr; 13th Oct 2012 at 11:34.
    Quote Quote  
  7. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    Originally Posted by Video Head View Post
    I would use Photoshop. Zoom in and use a healing brush for the holes. The edges are not too bad and could be done with just a fine pen and some edge smoothing. I use a Wacom pen tablet but it could be done with a mouse and patience. Also, it may be easier to find the font and create a new one.
    Is that "procedural"? Hahaha

    I need a good overall procedure to lift graphic elements from photos. But I think keeping them as raster w/trans-alpha is preferable to SVG. I never use SVG for the web, only as compositing elements in 3D apps. True, I could generate a raster matte at any time, but I'm lazy.

    If you have a flowchart with symbols, that would be cool too. Put a lot of "else" optional paths in there too. No dead ends, por favor.
    Last edited by budwzr; 13th Oct 2012 at 11:51.
    Quote Quote  
  8. Code:
    ImageSource("holes.jpg")
    AddBorders(0,0,0,1)
    ConvertToYV12()
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Click image for larger version

Name:	filled.png
Views:	258
Size:	25.6 KB
ID:	14231
    Quote Quote  
  9. You'll have problems with the "M" using any method because of the close/narrow lines in the stroke . Blurring that section will make it worse

    Both those methods should work (auto tracing with preparation & custom settings, or color keying with matte repair tools), but you will likely have to fix the "M" in either case



    Some of those forums that deal with font experts are pretty quick in their replies. You usually get the answer back the same day
    Quote Quote  
  10. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    Originally Posted by jagabo View Post
    [CODE]ImageSource("holes.jpg").....
    Yeah, that's a nice fill. So that's what an edge detect selection and fill looks like in script? I think that's equal to a convolve in the NLE world, yeah?
    Quote Quote  
  11. Or from the original image:

    Code:
    ImageSource("view.jpg") 
    Crop(100,60,400,160)
    ConvertToYV12()
    BilinearResize(width*2,height*2)
    ColorYUV(cont_y=3000, off_y=600, cont_u=-256, cont_v=-256)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Blur(1.0).ColorYUV(cont_y=200)
    Click image for larger version

Name:	fill2.png
Views:	324
Size:	23.1 KB
ID:	14232

    A little closer cropping could have gotten rid of the spot in the lower right corner.
    Last edited by jagabo; 13th Oct 2012 at 12:07.
    Quote Quote  
  12. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    Did you soften the edge to get that? Or maybe sharpen! A-Ha! That's why you inflated 2X, to get room to sharpen.
    Quote Quote  
  13. A final Blur(0.5) will soften the edges a little bit.
    Quote Quote  
  14. I would autotrace this, because you have access to vertices along the mask paths. So it's easy to fine tune bumps and problems . It literally takes seconds to trace, maybe a minute to fine tune a few vertices

    But forgot to tweak the tolerance up and down
    Yes, part of your problem is from not doing the original color key correctly
    Image Attached Thumbnails Click image for larger version

Name:	1.jpg
Views:	246
Size:	30.6 KB
ID:	14235  

    Click image for larger version

Name:	2.jpg
Views:	274
Size:	30.7 KB
ID:	14236  

    Quote Quote  
  15. Member
    Join Date
    May 2007
    Location
    reality
    Search Comp PM
    Originally Posted by budwzr View Post
    Originally Posted by Video Head View Post
    I would use Photoshop. Zoom in and use a healing brush for the holes. The edges are not too bad and could be done with just a fine pen and some edge smoothing. I use a Wacom pen tablet but it could be done with a mouse and patience. Also, it may be easier to find the font and create a new one.
    Is that "procedural"? Hahaha

    I need a good overall procedure to lift graphic elements from photos. But I think keeping them as raster w/trans-alpha is preferable to SVG. I never use SVG for the web, only as compositing elements in 3D apps. True, I could generate a raster matte at any time, but I'm lazy.

    If you have a flowchart with symbols, that would be cool too. Put a lot of "else" optional paths in there too. No dead ends, por favor.
    Sorry, it has been a while since I worked with the flaming, spinning logo crowd.

    You initially asked how to fill the holes and fix the edges not how to extract a text element from a really bad photo. Personally I would suggest you buy a good tripod and camera and learn how to use them.
    Quote Quote  
  16. Member budwzr's Avatar
    Join Date
    Apr 2007
    Location
    City Of Angels
    Search Comp PM
    Originally Posted by poisondeathray View Post
    I would autotrace this...
    @PDR -Yeah, that second one is perfect. Nice!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!