- Dec 14 Thu 2017 22:42
Strategy Pattern – Design Patterns (Using C#)
- Dec 11 Mon 2017 10:34
Projection: From 3D Points to 2D Points
projectPoints is a useful function, which can automatically projects 3D points to an image plane.
Here is another good example shows how to project 3D points by using the project matrix.
- Dec 09 Sat 2017 20:06
Graphical User Interfaces with Tk
> conda install –c anaconda tk
- Nov 28 Tue 2017 13:05
Face Swap Using Emgu CV
Source Image: img1
- Nov 15 Wed 2017 12:11
安裝AForge.NET
- Nov 14 Tue 2017 11:37
Installing OpenCV3.3.0 in Python 3.6.3::Anaconda3
- Nov 06 Mon 2017 11:28
電腦視覺使用Python語言
- Nov 06 Mon 2017 10:54
安裝Anaconda3-5.0.1-Windows-x86_64
- Nov 06 Mon 2017 10:37
安裝VirtualBox 5.2.0
- Nov 03 Fri 2017 10:15
安裝HDF5
An Error message poped up and it showed that“HDF5 CANNOT BE FOUND!”
- Nov 03 Fri 2017 10:09
安裝tesseract-ocr
- Oct 23 Mon 2017 11:25
樹梅派3藍芽設定(Bluetooth Settings for Raspberry PI 3)
樹梅派3 目前直接內建WIFI和藍芽
- Oct 19 Thu 2017 09:44
Code::Blocks 16.01 Installation
- Sep 01 Fri 2017 10:08
安裝Emgu TF 1.3.0 行人偵測測試
- Aug 06 Sun 2017 22:16
排程應用[職責鏈模式]: 使用C#
在自動化處理常遇到一個狀況是多線排程,例如有三條工作站,每一條工作站的處理能力不同,例如worker1可以處理加工時間<5,worker2可以處理加工時間5~10, 而worker3可以處理加工時間10~15,假設今天客戶的加工需要加工時間清單如下(jobID即加工時間)
- Aug 06 Sun 2017 08:49
客製化冰品點餐應用[命令模式]: 使用C#
- Aug 05 Sat 2017 22:21
[命令模式]執行一個請求與如何執行間的解耦: 使用C#
- Aug 04 Fri 2017 22:20
原型模式應用於旋轉不同角度之圖片: 使用C#
- Aug 04 Fri 2017 21:53
原型模式-淺複製與深複製: 使用C#
Orgnization類別繼承ICloneable interface,因此需實作
- Jul 30 Sun 2017 16:25
應用裝飾模式於影像處理步驟: 使用C#
半年前寫過應用裝飾模式於影像處理函式,溫故知新後想嘗試重新翻寫,希望對於正在學習裝飾模式的同好有所助益!
- Jul 29 Sat 2017 17:06
裝飾模式應用: 使用C#
- Jul 19 Wed 2017 16:59
C#應用[狀態模式]於AOI檢測狀態切換
- Jul 17 Mon 2017 11:56
C# 如何取得使用者控制元件屬性值
- Jul 17 Mon 2017 11:08
C# 動態載入使用者控制元件
放入三個button和一個panel元件
- Jul 11 Tue 2017 10:41
c# 製作UserControl元件
- Jul 10 Mon 2017 09:36
C# Control.Invoke方法
Delegate為委派,Invoke表示要呼叫所指定的方法(method),第二個為傳入參數陣列
- Jul 09 Sun 2017 06:01
C# EventHandler Example
- Jun 27 Tue 2017 02:00
安裝Steam/ Facerig軟體
- Jun 05 Mon 2017 09:54
ffmpeg 簡易搜尋及剪輯功能
- May 31 Wed 2017 14:01
安裝visual studio 2017
- May 27 Sat 2017 22:00
C# Multiple Regions of interest Editor
目前功能
- May 23 Tue 2017 17:13
VGA影像擷取裝置搭配HDMI擷取卡
- May 18 Thu 2017 10:50
uEye Cockpit Sample Code
C:\Program Files\IDS\uEye\Develop\Source\uEye_DotNet_C#_Cockpit
- May 17 Wed 2017 11:28
EmguCV - C# / Convert Bitmap to Mat
1: public Mat ConvertBitmapToMat(Bitmap bmp)
2: {
3: // Lock the bitmap's bits.
4: Rectangle rect = new Rectangle(0, 0, bmp.Width, bmp.Height);
5:
6: System.Drawing.Imaging.BitmapData bmpData =
7: bmp.LockBits(rect, System.Drawing.Imaging.ImageLockMode.ReadWrite,
8: bmp.PixelFormat);
9:
10: // data = scan0 is a pointer to our memory block.
11: IntPtr data = bmpData.Scan0;
12:
13: // step = stride = amount of bytes for a single line of the image
14: int step = bmpData.Stride;
15:
16: // So you can try to get you Mat instance like this:
17: Mat mat = new Mat(bmp.Height, bmp.Width, Emgu.CV.CvEnum.DepthType.Cv32F, 4, data, step);
18:
19: // Unlock the bits.
20: bmp.UnlockBits(bmpData);
21:
22: return mat;
23: }
- May 15 Mon 2017 08:43
Creating a Simple C# Application for brother Label Printer with b-PAC SDK
- May 14 Sun 2017 16:17
Having fun with Label Printer
前幾天收到之前訂單brother QL700
- May 09 Tue 2017 16:48
安裝標籤機 b-PAC3 SDK
- Apr 07 Fri 2017 15:44
安裝git 2.12.2.2
- Apr 07 Fri 2017 09:19
安裝IMAGESOURCE USB 驅動
- Mar 16 Thu 2017 20:56
A Simple WCF Application
安裝IIS
- Mar 01 Wed 2017 08:46
C# Delegate and Event 委託與事件
- Feb 15 Wed 2017 09:17
C# 範本方法
新增一個抽象類別(範本方法),裡面定義驗算法的骨架TemplateMethod(),包含3個步驟proc1()、proc2()、proc3();這些步驟實作延遲至繼承的子類別去實作,增加了使用上的彈性。
- Feb 12 Sun 2017 12:01
採購桌上電腦
為了最近新專案的需求,內心經過幾番掙扎,總算下定決心更新的我的電腦配備。今天一早趕緊評估採購桌上電腦,下面三台電腦是在我預算內的候選。
最後決定花$39,900買 神隱勇士III 6代i7四核SSD電競獨顯電腦
- Feb 09 Thu 2017 10:50
安裝Intel RealSense SR300開發套件
- Feb 08 Wed 2017 18:05
安裝TouchFinder for PC
- Feb 05 Sun 2017 21:30
Eclipse環境下使用OpenCV3.1調整影像對比
- Feb 05 Sun 2017 15:32
Eclipse環境下使用OpenCV3.1讀取及顯示影像
OpenCV Mat格式轉 Java BufferedImage格式
- Feb 04 Sat 2017 09:54
Eclipse下設定OpenCV 3.1開發環境
- Feb 04 Sat 2017 08:48
在Eclipse開發視窗程式 slider控制元件
接續上一個project
- Feb 03 Fri 2017 22:26
Win 10環境下安裝Java
- Feb 03 Fri 2017 10:07
Convexity Defects Applications Using OpenCV 3.1
contour line: blue color
- Feb 02 Thu 2017 20:48
OpenCV3.1 搜尋輪廓周長/面積/重心及多邊形曲線近似/輪廓極值(minX, maxX, minY, maxY)
- Feb 02 Thu 2017 17:28
OpenCV3.1 搜尋輪廓與遮罩應用
1: cvtColor(imgSrc, imgG, CV_BGR2GRAY);
2: threshold(imgG, imgBW, 100, 255, THRESH_BINARY);
3: vector<vector<Point>> contours;
4: vector<Vec4i> hierarchy;
5:
6: findContours(imgBW, contours, hierarchy, RETR_TREE, CV_CHAIN_APPROX_SIMPLE);
- Jan 30 Mon 2017 16:57
安裝EmguCV 3.1.0.2504
安裝3.1.0.2504版本
- Jan 27 Fri 2017 08:30
OpenCV 3.1 計算角度和最小包覆圓/橢圓/矩形/旋轉矩形
利用PowerPoint製造測試圖片,黑色數字為PPT旋轉角度
- Jan 26 Thu 2017 02:07
Function Pointer and Typedef
看了網路上[1]有關Function Pointer, 感覺Function Pointer使用語法很累贅, 於是聯想到typedef來簡化
原本累贅的語法
double (*PtrFun)(double a, double b)
只要前面多加一個typedef, 呼叫上就會變得比較親民
typedef double (*PtrFun)(double a, double b)
例如我想要一個四則運算的功能
PtrFun p[4]{ OperatorAdd, OperatorSub, OperatorMul, OperatorDev };
宣告一個PtrFun資料型態,存放四個函式指標(即為函式名稱)
OperatorAdd, OperatorSub, OperatorMul, OperatorDev
1: #include "stdafx.h"
2: #include <stdio.h>
3: #include <iostream>
4:
5: typedef double (*PtrFun)(double a, double b);
6: using namespace std;
7: double OperatorAdd(double a, double b);
8: double OperatorSub(double a, double b);
9: double OperatorMul(double a, double b);
10: double OperatorDev(double a, double b);
11:
12: int main()
13: {
14: int i;
15: double a = 4, b = 2;
16: char* info[4] = { "+","-","x","/" };
17: PtrFun p[4]{ OperatorAdd, OperatorSub, OperatorMul, OperatorDev };
18: for (i = 0; i < 4; i++)
19: {
20: cout << a << info[i] << b << " = " << p[i](a, b) << endl;
21: }
22:
23: return 0;
24: }
25:
26: double OperatorAdd(double a, double b)
27: {
28: return a + b;
29: }
30: double OperatorSub(double a, double b)
31: {
32: return a - b;
33: }
34: double OperatorMul(double a, double b)
35: {
36: return a*b;
37: }
38: double OperatorDev(double a, double b)
39: {
40: double ret = (b == 0 ? 0 : a / b);
41: return ret;
42: }
- Jan 24 Tue 2017 11:06
PCI-1240 Common Utility及Compare Table使用說明
先到研華官網下載以下兩個應用程式
- Jan 16 Mon 2017 04:46
Some Useful Properties Used in BLOB Analysis
- Jan 12 Thu 2017 09:19
Using OpenCV3.1 Template Matching