Crop all written letters from image to form a website2019 Community Moderator ElectionCreating an image data set from a set of 2D points?How to properly rotate image and labels for semantic segmentation data augmentation in Tensorflow?How to filter out babies from image datasetIs it good in general to subtract background from a sequence of images for learning?PIL image library cant open image in google colab while the runtime is GPUWhy does TensorFlow convert my decoded image to float32 instead of uint8/16?

Filter any system log file by date or date range

Why is consensus so controversial in Britain?

How much of data wrangling is a data scientist's job?

What typically incentivizes a professor to change jobs to a lower ranking university?

What does the "remote control" for a QF-4 look like?

Which country benefited the most from UN Security Council vetoes?

Do I have a twin with permutated remainders?

Decision tree nodes overlapping with Tikz

Could an aircraft fly or hover using only jets of compressed air?

Why do I get two different answers for this counting problem?

What does it mean to describe someone as a butt steak?

Uncaught TypeError: 'set' on proxy: trap returned falsish for property Name

Did Shadowfax go to Valinor?

Today is the Center

meaning of に in 本当に?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Has there ever been an airliner design involving reducing generator load by installing solar panels?

Operational amplifier as a comparator at high frequency

Roll the carpet

Maximum likelihood parameters deviate from posterior distributions

Theorems that impeded progress

How to source a part of a file

how to check a propriety using r studio

I'm flying to France today and my passport expires in less than 2 months



Crop all written letters from image to form a website



2019 Community Moderator ElectionCreating an image data set from a set of 2D points?How to properly rotate image and labels for semantic segmentation data augmentation in Tensorflow?How to filter out babies from image datasetIs it good in general to subtract background from a sequence of images for learning?PIL image library cant open image in google colab while the runtime is GPUWhy does TensorFlow convert my decoded image to float32 instead of uint8/16?










1












$begingroup$


enter image description here




  • Above image has handwritten hindi / deavanagari letters all on a single



    image.


  • Task is to Prepare a dataset from the given assignment.jpg image using image



    processing tools

  • Idon't have clarity whether i can use photoshop editing tools like adobe photoshop etc.


  • If image processing tools mean opencv , is it really possible to create like a emnist like dataset from single image.


  • I am not able to come up with any way to seperate the letters from eachother


enter image description here



Finally i had done it by combining adaptive thresholding,bluring,and morphological, It is helpful to check out find contours for two part letters by @Salman and @Jeru Luke , it really helped me.










share|improve this question











$endgroup$











  • $begingroup$
    I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
    $endgroup$
    – Papasani Mohansrinivas
    Mar 27 at 16:51
















1












$begingroup$


enter image description here




  • Above image has handwritten hindi / deavanagari letters all on a single



    image.


  • Task is to Prepare a dataset from the given assignment.jpg image using image



    processing tools

  • Idon't have clarity whether i can use photoshop editing tools like adobe photoshop etc.


  • If image processing tools mean opencv , is it really possible to create like a emnist like dataset from single image.


  • I am not able to come up with any way to seperate the letters from eachother


enter image description here



Finally i had done it by combining adaptive thresholding,bluring,and morphological, It is helpful to check out find contours for two part letters by @Salman and @Jeru Luke , it really helped me.










share|improve this question











$endgroup$











  • $begingroup$
    I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
    $endgroup$
    – Papasani Mohansrinivas
    Mar 27 at 16:51














1












1








1





$begingroup$


enter image description here




  • Above image has handwritten hindi / deavanagari letters all on a single



    image.


  • Task is to Prepare a dataset from the given assignment.jpg image using image



    processing tools

  • Idon't have clarity whether i can use photoshop editing tools like adobe photoshop etc.


  • If image processing tools mean opencv , is it really possible to create like a emnist like dataset from single image.


  • I am not able to come up with any way to seperate the letters from eachother


enter image description here



Finally i had done it by combining adaptive thresholding,bluring,and morphological, It is helpful to check out find contours for two part letters by @Salman and @Jeru Luke , it really helped me.










share|improve this question











$endgroup$




enter image description here




  • Above image has handwritten hindi / deavanagari letters all on a single



    image.


  • Task is to Prepare a dataset from the given assignment.jpg image using image



    processing tools

  • Idon't have clarity whether i can use photoshop editing tools like adobe photoshop etc.


  • If image processing tools mean opencv , is it really possible to create like a emnist like dataset from single image.


  • I am not able to come up with any way to seperate the letters from eachother


enter image description here



Finally i had done it by combining adaptive thresholding,bluring,and morphological, It is helpful to check out find contours for two part letters by @Salman and @Jeru Luke , it really helped me.







image-preprocessing






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday







Papasani Mohansrinivas

















asked Mar 27 at 16:43









Papasani MohansrinivasPapasani Mohansrinivas

84




84











  • $begingroup$
    I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
    $endgroup$
    – Papasani Mohansrinivas
    Mar 27 at 16:51

















  • $begingroup$
    I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
    $endgroup$
    – Papasani Mohansrinivas
    Mar 27 at 16:51
















$begingroup$
I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
$endgroup$
– Papasani Mohansrinivas
Mar 27 at 16:51





$begingroup$
I actually posted it in AI stack overflow, where members suggested i post it here.I don't have any knowledge in domain of computer vision or image processing.Thanks in advance for help
$endgroup$
– Papasani Mohansrinivas
Mar 27 at 16:51











2 Answers
2






active

oldest

votes


















1












$begingroup$

This can be done with OpenCV.



enter image description here



Code needs to :



  1. Prep-process image to enhance contrast

  2. Use OpenCV to identify 'bounding box' for each character

  3. Save each character's image as a new file

Code example : http://cvisiondemy.com/extract-roi-from-image-with-python-and-opencv/






share|improve this answer









$endgroup$












  • $begingroup$
    Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 11:43











  • $begingroup$
    one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 12:10










  • $begingroup$
    These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
    $endgroup$
    – Shamit Verma
    Mar 29 at 13:00


















0












$begingroup$

This is a simple problem and cetainly could be solved using any photo editing application like Adobe Photoshop. This would be a lot of manual labour.



But if you want to automate the process of extracting all letters from these image, I would suggest you to use OpenCV and build a contour detector and find contours in the image and then crop the contours to extract all the images.



The accuracy of your detector could be improved by converting the image to black and white or binary image or apply some threshold.you can read more about OpenCV contours here.
This blog might also be a little handy.






share|improve this answer











