Giter VIP home page Giter VIP logo

Comments (4)

KeremTurgutlu avatar KeremTurgutlu commented on June 28, 2024

Hi,
Thanks for heads up, working on it right now !
Best

from deeplearning.

KeremTurgutlu avatar KeremTurgutlu commented on June 28, 2024

In EDA - PART 2 CONTOUR LABELS notebook you may see the pipeline and functions for contoured mask target creation with visual plots. Hope this helps

from deeplearning.

mattobrien415 avatar mattobrien415 commented on June 28, 2024

It looks like
get_all_contoured_masks
calls another function, get_contoured_mask, which isn't defined.

def get_contoured_mask2d(mask):
    """For a single mask file get contour"""
    gray = cv2.cvtColor(mask, cv2.COLOR_BGR2GRAY)
    (t, binary) = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY)
    (_, contours, _) = cv2.findContours(binary.astype(np.uint8), 
                               cv2.RETR_EXTERNAL,cv2.CHAIN_APPROX_SIMPLE)
    contoured_mask = cv2.drawContours(mask, contours, -1, (0, 0, 255), 2)
    

    contoured_mask = get_contoured_mask(mask)

    contoured_mask2d = ((contoured_mask[:, :, 0]==1)*1) + ((contoured_mask[:, :, 2]==255)*2)
    return contoured_mask2d

screen shot 2018-04-24 at 5 36 03 pm

I suspect
get_contoured_mask2d(mask):
just needs to be changed to
get_contoured_mask(mask):
...although for me I get a RecursionError: maximum recursion depth exceeded error when I proceed with that 🙂

from deeplearning.

saurabh502 avatar saurabh502 commented on June 28, 2024

Hi Just by commenting that part I was able to get result.

#contoured_mask = get_contoured_mask(mask)

Hope this helps!

from deeplearning.

Related Issues (4)

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.