<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[爱犬小仙猪的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/qq_41556468</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; qq_41556468]]></copyright><item><title><![CDATA[内置函数（map/set/sorted/zip）]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106571652</link><guid>https://blog.csdn.net/qq_41556468/article/details/106571652</guid><author>qq_41556468</author><pubDate>Fri, 05 Jun 2020 15:41:57 +0800</pubDate><description><![CDATA[python 内置函数map() 函数set() 函数sorted() 函数
map() 函数
map(function, iterable, …)
function – 函数
iterable – 一个或多个序列
&gt;&gt;&gt; map(square, [1,2,3,4,5])   # 计算列表各个元素的平方
[1, 4, 9, 16, 25]

set() 函数
set() 函数创建一个无序不重复元素集，可进行关系测试，删除重复数据，还可以计算交集、差集、并集等。
&gt;&gt;&gt;x ]]></description><category></category></item><item><title><![CDATA[Python PIL之调整尺寸]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106556861</link><guid>https://blog.csdn.net/qq_41556468/article/details/106556861</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 19:53:18 +0800</pubDate><description><![CDATA[from PIL import Image

img = Image.open("fusion.png")
img = img.resize((256, 256))
img.save("deHaze+fusion.png")


]]></description><category></category></item><item><title><![CDATA[Python PIL之两张RGBA图拼接]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106556433</link><guid>https://blog.csdn.net/qq_41556468/article/details/106556433</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 19:27:28 +0800</pubDate><description><![CDATA[from PIL import Image

img1_path = 'out2.png'
img2_path = 'fusion.png'
img_save_path = 'out3.png'

# 加载中间透明的手机图片
base_img = Image.open(img1_path)  # 新建透明底图，大小和手机图一样，mode使用RGBA，保留Alpha透明度，颜色为透明
# Image.new(mode, size, color=0)，color可以用tuple表示，分别表示RGBA的值
tar]]></description><category></category></item><item><title><![CDATA[Python OpenCV之图像开运算操作（先腐蚀、后膨胀）]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106556187</link><guid>https://blog.csdn.net/qq_41556468/article/details/106556187</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 19:07:46 +0800</pubDate><description><![CDATA[import cv2

"""
def closeopration(img):
    kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5))
    iClose = cv2.morphologyEx(image, cv2.MORPH_CLOSE, kernel)
    return iClose
"""
# 开运算
image = cv2.imread('fusion_mask.png')
print(image.shape)
kernel]]></description><category></category></item><item><title><![CDATA[Python OpenCV之彩色图像自适应直方图均衡化]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106556073</link><guid>https://blog.csdn.net/qq_41556468/article/details/106556073</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 19:00:56 +0800</pubDate><description><![CDATA[import numpy as np
import cv2 as cv


# 彩色图像全局直方图均衡化
def hisEqulColor1(img):
    # 将RGB图像转换到YCrCb空间中
    ycrcb = cv.cvtColor(img, cv.COLOR_BGR2YCR_CB)
    # 将YCrCb图像通道分离
    channels = cv.split(ycrcb)
    # 对第1个通道即亮度通道进行全局直方图均衡化并保存
    cv.equalizeHist(chan]]></description><category></category></item><item><title><![CDATA[Python PIL之图片的平均亮度ImageStat]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106555755</link><guid>https://blog.csdn.net/qq_41556468/article/details/106555755</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 18:37:55 +0800</pubDate><description><![CDATA[from PIL import Image
from PIL import ImageStat

im1 = Image.open("1.png")
im1_gray = im1.convert("L")
start = ImageStat.Stat(im1_gray)
print(int(start.mean[0]))


]]></description><category></category></item><item><title><![CDATA[Python 批量读取多个文件夹下的图片]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106552288</link><guid>https://blog.csdn.net/qq_41556468/article/details/106552288</guid><author>qq_41556468</author><pubDate>Thu, 04 Jun 2020 17:22:40 +0800</pubDate><description><![CDATA[对不同文件夹下的特定图片进行处理
import cv2
import os

path = "F:\pycharm project\de\su"
# path必须是英文
for filename in os.listdir(path):
    file_path = os.path.join(path, filename)
    for imagename in os.listdir(file_path):
        if imagename == 'fusion.png':
          ]]></description><category></category></item><item><title><![CDATA[从上到下打印二叉树]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106500354</link><guid>https://blog.csdn.net/qq_41556468/article/details/106500354</guid><author>qq_41556468</author><pubDate>Tue, 02 Jun 2020 17:07:56 +0800</pubDate><description><![CDATA[# -*- coding:utf-8 -*-
# class TreeNode:
#     def __init__(self, x):
#         self.val = x
#         self.left = None
#         self.right = None
class Solution:
    # 返回从上到下每个节点值列表，例：[1,2,3]
    def PrintFromTopToBottom(self, root):
        # write code]]></description><category></category></item><item><title><![CDATA[二叉树的镜像]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106499206</link><guid>https://blog.csdn.net/qq_41556468/article/details/106499206</guid><author>qq_41556468</author><pubDate>Tue, 02 Jun 2020 16:29:09 +0800</pubDate><description><![CDATA[# -*- coding:utf-8 -*-
# class TreeNode:
#     def __init__(self, x):
#         self.val = x
#         self.left = None
#         self.right = None
class Solution:
    # 返回镜像树的根节点
    def Mirror(self, root):
        # write code here
        if root != Non]]></description><category></category></item><item><title><![CDATA[二叉树的前序、中序、后序遍历]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106498985</link><guid>https://blog.csdn.net/qq_41556468/article/details/106498985</guid><author>qq_41556468</author><pubDate>Tue, 02 Jun 2020 16:21:49 +0800</pubDate><description><![CDATA[class Node:  
    def __init__(self,value=None,left=None,right=None):  
         self.value=value  
         self.left=left    #左子树
         self.right=right  #右子树
def preTraverse(root):  
    '''
    前序遍历
    '''
    if root==None:  
        return  
    ]]></description><category></category></item><item><title><![CDATA[列表、字符串方法（函数）]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106472675</link><guid>https://blog.csdn.net/qq_41556468/article/details/106472675</guid><author>qq_41556468</author><pubDate>Mon, 01 Jun 2020 15:04:52 +0800</pubDate><description><![CDATA[方法
说明




list.append(obj)
在列表末尾添加新的对象


list.count(obj)
统计某个元素在列表中出现的次数


list.extend(seq)
在列表末尾一次性追加另一个序列中的多个值（用新列表扩展原来的列表）


list.index(obj)
从列表中找出某个值第一个匹配项的索引位置


list.insert(index, obj)
将对象插入列表


list.pop([index=-1])
移除列表中的一个元素（默认最后一个元素），并且返回该元素的值...]]></description><category></category></item><item><title><![CDATA[批量(清除)删除Word回车符]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106259425</link><guid>https://blog.csdn.net/qq_41556468/article/details/106259425</guid><author>qq_41556468</author><pubDate>Thu, 21 May 2020 15:41:11 +0800</pubDate><description><![CDATA[回车符有两种，“硬回车”和“软回车”。硬回车是直接敲键盘上的回车，软回车是按键盘上的“ Shift+回车 ”

如果要替换软回车，在“查找内容”里面输入【^l】，如果是替换硬回车，在“查找内容”里面输入【 ^p】，“替换为”里面不输入任何字符，然后点击“全部替换”，就可以删除整个文档里面的软回车或硬回车了。

...]]></description><category></category></item><item><title><![CDATA[Python PIL之ImageDraw类详解]]></title><link>https://blog.csdn.net/qq_41556468/article/details/106125324</link><guid>https://blog.csdn.net/qq_41556468/article/details/106125324</guid><author>qq_41556468</author><pubDate>Thu, 14 May 2020 18:01:01 +0800</pubDate><description><![CDATA[python的ImageDraw类详解draw.line()：直线的绘制draw.rectangle()：矩形绘制draw.arc()：（椭）圆弧的绘制draw.chord()：弦的绘制draw.pieslice()：圆饼图的绘制draw.ellipse()：椭圆的绘制draw.polygon()：绘制多边形draw.text()：文字的绘制
python PIL图像处理模块中的ImageDraw类支持各种几何图形的绘制和文本的绘制，如直线、椭圆、弧、弦、多边形以及文字等。
下面直接通过示例来进行说明：
#]]></description><category></category></item></channel></rss>