Skip to content

robert/enf-matching

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
Oct 25, 2022
Oct 25, 2022
Oct 25, 2022
Oct 25, 2022

ENF matching

The example code from my blog post about ENF matching: "How to date a recording using background electrical noise". 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:

<snip>
True value is 71458
Best prediction is 71460

About

Example code for my blog post "How to date a recording using background electrical noise"

Topics

Resources

Stars

Watchers

Forks