Comments (7)
文件里面给的compress ratio 是compression ratio : %f : 1\n",(double)(rawSize-undecodeSize)/finalSize);但是这个rawsize好像并不是原来JPEG文件大小,应该是解码后的,那是不是我应该看finalsize+undecodeSize是压缩后的结果?
from imdedup_plus.
这个rawsize就是原始JPEG的大小。undecodeSize指的是无法被成功解JPEG的图像,比如出错误的图像数据、非JPEG图像,减去它是为了将这些非正常的JPEG因素排除在统计中。
from imdedup_plus.
您好,我按照仓库里面的方法生成图片,就是给一张图加水印,然后一个文件夹里面都是这张图加水印图片,然后得到的压缩率有3、4这么多,但是我看文章上说只有1.3不到的压缩率,这个正常吗,finalsize是这个文件夹得到的压缩后的文件吗?然后就是我在output路径里面会得到一个0文件夹,里面应该是特征最多的那个图片,然后还有一个0.idp体积很小,那个0.idp是什么呢,是整个文件夹图片的压缩吗?然后我想得到每次压缩的压缩率就用给的公式就可以了吗?
from imdedup_plus.
如果只有这两个图片,这个压缩率看起来不是很正常。finalSize就是去重后的总大小。文件夹里放的图片,detector找不到与其相似的图片,它们将作为Idelta的base文件。每个文件夹都有一个同名的idp文件,idp文件保存的就是被Idelta压缩的target文件,imdedup将其压缩后的数据打包成一个idp保存,主要是为了减少频繁写小文件导致的I/O。压缩率我都在main函数里打印出来了。
from imdedup_plus.
from imdedup_plus.
哦,你用了几十张,那这个压缩率是正常的。压缩率是整个文件夹的压缩率。
from imdedup_plus.
我更新了代码和readme,你可以check一下,你可以通过先压缩,再尝试解压缩。如果解压缩通过了,那就说明没有问题。
from imdedup_plus.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imdedup_plus.