02 2020 档案

摘要:在前台UI创建一个Label绑定到myLabel <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schema 阅读全文
posted @ 2020-02-29 13:01 阿坦 阅读(3562) 评论(0) 推荐(0) 编辑
摘要:程序集整体框架如下 主窗体UI文件MainWindow.xaml <Window x:Class="WpfApp1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: 阅读全文
posted @ 2020-02-26 16:15 阿坦 阅读(14733) 评论(5) 推荐(2) 编辑
摘要:还是车牌识别的例子 read_image (Image, 'C:/Users/LiZhiqiang/Desktop/车牌2.jpg')//读取图像 rgb1_to_gray (Image, GrayImage)//转化成灰度图像 threshold (GrayImage, Regions, 21, 阅读全文
posted @ 2020-02-21 17:02 阿坦 阅读(3904) 评论(0) 推荐(0) 编辑
摘要:有一张车牌照片如下: read_image (Image, 'C:/Users/LiZhiqiang/Desktop/车牌2.jpg')//读取照片 rgb1_to_gray (Image, GrayImage)//转化成灰度图像 threshold (GrayImage, Regions, 21, 阅读全文
posted @ 2020-02-21 16:45 阿坦 阅读(1192) 评论(0) 推荐(0) 编辑
摘要:自定义USART_printf如下 #include <stdarg.h> #include <stdio.h> #include <string.h> void USART_printf (UART_HandleTypeDef *huart,char *fmt, ...){ static char 阅读全文
posted @ 2020-02-20 15:50 阿坦 阅读(1000) 评论(0) 推荐(1) 编辑
摘要:上图中有一个硬币和一把钥匙,要求:计算出硬币的面积和中心坐标 第一步用灰度直方图选出硬币的区域:threshold (GrayImage, Regions, 110, 250) 第二步用开运算去掉图像上半部分的杂质:opening_circle (Regions, RegionOpening, 10 阅读全文
posted @ 2020-02-19 14:22 阿坦 阅读(4076) 评论(0) 推荐(0) 编辑
摘要:下图左侧是结构元素,右侧红色矩形是二值化图像(灰度值不是0就是255的图像,空白方格就是255) 二值化图像膨胀,就是用结构元素在二值化图像上从左到右,从上到下依次滑动,以结构元素的*号为基准,在二值图像有交集的就把*号变为0。 最终膨胀后的图像如下: 结构元素始终是和原始图像做交集比较,不要和新增 阅读全文
posted @ 2020-02-18 11:12 阿坦 阅读(2964) 评论(0) 推荐(1) 编辑
摘要:打开Halcon自带的threshold例程 main程序如下 read_image (Audi2, 'audi2') fill_interlace (Audi2, ImageFilled, 'odd') threshold (ImageFilled, Region, 0, 90) connecti 阅读全文
posted @ 2020-02-17 16:14 阿坦 阅读(3302) 评论(0) 推荐(0) 编辑
摘要:打开网络调试助手 用USB转TTL连接ESP8266WiFi模块 在串口通信界面上依次输入以下命令 AT+CWMODE=1 //STA模式 AT+RST //重启模块 AT+CWJAP="MYGENO","huawei@123" //连接路由器MYGENO是路由器的名称,huawei@123是密码 阅读全文
posted @ 2020-02-14 12:04 阿坦 阅读(2839) 评论(0) 推荐(0) 编辑

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