PIXNET Logo登入

天天向上

跳到主文

程式外包服務  E-mail: me1237guy@yahoo.com.tw 歡迎來信洽談, 請附上相關文件或問題說明, 謝謝

專長:  ※自動光學檢測 ※人臉辨識 ※車牌辨識 ※錄影監控系統 ※自動控制I/O相關 
      ※演算法開發 ※基因演算法 ※類神經網路 
      ※MATLAB  ※VISUAL C++/C# ※Xamarin ※OpenCV ※Emgu ※Unity ※QT4/5
-----------------------------------------------------------------------------------------------
   SA (模擬退火法)     GA (基因演算法)    ACO (蟻群演算法)    PSO (粒子最佳化演算法)   
   排列組合問題最佳化   TSP  Scheduling  K-means, Fuzzy C-means, KNN, DBSCAN分群  
   Fuzzy Control (模糊控制)  Neural Networks (類神經網路) Object Tracking (Kalman Filter, Optical Flow)  
   Object Recognition (Pattern Match, Haar-Like Features, EigenFace)  Human Pose Recognition
   人臉偵測     移動物偵測   車牌辨識    智慧型監控攝影  XBOX Kinect影像處理及應用 體感互動應用  
   自動光學檢測(AOI) 玻璃檢測  NVIDIA CUDA平行運算處理
   TI-DSP 6xxx系列 雙影像輸入   / Raspberry PI 樹莓派 / Arduino控制  自走車避障礙物(GPS/機器視覺)

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 11 週二 201403:54
  • 使用as關鍵字將物件轉型為指定類型

FileStream –> object   OKFileStream->Stream   OKFileStream->string      NGFileStream->StreamReader  NG
 1: private void button1_Click(object sender, EventArgs e)
 2: {
 3: using (FileStream fs = new FileStream(@"c:\log.txt",System.IO.FileMode.Create))
 4: {
 5: object obj = fs as object;
 6: if (obj != null)
 7: {
 8: MessageBox.Show("轉換為Object成功!", "提示!");
 9: }
 10: else
 11: {
 12: MessageBox.Show("轉換為Object不成功!", "提示!");
 13: }
 14: Stream strm = obj as Stream;
 15: if (strm != null)
 16: {
 17: MessageBox.Show("轉換為Stream成功!", "提示!");
 18: }
 19: else
 20: {
 21: MessageBox.Show("轉換為Stream不成功!", "提示!");
 22: }
 23: string str = obj as string;
 24: if (str != null)
 25: {
 26: MessageBox.Show("轉換為string成功!", "提示!");
 27: }
 28: else
 29: {
 30: MessageBox.Show("轉換為string不成功!", "提示!");
 31: }
 32:  
 33: StreamReader f = obj as StreamReader;
 34: if (str != null)
 35: {
 36: MessageBox.Show("轉換為StreamReader成功!", "提示!");
 37: }
 38: else
 39: {
 40: MessageBox.Show("轉換為StreamReader不成功!", "提示!");
 41: }
 42:  
 43: }

44: }

