-
Notifications
You must be signed in to change notification settings - Fork 192
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
Only annotate each object once, to help avoid overlapping text #300
Comments
Hi,
Are you trying to solve the specific problem the original poster mentioned,
or make general progress on improving the annotations?
The former might be relatively easy. It's probably because there is an
entry in the bright star catalog, and a duplicate entry in the HD catalog,
and both get labelled. One could check whether an object within N pixel
had already been labelled.
The more general problem - how do you annotate a good number of objects
without making a huge mess - is harder. The density of objects varies
greatly across the sky, so you can't use simple rules like 'label stars if
the image is less than a degree across' - that's more-or-less what the
current code does. I think what one wants to do is label objects in some
brightness ordering, and stop labeling when they start colliding, or a
certain number have been labelled. Or something like that. It would take
some experimenting. I don't know that we have all the information we would
need (brigthness orderings) in the input catalogs, so one would have to
gather that too.
cheers,
dustin
…On Sat, Jul 13, 2024 at 12:19 PM Neal McBurnett ***@***.***> wrote:
As noted in the google group at Annotation needs some optimization
<https://groups.google.com/g/astrometry/c/VqFO17KXUyg/m/EKoO2w_eAwAJ>,
sometimes multiple annotations are shown for a single object, resulting in
overlapping unreadable text.
dwhogg noted, "This is because we have duplicate names in the catalog we
use for labeling."
As @dstndstn <https://github.com/dstndstn> noted, the code which does the
annotations is at
https://github.com/dstndstn/astrometry.net/blob/main/plot/plotann.py
and "this is a hard problem".
Some more hints on the causes of the problem and possible solution
approaches might help produce a pull request.
Many thanks for an amazing program and service!
—
Reply to this email directly, view it on GitHub
<#300>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIEH7IGQA3TH5CCQ7SSQGLZMFHRRAVCNFSM6AAAAABK2MP6V6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDOMBUGMYDCNY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Many thanks for the additional background! |
Something like that is available in the API: eg, for your example, |
Cool - great to see how easy the API is to use! If, as I suggest there, a further step was taken to create an API menu URL, linking to all other API options for given object, and add another tab with a link to that URL for the current object, then these very handy features would be much more discoverable. |
As noted in the google group at Annotation needs some optimization, sometimes multiple annotations are shown for a single object, resulting in overlapping unreadable text.
dwhogg noted, "This is because we have duplicate names in the catalog we use for labeling."
As @dstndstn noted, the code which does the annotations is at https://github.com/dstndstn/astrometry.net/blob/main/plot/plotann.py
and "this is a hard problem".
Some more hints on the causes of the problem and possible solution approaches might help produce a pull request.
Many thanks for an amazing program and service!
The text was updated successfully, but these errors were encountered: