AllLuckZeroSkill / ECHO

Senior Design Capstone Project
0 stars 0 forks source link

Implement Real-Time Graphical Visualization of Sound Direction #6

Closed AllLuckZeroSkill closed 11 months ago

AllLuckZeroSkill commented 11 months ago

We have an important enhancement for our boardDOA.py script (link to the GitHub repo will be provided). The task is to integrate a live graph feature that visually represents the sound direction data from our DOA algorithm, which returns values from 0 to 360 degrees.

Task Overview:

Enhance boardDOA.py: Build upon our existing script, which uses the Respeaker libraries to output the angle of sound direction. The script's Mic_tuning.direction function returns a value between 0 and 360 degrees, representing the sound direction. Your job is to visualize this data in real-time on a graph.

Graph Implementation: Type of Graph: A polar plot or circular graph would be most suitable for displaying the 360-degree range of sound direction data. Design Considerations: Ensure the graph dynamically updates with the values from Mic_tuning.direction. Utilize visual elements like markers or color changes to indicate the current sound direction. Required Libraries: Use Python's matplotlib library for the graph, along with matplotlib.animation for live updates. numpy may also be required for data handling.

Deliverables: An updated Python script combining DOA sound direction detection with a live graphical representation. Comprehensive documentation and examples demonstrating the graph's functionality.

Deadline: Wednesday December 4th

MarkWasz commented 11 months ago

Made the updated changes. Had a script that was able to plot on a polar graph, just changed the theta input to Mic_tuning.direction.

Reference used can be found here: https://stackoverflow.com/questions/62311075/python-add-label-to-each-point-in-polar-plot

AllLuckZeroSkill commented 11 months ago

Made the updated changes. Had a script that was able to plot on a polar graph, just changed the theta input to Mic_tuning.direction.

Reference used can be found here: https://stackoverflow.com/questions/62311075/python-add-label-to-each-point-in-polar-plot

Thank you, the plot works just fine after some tweaking to fit some new code I added.

Also you directly uploaded your files to the main branch, please make sure you follow the github tutorial I uploaded and submit your changes to your own branch then open a pull request. Or I can show you how to do it next time we meet.

Git Tutorial: https://youtu.be/NDoBoxPr1XQ