Comments (4)
Hi,
Thanks for heads up, working on it right now !
Best
from deeplearning.
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.
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
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeplearning.