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

Mapillary Integration loads all segmentations without color #1502

Closed
sturksever opened this issue Aug 2, 2024 · 2 comments
Closed

Mapillary Integration loads all segmentations without color #1502

sturksever opened this issue Aug 2, 2024 · 2 comments
Assignees
Labels
bug Something isn't working feature-streetview Issue or request related to the streetview viewer
Milestone

Comments

@sturksever
Copy link

Description

Mapillary photo overlay renders all segments with no colors when you have turned on the traffic signs layer. It seems like we are just loading all the raw segmentations and rendering them without any color coding. Please see below image on Rapid
451883487_1213702420064588_6196728164382349491_n

Here is a screenshot from iD, when you click on a map feature or traffic sign we show it on the image in MJS.
451884405_1710570286462595_7122601775891744779_n

Screenshots

No response

Version

2.3.2

What browser are you seeing the problem on? What version are you running?

No response

The OS you're using

No response

Steps to reproduce

  • Go to Rapid and enable Mapillary Imagery layer
  • Enable traffic sign layer
  • View the imagery

The browser URL at the time you encountered the bug

https://rapideditor.org/rapid#map=20.12/30.63361/104.07387&background=Bing&datasets=fbRoads,msBuildings&disable_features=boundaries&id=w485149342&photo=mapillary/188334986520037&photo_overlay=mapillary,mapillary-signs

The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)

No response

@bhousel bhousel added the bug Something isn't working label Aug 2, 2024
@bhousel
Copy link
Contributor

bhousel commented Aug 2, 2024

Thanks for reporting @sturksever , I haven't tried this feature out, but I agree it should display the segmentation better.

@bhousel
Copy link
Contributor

bhousel commented Aug 5, 2024

Looks like I commented it out a while ago. I'll revisit and find a way to make this code safe to be called async.
(The concern is probably - highlighting the wrong thing if the user switches to another image during the time it takes to load the detections)

service.getDetectionsAsync(dataID)
.then(detections => {
if (!detections.length) return;
const imageID = detections[0].image.id;
context.systems.photos.selectPhoto('mapillary', imageID);
//todo: check on the asyncness of this code
// service.highlightDetection(detections[0]);
});

@bhousel bhousel added the feature-streetview Issue or request related to the streetview viewer label Aug 9, 2024
@bhousel bhousel self-assigned this Aug 19, 2024
@bhousel bhousel added this to the v2.4 milestone Aug 26, 2024
bhousel added a commit that referenced this issue Aug 27, 2024
(closes #1502)

This restores the Mapillary segmentation behavior to be similar to before:
- all segmentations have a color now (for now mapillary green)
- highlighted detection will be in yellow and have a text label
- selected detection can arrive in the URL hash
- lots of API stuff to know which detections are in which images
- try to adjust the map to show both the detection and a best photo
bhousel added a commit that referenced this issue Aug 28, 2024
In the url shared in #1502, this photo has a lot of segmentation information,
(over 500 objects) but most of it is for object classes that we don't recognize.

This commit changes it so that we only keep recognized objects and traffic signs.
bhousel added a commit that referenced this issue Aug 28, 2024
In the url shared in #1502, this photo has a lot of segmentation information,
(over 500 objects) but most of it is for object classes that we don't recognize.

This commit changes it so that we only keep recognized objects and traffic signs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature-streetview Issue or request related to the streetview viewer
Projects
None yet
Development

No branches or pull requests

2 participants