Use Halcon to extract clothing badges

Source: Internet
Author: User

I got an email and a student asked for help.Remove the cloth on the texture of the disturbance, and then extract the clothes on the edge of the coat of arms method.  I think he must have been a very hard-working boy, he might have tried various methods before asking for help, through the two value of the constant debug threshold value, looking for a variety of edge detection operators continuous experiments, or higher-level use of FFT to try to remove the background and so on, I remember when I first started The unveils, on the Internet or in the library searching for books,trying to find the answer,However, subject to the imperfections of their own knowledge system, and can not get a satisfactory answer. So in the busy work at hand, I seriously looked at his needs, and responded to several methods for their reference.   Letter:  Hello, pony! I am a beginner of Halcon, watch your free video and live commentary series video. Now there is a question to ask you for help, I want to remove the texture of clothing interference, and then extract the edge of the garment case, how to do? I hope you can give me some help in your busy schedule, thank you very much! Reply:Hello:
The work is busy, today only hollow carefully read your mail.One, do not know the purpose of your extraction of a badge, if it is to match the positioning there will be a better way, here do not say this.  Second, according to your needs to list several methods for your reference 2.1 labor-saving method, with the help of Halcon edge extractionEdges_color_sub_pixThis method needs to set the appropriate filtersize and low high threshold values to be Edges_color_sub_pix (Image, Edges, ' canny ', 15, 40, 60) effects                  2.2 Increase the difficulty, put in some of their own thinking in color image, color information is a favorable condition that can not be neglected. We transferred it into the HSV space to take S channel, as to what is HSV, why take s channel, can see my basic course.         DECOMPOSE3 (Image, R, G, b) Trans_from_rgb (b, G, R, H, S, V, ' HSV ') s channel is such a simple binary        2.3 More than 2.2 think about it. Starting with the RGB channel, remove the texture based on the channel operation. Put in Halcon the effect of processing, code for Sub_image (b, G, imagesub, 1, 40) two value after the result as to the use of FFT to remove the texture is too cumbersome, the effect is not good, do not do the medium      Shaoxing. Finally hope your own experience, pondering, nothing is difficult undone wish: work smoothly, health pony _xiao concern: Halconhub, daily get Halcon Essence article  



From for notes (Wiz)



List of attachments
    • Converse.jpg

Extract clothes badge with halcon

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.