<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[abysswatcher1的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/abysswatcher1</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; abysswatcher1]]></copyright><item><title><![CDATA[解决error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/124843163</link><guid>https://blog.csdn.net/abysswatcher1/article/details/124843163</guid><author>abysswatcher1</author><pubDate>Wed, 18 May 2022 15:20:21 +0800</pubDate><description><![CDATA[我是windows系统，在运行cv-python库的一个图像动态模糊算法时，突然报了这个错误。
搜索类似的问题有说读取图片的路径不对的，还有重装高版本的cv库，但不是都没用。
所有的cv2类下的函数都失效了。
解决方法：
先：
pip uninstall opencv-python 

再：
pip install opencv-python

重装一下这个包就好了，不清楚产生原因，我是在执行了albumentations包的安装后出现的问题，应该是版本之间的冲突导致的。
stackoverflow：htt]]></description><category></category></item><item><title><![CDATA[javaweb-超市管理系统（修改密码+用户管理）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120637465</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120637465</guid><author>abysswatcher1</author><pubDate>Thu, 07 Oct 2021 19:30:03 +0800</pubDate><description><![CDATA[一.密码修改实现
目标页面：
从底层向上写，先编写Dao层，再编写Service层，最后编写Servlet层实现与前端jsp页面的通信。
1.1修改密码的Dao层
编写sql语句：update smbms_user set userPassword = ? where id = ?
？处的参数为password和id，调用BaseDao中的execute查询方法。
public int updatePwd(Connection connection, int id, String password) thr]]></description><category></category></item><item><title><![CDATA[javaweb-超市管理系统（基本框架+登录实现）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120461993</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120461993</guid><author>abysswatcher1</author><pubDate>Thu, 07 Oct 2021 19:29:38 +0800</pubDate><description><![CDATA[1.maven环境搭建
使用模板maven的javaweb模板创建。
更改web.xml的配置文件为新版。
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xml]]></description><category></category></item><item><title><![CDATA[javaweb-Filter过滤器应用(乱码处理，登录权限控制)]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120443082</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120443082</guid><author>abysswatcher1</author><pubDate>Thu, 23 Sep 2021 21:09:05 +0800</pubDate><description><![CDATA[使用Filter需要实现Filter接口，并重载其中的init，DoFilter, destroy方法。
1.实现过滤中文乱码
package com.han.cookie;

import javax.servlet.*;
import java.io.IOException;

public class servletfilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throw]]></description><category></category></item><item><title><![CDATA[javaweb-servlet]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120343544</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120343544</guid><author>abysswatcher1</author><pubDate>Mon, 20 Sep 2021 19:55:02 +0800</pubDate><description><![CDATA[1.Servlet定义
是用Java编写的服务器端程序。其主要功能在于交互式地浏览和修改数据，生成动态Web内容。
2.Servlet使用方法
HttpServlet类实现了GenericServlet接口，而GenericServlet接口又继承了Servlet接口，因此我们只需要使用继承了HttpServlet的类即可。
public class HelloServlet extends HttpServlet {
    @Override
    protected void doPost(Http]]></description><category></category></item><item><title><![CDATA[java网络编程-实现聊天程序]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120269361</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120269361</guid><author>abysswatcher1</author><pubDate>Mon, 13 Sep 2021 16:30:32 +0800</pubDate><description><![CDATA[利用Datagramsocket创建连接，实现UDP，并使用多线程实现教师端和学生端的聊天。
接收端的程序如下：
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package chats;

import java.net.DatagramPacket;
import java.net.DatagramSocket;

public class]]></description><category></category></item><item><title><![CDATA[leetcode动态规划(字符串+递增子序列)]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/120112766</link><guid>https://blog.csdn.net/abysswatcher1/article/details/120112766</guid><author>abysswatcher1</author><pubDate>Sun, 05 Sep 2021 12:23:14 +0800</pubDate><description><![CDATA[最长递增子序列

给你一个整数数组 nums ，找到其中最长严格递增子序列的长度。
子序列是由数组派生而来的序列，删除（或不删除）数组中的元素而不改变其余元素的顺序。例如，[3,6,2,7] 是数组 [0,3,1,6,2,2,7] 的子序列。
输入：nums = [10,9,2,5,3,7,101,18]
输出：4
解释：最长递增子序列是 [2,3,7,101]，因此长度为 4 。
i到达新的位置时，搜索i之前的数值，如果i比之前的某个数值大，则更新dp数组为dp[j]+1，因为会有多个可能的较大的值，所.]]></description><category></category></item><item><title><![CDATA[leetcode双指针（进阶）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119973816</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119973816</guid><author>abysswatcher1</author><pubDate>Sat, 28 Aug 2021 22:36:38 +0800</pubDate><description><![CDATA[删除排序链表中的重复元素 II

存在一个按升序排列的链表，给你这个链表的头节点 head ，请你删除链表中所有存在数字重复情况的节点，只保留原始链表中 没有重复出现 的数字。
返回同样按升序排列的结果链表。
输入：head = [1,2,3,3,4,4,5]
输出：[1,2,5]
输入：head = [1,1,1,2,3]
输出：[2,3]
用i，j两个指针进行搜索，同时设置prei指针记录i的前驱位置。循环过程中，j先向后一格，若与i相同，则继续向后移动，直到走过了所有重复的节点。将prei.next.]]></description><category></category></item><item><title><![CDATA[leetcode动态规划（买卖股票问题）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119789587</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119789587</guid><author>abysswatcher1</author><pubDate>Wed, 18 Aug 2021 22:09:34 +0800</pubDate><description><![CDATA[买卖股票的最佳时机

给定一个数组 prices ，它的第 i 个元素 prices[i] 表示一支给定股票第 i 天的价格。
你只能选择 某一天 买入这只股票，并选择在 未来的某一个不同的日子 卖出该股票。设计一个算法来计算你所能获取的最大利润。
返回你可以从这笔交易中获取的最大利润。如果你不能获取任何利润，返回 0 。
输入：[7,1,5,3,6,4]
输出：5
解释：在第 2 天（股票价格 = 1）的时候买入，在第 5 天（股票价格 = 6）的时候卖出，最大利润 = 6-1 = 5 。
注意利润不能.]]></description><category></category></item><item><title><![CDATA[leetcode动态规划]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119743093</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119743093</guid><author>abysswatcher1</author><pubDate>Mon, 16 Aug 2021 22:35:05 +0800</pubDate><description><![CDATA[爬楼梯

假设你正在爬楼梯。需要 n 阶你才能到达楼顶。
每次你可以爬 1 或 2 个台阶。你有多少种不同的方法可以爬到楼顶呢？
动态规划模板题，思考方法，1个台阶只有一种走法，2个台阶，可以一次走2个，或者走两次一个有两种。所以如果有n个台阶，先走一个，在考虑剩下n-1个；或者先走两个，在考虑剩下(n-2)个，即f(n)=f(n-1)+f(n-2)。
class Solution {
    HashMap&lt;Integer,Integer&gt; map=new HashMap();
    pu.]]></description><category></category></item><item><title><![CDATA[leetcode回溯+剪枝（排列,组合,子集问题）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119707083</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119707083</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:18:10 +0800</pubDate><description><![CDATA[排列问题
46. 全排列
给定一个不含重复数字的数组 nums ，返回其 所有可能的全排列 。你可以 按任意顺序 返回答案。
示例 1：
输入：nums = [1,2,3]
输出：[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]
排列问题，采用回溯算法解决，首先将选择过程想成树型结构，并通过回溯，得到所有的结果。
排列问题需要考虑顺序，此类回溯通用解法，设一个二维数组res保存所有的结果，一个数组path保存当前搜索的路径，depth表示当前树中的深度，对于]]></description><category></category></item><item><title><![CDATA[leetcode广度优先搜索（bfs）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119684100</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119684100</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:17:52 +0800</pubDate><description><![CDATA[01 矩阵

给定一个由 0 和 1 组成的矩阵 mat ，请输出一个大小相同的矩阵，其中每一个格子是 mat 中对应位置元素到最近的 0 的距离。
两个相邻元素间的距离为 1 。
输入：mat = [[0,0,0],[0,1,0],[1,1,1]]
输出：[[0,0,0],[0,1,0],[1,2,1]]
此类为图中多起点的搜索问题，将多个起点看作一个整体，先寻找图中所有的0作为起点，其他格子设置为-1，表示还未访问过的格子。
采用队列存储，先把所有的0入队，之后依次出队，并把出队的0能够到达的格子入队.]]></description><category></category></item><item><title><![CDATA[leetcode深度优先搜索（dfs）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119654353</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119654353</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:17:33 +0800</pubDate><description><![CDATA[图像渲染

有一幅以二维整数数组表示的图画，每一个整数表示该图画的像素值大小，数值在 0 到 65535 之间。
给你一个坐标 (sr, sc) 表示图像渲染开始的像素值（行 ，列）和一个新的颜色值 newColor，让你重新上色这幅图像。
为了完成上色工作，从初始坐标开始，记录初始坐标的上下左右四个方向上像素值与初始坐标相同的相连像素点，接着再记录这四个方向上符合条件的像素点与他们对应四个方向上像素值与初始坐标相同的相连像素点，……，重复该过程。将所有有记录的像素点的颜色值改为新的颜色值。
最后返回经过.]]></description><category></category></item><item><title><![CDATA[leetcode滑动窗口]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119654122</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119654122</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:16:40 +0800</pubDate><description><![CDATA[无重复字符的最长子串

给定一个字符串 s ，请你找出其中不含有重复字符的 最长子串 的长度。
输入: s = “abcabcbb”
输出: 3
采用滑动窗口搜索字符串，使用hashset存储当前子串中包含的字符。
向右滑动时，判断右侧字符是否在hashset中（contain方法判断是否重复），如果重复的话，则将左端向右移动，同时从hashset中移除左端所指的字符，并将右侧字符存入hashset之中。
class Solution {
    public int lengthOfLongestSub.]]></description><category></category></item><item><title><![CDATA[leetcode双指针（基础）]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119618183</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119618183</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:15:51 +0800</pubDate><description><![CDATA[189.旋转数组
给定一个数组，将数组中的元素向右移动 k 个位置，其中 k 是非负数。（不使用额外空间）
输入: nums = [1,2,3,4,5,6,7], k = 3
输出: [5,6,7,1,2,3,4]
先将整体数组内容反转，之后前k个反转，以及k之后的内容在反转。
反转采用双指针实现，k应当根据长度求余数，存在k大于length的情况。
class Solution {
    public void rotate(int[] nums, int k) {
        k %= nums.]]></description><category></category></item><item><title><![CDATA[leetcode二分问题]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/119580961</link><guid>https://blog.csdn.net/abysswatcher1/article/details/119580961</guid><author>abysswatcher1</author><pubDate>Sat, 14 Aug 2021 23:11:43 +0800</pubDate><description><![CDATA[1.给定一个 n 个元素有序的（升序）整型数组 nums 和一个目标值 target  ，写一个函数搜索 nums 中的 target，如果目标值存在返回下标，否则返回 -1。
class Solution {
    public int search(int[] nums, int target) {
    int i=0,j=nums.length-1;
    int flag=0;
    int mid=0;
    while(i&lt;=j)
    {
        mid=i+(j-]]></description><category></category></item><item><title><![CDATA[Java输入指定年月，打印日历表(Calendar类的使用)]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/115219163</link><guid>https://blog.csdn.net/abysswatcher1/article/details/115219163</guid><author>abysswatcher1</author><pubDate>Thu, 25 Mar 2021 21:33:54 +0800</pubDate><description><![CDATA[输入年月，输出该月份的日历页:
import java.util.Calendar;//导入Calendar类
import java.util.Scanner;

public class Main{
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        Calendar calendar = Calendar.getInstance();//getInsta]]></description><category></category></item><item><title><![CDATA[Java实现简单模拟购物程序]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/115095243</link><guid>https://blog.csdn.net/abysswatcher1/article/details/115095243</guid><author>abysswatcher1</author><pubDate>Mon, 22 Mar 2021 20:19:42 +0800</pubDate><description><![CDATA[题目内容：
编写一个模拟超市购物程序。购物时，如果购物者要购买的商品在超市中有，则提示“购物者买到了某商品”；如果没有所需的商品，则提示“购物者所需某商品无货”。该程序涉及商品、超市、购物者三个类，具体要求如下：
（1）商品类Product，包含商品名属性和set及get方法；
（2）超市类Market，包含超市名属性、存放商品的Product类型数组属性，set、get超市名的方法，能够获取商品或者存入商品的get、set方法，卖货的方法sell(String ProductName),该方法的功能是查找]]></description><category></category></item><item><title><![CDATA[Python爬虫获取新冠肺炎数据]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/113953363</link><guid>https://blog.csdn.net/abysswatcher1/article/details/113953363</guid><author>abysswatcher1</author><pubDate>Mon, 22 Feb 2021 22:36:07 +0800</pubDate><description><![CDATA[本文描述了最基本的爬虫使用方法。
目标网站：https://news.qq.com/zt2020/page/feiyan.htm#/global
获取网站中外国某国家疫情感染人数。
一.网站分析
按F12进入开发者模式，查看目标网站的信息，以google浏览器为例子：
选择network中的XHR，可以看到name中有很多项，在网页中点开目标国家（俄罗斯）的具体信息，可以看到在name栏中最下方出现了一个新的信息，查看具体信息可以看到一些相关的信息。
http请求为post，参数为country，URL也可]]></description><category></category></item><item><title><![CDATA[【pytorch-ssd目标检测】训练自己的模型（三）-测试模型的精度]]></title><link>https://blog.csdn.net/abysswatcher1/article/details/113467842</link><guid>https://blog.csdn.net/abysswatcher1/article/details/113467842</guid><author>abysswatcher1</author><pubDate>Sun, 31 Jan 2021 13:15:46 +0800</pubDate><description><![CDATA[训练数据集
https://blog.csdn.net/abysswatcher1/article/details/113463551
修改部分
首先对eval.py中的代码进行修改：
1.导入部分注释掉VOC和COCO，改为自己的数据集。
2.第一个在parser.add_argumen中，将路径改为之前训练好的模型的路径。
parser.add_argument('--trained_model',
                    default='C:/Users/25345/Desktop/]]></description><category></category></item></channel></rss>