diff --git a/content/posts/week-10.md b/content/posts/week-10.md new file mode 100644 index 0000000..e1f3a6d --- /dev/null +++ b/content/posts/week-10.md @@ -0,0 +1,40 @@ +--- +title: "Week 10" +date: 2022-04-10T13:13:48+01:00 +draft: false +--- +This week I was busy applying for jobs and working on the CS38220 assignment. So I only managed to do code clean-up and implementing a config file which allows a user to change the order of filters and other settings. + +Config file example: `config.yml` + +```yaml {linenos=table, linenostart=1} +--- +# Config file for autophotographer + +# List of filters to apply in order +filters: + - brightness + - filesize + - contrast + - focus + +# Whether or not to apply CNN ranking +CNNrank: True + +# Options for focus filter +brightness_options: + threshold: 0.35 + +# Options for focus filter +filesize_options: + threshold: 0.35 + +# Options for focus filter +contrast_options: + threshold: 0.35 + +# Options for focus filter +focus_options: + threshold: 0.35 +... +``` diff --git a/public/404.html b/public/404.html index 568e866..411d712 100644 --- a/public/404.html +++ b/public/404.html @@ -14,7 +14,7 @@ - + + + + + + + + +
+ + +
+
+ +
+ + + Week 10 + + +
+ + + + + + +
+ + + +
+

+ Week 10 +

+ +
April 10, 2022
+ + + + + + + + + +

This week I was busy applying for jobs and working on the CS38220 assignment. So I only managed to do code clean-up and implementing a config file which allows a user to change the order of filters and other settings.

+

Config file example: config.yml

+
+ +
+
 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+ 9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
+25
+26
+27
+28
+29
+
+
---
+# Config file for autophotographer
+
+# List of filters to apply in order
+filters:
+  - brightness
+  - filesize
+  - contrast
+  - focus
+
+# Whether or not to apply CNN ranking
+CNNrank: True
+
+# Options for focus filter
+brightness_options:
+  threshold: 0.35
+
+# Options for focus filter
+filesize_options:
+  threshold: 0.35
+
+# Options for focus filter
+contrast_options:
+  threshold: 0.35
+
+# Options for focus filter
+focus_options:
+  threshold: 0.35
+...
+
+
+
+ + + +
+ +
+ + + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + diff --git a/public/posts/week-2/index.html b/public/posts/week-2/index.html index eb6b9df..af0db17 100644 --- a/public/posts/week-2/index.html +++ b/public/posts/week-2/index.html @@ -2,7 +2,7 @@ - + - +