上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 37 下一页
摘要: github地址 2019-03-22 11:15:39 -0700 算很老的项目集合了 title: GitHub项目精选 date: 2019-03-22 18:15:39 tags: github 工具 categories: 汇总 sticky: 100 A collection of us 阅读全文
posted @ 2021-08-14 13:57 索匣 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: jQuery 语法是为 HTML 元素的选取编制的,可以对元素执行某些操作。 基础语法是:$(selector).action() 美元符号定义 jQuery 选择符(selector)“查询”和“查找” HTML 元素 jQuery 的 action() 执行对元素的操作 这是为了防止文档在完全加 阅读全文
posted @ 2021-08-14 11:52 索匣 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目django-admin startproject compute ###2.创建应用python manage.py startapp app # app是应用名 ###3.在app应用下,也就是该文件夹下创建templates文件夹,里面创建个index.html文件 ###4.配置 阅读全文
posted @ 2021-08-13 20:31 索匣 阅读(398) 评论(0) 推荐(0) 编辑
摘要: {% load staticfiles %} 1.这里要注意的是静态资源模板配置: static要和引号后面的内容用空格隔开,引号的内容最好也要与%用空格隔开 <script src="{% static 'js/jquery.min.js' %}"></script> <!--static要和引号 阅读全文
posted @ 2021-08-13 17:59 索匣 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 若cv.imread('图片路径') 这个图片路径错了,就会报错error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow' 详细文章转自该博主博文 卷积:就是对于某一位置的像素,通过算法来 阅读全文
posted @ 2021-08-13 17:35 索匣 阅读(436) 评论(0) 推荐(0) 编辑
摘要: ''' ROI(region of interest), 也就是感兴趣区域,如果你设置了图像了ROI, 那么在使用OpenCV的函数的时候,会只对ROI区域操作, 其他区域忽略。 ''' import cv2 as cv import numpy as np # 截取图片中的指定区域或在指定区域添加 阅读全文
posted @ 2021-08-13 17:05 索匣 阅读(136) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cv import numpy as np # 数值运算:加减乘除 def shu_image(srcA,srcB): src = cv.add(srcA,srcB) # 加 cv.imshow('add',src) src = cv.subtract(srcA,srcB 阅读全文
posted @ 2021-08-12 20:32 索匣 阅读(51) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cv import numpy as np # 色彩空间转换 def color_space_demo(image): # RGB转换为gray gray = cv.cvtColor(image,cv.COLOR_BGR2GRAY) cv.imshow("gray",gr 阅读全文
posted @ 2021-08-12 20:04 索匣 阅读(80) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cv import numpy as np # 数组操作 def access_pixlex(image): print('返回一个元组',image.shape) height = image.shape[0] width = image.shape[1] channe 阅读全文
posted @ 2021-08-11 17:51 索匣 阅读(196) 评论(0) 推荐(0) 编辑
摘要: import cv2 as cv # 打开摄像头获取图片 def video_demo(): # 打开摄像头,0代表的是设备id # 如果有多个摄像头,可以设置其他数值 # VideoCapture打开摄像头 capture = cv.VideoCapture(0) while True: # # 阅读全文
posted @ 2021-08-11 17:49 索匣 阅读(493) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 37 下一页