Commit Graph

629 Commits

Author SHA1 Message Date
Michael Mayer
c5e2783b8d Upgrade Go to 1.12.5, improve Makefile and add chromium-browser 2019-05-09 06:18:22 +02:00
Michael Mayer
24a205314a Upgrade fontawesome-free, leaflet and material-design-icons-iconfont 2019-05-09 03:49:05 +02:00
Michael Mayer
58f03eff47 Fix for updateMap() when there are no photos with location information 2019-05-08 07:54:53 +02:00
Michael Mayer
e7c8889793 Add photo markers and additional icons to leaflet map componenty 2019-05-08 06:47:30 +02:00
Michael Mayer
0f0a1b5f12 UI improvements for gallery, maps and alerts 2019-05-08 04:37:45 +02:00
Michael Mayer
827e671c84 Remove footer to avoid unused whitespace at the bottom 2019-05-07 21:41:27 +02:00
Michael Mayer
052578a932 Fix navigation z-index 2019-05-07 21:40:46 +02:00
Michael Mayer
07c5c6a580 Use https for loading map tiles, see #3 2019-05-07 17:02:15 +02:00
Michael Mayer
21feb49c3c Delete node_modules when running "make clean" 2019-05-07 16:16:39 +02:00
Michael Mayer
1497e15cee Upgrade chalk, copy-webpack-plugin, eslint-plugin-html and ora (JS) 2019-05-07 16:15:38 +02:00
Michael Mayer
940e2a69f9 Upgrade Webpack and JS dependencies 2019-05-07 15:41:33 +02:00
Michael Mayer
53a5d84653 Switch from yarn to npm and other frontend improvements, see #3
See https://iamturns.com/yarn-vs-npm-2018/
2019-05-07 02:05:01 +02:00
Michael Mayer
55c19635c9 Update inline comment regarding the use of Context 2019-05-06 23:41:49 +02:00
Michael Mayer
0ddef3a02d Rename context package to config and fsutil to util 2019-05-06 23:18:10 +02:00
Michael Mayer
cf8d4ce29b Remove syscall.Kill from context Shutdown() 2019-05-06 22:13:35 +02:00
Michael Mayer
1e6f41b417 Improve image classification performance and logging in debug mode 2019-05-04 17:34:51 +02:00
Michael Mayer
d83e81b49b Graceful web and database server shutdown; add log-level flag 2019-05-04 13:29:32 +02:00
Michael Mayer
ff09f76bc5 Add PhotoTag model to weight photo tags based on confidence and source 2019-05-04 11:50:19 +02:00
Michael Mayer
e148e7af46 Add ColorPerception struct and improve Color() tests, see #7
Since we're not using the very same colors as material design anymore,
MaterialColor was renamed to IndexedColor.
2019-05-04 11:27:33 +02:00
Michael Mayer
e565195f23 Add config flag for read-only mode, see #56 2019-05-04 09:11:33 +02:00
Michael Mayer
7074faabe0 Additional airport image for testing, see #7 2019-05-04 07:19:02 +02:00
Michael Mayer
5d80af8434 Add static testdata for color indexing and image classification, see #7
Images are scaled down to ~331px. Filenames contain object and color.
2019-05-04 07:10:39 +02:00
Michael Mayer
868e1b80b9 Use reflection and yaml.Unmarshal() for configuration, see #66 2019-05-04 05:25:00 +02:00
Michael Mayer
bd60b5d398 Remove deprecated PerceptualHashSize const 2019-05-04 01:24:43 +02:00
Michael Mayer
471d77ee47 Fix download-nasnet.sh script 2019-05-04 01:17:39 +02:00
Michael Mayer
3389b5115e Use hash to keep TensorFlow model up to date 2019-05-04 00:53:02 +02:00
Michael Mayer
3589a410c2 Add test.jpg fixture for fsutil package 2019-05-03 18:58:33 +02:00
Michael Mayer
71adb35cff Remove test and frontend packages; app and test context refactoring 2019-05-03 18:57:28 +02:00
Michael Mayer
6cba9d061f Remove unnecessary getter prefix
See https://golang.org/doc/effective_go.html#Getters
2019-05-02 17:26:44 +02:00
Michael Mayer
9e0ca24dee go.mod cleanup 2019-05-02 16:03:09 +02:00
Michael Mayer
3315b87305 Use logrus for logging 2019-05-02 14:10:05 +02:00
Michael Mayer
7f41d80a1d Upgrade docker container image to 20190501 2019-05-01 17:49:49 +02:00
Michael Mayer
8289de2746 Improve logging and set optional password for built-in TiDB server 2019-05-01 14:54:11 +02:00
Michael Mayer
026563ebad Upgrade Go mod dependencies 2019-05-01 07:40:38 +02:00
Michael Mayer
818019a7ec Use nasnet mobile instead of inception v1 for image classification 2019-04-30 13:17:01 +02:00
Michael Mayer
a82696f067 Move color, luminance and saturation to files table 2019-04-29 21:54:36 +02:00
Michael Mayer
b079882354 Slow test refactoring (now using testing.Short()) 2019-04-29 20:09:17 +02:00
Michael Mayer
f242f117f4
Add contributors badge 2019-04-29 17:20:33 +02:00
Michael Mayer
900e8c5e23 Color extraction: Add saturation value 2019-04-29 17:12:24 +02:00
Michael Mayer
5e1210c508 Add luminance and monochrome return values to MediaFile.Colors() 2019-04-29 01:59:57 +02:00
Michael Mayer
7ddfb6d9dc Add donations to SPONSORS.md 2019-04-28 13:24:38 +02:00
Sebastian Kunert
6267118acf Fix broken tensorflow test (#107)
* Fix broken tensorflow test

* Introduce rounding to fix tests
2019-04-28 11:09:25 +02:00
Michael Mayer
2e418d6e1e Fix API photo like / unlike test (failed existing photos), see #79 2019-04-26 04:25:00 +02:00
Michael Mayer
bc208c378c Set max length for file name to 512 chars because of utf8mb4, see #106 2019-04-26 04:13:50 +02:00
Michael Mayer
ae54bf55f8 Set MySQL version to 8.0.16 for DEV and CI, see #106 2019-04-26 04:12:55 +02:00
Michael Mayer
2f15ca2c59 Reduce length for file names to 2048 chars to fix error on CI, see #106 2019-04-26 02:44:57 +02:00
Michael Mayer
ffc64cceb0 Use 3x3 thumbnail for color indexing #7
Other implementations were unstable due to the use of random numbers.
This seems to be fast and also enables us to search specific parts
of an image. 16 colors are indexed (Material Design).
2019-04-26 02:22:53 +02:00
Michael Mayer
94205f0113 Models: Allow 4096 chars for file names, fix #106 2019-04-25 03:52:25 +02:00
Michael Mayer
b294ad10b3 Fix TestMediaFile_GetColors_Slow test 2019-04-18 20:16:09 +02:00
Sebastian Kunert
48a9f78cb3 Improve color indexing by using k-means clustering (#103)
* First commit for color-improvements

* Use k-means for prominent color detection

* Remove debugging code

* Add color checks to tests

* Add additional test for color names
2019-04-18 17:27:08 +02:00