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/機器視覺)

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

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 7月 27 週六 201300:49
  • 開啟攝影機


OpenCV: version 2.4.5
Visual Studio: version 2010
                 IsStop = false;
                 using namespace cv;
                 VideoCapture capture(0);
                 if (!capture.isOpened())  // check if we succeeded
                     return;
                 Mat src, src_gray, src_edge;
                 CvRect Rect;
                 long cnt = 0;
                 for (;;)
                 {
                     capture >> src;
                     System::Drawing::Graphics^ graphics = pictureBox1->CreateGraphics();
                     System::IntPtr ptr(src.ptr());   
                     System::Drawing::Bitmap^ b  = gcnew System::Drawing::Bitmap(src.cols,src.rows,src.step,System::Drawing::Imaging::PixelFormat::Format24bppRgb,ptr);
                     System::Drawing::RectangleF rect(0,0,pictureBox1->Width,pictureBox1->Height);
                     graphics->DrawImage(b,rect);
                     //----------------------------------------------------------------------------------------------------------------------
                     cvtColor( src, src_gray, CV_BGR2GRAY );
                     System::Drawing::Graphics^ graphics2 = pictureBox2->CreateGraphics();
                     System::IntPtr ptr2(src_gray.ptr());  
                     System::Drawing::Bitmap^ b2  = gcnew System::Drawing::Bitmap(src_gray.cols/3,src_gray.rows,src_gray.step,System::Drawing::Imaging::PixelFormat::Format24bppRgb ,ptr2);
                     System::Drawing::RectangleF rect2(0,0,pictureBox2->Width,pictureBox2->Height);
                     graphics2->DrawImage(b2,rect2);
                     //----------------------------------------------------------------------------------------------------------------------
                     Canny( src_gray, src_edge, 50, 25, 3);
                     System::Drawing::Graphics^ graphics3 = pictureBox3->CreateGraphics();
                     System::IntPtr ptr3(src_edge.ptr());   
                     System::Drawing::Bitmap^ b3  = gcnew System::Drawing::Bitmap(src_edge.cols,src_edge.rows,src_edge.step,System::Drawing::Imaging::PixelFormat::Format8bppIndexed ,ptr3);
                     System::Drawing::RectangleF rect3(0,0,pictureBox3->Width,pictureBox3->Height);
                     graphics3->DrawImage(b3,rect3);
                     cnt++;
                     label1->Text = Convert::ToString(cnt);
                     Application::DoEvents();
                     if(IsStop) break;
                 }  
(繼續閱讀...)
文章標籤

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

  • 個人分類:OpenCV
▲top
  • 7月 26 週五 201322:27
  • Show OpenCV Image on a Visual Studio Picture Box


using namespace cv;
Mat src, src_gray;
CvRect Rect;
// 開啟檔案對話框                
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(1,170)

  • 個人分類:OpenCV
▲top
  • 7月 17 週三 201319:57
  • Mean Shift Segmentation

Mean Shift Clustering/ Segmentation in Matlab
(繼續閱讀...)
文章標籤

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

  • 個人分類:其他語言
▲top
  • 7月 04 週四 201311:44
  • display cv::Mat (opencv 2.4.3) in pictureBox (Visual C++ 2010)

資料來源: display cv::Mat (opencv 2.4.3) in pictureBox (Visual C++ 2010)
Mat img;
openFileDialog1->Filter = "JPEG files (*.jpg)|*.jpg|Bitmap files (*.bmp)|*.bmp";
if(openFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
(繼續閱讀...)
文章標籤

me1237guy 發表在 痞客邦 留言(0) 人氣(1,814)

  • 個人分類:OpenCV
▲top
  • 7月 04 週四 201311:41
  • 2010的 C++/CLI 不支援IntelliSense


google後才知道2010的 C++/CLI 不支援IntelliSense了,
所以改用Visual AssistX 10.6.1827,可以在64位元的
VS2010執行。
安裝 VA_X_Setup1940
(繼續閱讀...)
文章標籤

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

  • 個人分類:Visual Studio
▲top
  • 7月 04 週四 201300:44
  • HoughCircle圓偵測


#include "stdafx.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[])
{
    
    using namespace cv;
    Mat src, src_gray;
  /// Read the image
  src = imread( "cd.jpg", 1 );
  if( !src.data )
    { return -1; }
  /// Convert it to gray
  cvtColor( src, src_gray, CV_BGR2GRAY );
  /// Reduce the noise so we avoid false circle detection
  GaussianBlur( src_gray, src_gray, Size(9, 9), 2, 2 );
  vector<Vec3f> circles;
  /// Apply the Hough Transform to find the circles
  HoughCircles( src_gray, circles, CV_HOUGH_GRADIENT, 1, src_gray.rows/8, 200, 100, 0, 0 );
  /// Draw the circles detected
  for( size_t i = 0; i < circles.size(); i++ )
  {
      Point center(cvRound(circles[i][0]), cvRound(circles[i][1]));
      int radius = cvRound(circles[i][2]);
      // circle center
      circle( src, center, 3, Scalar(0,255,0), -1, 8, 0 );
      // circle outline
      circle( src, center, radius, Scalar(0,0,255), 3, 8, 0 );
   }
  /// Show your results
  namedWindow( "Hough Circle Transform Demo", CV_WINDOW_AUTOSIZE );
  imshow( "Hough Circle Transform Demo", src );
  waitKey(0);
    return 0;
}
(繼續閱讀...)
文章標籤

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

  • 個人分類:OpenCV
▲top
  • 6月 26 週三 201307:38
  • 安裝OpenCV 2.4.5


解壓縮至C:\OpenCV-2.4.5
新增一個資料夾vs2010, 即C:\OpenCV-2.4.5\opencv\vs2010
(繼續閱讀...)
文章標籤

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

  • 個人分類:OpenCV
▲top
  • 6月 26 週三 201305:34
  • 安裝OpenCV2 3 1

安裝檔案: OpenCV-2.3.1-win-superpack
安裝步驟: 2013 06 24 安裝OpenCV2 3 1
(繼續閱讀...)
文章標籤

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

  • 個人分類:OpenCV
▲top
  • 6月 26 週三 201305:20
  • 安裝OpenCV 2.2


安裝檔案: OpenCV-2.2.0-win32-vs2010
安裝步驟: 2013 06 24 安裝OpenCV2 2
(繼續閱讀...)
文章標籤

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

  • 個人分類:OpenCV
▲top
  • 6月 25 週二 201301:09
  • 如何使用Kinect語音辨識

如何使用 Kinect 語音辨識 (語音助理 Mini Siri)
全景虛擬實境
物品VR製作
(繼續閱讀...)
文章標籤

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

  • 個人分類:工業應用
▲top
«1...82838489»

個人資訊

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

熱門文章

  • (23,900)Adding Something to DataGridView
  • (14,210)網路上提供測試 RTSP 的伺服器
  • (8,485)分水嶺影像分割Marker-based Image Segmentation Algorithm Using OpenCV2.4.7 with Visual Studio 2010
  • (7,370)建立和使用 C# 的 DLL
  • (6,044)Basler 3.2 Pylon C API 筆記2
  • (4,452)安裝PLC學習軟體 FX-TRN-BEG-T
  • (4,008)Pylon Live View C# Sample Code Review
  • (3,663)安裝Open eVision 1.2.5.8549
  • (2,910)C# 在憑證存放區中找不到資訊清單簽署憑證
  • (449)Install e2v Line Scan CCD with Camera Link

文章分類

  • 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)
  • 工作日誌 (3)
  • Linux (5)
  • C/C++ (15)
  • AOI (41)
  • Emgu CV (42)
  • C# (148)
  • Visual Studio (48)
  • OpenCV (118)
  • 未分類文章 (1)

最新文章

  • C# Grabber Service
  • 格式化隨身碟
  • git開分支測試完成後整併回原本的分支
  • Gemini API Key 低成本 Nano Banana Pro作圖
  • DMK 37AUX226
  • wafer基礎術語
  • 將資料夾中多個mp4影片合併成一個mp4檔案
  • 如何用沙子制造芯片:从冶炼硅锭到晶圆打磨|芯片工艺合集
  • yolov9安裝
  • ActionEngine, ActionTask and ActionWorker

最新留言

  • [21/09/21] 訪客 於文章「EmguCV - C# / Conver...」留言:
    Good ...
  • [21/09/18] me1237guy 於文章「A Simple C# window f...」發表了一則私密留言
  • [21/04/20] zpspu 於文章「請勿嘗試在 DllMain 或影像初始設...」留言:
    感謝分享...
  • [20/07/27] zimark 於文章「Face / Object Detect...」留言:
    您好 我在setup_fdt的步驟下會出現以下錯誤回報 想...
  • [20/07/03] 鴨 於文章「在Azure上通过asp.net使用Em...」留言:
    請問如何在asp.net上做emgucv的環境設置?...
  • [20/06/10] 昌 於文章「C# 模擬滑鼠事件...」留言:
    版主您好! 最近在練習C#的滑鼠模擬控制 我參考您的程式...
  • [20/04/16] 樹懶 於文章「Orientalmotor 東方馬達 M...」留言:
    請問您上述這樣操作,為什麼需要先對寄存器位址0401h寫入資...
  • [20/03/16] 馬崇文 於文章「Orientalmotor 東方馬達 M...」留言:
    有聯絡之訊嗎line 可以給我嗎? 謝謝 ...
  • [20/03/12] HI 於文章「Line Scan CCD Setup ...」留言:
    你好我也正在使用這個軟體 請問這個軟體能擷取影像嗎? ...
  • [19/12/30] 馬崇文 於文章「Orientalmotor 東方馬達 M...」留言:
    Modbus Test這軟體在哪裡下載...

動態訂閱

文章精選

文章搜尋

誰來我家

參觀人氣

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