- 博客(8)
- 收藏
- 关注
原创 Opencv-python 求原坐标点透视变换后对应坐标点
1.关于透视变换原理不赘述2.已知原图img一像素点坐标p(x,y),变换前矩阵坐标pts1,变换后矩阵坐标pts2,求变换后p点对应坐标3.程序# p pts1 pts2#求变换矩阵MM = cv2.getPerspectiveTransform(pts1, pts2)# 坐标转换def cvt_pos(pos, cvt_mat_t): u = pos[0] v = pos[1] x = (cvt_mat_t[0][0]*u+cvt_mat_t[0][
2022-04-19 23:20:14
5682
3
原创 centos8相关问题
1.两个问题:(1)Configuration: OptionBinding with id "failovermethod" does not existvim /etc/yum.repos.d/CentOS-Epel.repo注释调中 failovermethod=priority(2)Failed to download metadata for repo 'appstream'1.cd /etc/yum.repos.d/2.sed -i 's/mirrorlist/#mi
2022-04-15 00:05:57
1609
原创 树莓派基础配置
VNC$ sudo nano /boot/config.txt取消 hdmi_force_hotplug=1 的注释$ sudo rebootPATH环境sudo nano ~/.bashrcexport PATH=/home/pi/.local/bin/:$PATH放到最后source ~/.bashrc 更换镜像站# 编辑 `/etc/apt/sources.list` 文件,删除原文件所有内容,用以下内容取代:deb [arch=armhf] http://mir
2022-04-14 00:36:07
178
原创 树莓派nginx+php+MariaDB配置
1.安装nginxsudo apt-get install nginx-light2.安装phpsudo apt-get install php-fpm3.配置nginx可处理php网页sudo nano /etc/nginx/sites-available/default# Default server configuration#server { listen 80 default_server; listen [::]:80 defa
2022-04-05 20:51:28
2894
原创 nginx+php配置
1.安装phpyum install php#检查版本php -v2.安装nginxyum install nginx#检查版本nginx -v3.更改nginx默认端口vi /etc/nginx/nginx.conf#更改端口884.开放nginx端口# 重启防火墙,以保证防火墙一定是开启的systemctl restart firewalld# 在防火墙添加端口88且设置永久开启firewall-cmd --zone=public --add-p
2022-04-04 23:14:54
24109
原创 按键消抖(2)
//*******************************************************************************/`timescale 1 ns / 100 psmodule ax_debounce ( input clk, input rst, input button_in, output reg button_posedge, output reg butt.
2021-07-08 20:21:52
868
原创 FPGA按键消抖、电平检测、状态转换
module erzp ( clk, rst_n, key_in, key_out ); input clk, rst_n, key_in; output reg key_out; reg [19:0] key_high,key_low; always @ ( posedge clk or negedge rst_n ) if (!rst_n) key_low <= 0; else if (!key_in) key_low <= key_low+1'.
2021-06-19 22:21:51
486
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人