Update Samsung phone names #3077
Replies: 5 comments 14 replies
-
https://github.com/photoprism/photoprism/blob/develop/internal/entity/camera_makes.go |
Beta Was this translation helpful? Give feedback.
-
In case you cannot create a pull request you can post a list with cameras names and their related commercial name here, so that we can add it. |
Beta Was this translation helpful? Give feedback.
-
Should we maybe gather some data before creating a PR, to avoid making a dozen small ones? (I'd be willing to do that but also have a few questions about convention before starting.) Here's a one-liner to dump all your cameras with make and model, in case anyone wants to contribute: console.log(__CONFIG__.cameras.reduce((carry, item) => carry + "\n" + '"' + item.Make + '" "' + item.Model + '"', '')) Open PP in browser, then run it in the JS console ( Here's a list of easy candidates from me:
The following ones are a bit odd, e.g. Kodak and Nikon repeat the manufacturer name in the model string. Should this be fixed up too? If yes, simply by adding each model to the lookup table, or maybe by some more general approach? For example, having a set of manufacturer names that get stripped from the model name, a la
Finally some oddball. Hard to believe it was sold with that model name slapped on the actual thing; googling it results in almost nothing... Anyone?
Also, what about normalizing the capitalization? SAMSUNG vs. Samsung.... |
Beta Was this translation helpful? Give feedback.
-
Found the code, it just fails here since "NIKON CORPORATION" is not a prefix of "NIKON D80", but that should be fixed once the normalization is in place. A few technical questions have popped up so far: As of now, the normalization/translation of the exif make and model names happens before inserting into the camera table. That means that every time the lookup tables in The other problem I found are devices where the exif make field is either wrong, or contains a company name that isn't shown anywhere on the product, for example
Looking forward to your thoughts and input. |
Beta Was this translation helpful? Give feedback.
-
This has been released today: https://github.com/photoprism/photoprism/releases/tag/231011-63f708417 Any help in testing these changes is much appreciated! |
Beta Was this translation helpful? Give feedback.
-
Mostly cosmetic and maybe my OCD kicking in. But would it be possible to update the Samsung camera names to their actual commercially known names? I'm aware that the names are being pulled directly from the EXIF data, but it would be nice if perhaps Photoprism could convert something like 'Samsung SM-F936U1' into 'Samsung Galaxy Z Fold4' (The actual phone name most people recognize)
Beta Was this translation helpful? Give feedback.
All reactions