Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to render text annotation on frontend? #1071

Open
abhisheklomsh opened this issue Sep 11, 2023 · 2 comments
Open

How to render text annotation on frontend? #1071

abhisheklomsh opened this issue Sep 11, 2023 · 2 comments

Comments

@abhisheklomsh
Copy link

I am working on cell counting model and using DSA+Histomics for it, Can i also include a text number in the middle of the region of interest for which the nuclei segmentation boundaries are generated?
Screenshot 2023-09-11 at 2 42 23 PM

@lomshabhishek
Copy link

I was able to create annotation using numpy which "draws" those characters instead of being able to pass "text" type annotation.

annotations.append({
                'type': 'polyline',
                'points': [[segment[0][0], segment[0][1], 0.0], [segment[1][0], segment[1][1], 0.0]],
                'closed': False,
                'fillColor': 'rgba(0,0,0,0)',
                'lineColor': color,
                'lineWidth': line_width
            })

@manthey
Copy link
Contributor

manthey commented Sep 14, 2023

There is an intent (not realized) of having an option to render the labels on each annotation element. One of the reasons it hasn't been implemented yet is that we have to decide what to do when there are massive numbers of elements, as that will slow rendering down critically. Adding a text annotation would be another approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants