polimi-ispl / prnu-python

Python implementation of PRNU extractor
MIT License
70 stars 32 forks source link

How apply this code to a batch of images #4

Closed T-nfd closed 1 year ago

T-nfd commented 1 year ago

Hi Sirs,

Thanks for sharing this code.

I cloned your project, and I ran python -m unittest test_prnu.TestPrnu in Colab. I got this error: image

I need to extract PRNU to feed the results to my model. Unfortunately, I don't understand how to use your code. Can you please tell me how to apply this code to the Vision dataset?

@luca-bondi @nicobonne

Best regards,

nicobonne commented 1 year ago

If you want to run the unit test you need to be in the test directory, not in the main directory. I just tested it and it works, be sure to clone the last version of the repo as I had to fix an older numpy version right now.

Anyhow, the unit test is just for assessing that everything works properly, it won't give you any result. If you want to use the code there's the example.py script explaining everything, check that out.