Third commit
This commit is contained in:
49
main.py
Normal file
49
main.py
Normal file
@@ -0,0 +1,49 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# @Time : 2022-7-24 0024 15:59
|
||||
# @Author : Qing
|
||||
# @Email : derighoid@gmail.com
|
||||
# @File : main.py
|
||||
# @Software: PyCharm
|
||||
|
||||
from GammaCorrection import *
|
||||
from Modify_Pixels import *
|
||||
from Orientation_Modification import *
|
||||
from Subtractive_Algorithm import *
|
||||
from Image_Mix import *
|
||||
if __name__ == '__main__':
|
||||
# 图片读取
|
||||
picture_read = pictureRead('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg')
|
||||
# picture_read.plt_image()
|
||||
|
||||
# 图片修改
|
||||
modif_image = modfifyImage('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg')
|
||||
# print(modif_image.img_RGB())
|
||||
|
||||
# 图片方向修改
|
||||
direction_Changes = directionChanges('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg')
|
||||
# direction_Changes.verticalSummetry_right()
|
||||
# direction_Changes.verticalSummetry_lift()
|
||||
# direction_Changes.mirrorSymmetry()
|
||||
# direction_Changes.imageRepetition()
|
||||
# direction_Changes.img_Save()
|
||||
|
||||
# 减色算法
|
||||
reduce_color = ReduceColor('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg')
|
||||
# reduce_color.plt_Img()
|
||||
# reduce_color.img_Save()
|
||||
# reduce_color.imgBinarization()
|
||||
|
||||
# Gamma矫正
|
||||
# gammaCorrect("./data/th.png", 1.5)
|
||||
|
||||
# 图片截取
|
||||
# left, upper, right, lower
|
||||
# imgCut('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg',20,10,190,190)
|
||||
# imgCut('E:\\桌面\\Python_Picture_Analysis\\data\\picture.jpg',30,70,230,230)
|
||||
|
||||
# 图片替换
|
||||
# imgReplace('E:\\桌面\\Python_Picture_Analysis\\data\\th.jpg', "E:\\桌面\\Python_Picture_Analysis\\data\\picture.jpg",
|
||||
# 10, 50, 250, 250)
|
||||
|
||||
# 阿尔法混合
|
||||
# imageMix('E:\\桌面\\Python_Picture_Analysis\\data\\th.png','E:\\桌面\\Python_Picture_Analysis\\data\\picture.png')
|
Reference in New Issue
Block a user