<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fenglearning的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/fenglearning</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; fenglearning]]></copyright><item><title><![CDATA[HALCON中4个坐标系之间如何转换？]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/122959814</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/122959814</guid><author>fenglearning</author><pubDate>Wed, 16 Feb 2022 12:20:12 +0800</pubDate><description><![CDATA[写的很详细：
http://www.skcircle.com/?id=1407

]]></description><category></category></item><item><title><![CDATA[halcon 中几种求直线倾斜角度的算子分析]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/122360514</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/122360514</guid><author>fenglearning</author><pubDate>Fri, 07 Jan 2022 14:48:56 +0800</pubDate><description><![CDATA[halcon 中有很多算子可以求出直线的倾斜角度，如下：
smallest_rectangle2(Regions : : : Row, Column, Phi, Length1, Length2)
最小外接矩形的长轴与图像坐标系x轴的夹角（- 90 &lt; Phi &amp;&amp; Phi &lt;= 90），
x轴起逆时针时角度为正，顺时针是角度为负。
orientation_region(Regions : : : Phi)
计算一个区域的方向。
elliptic_axis(Regions : :]]></description><category></category></item><item><title><![CDATA[opencv写 halcon算子reduce_domain]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/122329334</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/122329334</guid><author>fenglearning</author><pubDate>Wed, 05 Jan 2022 18:26:17 +0800</pubDate><description><![CDATA[最近有个小项目需要用opencv 开发，发现比halcon真是慢太多了，也许是自己对opencv 不太熟悉吧。halcon 的一个算子，opencv就要写几行，但是没办法谁让它免费呢。
下面直接上链接，上面对opencv 提取ROI区域讲的很详细：
https://www.cnblogs.com/xyf327/p/14761218.html

...]]></description><category></category></item><item><title><![CDATA[win10系统安装pycocotools方法及各种坑]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/121790146</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/121790146</guid><author>fenglearning</author><pubDate>Wed, 08 Dec 2021 16:22:52 +0800</pubDate><description><![CDATA[在学习使用Faster RCNN时，发现需要用到pycocotools ，由于是第一次使用所以就百度了一下安装教程，从教程中发现坑还不少，所以就找了一个评论比较多的来做。然后还是折腾了一上午，下面就把过程记录下来，便于以后查看。
1、直接pip install pycocotools==2.0.0，安装失败，报错如下：
error: Microsoft Visual C++ 14.0 or greater is required. Get it with “Microsoft C++ Build Tools]]></description><category></category></item><item><title><![CDATA[No module named ‘XXX‘]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/119821344</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/119821344</guid><author>fenglearning</author><pubDate>Fri, 20 Aug 2021 13:42:07 +0800</pubDate><description><![CDATA[今天在使用onnxruntime 进行模型部署时，一直报错：No module named 'onnxruntime'，根据网上教程也安装了ONNX和onnxruntime，但是还是一样的报错，找了很久也没有解决办法。

突然灵机一动，看看为何其他的导入的模块不报错呢？

选中任意一个可以正常导入的模块，按下F12键，进入到代码页，并找到该程序的路径。发现是在Anaconda3这个文件夹里面，但是在这个文件夹里并没有找到onnxruntime这个文件，所以发现了具体原因：

我在安装onnxruntim..]]></description><category></category></item><item><title><![CDATA[PIL 图片与张量的相互转换]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/118929395</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/118929395</guid><author>fenglearning</author><pubDate>Tue, 20 Jul 2021 10:43:20 +0800</pubDate><description><![CDATA[from PIL import Image
import numpy as np
# PIL图片转 张量

im = Image.open(‘cat.jpg’)
a = np.asarray(im)
#张量转PIL
im = Image.fromarray(a)

]]></description><category></category></item><item><title><![CDATA[C#中TabControl相关用法]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/118330487</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/118330487</guid><author>fenglearning</author><pubDate>Tue, 29 Jun 2021 11:56:22 +0800</pubDate><description><![CDATA[最近在用C#做项目时，用到TabControl这个控件，将学到的东西做个总结：
一、拖一个TabControl控件到窗口上，在控件上点击右键，可以添加选项卡/删除选项卡；或者在属性中找到TabPages,点击进去，可以看到TabPages编辑器，这里也可以添加或移除选项卡，

在右侧的属性里找到Text,可以修改对应选项卡的名称。
二、我想实现右键选中选项卡，并出现菜单栏：
首先需要添加一个contextMenuStrip1控件，添加需要显示的选项，

其次将TabControl属性中的contextMen]]></description><category></category></item><item><title><![CDATA[C# 多线程详细讲解]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/117325011</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/117325011</guid><author>fenglearning</author><pubDate>Thu, 27 May 2021 11:50:24 +0800</pubDate><description><![CDATA[C#多线程

一、基本概念

1、进程

首先打开任务管理器，查看当前运行的进程：



从任务管理器里面可以看到当前所有正在运行的进程。那么究竟什么是进程呢？

进程（Process）是Windows系统中的一个基本概念，它包含着一个运行程序所需要的资源。一个正在运行的应用程序在操作系统中被视为一个进程，进程可以包括一个或多个线程。

线程是操作系统分配处理器时间的基本单元，在进程中可以有多个线程同时执行代码。进程之间是相对独立的，一个进程无法访问另一个进程的数据（除非利用分布式计算方式），

一个进程运]]></description><category></category></item><item><title><![CDATA[HObject 转HRegion 、HXLDCont]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/117291056</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/117291056</guid><author>fenglearning</author><pubDate>Wed, 26 May 2021 15:33:03 +0800</pubDate><description><![CDATA[一、HObject 转 HImage
HTuple pointer, type, width, height;
HObject ho_Image, ho_Domain;
HObject ho_RegionBorder, ho_Contours;
HImage image = new HImage();
HOperatorSet.ReadImage(out ho_Image, “printer_chip/printer_chip_01”);
//灰度图转换
HOperatorSet.GetImagePoint]]></description><category></category></item><item><title><![CDATA[c# 如何打开word文档，及判断是否已经打开]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/116641578</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/116641578</guid><author>fenglearning</author><pubDate>Tue, 11 May 2021 09:53:24 +0800</pubDate><description><![CDATA[c# 打开word文件

首先添加引用

Microsoft Office 14.0 Object Library
Microsoft Word 14.0 Object Library

添加命名空间

using MSWord = Microsoft.Office.Interop.Word;

添加定义

private MSWord.Application m_word;
private MSWord.Document m_doc; 

添加事件

m_word = new...]]></description><category></category></item><item><title><![CDATA[halcon 4种分类器（MLP,SVN,GMM,K-NN）优缺点：]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/115568115</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/115568115</guid><author>fenglearning</author><pubDate>Sat, 10 Apr 2021 11:34:49 +0800</pubDate><description><![CDATA[HALCON分类器:

1、多层神经网络(MLP)

 /2、 支持向量机(SVM) ： 一种监督学习的方法，广泛用于统计分类及回归分析；

  /3、 K-最邻近 (K-NN)

  /4高斯混合类型(GMM)

4个分类器的主要优势和劣势如下:

多层感知机：MLP分类器会有一个好的识别率且分类速度更快。作为交换，其训练没有SVM分类快，尤其对于巨大量的训练集。如果分类耗时要求高，但训练可以连线应用的话，MLP方法是一个好的选择。一个拒绝类被返回，但是相比于GMM分类器，它可能会被利群点...]]></description><category></category></item><item><title><![CDATA[Python .exe 程序如何不关闭窗口]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/113880311</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/113880311</guid><author>fenglearning</author><pubDate>Sat, 20 Feb 2021 11:53:44 +0800</pubDate><description><![CDATA[根据网上教程学会了如何打包Python程序，但是运行exe文件时，窗口一闪而过，根本看不清内容。又在网上查找解决方法，如输入：raw_input("Press ")，但是会报错，可能跟Python的版本有关。
经过测试只要在程序的末尾处输入input(‘Press Enter to exit…’)，即可，如图：

敲下Enter键即可退出

...]]></description><category></category></item><item><title><![CDATA[我的第一篇博客-开始学习OpenCV]]></title><link>https://blog.youkuaiyun.com/fenglearning/article/details/108323039</link><guid>https://blog.youkuaiyun.com/fenglearning/article/details/108323039</guid><author>fenglearning</author><pubDate>Mon, 31 Aug 2020 15:57:39 +0800</pubDate><description><![CDATA[2020/8/31 开始学习了。。。。。。。。。。。。。。
使用版本OpenCV3.4.6
VS2017

]]></description><category></category></item></channel></rss>