A collection of notebooks and scripts for analyzing ant-driven pendulum experiments, including video processing, coordinate tracking, simulation, and data analysis.
Ants/
├── .idea/ # IDE project settings
├── .gitignore # Files to ignore in version control
├── data_analysis.ipynb # Jupyter notebook for data analysis
├── object_tracking_coordinates.csv # CSV of extracted pendulum coordinates
├── pendulum_simulation.ipynb # Jupyter notebook for pendulum simulation
├── pendulum_vid_track_and_graph.ipynb # Notebook for video tracking & plotting
├── pendulumtracking.py # Python script for video-based tracking
└── video_processing.ipynb # Notebook for preprocessing videos
-
Clone the repository
git clone https://github.com/NitzanBarEitan/Ants.git cd Ants -
Create a Python environment (optional but recommended)
python3 -m venv env source env/bin/activate # On Windows: env\\Scripts\\activate
-
Install dependencies
pip install jupyter numpy pandas matplotlib opencv-python scipy
Start JupyterLab or Notebook:
jupyter lab
# or
jupyter notebookOpen any .ipynb file to explore.
- dataanalysis.ipynb: Load and analyze extracted coordinates (created with video_processing.py; plots the relevant graphs and performs statistical analysis.
- video_processing.ipynb: Tracks the ant-driven pendulums and outputs a csv file with the coordinates of each pendulum.
- pendulum_vid_track_and_graph.ipynb: Tracks the physical system (physically coupled pendulums) and plots the relevant graphs.
- pendulum_simulation.ipynb: All the simulations used for the project.