@@ -80,6 +80,55 @@ Dependencies:
80
80
This demo uses [ pygame] ( https://www.pygame.org/ ) for visualization and
81
81
[ PyAudio] ( http://people.csail.mit.edu/hubert/pyaudio/ ) for microphone recording.
82
82
83
+ ## Real time 2D FFT of webcam
84
+
85
+ In this demonstration we perform online 2D fft of a webcam input. Both the
86
+ absolute value and the log of the absolute values are displayed and the 0
87
+ frequency is centered on the window (fftshift).
88
+
89
+ Screenshot:
90
+
91
+ ![ screenshot] ( data/screen_fft.png " screenshot ")
92
+
93
+ Shortcuts:
94
+
95
+ * <kbd >q</kbd > : Quit demo
96
+ * <kbd >s</kbd > : Save screen to png
97
+ * <kbd >Space</kbd > : Pause FFT
98
+ * <kbd >w</kbd > : Active or deactivate windowing
99
+
100
+
101
+ Dependencies:
102
+
103
+ This demo uses [ opencv-python] ( https://github.com/skvark/opencv-python ) for
104
+ webcam access and visualization.
105
+
106
+
107
+
108
+ ## Real time 2D filtering of webcam
109
+
110
+ In this demonstration we perform online 2D filtering of a webcam input. Both the
111
+ original, filtered and FFT of the filtered video with 0
112
+ frequency centered on the window (fftshift) are displayed.
113
+
114
+ Screenshot:
115
+
116
+ ![ screenshot] ( data/screen_2dfilter.png " screenshot ")
117
+
118
+ Shortcuts:
119
+
120
+ * <kbd >q</kbd > : Quit demo
121
+ * <kbd >s</kbd > : Save screen to png
122
+ * <kbd >Space</kbd > : Apply/deactivate filter
123
+ * <kbd >f</kbd > : Change filter (average, high pass, Prewitt, Sobel, median, ...)
124
+ * <kbd >+</kbd > <kbd >-</kbd > : Change cutoff frequency of filter (or its size)
125
+ * <kbd >w</kbd > : Active or deactivate windowing
126
+
127
+ Dependencies:
128
+
129
+ This demo uses [ opencv-python] ( https://github.com/skvark/opencv-python ) for
130
+ webcam access and visualization.
131
+
83
132
## 2D classification demo
84
133
85
134
In this demonstration we illustrate the decision function and update of 2D
@@ -103,6 +152,32 @@ Dependencies:
103
152
This demo uses [ pygame] ( https://www.pygame.org/ ) for visualization and
104
153
[ Scikit-learn] ( https://scikit-learn.org/ ) for classification.
105
154
155
+ ## 2D Dictionary learning demo
156
+
157
+ In this demonstration we illustrate dictionary learning on 2D data. The user cla
158
+ click on the window to add samples (left click) and to remove samples (right
159
+ click). The dictionary is learned in real time and the atoms are displayed.
160
+
161
+
162
+
163
+ ![ screenshot] ( data/screen_dico_2D.png " screenshot ")
164
+
165
+ * <kbd >q</kbd > : Quit demo
166
+ * <kbd >left click</kbd > : Add sample
167
+ * <kbd >right click</kbd > : Remove sample
168
+ * <kbd >c</kbd > : Clear training data
169
+ * <kbd >Space</kbd > : Show/hide dictionary atoms and color samples wrt their representation
170
+ * <kbd >m</kbd > : Change method (PCA, ICA KMeans, NMF, SparsePCA, DictionaryLearning)
171
+ * <kbd >p</kbd > : Show projected and reconstructed samples
172
+ * <kbd >Up</kbd > : Increment the number of atoms
173
+ * <kbd >Down</kbd > : Decrement the number of atoms
174
+ * <kbd >s</kbd > : save screenshot
175
+
176
+ Dependencies:
177
+
178
+ This demo uses [ pygame] ( https://www.pygame.org/ ) for visualization and
179
+ [ Scikit-learn] ( https://scikit-learn.org/ ) for classification.
180
+
106
181
107
182
## Style Transfer Demo
108
183
0 commit comments