6 Replies Latest reply on Apr 13, 2018 5:50 AM by davescm

    Isolate/Extract text from background

    Paranoic

      Hello,

      please help me. I need to isolate or extract the text on this makeup flask. Lets say I need the white text on a separated layer, red colored text on a separated layer and so on.. Using pen around every letter is not an option and not even magic wand on those little letters at the very bottom of the flask.

       

      Anyone knows how to achieve this task?

       

       

       

      D.jpg

        • 1. Re: Isolate/Extract text from background
          norman.sanders Most Valuable Participant

          real final.png

          To get the red portion of the label (ignoring the white for the moment) convert the Mode to Lab Color and distort the  a  channel as shown to separate the red from the tan. The increased red saturation made the next step, Select > Color Range, more efficient in separating the red from the background. No concern for the type in the red panel a the bottom. It could be a solid panel with a type dropout.

          The white type: Lab Color. Zero the  a  and  b channels to create gray, then use the L channel to produce the left image. Move into RGB. Curves to darken the area surrounding the type. I overdid that step and sacrificed the clarity.  The RGB step should be redone,

          • 2. Re: Isolate/Extract text from background
            davescm Adobe Community Professional

            Hi

            You could try this

             

            To select the red : Make a copy of the blue channel, invert it and  use a curves adjustment to increase contrast, finally brush with a black/white brush at 50% opacity and set to overlay blending mode to sharpen the edges. Paint over the unwanted red selection from the bottle top with black. Make a selection from the channel

             

             

            For the White :

            Make a copy of the green channel and do the same steps as above (apart from inverting it).

             

            Dave

            • 3. Re: Isolate/Extract text from background
              Paranoic Level 1

              Thank you both, very helpful advices.

               

              But one additional question, how do you determine which channel use for individual colors? How do you know that channel blue for red text or channel geen for the white?

               

              Thanks

              • 4. Re: Isolate/Extract text from background
                davescm Adobe Community Professional

                Hi

                It's a case of looking for the best contrast in the area/colour you are looking to select. Sometimes an individual channel works well, sometimes a combination of channels which is where calculations comes in.

                 

                Dave

                • 5. Re: Isolate/Extract text from background
                  Paranoic Level 1

                  Thanks man :-)

                   

                  Especially for you advice. Even though I must say it si a little bit hard to do the contrast of that small text below the white rectangle as nice as you did it.

                   

                  This is my result so far:

                   

                  ff.jpg

                  • 6. Re: Isolate/Extract text from background
                    davescm Adobe Community Professional

                    When you make your initial curve (prior to using the overlay brush) make sure you have not lost any detail in the lettering (some may still be light grey on darker grey. After that switching the overlay brush (at 50% opacity)  between black and white should allow to bring out the edge detail without wiping out any lettering.

                     

                    Dave