(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(83)

  • 個人分類:C#
▲top
  • 11月 10 週一 201412:01
  • C# 在憑證存放區中找不到資訊清單簽署憑證

image
資料來源: 建置專案時出現了「在憑證存放區中找不到資訊清單簽署憑證」錯誤第一種解決方法 跟有憑證的人申請索取憑證第二種解決方法 將在專案屬性中的簽署頁籤內將簽署的checkbox勾選取消
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(2,907)

  • 個人分類:C#
▲top
  • 11月 04 週二 201412:24
  • C# How to Control The Taskbar?

image

 1: using System;
 2: using System.Collections.Generic;
 3: using System.ComponentModel;
 4: using System.Data;
 5: using System.Drawing;
 6: using System.Linq;
 7: using System.Text;
 8: using System.Windows.Forms;
 9: using System;
 10: using System.Runtime.InteropServices;
 11:  
 12: namespace HideTaskBarEx
 13: {
 14:  
 15: public partial class Form1 : Form
 16: {
 17: [DllImport("user32.dll")]
 18: private static extern IntPtr FindWindow(String className, String windowText);
 19: [DllImport("user32.dll")]
 20: private static extern Int32 ShowWindow(IntPtr hwnd, Int32 command);
 21: private const Int32 HIDE = 0;
 22: private const Int32 SHOW = 1;
 23: public Form1()
 24: {
 25: InitializeComponent();
 26: }
 27:  
 28: private void button1_Click(object sender, EventArgs e)
 29: {
 30: IntPtr TaskBar = FindWindow("Shell_TrayWnd", "");
 31: ShowWindow(TaskBar, HIDE);
 32: }
 33:  
 34: private void button2_Click(object sender, System.EventArgs e)
 35: {
 36: IntPtr TaskBar = FindWindow("Shell_TrayWnd", "");
 37: ShowWindow(TaskBar, SHOW);
 38: }
 39: }
 40: }
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(255)

  • 個人分類:C#
▲top
  • 11月 04 週二 201407:12
  • How to Minimize the Taskbar and Run the Program in the Background

image

資源檔案加入一張圖片請先下載Icon: http://findicons.com/icon/583421/forms程式碼:
 1: public partial class Form1 : Form
 2: {
 3: NotifyIcon notifyIcon;
 4:  
 5: private void Initial()
 6: {
 7: notifyIcon = new NotifyIcon();
 8: notifyIcon.BalloonTipText = "Program is Running..."; //設定通知欄提示的文字
 9: notifyIcon.Text = "NotifyIcon Sample"; //設定通知欄在滑鼠移至Icon上的要顯示的文字
 10: notifyIcon.Icon = (System.Drawing.Icon)Properties.Resources.forms; //決定一個Logo
 11: notifyIcon.Click += (sender, e) => //設定按下Icon的事件
 12: {
 13: notifyIcon.Visible = false;
 14: this.ShowInTaskbar = true;
 15: this.Show();
 16: };
 17:  
 18: //設定右鍵選單
 19: ContextMenu contextMenu = new ContextMenu();
 20: MenuItem menuItem = new MenuItem();
 21: menuItem.Checked = true;
 22: menuItem.Index = 1;
 23: menuItem.Text = "顯示";
 24: menuItem.Click += (sender, e) => //設定按下事件
 25: {
 26: MessageBox.Show("開始...");
 27: };
 28: contextMenu.MenuItems.Add(menuItem);
 29: notifyIcon.ContextMenu = contextMenu;
 30: }
 31: public Form1()
 32: {
 33: InitializeComponent();
 34: Initial();
 35: }
 36:  
 37: private void button1_Click(object sender, EventArgs e)
 38: {
 39: this.ShowInTaskbar = false;
 40: this.Hide();
 41: notifyIcon.Visible = true;
 42: notifyIcon.ShowBalloonTip(1, "測試", "測試內容", ToolTipIcon.Info);
 43: }

44: }

(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(14)

  • 個人分類:C#
▲top
  • 11月 03 週一 201422:19
  • Find Number and Resolution to All Screens

image

 1: private void button1_Click(object sender, EventArgs e)
 2: {
 3: listBox1.Items.Clear();
 4: foreach (var screen in Screen.AllScreens)
 5: {
 6: listBox1.Items.Add("Device nAME: " + screen.DeviceName);
 7: listBox1.Items.Add("Bounds: " + screen.Bounds.ToString());
 8: listBox1.Items.Add("Type: " + screen.GetType().ToString());
 9: listBox1.Items.Add("Working Area: " + screen.WorkingArea.ToString());
 10: listBox1.Items.Add("Primary Screen: " + screen.Primary.ToString());
 11: listBox1.Items.Add("=================================================");
 12: }
 13: }
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(34)

  • 個人分類:C#
▲top
  • 11月 02 週日 201409:27
  • Adding Something to DataGridView

image
原本只想在DataGridView加入ComboBox的功能, 結果網路一查之下, 發現這也是一門學問,.NET已經將一些常用的如DataGridView + ComboBoxDataGridView + CheckBox DataGridView + ButtonDataGridView + Image等諸如此類的元件都已經整合在一起, 真是棒!但是有些還是得自己手動加入DataGridView + NumericUpDownDataGridView + RadioButton網路上的MSDN範例又臭又長,實在難以下嚥,
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(2) 人氣(23,895)

  • 個人分類:C#
▲top
  • 10月 19 週日 201419:52
  • How to abort a suspended thread safely?

image
今天在寫一個簡單的<開始><暫停><停止>同一個thread, 發現thread一旦被suspended, 則必須透過          try
          {
              gProcThread.Abort();
          }
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(83)

  • 個人分類:C#
▲top
  • 10月 03 週五 201415:50
  • ADLINK 8164參數檔設定

今天開機發現馬達參數跑掉, 導致無法運行, 研究發現ADLINK 8164 Motion Card初始化會載入一組參數檔案備份檔案 C:\Users\GTVision\AppData\Local\VirtualStore\Windows\8164MC.ini
實際讀取 C:\windows\8164MC.ini此要確認C:\windows\8164MC.ini的檔案沒有被覆蓋, 或是自行指定路徑
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(175)

  • 個人分類:AOI
▲top
  • 10月 03 週五 201414:48
  • 遠端桌面連線

image
同時設定多台內網電腦時, 遠端桌面工具變得相當方便, 今天發生無法連線卻ping得到的窘境,原來是防火牆所造成…附帶一提, TeamViewer僅支援外網OK的環境下使用防火牆 –> 進階設定新增-> 輸入規則
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(136)

  • 個人分類:AOI
▲top
  • 10月 02 週四 201411:23
  • Line Scan CCD Setup Using MultiCam Studio

image
啟動桌面捷徑MultiCam Studio.exe 攝影機軟體 以下說明為MultiCam  6.9.3.2316版本Source –> New選擇GrabLink series點選DALSA前面+符號展開選單點選Part Number: P3-80-12k40選擇第2個, Grabber-Controlled rate and exposure 也就是由影像擷取卡決定取樣速度和曝光時間=======================================================================Tools->Board Information記得在Serial ControlA輸入Comport名稱, 由使用者自行定義
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(4) 人氣(1,502)

  • 個人分類:AOI
▲top
«1...67686989»

個人資訊

me1237guy
暱稱:
me1237guy
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (8,482)分水嶺影像分割Marker-based Image Segmentation Algorithm Using OpenCV2.4.7 with Visual Studio 2010
  • (4,000)Pylon Live View C# Sample Code Review
  • (14,170)網路上提供測試 RTSP 的伺服器
  • (23,895)Adding Something to DataGridView
  • (2,907)C# 在憑證存放區中找不到資訊清單簽署憑證
  • (4,385)安裝PLC學習軟體 FX-TRN-BEG-T
  • (7,366)建立和使用 C# 的 DLL
  • (3,658)安裝Open eVision 1.2.5.8549
  • (12,906)EmguCV : 圈選感興趣區域
  • (25,024)C# 如何創建, 暫停, 繼續, 終止一個執行緒(Thread)

文章分類

  • wordpress (2)
  • 雲端計算 (1)
  • 邊緣運算 (5)
  • MPI (2)
  • Git & Github (6)
  • Unity (2)
  • Android Studio (10)
  • Deep Leraning (35)
  • LaTex (2)
  • Linux (6)
  • jetson nano (3)
  • Qt (20)
  • Docker (4)
  • Office (1)
  • OpenTK (1)
  • WPF (8)
  • SQL (4)
  • Revit (6)
  • MATLAB (13)
  • R Language (8)
  • Design Pattern & Implementation by Using C# (48)
  • RaspberryPI (5)
  • Python (77)
  • 其他語言 (40)
  • 攝影機 (45)
  • 工業應用 (50)
  • 家庭 (12)
  • Mobile (31)
  • 工作日誌 (2)
  • Linux (5)
  • C/C++ (15)
  • AOI (41)
  • Emgu CV (42)
  • C# (147)
  • Visual Studio (48)
  • OpenCV (118)
  • 未分類文章 (1)

最新文章

  • Gemini API Key 低成本 Nano Banana Pro作圖
  • DMK 37AUX226
  • wafer基礎術語
  • 將資料夾中多個mp4影片合併成一個mp4檔案
  • 如何用沙子制造芯片:从冶炼硅锭到晶圆打磨|芯片工艺合集
  • yolov9安裝
  • ActionEngine, ActionTask and ActionWorker
  • @dataclass裝飾子
  • IO控制卡安裝驅動器後無法在此裝置載入驅動程式
  • How you put and then get items from a queue.Queue

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: