This repo contains scripts modified or translated from the Python scripts and MATLAB scripts based on Benford's law applied to digital forensic analysis by Pedro Fernandes and Mário Antunes, which is available at the original GitHub repository.
Install uv
according to its documentation and then get the project dependencies using the following command:
uv sync
The feature extraction functions have been abstracted into a Python module ImageForensics
, which is currently included in this repository.
You may refer to the Jupyter notebooks in the notebooks
directory for examples on how to use the functions.