上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页
摘要: import cv2 cv2.namedWindow('video', cv2.WINDOW_NORMAL) cv2.resizeWindow('video', 800, 600) # 打开摄像头 如果填写序号,表示要打开的摄像头,如果是要打开视频文件,直接填写文件的地址 cap = cv2.Vid 阅读全文
posted @ 2022-06-23 22:15 理舞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1. 安装opencv # 跟python的版本有关系 pip install opencv-python==4.5.1.48 matplotlib -i https://pypi.douban.com/simple # opencv-contrib-python是扩展包,上面和下面安装一个就可以了 阅读全文
posted @ 2022-06-23 22:13 理舞 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 使用maven,配合JAVA,连接数据库,直接生成Html或md文件 项目地址:https://github.com/pingfangushi/screw #### 参考: 1. 界面操作生成文档:https://blog.csdn.net/qq_43560721/article/details/1 阅读全文
posted @ 2022-06-15 15:31 理舞 阅读(166) 评论(0) 推荐(0) 编辑
摘要: package com.theorydance.myshare.utils; import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpResponse; import com.grand.common.utils.Tools; imp 阅读全文
posted @ 2022-06-14 22:15 理舞 阅读(23) 评论(0) 推荐(0) 编辑
摘要: ws协议在http之上,直接在http协议里面进行协议升级即可 正常的http请求正常,ws请求也正常,使用同一个端口 正常的ws请求截图 代理配置 http { include mime.types; default_type application/octet-stream; sendfile 阅读全文
posted @ 2022-06-10 16:34 理舞 阅读(4802) 评论(0) 推荐(0) 编辑
摘要: server { listen 443 ssl; server_name www.theorydance.com; # 必填的两个属性ssl_certificate和ssl_certificate_key ssl_certificate /etc/nginx/ca/xxxxxxx.crt; ssl_ 阅读全文
posted @ 2022-05-30 16:44 理舞 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 整个网站使用http协议,需要进行添加证书,进行https访问 如果全面升级为https,可以在页面中添加 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 注意:这种方式,会针对访问接口数 阅读全文
posted @ 2022-05-27 15:33 理舞 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 方式一: http { ... # 说明:一般使用http_origin来进行跨域控制,当不传递origin头的时候,就为这个里面的默认值,当传递有值得时候,才会走下面得正则匹配 map $http_referer $allow_cors { default 1; "~^https?://.*?\. 阅读全文
posted @ 2022-05-16 16:57 理舞 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: `PlantUML`的后缀格式为`.puml` `PlantUML`时序图 ```PlantUML @startuml hide footbox title Sequence actor User #Blue User->A note left: Note on left [o->A: messag 阅读全文
posted @ 2022-05-13 11:11 理舞 阅读(490) 评论(0) 推荐(0) 编辑
摘要: # 统计当前子目录占用空间大小 du -sh ./* 阅读全文
posted @ 2022-05-13 11:07 理舞 阅读(11) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 30 下一页