https://github.com/robert/enf-matching
Date a recording using background electrical noise
https://github.com/robert/enf-matching
electric
Last synced: 6 months ago
JSON representation
Date a recording using background electrical noise
- Host: GitHub
- URL: https://github.com/robert/enf-matching
- Owner: robert
- Created: 2022-09-12T09:43:24.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-01-10T16:11:59.000Z (over 1 year ago)
- Last Synced: 2024-12-25T13:21:52.701Z (9 months ago)
- Topics: electric
- Language: Python
- Homepage: https://robertheaton.com/enf
- Size: 3.91 KB
- Stars: 94
- Watchers: 3
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ENF matching
The example code from my blog post about ENF matching: ["How to date a recording using background electrical noise"](https://robertheaton.com/enf). This script predicts when a target recording was taken by comparing its background electrical noise to a reference recording.
## Requirements
* Python3
* Virtualenv (or similar)
* Curl (for downloading sample files) (can also download manually)## Usage
### Setup
```
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
```Download sample files from https://github.com/ghuawhu/ENF-WHU-Dataset:
```
./bin/download-examnple-files
```### Run
```
source venv/bin/activate
python3 main.py
```Should output:
```
True value is 71458
Best prediction is 71460
```