Pulnix TMC-7DSP User Manual

Browse online or download User Manual for Security cameras Pulnix TMC-7DSP. usu-csois-tr-05-01 - Utah State University [en]

  • Download
  • Add to my manuals
  • Print
  • Page
    / 32
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
Real Time Computer Vision Development
for a 2-DOF Gimbal Application
Sakari Kettunen
Center for Self-Organizing and Intelligent Systems (CSOIS)
Department of Electrical and Computer Engineering
College of Engineering, Utah State Universtiy
4160 Old Main Hill, Logan Utah 84322-4160, USA
Web: http://www.csois.usu.edu/
Jan 24th 2005
Technical Report No. : USU-CSOIS-TR-05-01
Reports are available from http://mechatronics.ece.usu.edu/reports/
Page view 0
1 2 3 4 5 6 ... 31 32

Summary of Contents

Page 1

Real Time Computer Vision Development for a 2-DOF Gimbal Application Sakari Kettunen Center for Self-Organizing and In

Page 2

9Controlling Gimbal The third part of the project was to integrate image acquisition system and gimbal controlling system in to one computer. Until n

Page 3 - Introduction

10 Figure 3 'Homef.mdl' - Home point search Simulink model ‘Homef.mdl’ [2] was used to find the home position of Gimbal. That is, the zero

Page 4 - The goal of the project

11 ‘Point.mdl’[2] can be used for finding the starting point of the curve. Both axes will move straight to the desired angle (x_deg, y_deg). Simulati

Page 5

12Kuva 1 Subsystem 'selected input signal' from 'Model.mdl' Math-file ‘ILCprocess.m’ To test and demonstrate the working of the s

Page 6 - Image acquisition program

13F:/Sakari/gimbal_interface/ Folder ‘Gimbal’ includes only the necessary files for the project; the other folder is a working folder with extra fil

Page 7 - Problems during programming

14Conclusions The reason why I run out of time with this project, and was not able to implement the ILC process can be blamed on two reasons: first,

Page 8 - Saving the path

15Bibliography [1] The MathWorks - Support - MEX-files Guide http://www.mathworks.com/support/tech-notes/1600/1605.html [2] Mohua Ghosh, Master’s T

Page 9 - Using ‘savePath.m’

16Appendix I ‘FrameCapt.h’ /* This program is based on a sample program called "acq2host.c"/"acq2host.h" produced by Data

Page 10 - Controlling Gimbal

17/* by the current device */ typedef struct tagDEVCAPS { BOOL DoesInputFilter

Page 11

18 OLT_LNG_RANGE TopRange; OLT_LNG_RANGE WidthRange; OLT_LNG_RANGE HeightRange; OLT_LNG_RANGE HorizontalIncRange;

Page 12

1 Table of Contents Introduction...

Page 13 - Math-file ‘ILCprocess.m’

19 DT3157_SYNC_CTL_HPULSE_WIDTH = 0x0003, DT3157_SYNC_CTL_VPULSE_WIDTH = 0x0004, DT3157_SYNC_CTL_PHASE = 0x0005 } DT3157_SYNC_CON

Page 14

20BOOL PRIVATE InitInstance(HINSTANCE, int); LPARAM CALLBACK __export MainWndProc(HWND, UINT, WPARAM, LPARAM); BOOL CALLBACK __export About(HWND, UIN

Page 15 - Conclusions

21BOOL CALLBACK __export VideoAreaProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam); void PRIVATE InitVideoAreaDlg(HWND hDlg, LPVIDEOAREAIN

Page 16 - Bibliography

22Appendix II ‘FrameCapt.c’ /* This program is based on a sample program called "acq2host.c"/"acq2host.h" produced by Dat

Page 17 - Appendix I

23 char *array; /* The gateway routine */ void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { const i

Page 18

24 if(!memcpy(start_of_pr, hpAcquireBuf, bytes_to_copy)) { GlobalUnlock(hpAcquireBuf); GlobalFree(hAcquireBuf); OlFgDestroyFrame( Cu

Page 19

25 /* Allocate space for info */ hDevInfoList = GlobalAlloc(GHND, iCount * sizeof(OLT_IMGDEVINFO)); if ( !hDevInfoList ) { FI

Page 20

26 /* Try to open the device */ Status = OlImgOpenDevice(lpcszAlias, &DevId); if ( ! OlImgIsOkay( Status ) ) { mexPrintf("

Page 21

27 /* Function: AcquireToHost */ BOOL AcquireToHost() { OLT_APISTATUS Status = 0L; ULNG ulPixelDepth = 0L; ULNG ulMinBufSize = 0L

Page 22

28 FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, dw, MAKELANGID(LANG_NE

Page 23 - Appendix II

2Introduction This document is about the project that I made for the Center of Self Organizing and Intelligent Systems (CSOIS), Utah State University

Page 24

29Appendix III ‘ILCprocess.m’ clear; k = 0; while(k < 3) %starting point search model name: mn = 'point'; FrameCapt; %I

Page 25

30 %%%%%%%%%%%%%%%%%%%%%%% % The actual curve: % --------------------------------------- %%%%%%%%%%%%%%%%%%%%%%% pause(2);

Page 26

31 wc_stop('homef'); %pause(1); k = k + 1; end FrameCapt(1); %Close camera

Page 27

3The goal of the project The Gimbal is a 2 DOF rotating robot. It consists of a vertically rotating shaft extending into a fork and another shaft pla

Page 28

4Because of the limited time I had in use and the troubles I had with the system during the project I was not able to implement Iterative Learning Co

Page 29

5Image acquisition program The first part of the project was to create a program, which grabs a frame from digital camera (Pulnix TMC-7DSP connected

Page 30 - Appendix III

6NOTE! You have to wait a while (>0.5 seconds) after the camera initialization before you acquire the image. Otherwise the picture will contain er

Page 31

7Saving the path The second part of the project was to create a program (MatLab m-file) which saves the curve that the laser pointer draws in the pap

Page 32

8from the file ‘ILCprocess.m’. Sorry about that! Those lines are remains of earlier versions of the function. Read more about the file ‘ILCprocess.m’

Comments to this Manuals

No comments