我家冤案未破,望各位提供帮助,唯一翻盘的证据视频,但是不清楚!!一直没找到有效的视频清晰化工具,如果能有效提高清晰程度,我家必定重酬谢同行兄弟
根据香农(Shannon)的信息理论,软件后期处理不能增加新的信息量,所以希望通过软件增加图片的细节不可取。
但是如果你是视频,有很多帧画面,可以通过图像叠加、锐化增加细节。
我有这样的软件,虽然本来是为了天文照片处理的,不过对你应该也有帮助,留下email采纳本回答可以给你。
使用python运行试试看这段代码,应该有点用,不过不知道是不是你上传的原因这图片看上去模糊的挺厉害
#coding:utf-8
import sys,os
from PIL import Image,ImageDraw
#二值判断,如果确认是噪声,用改点的上面一个点的灰度进行替换
#该函数也可以改成RGB判断的,具体看需求如何
def getPixel(image,x,y,G,N):
L = image.getpixel((x,y))
if L > G:
L = True
else:
L = False
nearDots = 0
if L == (image.getpixel((x - 1,y - 1)) > G):
nearDots += 1
if L == (image.getpixel((x - 1,y)) > G):
nearDots += 1
if L == (image.getpixel((x - 1,y + 1)) > G):
nearDots += 1
if L == (image.getpixel((x,y - 1)) > G):
nearDots += 1
if L == (image.getpixel((x,y + 1)) > G):
nearDots += 1
if L == (image.getpixel((x + 1,y - 1)) > G):
nearDots += 1
if L == (image.getpixel((x + 1,y)) > G):
nearDots += 1
if L == (image.getpixel((x + 1,y + 1)) > G):
nearDots += 1
if nearDots < N:
return image.getpixel((x,y-1))
else:
return None
# 降噪
# 根据一个点A的RGB值,与周围的8个点的RBG值比较,设定一个值N(0 <N <8),当A的RGB值与周围8个点的RGB相等数小于N时,此点为噪点
# G: Integer 图像二值化阀值
# N: Integer 降噪率 0 <N <8
# Z: Integer 降噪次数
# 输出
# 0:降噪成功
# 1:降噪失败
def clearNoise(image,G,N,Z):
draw = ImageDraw.Draw(image)
for i in xrange(0,Z):
for x in xrange(1,image.size[0] - 1):
for y in xrange(1,image.size[1] - 1):
color = getPixel(image,x,y,G,N)
if color != None:
draw.point((x,y),color)
#测试代码
def main():
#打开图片
image = Image.open("d:/1.jpg")
#将图片转换成灰度图片
image = image.convert("L")
#去噪,G = 50,N = 4,Z = 4
clearNoise(image,50,4,4)
#保存图片
image.save("d:/result.jpg")
if __name__ == '__main__':
main()