Skip to content

Commit 18b91af

Browse files
authored
Merge pull request #15 from xinemata/main
software that makes mistakes
2 parents 9e4952d + 3a5724f commit 18b91af

8 files changed

Lines changed: 80 additions & 6 deletions

File tree

_curriculum/03-01-Intro.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@
22
# This is the frontmatter
33

44
title: "Mask Generator" # Title and Heading 1
5-
permalink: /maskGenerator-intro/ # Give your page a permalink
5+
permalink: /maskGenerator-intro/1 # Give your page a permalink
66
published: true
77

88
gallery: # Below is for including an image gallery
9-
- url: /assets/images/thumbnails/unit2.png
10-
image_path: /assets/images/thumbnails/unit2.png
11-
alt: "Screenshot of a collage on books using the p5.js web editor"
12-
title: "About Me Collage"
9+
- url: https://www.mokafolio.de/works/Weird-Faces
10+
image_path: https://www.mokafolio.de/thumbs/works/Weird-Faces/01-2400x1526.jpg
11+
alt: "Weird Faces by Matthias Dörfelt"
12+
title: "Weird Faces by Matthias Dörfelt"
13+
- url: https://vimeo.com/257272785
14+
image_path: https://deweyhagborg.com/media/pages/projects/stranger-visions/0677cc51bf-1643025593/sample6_face_web.jpg
15+
alt: "Stranger Vision by Heather Dewey-Hagborg"
16+
title: "Stranger Vision by Heather Dewey-Hagborg"
17+
- url: https://harriskornstein.com/screen-queen-face-fail/
18+
image_path: https://harriskornstein.com/wp-content/uploads/2024/11/Face-Fail-grid-white-bg-2048x1792.jpg
19+
alt: "Screen Queen Face Fail"
20+
title: "Screen Queen Face Fail"
21+
1322
---
1423

1524
![Create a digital collage with p5.js!]({{ "https://verse.works/image/w3840/static%2F1dbce05a-42de-4250-a1b7-4f22d3e61886.png@webp" | relative_url }})
@@ -64,6 +73,14 @@ Build a simple generator that makes multiple variations of the same mask.
6473

6574
- Iterative design
6675

76+
## References & Artworks for Discussion
77+
78+
{% include gallery%}
79+
80+
- [Weird Faces](https://www.mokafolio.de/works/Weird-Faces), Matthias Dörfelt
81+
- [Stranger Vision](https://vimeo.com/257272785), Heather Dewey-Hagborg
82+
- [Screen Queen Face Fail](https://harriskornstein.com/screen-queen-face-fail/), Harris Kornstein
83+
6784
## Timeline
6885

6986
This project will take approximately four 45-minute sessions:

_curriculum/03-02-Intro.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
# This is the frontmatter
3+
4+
title: "Mask Generator" # Title and Heading 1
5+
permalink: /maskGenerator-intro/2 # Give your page a permalink
6+
published: true
7+
---
8+
9+
## Software that Makes Mistakes
10+
11+
![Sentiment analysis]({{ "/assets/images/curriculum/hito_s.webp" | relative_url }})
12+
A detail of “Machine Readable Hito,” 2017. Trevor Paglen / Metro Pictures, New York
13+
14+
How does the computer “see” if we’re happy, sad, or frustrated? Facial recognition is a computer program that captures our image, analyzes the geometry of our contour (the edges or outline of our face), and checks with a database that contains other people’s pictures to make a guess on who we are, and how we feel.
15+
16+
In order to make this invisible algorithm visible, we made this [facial recognition example](https://editor.p5js.org/xinxin/sketches/-gbq9sNsC) in p5.js for you to try out. You will need to give permission to your browser to access your camera for this sketch to play.
17+
18+
![Sentiment analysis]({{ "/assets/images/curriculum/face_rec_1.jpg" | relative_url }})
19+
20+
![Sentiment analysis]({{ "/assets/images/curriculum/face_rec_2.png" | relative_url }})
21+
22+
#### Sentiment (emotion or feeling) Analysis
23+
24+
The facial recognition software traces our faces and assigns numbers to our contours as an attempt to understand our feelings. But how often does it get it right? We can test this out by picking one emotion from the [Wheel of Emotions](https://www.isu.edu/media/libraries/counseling-and-testing/documents/Wheel-of-Emotions-Handout-(3).pdf) and performing it in front of this [emotion recognition example](https://editor.p5js.org/jodiechifunyise/sketches/zdV2SqBiD).
25+
26+
#### Let’s Discuss
27+
- Did you notice any differences between the emotion you chose from the wheel and the emotion deteced in the p5.js sketch?
28+
- Reflect on the different people you have met throughout your life, do they express emotions like joy, fraustration, or vulnerability with the same facial expressions?
29+
- What are some potential consequences when software misread human emotions?
30+

_curriculum/06_01-Lessons.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@ permalink: /walkInNeighborhood-lessons/ # Give your page a permalink
55
published: true
66

77
---
8+
9+
```jsx
10+
let x = 25;
11+
let h = 20;
12+
let y = 25;
13+
function setup() {
14+
  createCanvas(480, 120);
15+
}
16+
function draw() {
17+
  background(204);
18+
  rect(x, y, 300, h);        // Top
19+
  x = x + 100;
20+
  rect(x, y + h, 300, h);    // Middle
21+
  x = x - 250;
22+
  rect(x, y + h*2, 300, h);  // Bottom
23+
}
24+
```
25+
26+
### Updating a value
27+
We can also update the value of a variable throughout our code. It can mean one value in a specific context, and then change its value in another.
28+
29+
- Replacing the value of a variable
30+
- Variables can update themselves with new information - ie. x = x+1; This means that x will keep updating to add 1 to itself.
31+
- If using “let,” we can change the variable type. The same variable used for storing numbers can also update to be text or array of values.
32+
833
# Lesson Plans & Technical Steps
934
## 1. Variables + Animation
1035
![Animating with p5.js]({{ "/assets/images/curriculum/Unit-5_Sample-2.gif" | relative_url }})

_data/navigation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ curriculum:
4747
- title: "Project 2: Mask Generator"
4848
children:
4949
- title: "Introduction"
50-
url: /maskGenerator-intro/
50+
url: /maskGenerator-intro/1
51+
- title: "Software that Makes Mistakes"
52+
url: /maskGenerator-intro/2
5153
- title: "Variables"
5254
url: /maskGenerator-lessons/1
5355
- title: "Randomness"

assets/images/.DS_Store

0 Bytes
Binary file not shown.
31.1 KB
Loading
21.3 KB
Loading
375 KB
Loading

0 commit comments

Comments
 (0)