tag:blogger.com,1999:blog-7408569574805188613.post7382489815428621600..comments2023-05-31T01:25:16.011-07:00Comments on Agnius Vasiliauskas coding sandbox: Detecting copy-move forgery in imagesUnknownnoreply@blogger.comBlogger16125tag:blogger.com,1999:blog-7408569574805188613.post-48697759708746233612019-05-09T03:39:48.329-07:002019-05-09T03:39:48.329-07:00You need to pass image file name as input to scrip...You need to pass image file name as input to script like so:<br /><b>python detect_copymove.py image_file.jpg</b>Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-61746364719509926582019-05-09T02:20:38.173-07:002019-05-09T02:20:38.173-07:00Hello,
I am a beginner in computer vision and I
wo...Hello,<br />I am a beginner in computer vision and I<br />would like to know where we can load the image in this code? because when I run it I get this out:<br /><br />Options:<br /> -h, --help show this help message and exit<br /> --imauto=IMAUTO Automatically search identical regions. (default: 1)<br /> --imblev=IMBLEV Blur level for degrading image details. (default: 8)<br /> --impalred=IMPALRED Image palette reduction factor. (default: 15)<br /> --rgsim=RGSIM Region similarity threshold. (default: 5)<br /> --rgsize=RGSIZE Region size threshold. (default: 1.5)<br /> --blsim=BLSIM Block similarity threshold. (default: 200)<br /> --blcoldev=BLCOLDEV Block color deviation threshold. (default: 0.2)<br /> --blint=BLINT Block intersection threshold. (default: 0.2)<br /> Thanks for your helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-91086341656348999512015-02-03T12:00:20.029-08:002015-02-03T12:00:20.029-08:00This forgery detection algorithm is based on analy...This forgery detection algorithm is based on analysis of similar pixels clusters in fake image and don't needs original images for forgery detection.Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-51219057741094014702015-02-01T22:00:09.311-08:002015-02-01T22:00:09.311-08:00sir will u tell me ,whether u are going to compare...sir will u tell me ,whether u are going to compare the original with the forgery image or its direct method of detection of forgery images <br />thank uAnonymoushttps://www.blogger.com/profile/07752130897490054705noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-65898372209378534012010-11-26T06:13:15.817-08:002010-11-26T06:13:15.817-08:00@langthangtrenmang
Thanks !
Try such option:
det...@langthangtrenmang<br /><br />Thanks !<br />Try such option:<br /><br />detect_copymove.py dune_doc.jpg --blcoldev=0.05Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-31228608905092888902010-11-26T01:24:56.440-08:002010-11-26T01:24:56.440-08:00Hi, your tools is great. It's not just a toy s...Hi, your tools is great. It's not just a toy since the idea of several papers about copy-move detection is based on the same idea (they just use different features for their approach: DCT, SVD, wavelet coefficient, PCA,..)<br />However I run your script with several combinations of option, it can only detect the parade_doc.jpg. Dogs and dunes failed. What's the parameter to get the result like the given result here?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-15471262097938669042010-03-20T07:36:08.046-07:002010-03-20T07:36:08.046-07:00@sneha
Hm. Depends on image size and script input...@sneha<br /><br />Hm. Depends on image size and script input parameters. On 400px × 300px image with default parameters it may run under several minutes.<br />It would be good one day to measure time complexity of script - assuming all parameters set to default values. (But this doesn't make any sense for images which tamperings isn't detected with default parameters...)Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-5919673185655873142010-03-20T06:26:20.751-07:002010-03-20T06:26:20.751-07:00how long did it take for your code to execute comp...how long did it take for your code to execute completely?Unknownhttps://www.blogger.com/profile/07205435940111578665noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-58679629398747497962010-03-17T14:16:54.718-07:002010-03-17T14:16:54.718-07:00@Rajesh
If you are asking about test images,- you...@Rajesh<br /><br />If you are asking about test images,- you can use doctored images from this blog post. Or you can search other doctored images on net. Or make your own ;)<br /><br />Good luck!Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-34488466494572759532010-03-17T10:05:54.978-07:002010-03-17T10:05:54.978-07:00i too am working on the detection of copy move. ca...i too am working on the detection of copy move. can u plz tell me where i could get those images to work on.Unknownhttps://www.blogger.com/profile/06205766261787319819noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-37381867977207687172010-03-15T01:58:43.278-07:002010-03-15T01:58:43.278-07:00Hi Thomas !
That error now is fixed. Error was re...Hi Thomas !<br /><br />That error now is fixed. Error was related with image conversion to custom color palette :-)<br /><br />BTW, it is interesting to note that script with default parameter set doesn`t reveals tamperings in your given image. <br />But these parameters reveals ! =><br /><br />python detect_copymove.py Cherries.jpg --blcoldev=0.05 --impalred=30 --blsim=100 --rgsim=2<br /><br />Good luck <br />and thanks for testing ! :-)Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-67882355475270859572010-03-14T15:08:30.485-07:002010-03-14T15:08:30.485-07:00Ha changing the background color from white to dar...Ha changing the background color from white to dark seems to fix the problemAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-32787972670861409372010-03-14T15:05:22.694-07:002010-03-14T15:05:22.694-07:00Hi, I've uploaded the picture occuring the err...Hi, I've uploaded the picture occuring the error described above on the following webpage: <br />http://www.dj9kw.de/Cherries.jpg<br /><br />Best regards,<br /><br />ThomasAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-57319339054295067372010-03-14T14:49:27.330-07:002010-03-14T14:49:27.330-07:00Hi,
very nice script! But I have a little problem ...Hi,<br />very nice script! But I have a little problem testing it on some images, it quits processing after a few seconds with the following error message:<br /><br />Analyzing image, please wait... (can take some minutes)<br />Traceback (most recent call last):<br /> File "detect_copymove.py", line 229, in <br /> dparts = similarparts(lparts)<br /> File "detect_copymove.py", line 131, in similarparts<br /> if dev/mean >= float(opt.blcoldev):<br />ZeroDivisionError: float division<br /><br />But great tool though ;-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-63291940022646374032010-02-25T23:16:01.148-08:002010-02-25T23:16:01.148-08:00You need to install Python image processing librar...You need to install Python image processing library. You can get it from here-<br /><br />http://www.pythonware.com/products/pil/<br /><br />Good luck!Agnius Vasiliauskashttps://www.blogger.com/profile/10940660947742989178noreply@blogger.comtag:blogger.com,1999:blog-7408569574805188613.post-17085087811506082462010-02-02T09:54:04.578-08:002010-02-02T09:54:04.578-08:00I have an error:
File "C:\detect_copymove.py&...I have an error:<br />File "C:\detect_copymove.py", line 15, in <br />from PIL import Image, ImageFilter, ImageDraw<br />ImportError: No module named PIL<br /><br />Can you help me?Anonymousnoreply@blogger.com