$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function ()
    return StackExchange.using("mathjaxEditing", function ()
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    );
    );
    , "mathjax-editing");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "557"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48098%2fcrop-all-written-letters-from-image-to-form-a-website%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1












    $begingroup$

    This can be done with OpenCV.



    enter image description here



    Code needs to :



    1. Prep-process image to enhance contrast

    2. Use OpenCV to identify 'bounding box' for each character

    3. Save each character's image as a new file

    Code example : http://cvisiondemy.com/extract-roi-from-image-with-python-and-opencv/






    share|improve this answer









    $endgroup$












    • $begingroup$
      Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 11:43











    • $begingroup$
      one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 12:10










    • $begingroup$
      These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
      $endgroup$
      – Shamit Verma
      Mar 29 at 13:00















    1












    $begingroup$

    This can be done with OpenCV.



    enter image description here



    Code needs to :



    1. Prep-process image to enhance contrast

    2. Use OpenCV to identify 'bounding box' for each character

    3. Save each character's image as a new file

    Code example : http://cvisiondemy.com/extract-roi-from-image-with-python-and-opencv/






    share|improve this answer









    $endgroup$












    • $begingroup$
      Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 11:43











    • $begingroup$
      one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 12:10










    • $begingroup$
      These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
      $endgroup$
      – Shamit Verma
      Mar 29 at 13:00













    1












    1








    1





    $begingroup$

    This can be done with OpenCV.



    enter image description here



    Code needs to :



    1. Prep-process image to enhance contrast

    2. Use OpenCV to identify 'bounding box' for each character

    3. Save each character's image as a new file

    Code example : http://cvisiondemy.com/extract-roi-from-image-with-python-and-opencv/






    share|improve this answer









    $endgroup$



    This can be done with OpenCV.



    enter image description here



    Code needs to :



    1. Prep-process image to enhance contrast

    2. Use OpenCV to identify 'bounding box' for each character

    3. Save each character's image as a new file

    Code example : http://cvisiondemy.com/extract-roi-from-image-with-python-and-opencv/







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 28 at 6:24









    Shamit VermaShamit Verma

    1,4291214




    1,4291214











    • $begingroup$
      Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 11:43











    • $begingroup$
      one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 12:10










    • $begingroup$
      These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
      $endgroup$
      – Shamit Verma
      Mar 29 at 13:00
















    • $begingroup$
      Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 11:43











    • $begingroup$
      one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
      $endgroup$
      – Papasani Mohansrinivas
      Mar 29 at 12:10










    • $begingroup$
      These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
      $endgroup$
      – Shamit Verma
      Mar 29 at 13:00















    $begingroup$
    Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 11:43





    $begingroup$
    Wow ! thanks @Shamit Verma, i actually searched internet for counters code on opencv,thanks for link.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 11:43













    $begingroup$
    one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 12:10




    $begingroup$
    one last request , could you point me to literature on contours !.I am satisfied with your answer ,i am just stating that me directly learning deep learning have given me surprise that we can do bounding boxes with out advanced techniques!.
    $endgroup$
    – Papasani Mohansrinivas
    Mar 29 at 12:10












    $begingroup$
    These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
    $endgroup$
    – Shamit Verma
    Mar 29 at 13:00




    $begingroup$
    These are useful articles + papers to start in this area : towardsdatascience.com/… , learnopencv.com/… , eng.ucmerced.edu/people/jyang44/papers/cvpr16_contour_final.pdf
    $endgroup$
    – Shamit Verma
    Mar 29 at 13:00











    0












    $begingroup$

    This is a simple problem and cetainly could be solved using any photo editing application like Adobe Photoshop. This would be a lot of manual labour.



    But if you want to automate the process of extracting all letters from these image, I would suggest you to use OpenCV and build a contour detector and find contours in the image and then crop the contours to extract all the images.



    The accuracy of your detector could be improved by converting the image to black and white or binary image or apply some threshold.you can read more about OpenCV contours here.
    This blog might also be a little handy.






    share|improve this answer











    $endgroup$

















      0












      $begingroup$

      This is a simple problem and cetainly could be solved using any photo editing application like Adobe Photoshop. This would be a lot of manual labour.



      But if you want to automate the process of extracting all letters from these image, I would suggest you to use OpenCV and build a contour detector and find contours in the image and then crop the contours to extract all the images.



      The accuracy of your detector could be improved by converting the image to black and white or binary image or apply some threshold.you can read more about OpenCV contours here.
      This blog might also be a little handy.






      share|improve this answer











      $endgroup$















        0












        0








        0





        $begingroup$

        This is a simple problem and cetainly could be solved using any photo editing application like Adobe Photoshop. This would be a lot of manual labour.



        But if you want to automate the process of extracting all letters from these image, I would suggest you to use OpenCV and build a contour detector and find contours in the image and then crop the contours to extract all the images.



        The accuracy of your detector could be improved by converting the image to black and white or binary image or apply some threshold.you can read more about OpenCV contours here.
        This blog might also be a little handy.






        share|improve this answer











        $endgroup$



        This is a simple problem and cetainly could be solved using any photo editing application like Adobe Photoshop. This would be a lot of manual labour.



        But if you want to automate the process of extracting all letters from these image, I would suggest you to use OpenCV and build a contour detector and find contours in the image and then crop the contours to extract all the images.



        The accuracy of your detector could be improved by converting the image to black and white or binary image or apply some threshold.you can read more about OpenCV contours here.
        This blog might also be a little handy.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Mar 28 at 6:48

























        answered Mar 28 at 6:04









        thanatozthanatoz

        569319




        569319



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Data Science Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48098%2fcrop-all-written-letters-from-image-to-form-a-website%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

            Luettelo Yhdysvaltain laivaston lentotukialuksista Lähteet | Navigointivalikko

            Gary (muusikko) Sisällysluettelo Historia | Rockin' High | Lähteet | Aiheesta muualla | NavigointivalikkoInfobox OKTuomas "Gary" Keskinen Ancaran kitaristiksiProjekti Rockin' High