//////////////////////////////////////////////////////////////////////////////////////////////
// Made by J.H.KIM, 2012.12.24 / feelmare@daum.net, feelmare@gmail.com //
// My blog : http://feelmare.blogspot.com //
// My Lab : VISLAB(http://me.pusan.ac.kr) //
// My Institute : Realhub RnD Cneter(http://www.realhub.co.kr //
/////////////////////////////////////////////////////////////////////////////////////////////
8/31/2012
(source code)Camera Pan/Tilt using Servo motor, control by arduino
Download the Arduino software -> go to the page
Download usb driver -> go to the page
My environment is Window 7 64 bit.
Arduino version is Mega ADK.
If you are same equipment and window, download this file directly.
driver
Download usb driver -> go to the page
My environment is Window 7 64 bit.
Arduino version is Mega ADK.
If you are same equipment and window, download this file directly.
driver
8/28/2012
OpenGL 2 Views(windows) on MFC - Source code
It is a source code to make 2 views(windows) of openGL on MFC dialog.
Download this source code here.
This source code is applied by OpenGL Drawing test on MFC post on this site.
Download this source code here.
This source code is applied by OpenGL Drawing test on MFC post on this site.
8/20/2012
source code - OpenGL Drawing on MFC dlg(using COpenGLControl class)
This post introduces how to drawing opengl on the mfc dialog.
If we are using COpenGLControl class, this work is very easy and simple.
Fi rstly, get the COpenGLControl class in the web or on this.
1. In the ~Dlg.h, Add header file and member variable
#include "OpenGLControl.h"
~
COpenGLControl m_oglWindow;
2. Add below source code in the OnInitDialog() function.
CRect rect;
// Get size and position of the template textfield we created before in the dialog editor
GetDlgItem(IDC_PIC_OPENGL)->GetWindowRect(rect);
// Convert screen coordinates to client coordinates
ScreenToClient(rect);
// Create OpenGL Control window
m_oglWindow.oglCreate(rect, this);
// Setup the OpenGL Window's timer to render
m_oglWindow.m_unpTimer = m_oglWindow.SetTimer(1, 1, 0);
* You have to set picture box option as "Visible is False".
The source code is here.
If we are using COpenGLControl class, this work is very easy and simple.
Fi rstly, get the COpenGLControl class in the web or on this.
1. In the ~Dlg.h, Add header file and member variable
#include "OpenGLControl.h"
~
COpenGLControl m_oglWindow;
2. Add below source code in the OnInitDialog() function.
CRect rect;
// Get size and position of the template textfield we created before in the dialog editor
GetDlgItem(IDC_PIC_OPENGL)->GetWindowRect(rect);
// Convert screen coordinates to client coordinates
ScreenToClient(rect);
// Create OpenGL Control window
m_oglWindow.oglCreate(rect, this);
// Setup the OpenGL Window's timer to render
m_oglWindow.m_unpTimer = m_oglWindow.SetTimer(1, 1, 0);
* You have to set picture box option as "Visible is False".
The source code is here.
8/06/2012
Contour compare using OpenCV(source code), cvFindContours, cvMatchShapes
There is shape match function in the OpenCV.
The function name is cvMatchShapes.
This function compares two contours.
If two contours is same, the function returns 0.
conversely, the value of return is larger, more shape different.
So, we use threshold to decide these pair is similar or not.
code start
code end
#findcontour, #contour, #compare
source coude
The function name is cvMatchShapes.
This function compares two contours.
If two contours is same, the function returns 0.
conversely, the value of return is larger, more shape different.
So, we use threshold to decide these pair is similar or not.
code start
code end
#findcontour, #contour, #compare
source coude
Labels:
cvCreateMemStorage,
cvDrawContours,
cvFindContours,
cvLoadImage,
cvSaveImage,
cvThreshold,
OpenCV,
Total
Subscribe to:
Posts (Atom)
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv <-> rgb converting example code. refer to this page -> ht...
-
CUDA_ARCH_BIN Table for gpu type Jetson Products GPU Compute Capability Jetson AGX Xavier 7.2 Jetson Nano 5.3 Jetson TX2 6.2 Jetson TX1 5.3 ...
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
make different port number Window > .\python_embeded\python.exe -s ComfyUI\ main.py --port 8189 --windows-standalone-build Linux or Ma...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
On the window, we made new file easily by right button click. But on the mac, there is no function. So, very incompatible... By the way, ...
-
This is example for background subtraction on opencv 3.2 version previously, I post 2.7 version example on here. http://study.marearts.co...
-
error: . VanillaPipeline.get_train_loss_dict: 12.6875 Traceback (most recent call last): File "/home/mare/anaconda3...
-
>sudo lsof -i :8188 python 231134 mare 45u IPv4 2074469 0t0 TCP localhost:8188->localhost:42132 (CLOSE_WAIT) python 23113...