08 2022 档案

摘要:Spring学习笔记 1、Spring 1.1 简介 Spring:春天 >给软件行业带来了春天! 2002,首次推出了Spring框架的雏形:interface21框架! Spring框架即以interface21框架为基础,经过重新设计,并不断丰富其内涵,于2004年3月24日发布了1.0正式版 阅读全文
posted @ 2022-08-30 11:58 tuyin 阅读(63) 评论(0) 推荐(0) 编辑
摘要:Mybatis 环境 JDK1.8 Mysql5.7 maven 3.6.3 IDEA 回顾 JDBC Mysql Java基础 Maven Junit SSM框架:配置文件的最好的方式:看官网文档 1、 MyBatis简介 1.1 什么是Mybatis MyBatis 是一款优秀的持久层框架 My 阅读全文
posted @ 2022-08-18 16:29 tuyin 阅读(62) 评论(0) 推荐(0) 编辑
摘要:最近跟着狂神老师学习Mybatis,当我把我的日志配置文件都弄好之后,发现老师能正常打开定义的日志文件,而我的就是显示一个带问号的文件, 网上看了好多博客,发现原来是因为给实体类起别名引起的, 我这里是通过包名对实体类进行别名的。 解决办法: 换一下取别名的方式,这里我换成上面一种方式就成功解决了! 阅读全文
posted @ 2022-08-17 09:38 tuyin 阅读(278) 评论(0) 推荐(0) 编辑
摘要:JavaWeb 1、基本概念 1.1、前言 web开发: web,网页的意思,wwww.baidu.com 静态web html,css 提供给所有人看的数据始终不会发生变化! 动态web 淘宝,几乎是所有的网站; 提供给所有人看的数据始终会发生变化,每个人在不同的时间,不同的地点看到的信息各不相同 阅读全文
posted @ 2022-08-06 13:22 tuyin 阅读(57) 评论(0) 推荐(0) 编辑
摘要:问题描述:因为我一直是跟着博主敲代码,然后喜欢在typora里面做笔记,自己最近想把学习的笔记啥的都分析出来,但是会有一个问题,就是typora里面文件的照片是不能直接复制粘贴到博客里面的,然后我按照网上的教程使用搭建图床的方法,是用PicGo+Gitee+typora成功搭建了图床,搭建图床网上的 阅读全文
posted @ 2022-08-06 11:46 tuyin 阅读(3841) 评论(0) 推荐(0) 编辑
摘要:1、初识MySQL JavaEE:企业级Java开发 Web 前端(页面:展示,数据!) 后台(连接点:连接数据库JDBC,连接前端(控制视图跳转,和给前端传递数据)!) 数据库(存数据,Txt,Excel,Word) 只会写代码,学好数据库,基本混饭吃; 操作系统,数据结构与算法! 离散数学,数字 阅读全文
posted @ 2022-08-06 09:58 tuyin 阅读(32) 评论(0) 推荐(0) 编辑
摘要:JavaSE 一、Java语言初始 我能不能学会这个语言??? 注册博客 MarkDown语法 简单的Dos命令 计算机语言发展 Java的诞生 1995 JAVA SE、JAVA ME(Android)、JAVA EE 2006 Hadoop JDK 开发者工具包 配置环境变量 JRE 运行环境 阅读全文
posted @ 2022-08-06 09:45 tuyin 阅读(51) 评论(0) 推荐(0) 编辑
摘要:1.初始jQuery <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <script src = "lib/jquery-3.6.0.js"></script> </head> < 阅读全文
posted @ 2022-08-05 23:42 tuyin 阅读(20) 评论(0) 推荐(0) 编辑
摘要:今天主要是学习了一下JavaScript的BOM对象,节点和表单的相关操作,具体如下 1.操作BOM对象 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body 阅读全文
posted @ 2022-08-05 23:36 tuyin 阅读(24) 评论(0) 推荐(0) 编辑
摘要:今天主要是学习了JavaScript的一些基础语法,但是今天没有将语法展示的结果截图显示,如果想看效果,可以看一下上篇博客的一些基本操作,自行到浏览器打印看输出结果。今天主要是把学习的代码分享出来,把基本的语法吃透理解。 1.字符串 <!DOCTYPE html> <html lang="en"> 阅读全文
posted @ 2022-08-05 23:26 tuyin 阅读(21) 评论(0) 推荐(0) 编辑
摘要:今天主要是JavaScript的入门学习,所以我把运行结果记录展示出来,主要是在浏览器的控制台里面查看结果,直接点进网页是没有显示的 1.我的第一个JavaScript程序 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> 阅读全文
posted @ 2022-08-05 23:04 tuyin 阅读(25) 评论(0) 推荐(0) 编辑
摘要:默认情况 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ margin: 10px; padding: 5px; font-size: 12px; lin 阅读全文
posted @ 2022-08-05 19:44 tuyin 阅读(19) 评论(0) 推荐(0) 编辑
摘要:display代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- block 块元素 inline 行内元素 inline-block 是块元素,但是可以内联,在一行! 阅读全文
posted @ 2022-08-05 19:30 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ width: 100px; height: 100px; border: 10px solid red; 阅读全文
posted @ 2022-08-05 19:25 tuyin 阅读(11) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> /* 主对角线和副对角线,顺时针方向 圆圈: 圆角 = 半径! */ div{ width: 100px; heig 阅读全文
posted @ 2022-08-05 19:18 tuyin 阅读(19) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> /*body总有一个默认的外边距margin: 0,常见操作*/ /* h1,ul,li,a,body{ margi 阅读全文
posted @ 2022-08-05 19:17 tuyin 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> div{ width: 800px; height: 600px; border: 1px solid red; b 阅读全文
posted @ 2022-08-05 19:15 tuyin 阅读(16) 评论(0) 推荐(0) 编辑
摘要:index代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>列表样式</title> <link rel="stylesheet" href="css/style.css"type="text/css"> 阅读全文
posted @ 2022-08-05 19:09 tuyin 阅读(20) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> /*默认的颜色*/ a{ text-decoration: none; color: black; } /*鼠标悬浮 阅读全文
posted @ 2022-08-05 18:59 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:index代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- 颜色:单词 RGB 0~F RGBA A: 字体透明度0~1 text-align: 排版,居中 text 阅读全文
posted @ 2022-08-05 18:44 tuyin 阅读(29) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- font-family:字体类型 font-size:字体大小 font-weight:字体颜色 --> <style> 阅读全文
posted @ 2022-08-05 18:39 tuyin 阅读(37) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #title{ font-size: 40px; } </style> </head> <body> 欢迎学习<sp 阅读全文
posted @ 2022-08-05 18:38 tuyin 阅读(6) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> .demo a{ float: left;/*往左边浮动*/ display: block; height: 50p 阅读全文
posted @ 2022-08-05 18:25 tuyin 阅读(73) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> /*ul的第一个子元素*/ ul li:first-child{ background: blue; } /*ul的 阅读全文
posted @ 2022-08-05 18:22 tuyin 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> /* p{ background: aqua; }*/ /*后代选择器(选择某个元素的后面)*/ /* body p 阅读全文
posted @ 2022-08-05 18:20 tuyin 阅读(10) 评论(0) 推荐(0) 编辑
摘要:标签选择器 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> h1 { color: aqua; background: #3cbda6; border-radius 阅读全文
posted @ 2022-08-05 18:18 tuyin 阅读(24) 评论(0) 推荐(0) 编辑
摘要:index代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href="style.css"> <!--内部样式--> <styl 阅读全文
posted @ 2022-08-05 18:13 tuyin 阅读(25) 评论(0) 推荐(0) 编辑
摘要:index代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!--规范, <style>可以编写css的代码,每一个声明最好使用分号结尾 语法: 选择器{ 声明1; 声明2; 阅读全文
posted @ 2022-08-05 18:03 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>登录注册</title> </head> <body> <h1>注册</h1> <!--表单form action:表单提交的位置,可以是网站,也可以是一个请求 阅读全文
posted @ 2022-08-05 17:56 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>内联框架学习</title> </head> <body> <!--iframe内联框架 src:地址 w-h:宽度高度 --> <iframe src="" 阅读全文
posted @ 2022-08-05 17:50 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>页面结构分析</title> </head> <body> <heard> <h2>网页头部</h2> </heard> <section> <h2>网页主体< 阅读全文
posted @ 2022-08-05 17:44 tuyin 阅读(8) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>媒体元素学习</title> </head> <body> <!--音频和视频 src:资源路径 controls:控制视频播放选项 autoplay:控制视频 阅读全文
posted @ 2022-08-05 17:43 tuyin 阅读(58) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>表格标签学习</title> </head> <body> <!--表格table 行 tr 列 td --> <table border="1px" > <t 阅读全文
posted @ 2022-08-05 17:31 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>列表学习</title> </head> <body> <!--有序列表 应用范围:试卷,问答..... --> <ol> <li>Java</li> <li> 阅读全文
posted @ 2022-08-05 17:30 tuyin 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>链接标签学习</title> </head> <body> <!--使用name作为一个标记--> <a name="top">顶部</a> <!--a标签 h 阅读全文
posted @ 2022-08-05 17:28 tuyin 阅读(16) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>图像标签学习</title> </head> <body> <!--img学习 src:图片地址(必填) 相对地址,绝对地址 ../ --上一级目录(相对地址) 阅读全文
posted @ 2022-08-05 17:19 tuyin 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>基本标签学习</title> </head> <body> <!--标题标签--> <h1>一级标签</h1> <h2>二级标签</h2> <h3>三级标签</ 阅读全文
posted @ 2022-08-05 17:09 tuyin 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<!-- DOCTYPE:告诉浏览器,我们要使用什么规范--> <!DOCTYPE html> <html lang="en"> <!--快捷添加注释:①ctrl+ / 或者 ②shift+ctrl+ /--> <!--head标签代表网页头部--> <head> <!--meta描述性标签,用来描 阅读全文
posted @ 2022-08-05 17:04 tuyin 阅读(25) 评论(0) 推荐(0) 编辑
摘要:import os filename = 'student.txt' def main(): while True: menum() choice = int(input("请选择对应数字:")) if choice in [0, 1, 2, 3, 4, 5, 6, 7]: if choice == 阅读全文
posted @ 2022-08-05 16:05 tuyin 阅读(81) 评论(0) 推荐(0) 编辑
摘要:任务一: import time def show_info(): print('输入提示数字,执行相应的操作:0.退出 1.查看登录日志') # 记录日志 def write_logininfo(username): with open('log.txt', 'a')as file: s = f' 阅读全文
posted @ 2022-08-05 16:03 tuyin 阅读(47) 评论(0) 推荐(0) 编辑
摘要:任务一: import prettytable as pt # 显示座席 def show_ticket(row_num): tb = pt.PrettyTable() tb.field_names = ['行号', '座位1 ', '座位2', '座位3', '座位4', '座位5'] for i 阅读全文
posted @ 2022-08-05 16:01 tuyin 阅读(43) 评论(0) 推荐(0) 编辑
摘要:任务一: class Instrument(): def make_sound(self): pass class Erhu(Instrument): def make_sound(self): print('二胡在演奏') class Piano(Instrument): def make_sou 阅读全文
posted @ 2022-08-05 15:59 tuyin 阅读(32) 评论(0) 推荐(0) 编辑
摘要:任务一: import math class Circle(object): def __init__(self, r): self.r = r def get_area(self): return math.pi*math.pow(self.r, 2) def get_perimeter(self 阅读全文
posted @ 2022-08-05 15:57 tuyin 阅读(36) 评论(0) 推荐(0) 编辑
摘要:任务一: try: score = int(input('请输入你的分数:')) if 0 <= score <= 100: print('分数为:', score) else: raise Exception('分数不正确') except Exception as e: print(e) 任务二 阅读全文
posted @ 2022-08-05 15:55 tuyin 阅读(34) 评论(0) 推荐(0) 编辑
摘要:任务一: def calc(a, b, op): if op == "+": return add(a, b) elif op == "-": return sub(a, b) elif op == '*': return mul(a, b) elif op == "/": if b!= 0: re 阅读全文
posted @ 2022-08-05 15:54 tuyin 阅读(27) 评论(0) 推荐(0) 编辑
摘要:任务一: # 统计指定字符出现的次数 def get_count(s, ch): count = 0 for item in s: if ch.upper() == item or ch.lower() == item: count += 1 return count if __name__ == 阅读全文
posted @ 2022-08-05 15:52 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:任务一: coffee_name = ('蓝山', '卡布其尔', '拿铁', '皇家咖啡', '女五咖啡', '美丽与哀愁') print('您好!欢迎光临小(>^ω^<)喵咖啡屋') print('本店经营的咖啡有:') # index获取元组当中的元素索引,item获取元组当中的元素内容 fo 阅读全文
posted @ 2022-08-05 15:50 tuyin 阅读(43) 评论(0) 推荐(0) 编辑
摘要:任务一: # 创建星座的列表 constellation = ['白羊座', '金牛座', '双子座', '巨蟹座', '狮子座', '处女座', '天秤座', '天蝎座', '射手座', '摩羯座', '水瓶座', '双鱼座'] # 创建性格列表 nature = ['积极乐观', '固执内向', 阅读全文
posted @ 2022-08-05 15:45 tuyin 阅读(39) 评论(0) 推荐(0) 编辑
摘要:任务一: year = [83, 89, 83, 94, 85, 00, 98] print('原列表:', year) for index, value in enumerate(year): # print(index, value) if str(value) != '0': year[ind 阅读全文
posted @ 2022-08-05 15:43 tuyin 阅读(37) 评论(0) 推荐(0) 编辑
摘要:任务一: # 代表了a的ASCII值 x = 97 for _ in range(1, 27): print(chr(x), '➝➝➝➝➝', x) x += 1 print(' ') x = 97 while x< 123: print(chr(x), '➝➝➝➝➝', x) x += 1 任务二 阅读全文
posted @ 2022-08-05 15:41 tuyin 阅读(25) 评论(0) 推荐(0) 编辑
摘要:任务一: # 模拟支付密码的验证 pwd = input('支付宝支付密码:') if pwd.isdigit():# isdigit判断支付密码是否全部为数字 print('支付数据合法') else: print('支付数字不合法,支付密码只能是数据') print(' ') print('支付 阅读全文
posted @ 2022-08-05 15:37 tuyin 阅读(41) 评论(0) 推荐(0) 编辑
摘要:任务一: def fun(): num = int(input("请输入一个十进制的整数:")) print(num, '的二进制数为:', bin(num)) # 第一种写法,使用了个数可变的位置参数 print(str(num)+"的二进制数为:"+bin(num)) # 第二种写法,使用“+” 阅读全文
posted @ 2022-08-05 15:33 tuyin 阅读(45) 评论(0) 推荐(0) 编辑
摘要:任务一: book_name = 'Java程序设计程序' publish = '西安电子科技大学出版社' pub_date = "2019-02-02" price = 56.8 print('▶→→→→→→→→→→→→→→→→→→→◀') print('▷\t\t《', book_name, ' 阅读全文
posted @ 2022-08-05 13:36 tuyin 阅读(22) 评论(0) 推荐(0) 编辑
摘要:任务一: # 一、①使用print方式进行输出(输出的目的地是文件) fp = open('D:/test.txt', 'w') print("奋斗成就更好的你", file=fp) fp.close() 任务二: # ②使用文件读写操作 with open('D:/test1.txt', 'w') 阅读全文
posted @ 2022-08-05 13:30 tuyin 阅读(79) 评论(0) 推荐(0) 编辑
摘要:import math class Shape: def __init__(self, name, area, perimeter): self.name = name self.area = area self.perimeter = perimeter def cal_area(self): p 阅读全文
posted @ 2022-08-05 09:14 tuyin 阅读(813) 评论(0) 推荐(0) 编辑
摘要:封装 class Turtle: head = 1 eyes = 2 leg = 4 shell = True def crawl(self): print("人们总抱怨我动作慢吞吞的,殊不知如不积跬步,无以至千里的道理。") def run(self): print("虽然我行动很慢,但如果遇到危 阅读全文
posted @ 2022-08-05 09:11 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:求一个数的阶乘 # 迭代方法实现 def factIter(n): result = n for i in range(1, n): result *= i return result print(factIter(10)) # 递归方法实现 def funC(n): if n == 1: retu 阅读全文
posted @ 2022-08-05 08:51 tuyin 阅读(14) 评论(0) 推荐(0) 编辑
摘要:创建和调用函数 # I Love You # I Love You # I Love You def myfunc(): for i in range(3): print("I Love You") myfunc() 函数的参数 # I Love python # I Love python # I 阅读全文
posted @ 2022-08-05 08:48 tuyin 阅读(41) 评论(0) 推荐(0) 编辑
摘要:创建集合 # 集合,无序 # 创建集合 # {'Love', 'Python'} print({"Love", "Python"}) # {'o', 'h', 't', 'n', 'P', 'y'} print({s for s in "Python"}) # {'o', 'h', 't', 'n' 阅读全文
posted @ 2022-08-05 00:07 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:x = {"卢布", "关羽"} print(type(x)) y = {"卢布":"小布布", "关羽":"小鱼鱼"} y["刘备"] = "小贝贝" print(y) print(y["卢布"]) 创建字典的方式 a = {'卢布': '小布布', '关羽': '小鱼鱼', '刘备': '小贝贝 阅读全文
posted @ 2022-08-05 00:05 tuyin 阅读(107) 评论(0) 推荐(0) 编辑
摘要:sorted方法 t = ["FishC", "Apple", "Book", "Banana", "Pen"] # sorted方法只是比较首个字母的ASCALL值,如果第一个字母相同就比较第二个字母 # ['Apple', 'Banana', 'Book', 'FishC', 'Pen'] s 阅读全文
posted @ 2022-08-05 00:01 tuyin 阅读(21) 评论(0) 推荐(0) 编辑
摘要:# list(),tuple(),str() # 字符串变成列表(list) print(list("Loveyou")) # ['L', 'o', 'v', 'e', 'y', 'o', 'u'] # 元组变成列表(list) print(list((1, 2, 3, 4, 5))) # [1, 阅读全文
posted @ 2022-08-04 23:59 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:确定回文数 """什么是回文数?正读和倒读都有意义的文字称为“回文”。例如,小白是一个名字,如果反过来,白小,也可以是一个人名, 这个人姓小名白。王融有诗《春游回文诗》中的诗句“风朝指锦幔,月晓照莲池”,反读也是有意义的,不信你读读。 而“回文数”,则是一种数字。例如,65856,这个数正读是658 阅读全文
posted @ 2022-08-04 23:56 tuyin 阅读(113) 评论(0) 推荐(0) 编辑
摘要:a = (1, 2, 3, 4, 5, "上山打老虎") # (1, 2, 3, 4, 5, '上山打老虎') print(a) # 4 print(a[3]) # (1, 2, 3, 4, 5, '上山打老虎') print(a[:]) # (1, 3, 5) print(a[::2]) # (' 阅读全文
posted @ 2022-08-04 23:46 tuyin 阅读(33) 评论(2) 推荐(0) 编辑
摘要:列表输出 ary = [1, 2, 3, 4, "是SV"] print(ary) for i in ary: print(i) # 输出列表的最后一个元素 length = len(ary) print(ary[length-1]) print(ary[-1]) # [1, 2, 3] print 阅读全文
posted @ 2022-08-04 23:45 tuyin 阅读(19) 评论(0) 推荐(0) 编辑
摘要:if语句 """ # age = 17 # if age < 18: # print("抱歉,未满18岁禁止访问") # else: # print("欢迎你来^o^") # print("抱歉,未满18岁禁止访问") if age < 18 else print("欢迎你来^o^") # # a 阅读全文
posted @ 2022-08-04 23:36 tuyin 阅读(71) 评论(0) 推荐(0) 编辑
摘要:字符串和运算符 x = 3 print(x) 新运算 = 8888 print(新运算) poetey = """ 我爱你情爱的 我为你自豪 我为你骄傲!!!""" print(poetey) 我爱你 = '520' + '1314' print(我爱你) 我爱你 = "520" + "1314" 阅读全文
posted @ 2022-08-04 23:27 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:Git笔记(狂神说) 1、版本控制 1.1、什么是版本控制 版本控制(Revision control)是一种在开发的过程中用于管理我们对文件、目录或工程等内容的修改历史,方便查看更改历史记录,备份以便恢复以前的版本的软件工程技术。 实现跨区域多人协同开发 追踪和记载一个或者多个文件的历史记录 组织 阅读全文
posted @ 2022-08-04 11:01 tuyin 阅读(61) 评论(0) 推荐(0) 编辑
摘要:OpenCV学习 1、计算机眼中的图像 1.1、 图像简介 ① 在计算机眼中,Lena 这个人的图像被分成很多很多个小方格。 ② 每一个小格叫做一个像素点,计算机就是由这些像素点组成一张图像的。 ③ 每一个像素点有 RGB 三个通道,每个通道的值在 0-255 之间,0 表示黑的,255 表示非常亮 阅读全文
posted @ 2022-08-04 10:34 tuyin 阅读(244) 评论(0) 推荐(0) 编辑
摘要:这进行项目之前要进行参数的设置 以及对应的资料目录 代码部分 myutils.py import cv2 def sort_contours(cnts, method="left-to-right"): reverse = False i = 0 if method == "right-to-lef 阅读全文
posted @ 2022-08-03 16:21 tuyin 阅读(97) 评论(0) 推荐(0) 编辑
摘要:代码部分 test.py # https://digi.bib.uni-mannheim.de/tesseract/ # 配置环境变量如E:\Program Files (x86)\Tesseract-OCR # tesseract -v进行测试 # tesseract XXX.png 得到结果 # 阅读全文
posted @ 2022-08-03 16:01 tuyin 阅读(686) 评论(0) 推荐(0) 编辑
摘要:# 导入所需要的库 import cv2 import numpy as np # 定义保存图片函数 # image:要保存的图片名字 # addr;图片地址与相片名字的前部分 # num: 相片,名字的后缀。int 类型 def save_image(image, addr, num): addr 阅读全文
posted @ 2022-08-03 15:48 tuyin 阅读(233) 评论(0) 推荐(0) 编辑
摘要:"""在这里,我们将创建一个简单的应用程序,以显示您指定的颜色。您有一个显示颜色的窗口, 以及三个用于指定B、G、R颜色的跟踪栏。滑动轨迹栏,并相应地更改窗口颜色。 默认情况下,初始颜色将设置为黑色。""" import numpy as np import cv2 as cv def nothin 阅读全文
posted @ 2022-08-03 15:45 tuyin 阅读(26) 评论(0) 推荐(0) 编辑
摘要:# 光流估计 # 1. 光流估计 import numpy as np import cv2 cap = cv2.VideoCapture('D:/pycharm/pycharm-cope/opencv/resource/videos/02_Foreground.avi') # 角点检测所需参数 # 阅读全文
posted @ 2022-08-03 11:59 tuyin 阅读(29) 评论(2) 推荐(0) 编辑
摘要:# 背景建模 # 1. 帧差法 # 2. 混合高斯模型 ## 2.2 混合高斯模型测试方法 import numpy as np import cv2 # 经典的测试视频 cap = cv2.VideoCapture('D:/pycharm/pycharm-cope/opencv/resource/ 阅读全文
posted @ 2022-08-03 11:58 tuyin 阅读(37) 评论(0) 推荐(0) 编辑
摘要:# 特征匹配与全景拼接 # 1. Brute-Force蛮力匹配 import cv2 import numpy as np import matplotlib.pyplot as plt img1 = cv2.imread('D:/pycharm/pycharm-cope/opencv/resou 阅读全文
posted @ 2022-08-03 11:57 tuyin 阅读(65) 评论(0) 推荐(0) 编辑
摘要:import cv2 import numpy as np img = cv2.imread('D:/pycharm/pycharm-cope/opencv/resource/photo/18_House.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GR 阅读全文
posted @ 2022-08-03 11:56 tuyin 阅读(36) 评论(0) 推荐(0) 编辑
摘要:# 角点检测 # 1. 角点检测原理 # 2. harris角点检测 import cv2 import numpy as np img = cv2.imread('D:/pycharm/pycharm-cope/opencv/resource/photo/17_Chessboard.jpg') p 阅读全文
posted @ 2022-08-03 11:55 tuyin 阅读(14) 评论(1) 推荐(0) 编辑
摘要:# 3. 傅里叶变换 import numpy as np import cv2 from matplotlib import pyplot as plt img = cv2.imread('D:/pycharm/pycharm-cope/opencv/resource/photo/13_Lena. 阅读全文
posted @ 2022-08-03 11:54 tuyin 阅读(45) 评论(0) 推荐(0) 编辑
摘要:# 图像直方图 # 1. 图像直方图简介 # 2. 图像直方图统计 import cv2 import numpy as np import matplotlib.pyplot as plt def cv_show(img,name): cv2.imshow(name,img) cv2.waitKe 阅读全文
posted @ 2022-08-03 11:53 tuyin 阅读(42) 评论(0) 推荐(0) 编辑
摘要:# 模板匹配 # 1. 模板匹配简介 # 2. 模板匹配单个对象 import cv2 # opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 temp 阅读全文
posted @ 2022-08-03 11:52 tuyin 阅读(34) 评论(0) 推荐(0) 编辑
摘要:# 图像轮廓 ## 2.1 图像二值化 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 def cv_show(img,na 阅读全文
posted @ 2022-08-03 11:51 tuyin 阅读(26) 评论(0) 推荐(0) 编辑
摘要:# 图像金字塔 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 def cv_show(img,name): cv2.ims 阅读全文
posted @ 2022-08-03 11:45 tuyin 阅读(28) 评论(0) 推荐(0) 编辑
摘要:# Canny边缘检测 import cv2 # opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 def cv_show(img, name): c 阅读全文
posted @ 2022-08-03 11:44 tuyin 阅读(18) 评论(0) 推荐(0) 编辑
摘要:# Sobel算子、Scharr算子与Laplacian算子 # 1. Sobel算子 # 1.1 圆形处理(例) import cv2 # opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy 阅读全文
posted @ 2022-08-03 11:42 tuyin 阅读(63) 评论(0) 推荐(0) 编辑
摘要:# 礼帽与黑帽 # 1. 礼帽 # ① 礼帽 = 原始输入-开运算 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 魔法 阅读全文
posted @ 2022-08-03 11:41 tuyin 阅读(56) 评论(0) 推荐(0) 编辑
摘要:# 开运算与闭运算 # 1. 开运算 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 开:先腐蚀,再膨胀 img = c 阅读全文
posted @ 2022-08-03 11:40 tuyin 阅读(52) 评论(0) 推荐(0) 编辑
摘要:# 腐蚀与膨胀 # 1. 腐蚀操作 # 1.1 汉字腐蚀(例) import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 魔法指令 阅读全文
posted @ 2022-08-03 11:39 tuyin 阅读(31) 评论(0) 推荐(0) 编辑
摘要:# 图像平滑处理d # 1. 均值滤波 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 魔法指令,直接展示图,Jupyt 阅读全文
posted @ 2022-08-03 11:38 tuyin 阅读(54) 评论(0) 推荐(0) 编辑
摘要:import cv2 #opencv的缩写为cv2import matplotlib.pyplot as plt # matplotlib库用于绘图展示import numpy as np # numpy数值计算工具包img = cv2.imread('D:/pycharm/pycharm-cope 阅读全文
posted @ 2022-08-03 11:37 tuyin 阅读(23) 评论(0) 推荐(0) 编辑
摘要:# 图像缩放 # 1. 倍数缩放 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 魔法指令,直接展示图,Jupyter 阅读全文
posted @ 2022-08-03 11:36 tuyin 阅读(31) 评论(0) 推荐(0) 编辑
摘要:# 图像融合 # 1. 图像融合 import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 ## 1.1 图像变换 img_cat = 阅读全文
posted @ 2022-08-03 11:35 tuyin 阅读(56) 评论(0) 推荐(0) 编辑
摘要:# 边界填充 # 1. 边界填充简介 """① 边界填充就是对图像进行一些变换,让原始图像进行扩大。 ② 边界填充的入口参数: - BORDER_REPLICATE:复制法,也就是复制最边缘像素。 - BORDER_REFLECT:反射法,对感兴趣的图像中的像素在两边进行复制例如:fedcba|ab 阅读全文
posted @ 2022-08-03 11:34 tuyin 阅读(146) 评论(0) 推荐(0) 编辑
摘要:# 1. 位置提取ROI import cv2 #opencv的缩写为cv2 # import matplotlib.pyplot as plt # matplotlib库用于绘图展示 # import numpy as np # numpy数值计算工具包 # # def cv_show(name, 阅读全文
posted @ 2022-08-03 11:33 tuyin 阅读(13) 评论(0) 推荐(0) 编辑
摘要:import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 """获取视频的第一帧图片""" # 随着时间轴的变换,视频在动,虽然图像是 阅读全文
posted @ 2022-08-03 11:24 tuyin 阅读(37) 评论(0) 推荐(0) 编辑
摘要:import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 # 魔法指令,直接展示图,Jupyter notebook特有 # %mat 阅读全文
posted @ 2022-08-03 11:22 tuyin 阅读(16) 评论(0) 推荐(0) 编辑
摘要:# 灰度图处理与图片保存 # 1. 读取BGR图(默认读取) import cv2 # opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 img = 阅读全文
posted @ 2022-08-03 11:21 tuyin 阅读(585) 评论(0) 推荐(0) 编辑
摘要:import cv2 #opencv的缩写为cv2 import matplotlib.pyplot as plt # matplotlib库用于绘图展示 import numpy as np # numpy数值计算工具包 """①普通方法""" # 魔法指令,直接展示图,Jupyter noteb 阅读全文
posted @ 2022-08-03 11:20 tuyin 阅读(32) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示