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

Sidewalk Gallery: label placement different on small card vs. expanded modal #2660

Open
jonfroehlich opened this issue Aug 9, 2021 · 10 comments

Comments

@jonfroehlich
Copy link
Member

You'll notice that the blue label location is different on the small card (drawn on street) vs. on the expanded card:

image

@jonfroehlich
Copy link
Member Author

Looks like this is pretty common now:

image

I had not noticed this before. I wonder if a recent change caused the problem?

@jonfroehlich
Copy link
Member Author

But it's not always the case:

image

@misaugstad
Copy link
Member

@jonfroehlich I was able to reproduce this going back to our earliest version!
Screenshot from 2021-08-09 12-58-15

@misaugstad
Copy link
Member

Oh right, this is really just this issue that I've been needing to fix 😅 #2485 It's just the issue of not making the crops correctly either. Projecting onto the static SV image is just not working correctly yet.

@jonfroehlich
Copy link
Member Author

Gotcha. I'm gonna go ahead and make the video then. And we'll deal with this when we can. Sound good?

@misaugstad
Copy link
Member

Perfect, yep!

@misaugstad misaugstad self-assigned this Aug 21, 2021
@misaugstad misaugstad added the Bug label Aug 21, 2021
@michaelduan8
Copy link
Collaborator

Yeah, definitely might be worth doing a deeper analysis (expand on our regression analysis) to gain more accuracy in both crops and label placement on static images.

@misaugstad
Copy link
Member

might be worth doing a deeper analysis (expand on our regression analysis) to gain more accuracy in both crops and label placement on static images

I think the regression analysis you're talking about was in estimating the lat/lng of labels, not their location on the images and the crops. The bad crops seem to more likely be a problem with our math that desperately needs to be resolved :)

@jonfroehlich
Copy link
Member Author

Here's a video example. I'm hoping @uditpatwal's work will help solve this.

LabelJumpingAround.mp4

@misaugstad
Copy link
Member

This is a sub-problem of #3095.

The reason that this is happening is because GSV's static API, which we use to get images for the small cards, has a maximum image size of 640 x 480 pixels while we are actually requesting images with dimensions of 720 x 480 (bc those are the dimensions of the Explore page GSV window).

In #3173 I made some small improvements to make the location of the labels on the cards much more accurate, but there is still going to be slight discrepancies until we deal with #3095.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: medium term todo
Mikey Task Board
medium term todo
Development

No branches or pull requests

3 participants