TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How can I determine the quality of an image file

2 点作者 vatsci大约 3 年前
I&#x27;m building a software to extract text in image. But some uploaded images are blur, and hard to process. So, I need to build a function to determine if an image is low or high quality. How can I do it?<p>PS: Sorry for my bad english.

3 条评论

version_five大约 3 年前
Downsample it and then up sample and see how different (e.g. mean squared error over the pixels) it is? (Or equivalently (assuming anti-aliasing in the sampling version), apply a low pass filter and compare.<p>Those are just heuristics, you&#x27;d have to try it to see how well they work.
评论 #30719555 未加载
meta-level大约 3 年前
This is hard to answer in general, although general aspects like contrast and resolution are important of course. Maybe you can provide some background regarding your know how and technology you&#x27;re going to use.
评论 #30719584 未加载
mardiyah大约 3 年前
google tools of image properties for each OS<p>that&#x27;d have resolution and bit ratio which I forget how to figure out honestly, not hard to learn in minutes though