Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
75191e8f
Commit
75191e8f
authored
Feb 01, 2013
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Smartek Giganetix Cameras support (Patch #2192) integrated to master.
parent
61079547
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
1 deletion
+53
-1
CMakeLists.txt
CMakeLists.txt
+5
-0
OpenCVFindLibsVideo.cmake
cmake/OpenCVFindLibsVideo.cmake
+13
-0
CMakeLists.txt
modules/highgui/CMakeLists.txt
+8
-0
highgui_c.h
modules/highgui/include/opencv2/highgui/highgui_c.h
+12
-1
cap.cpp
modules/highgui/src/cap.cpp
+13
-0
cap_giganetix.cpp
modules/highgui/src/cap_giganetix.cpp
+0
-0
precomp.hpp
modules/highgui/src/precomp.hpp
+1
-0
test_precomp.hpp
modules/highgui/test/test_precomp.hpp
+1
-0
No files found.
CMakeLists.txt
View file @
75191e8f
...
...
@@ -129,6 +129,7 @@ OCV_OPTION(WITH_OPENGL "Include OpenGL support" OFF
OCV_OPTION
(
WITH_OPENNI
"Include OpenNI support"
OFF
IF
(
NOT ANDROID AND NOT IOS
)
)
OCV_OPTION
(
WITH_PNG
"Include PNG support"
ON
IF
(
NOT IOS
)
)
OCV_OPTION
(
WITH_PVAPI
"Include Prosilica GigE support"
ON
IF
(
NOT ANDROID AND NOT IOS
)
)
OCV_OPTION
(
WITH_GIGEAPI
"Include Smartek GigE support"
ON
IF
(
NOT ANDROID AND NOT IOS
)
)
OCV_OPTION
(
WITH_QT
"Build with Qt Backend support"
OFF
IF
(
NOT ANDROID AND NOT IOS
)
)
OCV_OPTION
(
WITH_QUICKTIME
"Use QuickTime for Video I/O insted of QTKit"
OFF IF APPLE
)
OCV_OPTION
(
WITH_TBB
"Include Intel TBB support"
OFF
IF
(
NOT IOS
)
)
...
...
@@ -705,6 +706,10 @@ if(DEFINED WITH_PVAPI)
status
(
" PvAPI:"
HAVE_PVAPI THEN YES ELSE NO
)
endif
(
DEFINED WITH_PVAPI
)
if
(
DEFINED WITH_GIGEAPI
)
status
(
" GigEVisionSDK:"
HAVE_GIGE_API THEN YES ELSE NO
)
endif
(
DEFINED WITH_GIGEAPI
)
if
(
DEFINED WITH_QUICKTIME
)
status
(
" QuickTime:"
WITH_QUICKTIME THEN YES ELSE NO
)
status
(
" QTKit:"
WITH_QUICKTIME THEN NO ELSE YES
)
...
...
cmake/OpenCVFindLibsVideo.cmake
View file @
75191e8f
...
...
@@ -56,6 +56,19 @@ if(WITH_PVAPI)
endif
(
PVAPI_INCLUDE_PATH
)
endif
(
WITH_PVAPI
)
# --- GigEVisionSDK ---
ocv_clear_vars
(
HAVE_GIGE_API
)
if
(
WITH_GIGEAPI
)
find_path
(
GIGEAPI_INCLUDE_PATH
"GigEVisionSDK.h"
PATHS /usr/local /var /opt /usr ENV ProgramFiles ENV ProgramW6432
PATH_SUFFIXES include
"Smartek Vision Technologies/GigEVisionSDK/gige_cpp"
"GigEVisionSDK/gige_cpp"
"GigEVisionSDK/gige_c"
DOC
"The path to Smartek GigEVisionSDK header"
)
FIND_LIBRARY
(
GIGEAPI_LIBRARIES NAMES GigEVisionSDK
)
if
(
GIGEAPI_LIBRARIES AND GIGEAPI_INCLUDE_PATH
)
set
(
HAVE_GIGE_API TRUE
)
endif
()
endif
(
WITH_GIGEAPI
)
# --- Dc1394 ---
ocv_clear_vars
(
HAVE_DC1394 HAVE_DC1394_2
)
if
(
WITH_1394
)
...
...
modules/highgui/CMakeLists.txt
View file @
75191e8f
...
...
@@ -171,6 +171,14 @@ if(HAVE_PVAPI)
list
(
APPEND HIGHGUI_LIBRARIES
${
PVAPI_LIBRARY
}
)
endif
()
if
(
HAVE_GIGE_API
)
add_definitions
(
-DHAVE_GIGE_API
)
ocv_include_directories
(
${
GIGEAPI_INCLUDE_PATH
}
)
set
(
highgui_srcs src/cap_giganetix.cpp
${
highgui_srcs
}
)
list
(
APPEND HIGHGUI_LIBRARIES
${
GIGEAPI_LIBRARIES
}
)
list
(
APPEND highgui_srcs src/cap_giganetix.cpp
)
endif
(
HAVE_GIGE_API
)
if
(
WITH_AVFOUNDATION
)
add_definitions
(
-DHAVE_AVFOUNDATION=1
)
list
(
APPEND highgui_srcs src/cap_avfoundation.mm
)
...
...
modules/highgui/include/opencv2/highgui/highgui_c.h
View file @
75191e8f
...
...
@@ -307,7 +307,9 @@ enum
CV_CAP_XIAPI
=
1100
,
// XIMEA Camera API
CV_CAP_AVFOUNDATION
=
1200
// AVFoundation framework for iOS (OS X Lion will have the same API)
CV_CAP_AVFOUNDATION
=
1200
,
// AVFoundation framework for iOS (OS X Lion will have the same API)
CV_CAP_GIGANETIX
=
1300
// Smartek Giganetix GigEVisionSDK
};
/* start capturing frames from camera: index = camera_index + domain_offset (CV_CAP_*) */
...
...
@@ -454,6 +456,15 @@ enum
CV_CAP_PROP_IOS_DEVICE_FLASH
=
9003
,
CV_CAP_PROP_IOS_DEVICE_WHITEBALANCE
=
9004
,
CV_CAP_PROP_IOS_DEVICE_TORCH
=
9005
// Properties of cameras available through Smartek Giganetix Ethernet Vision interface
/* --- Vladimir Litvinenko (litvinenko.vladimir@gmail.com) --- */
,
CV_CAP_PROP_GIGA_FRAME_OFFSET_X
=
10001
,
CV_CAP_PROP_GIGA_FRAME_OFFSET_Y
=
10002
,
CV_CAP_PROP_GIGA_FRAME_WIDTH_MAX
=
10003
,
CV_CAP_PROP_GIGA_FRAME_HEIGH_MAX
=
10004
,
CV_CAP_PROP_GIGA_FRAME_SENS_WIDTH
=
10005
,
CV_CAP_PROP_GIGA_FRAME_SENS_HEIGH
=
10006
};
enum
...
...
modules/highgui/src/cap.cpp
View file @
75191e8f
...
...
@@ -149,6 +149,9 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
#endif
#ifdef HAVE_AVFOUNDATION
CV_CAP_AVFOUNDATION
,
#endif
#ifdef HAVE_GIGE_API
CV_CAP_GIGANETIX
,
#endif
-
1
};
...
...
@@ -184,6 +187,7 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
defined(HAVE_XIMEA) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_ANDROID_NATIVE_CAMERA) || \
defined(HAVE_GIGE_API) || \
(0)
// local variable to memorize the captured device
CvCapture
*
capture
;
...
...
@@ -320,6 +324,15 @@ CV_IMPL CvCapture * cvCreateCameraCapture (int index)
return
capture
;
break
;
#endif
#ifdef HAVE_GIGE_API
case
CV_CAP_GIGANETIX
:
capture
=
cvCreateCameraCapture_Giganetix
(
index
);
if
(
capture
)
return
capture
;
break
;
// CV_CAP_GIGANETIX
#endif
}
}
...
...
modules/highgui/src/cap_giganetix.cpp
0 → 100644
View file @
75191e8f
This diff is collapsed.
Click to expand it.
modules/highgui/src/precomp.hpp
View file @
75191e8f
...
...
@@ -115,6 +115,7 @@ CvCapture * cvCreateCameraCapture_V4L( int index );
CvCapture
*
cvCreateCameraCapture_DC1394
(
int
index
);
CvCapture
*
cvCreateCameraCapture_DC1394_2
(
int
index
);
CvCapture
*
cvCreateCameraCapture_MIL
(
int
index
);
CvCapture
*
cvCreateCameraCapture_Giganetix
(
int
index
);
CvCapture
*
cvCreateCameraCapture_CMU
(
int
index
);
CV_IMPL
CvCapture
*
cvCreateCameraCapture_TYZX
(
int
index
);
CvCapture
*
cvCreateFileCapture_Win32
(
const
char
*
filename
);
...
...
modules/highgui/test/test_precomp.hpp
View file @
75191e8f
...
...
@@ -34,6 +34,7 @@
defined(HAVE_OPENNI) || \
defined(HAVE_XIMEA) || \
defined(HAVE_AVFOUNDATION) || \
defined(HAVE_GIGE_API) || \
(0)
//defined(HAVE_ANDROID_NATIVE_CAMERA) || - enable after #1193
# define BUILD_WITH_CAMERA_SUPPORT 1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment