Metadata-Version: 2.4
Name: QAcousticCamera
Version: 1.1.0
Summary: Scanning holographic acoustic camera
Author-email: "David G. Grier" <david.grier@nyu.edu>
License: GNU GENERAL PUBLIC LICENSE
        Version 3, 29 June 2007
        
        Copyright (C) 2022 David G. Grier
        
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation, either version 3 of the License, or
        (at your option) any later version.
        
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.
        
        You should have received a copy of the GNU General Public License
        along with this program.  If not, see <https://www.gnu.org/licenses/>.
        
Project-URL: Homepage, https://github.com/davidgrier/QAcousticCamera
Project-URL: Repository, https://github.com/davidgrier/QAcousticCamera
Project-URL: Issue Tracker, https://github.com/davidgrier/QAcousticCamera/issues
Keywords: acoustic camera,holography,Qt,scientific instruments
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.md
Requires-Dist: numpy>=1.20
Requires-Dist: pandas>=1.4
Requires-Dist: pyqtgraph>=0.13
Requires-Dist: qtpy>=2.0
Requires-Dist: scipy>=1.8
Requires-Dist: QInstrument>=2.3
Requires-Dist: QPolargraph
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-qt>=4.0; extra == "dev"
Dynamic: license-file

# QAcousticCamera

[![PyPI version](https://img.shields.io/pypi/v/QAcousticCamera)](https://pypi.org/project/QAcousticCamera/)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13822360.svg)](https://doi.org/10.5281/zenodo.13822360)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](LICENSE.md)

Scanning holographic acoustic camera based on
lock-in detection of the signal from a microphone
that is scanned across the field of view by an
Arduino-driven polargraph. This illustration of the software
interface shows the phase of a 5 kHz sound wave from a stereo
speaker, including reflections from nearby surfaces.

<img src="docs/QAcousticCamera.png" width="75%" alt="Acoustic camera interface">

Image Credit: Aashay Pai, NYU

## Installation

```bash
pip install QAcousticCamera
```

All dependencies, including [QInstrument](https://github.com/davidgrier/QInstrument/) and
[QPolargraph](https://github.com/davidgrier/QPolargraph/), are installed automatically.
A Qt binding such as [PyQt6](https://pypi.org/project/PyQt6/) must also be present.

## Usage

```bash
# Connect to hardware instruments
python QAcousticCamera.py

# Development/testing without hardware
python QAcousticCamera.py --fake

# Load a previously saved data file on startup
python QAcousticCamera.py --read docs/demo.csv
```

Or, if installed via pip:

```bash
qacousticcamera [--fake] [--read FILE]
```

## Dependencies

- [QInstrument](https://github.com/davidgrier/QInstrument/): Qt-based scientific instrument framework
- [QPolargraph](https://github.com/davidgrier/QPolargraph/): polargraph scanner
- [pyqtgraph](https://pyqtgraph.org/): real-time scientific graphics
- [qtpy](https://github.com/spyder-ide/qtpy): Qt binding abstraction (PyQt5, PyQt6, or PySide6)
- [numpy](https://numpy.org/), [pandas](https://pandas.pydata.org/), [scipy](https://scipy.org/)

## License

This project is licensed under the
[GNU General Public License v3](LICENSE.md).

## References

1. Flexible wide-field high-resolution scanning camera for
   continuous-wave acoustic holography, H. W. Gao, K. I. Mishra,
   A. Winters, S. Wolin and D. G. Grier,
   *Review of Scientific Instruments* **89**, 114901 (2018).

## Acknowledgements

Work on this project at New York University is supported by the
National Science Foundation of the United States under award number DMR-2438983.
