HANDLE hThread = CreateThread(NULL, 0, Capture, NULL, 0, 0) Printf("Image dimensions (%d, %d)\n", w, h) ĬvNamedWindow(WINDOW_NAME, CV_WINDOW_AUTOSIZE) PS3EyeMulticamLoadSettings("settings.xml") If the file is not found it will be created Load the default camera settings 'settings.xml' file MessageBox(NULL,"Could not open PS3Eye camera(s)","PS3EyeMulticamTest", MB_ICONEXCLAMATION) MessageBox(NULL,"No PS3Eye camera(s) found","PS3EyeMulticamTest", MB_ICONEXCLAMATION) Printf("Found %d PS3Eye cameras\n", camCnt) Int camCnt = PS3EyeMulticamGetCameraCount() Query driver for number of connected PS3Eye cameras IplImage *grayImage = cvCreateImage(cvSize(w, h), IPL_DEPTH_8U, 1) and add all the files in this folder to it. To build it, in VS2008 create en empty window app project This is a quick test application for the Here is the ‘PS3EyeMulticamTest.cpp’ file: The PS3EyeMulticamTest app uses all of the API functions defined in ‘PS3EyeMulticam.h’ file. This code could also serve as a good starting point for writing your own OpenCV image processing apps. Included in the driver archive is a full source code of a simple ‘PS3EyeMulticamTest’ application that allows you to run and test the multicamera driver. PS3EYEMULTICAM_API bool PS3EyeMulticamGetFrame(PBYTE pData, int waitTimeout=2000) PS3EYEMULTICAM_API bool PS3EyeMulticamGetFrameDimensions(int &width, int &height) PS3EYEMULTICAM_API void PS3EyeMulticamShowSettings() PS3EYEMULTICAM_API bool PS3EyeMulticamSaveSettings(char* fileName="settings.xml") PS3EYEMULTICAM_API bool PS3EyeMulticamLoadSettings(char* fileName="settings.xml") PS3EYEMULTICAM_API void PS3EyeMulticamStop() PS3EYEMULTICAM_API bool PS3EyeMulticamStart() PS3EYEMULTICAM_API void PS3EyeMulticamClose() PS3EYEMULTICAM_API bool PS3EyeMulticamOpen(int camCnt, Resolution res, int frameRate) PS3EYEMULTICAM_API int PS3EyeMulticamGetCameraCount() #define PS3EYEMULTICAM_API extern "C" _declspec(dllimport) #define PS3EYEMULTICAM_API extern "C" _declspec(dllexport) For updates, more information and downloads visit: This library allows you to use multiple PS3Eye cameras in your own applications. Here is the ‘PS3EyeMulticam.h’ file that you would normally include in your code: I chose a C style export functions this time to allow for easier integration with different programming languages such as C#. The driver exports simple API that allows for full control of PS3Eye cameras. For a single camera configuration the ‘Image Stitching’ component is bypassed. Finally, here is the long awaited PS3Eye multicam driverĪfter a lot of testing and optimization of the internal driver code, I finally am ready to release the first version of the PS3Eye multicam driver.įor your reference, below is the diagram of the internal components of the driver.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |