Giter Site home page Giter Site logo

Comments (2)

SakuraRiven avatar SakuraRiven commented on August 28, 2024

@YanShuang17 Hi, thanks for reading these code.

  1. The function is_cross_text is used to judge if the crop has cut the text region, instead of image boundary. If the text is split, the following gt generation (distance and angle) is complicated. I was little lazy at that time to handle such cases...
    Indeed, there are some vertices out of crop range. These points don't matter because cv2.fillPoly could automatically filter out outliers.

  2. After while() loop, if cnt <1000(flag==False), it just means that the crop image doesn't cut any valid text region (label==1 vertices). And we don't have to care these ignored vertices.
    The remain vertices still have label==0 which would used in function get_score_geo.

I hope this answer helps. Umm, this repo may be not the best implementation and just for my practice. OTZ

from east.

YanShuang17 avatar YanShuang17 commented on August 28, 2024

@SakuraRiven Thanks for your explanation!
Sorry, Indeed I didn't read codes about the latter gt generation part, didn't notice cv2.fillPoly(), I just read the data augmentation part and feel something wrong...now I understand, thank you!

from east.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.