115
edits
No edit summary |
|||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Project II == | |||
In the project "The Concert of Microorganism", a microorganism-Music interactive installation is designed. As the extension of the last Project, it becomes more complete and interesting. | |||
Introduction: | |||
[[File:p2_1 (1).jpg]] | |||
Conceptual graphs | |||
[[File:p2_1 (2).jpg]] | |||
Performance of the program | |||
[[File:p2_1 (3).jpg]] | |||
The Code of the program: | |||
[[File:p2_1 (4).jpg]] | |||
== Project == | == Project == | ||
I am going to build a Euglena-Music game | For my project, I am going to build a Euglena-Music interactive game. I set up the observation area, and the area is displayed on my computer. The scene is recorded and transferred to our software, where the imported videos/frames is going to be combined with virtual objects. The virtual objects are several squares, which are colorful squares as keys of tones, at a constant position in the scene from the video. The tones are namely:CDEFGA. If a square is virtually hit by Euglena (my creature's name), the corresponding tone is going to played by the computer. I record these tones, and play it as a song by Euglena. | ||
I'm going to ask players to anticipate the project. After they set up the observation area, they are going to be asked to put Euglena in to the area by themselves. When the entering positions are different, the song is going to be a different style as I suppose. | |||
[[File:tones.jpg]] | [[File:tones.jpg]] | ||
Line 31: | Line 49: | ||
File:gmu6.jpg | File:gmu6.jpg | ||
File:gmu5.jpg | File:gmu5.jpg | ||
</gallery> | </gallery> | ||
Line 49: | Line 66: | ||
File:WeChat Image_20210107133244.jpg | File:WeChat Image_20210107133244.jpg | ||
File:WeChat Image_20210107133250.jpg | File:WeChat Image_20210107133250.jpg | ||
</gallery> | |||
More coding work, including description. | |||
<gallery> | |||
File:b1.jpg | |||
File:WeChat Image_20210121120102.jpg | |||
File:WeChat Image_20210121120136.jpg | |||
File:WeChat Image_20210121120206.jpg | |||
File:WeChat Image_20210121120234.jpg | |||
File:WeChat Image_20210121120300.jpg | |||
File:WeChat Image_20210121120327.jpg | |||
File:WeChat Image_20210121120359.jpg | |||
File:WeChat Image_20210121120434.jpg | |||
File:WeChat Image_20210121120500.jpg | |||
</gallery> | |||
The result based on the updated coding work. The position data are collected, and the tracking program works very well. The problem is checking the activation of the tone key. | |||
<gallery> | |||
File:WeChat Image_20210121120531.jpg | |||
File:WeChat Image_20210121120554.jpg | |||
File:WeChat Image_20210121120628.jpg | |||
File:WeChat Image_20210121120656.jpg | |||
File:WeChat Image_20210121120724.jpg | |||
File:WeChat Image_20210121120751.jpg | |||
File:WeChat Image_20210121120821.jpg | |||
</gallery> | |||
==Result== | |||
The euglena is playing music now, shown in the video: https://youtu.be/Xii05jX-n2U | |||
The key parts of code is that the tone block class and the activation function. Python code: https://drive.google.com/file/d/1hBU07gxJaHZh0bJvCG0u-uSmO2EOhpYz/view?usp=sharing | |||
and here as .txt: [[:File:Euglina object tracking.ipynb.txt]] | |||
<gallery> | |||
File:euglena1.JPG | |||
</gallery> | </gallery> |
edits