Skip to content

Commit b56a663

Browse files
committed
Add new simple video grab example
1 parent 7054bc0 commit b56a663

File tree

5 files changed

+531
-441
lines changed

5 files changed

+531
-441
lines changed

CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,25 @@ if(BUILD_EXAMPLES)
129129
##### Video Example
130130
add_executable(${PROJECT_NAME}_video_example "${CMAKE_HOME_DIRECTORY}/examples/zed_oc_video_example.cpp")
131131
set_target_properties(${PROJECT_NAME}_video_example PROPERTIES PREFIX "")
132-
target_link_libraries(${PROJECT_NAME}_video_example
132+
target_link_libraries(${PROJECT_NAME}_video_example
133133
${PROJECT_NAME}
134134
${OpenCV_LIBS}
135135
)
136136
install(TARGETS ${PROJECT_NAME}_video_example
137137
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
138138
)
139139

140+
##### Control Example
141+
add_executable(${PROJECT_NAME}_control_example "${CMAKE_HOME_DIRECTORY}/examples/zed_oc_control_example.cpp")
142+
set_target_properties(${PROJECT_NAME}_control_example PROPERTIES PREFIX "")
143+
target_link_libraries(${PROJECT_NAME}_control_example
144+
${PROJECT_NAME}
145+
${OpenCV_LIBS}
146+
)
147+
install(TARGETS ${PROJECT_NAME}_control_example
148+
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
149+
)
150+
140151
##### Rectify Example
141152
include_directories( ${CMAKE_HOME_DIRECTORY}/examples/include)
142153
add_executable(${PROJECT_NAME}_rectify_example "${CMAKE_HOME_DIRECTORY}/examples/zed_oc_rectify_example.cpp")

doc/api_doc/DoxygenLayout.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@
3434
<tab type="pages" visible="no" title="" intro=""/>
3535

3636
<tab type="usergroup" url="md_examples.html" visible="yes" title="Examples">
37-
<tab type="user" url="zed_oc_video_example_8cpp-example.html" visible="yes" title="Video Capture and Control" />
38-
<tab type="user" url="zed_oc_rectify_example_8cpp-example.html" visible="yes" title="Video Rectification" />
37+
<tab type="user" url="zed_oc_video_example_8cpp-example.html" visible="yes" title="Video Capture" />
38+
<tab type="user" url="zed_oc_control_example_8cpp-example.html" visible="yes" title="Video Capture and Control" />
3939
<tab type="user" url="zed_oc_sensors_example_8cpp-example.html" visible="yes" title="Sensors Data Capture" />
4040
<tab type="user" url="zed_oc_sync_example_8cpp-example.html" visible="yes" title="Video/Sensors sync" />
41+
<tab type="user" url="zed_oc_rectify_example_8cpp-example.html" visible="yes" title="Video Rectification" />
4142
</tab>
4243

4344
<tab type="user" url="md_release-notes.html" visible="yes" title="Release Notes"/>

doc/api_doc/examples.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
A set of examples is provided to exploit all the features of the ZED Open Capture library:
44

5-
- [Video Capture and Control](zed_oc_video_example_8cpp-example.html): demonstrates how to acquire video stream, convert it to RGB and control the video settings using the keyboard (Requires OpenCV)
5+
- [Video Capture](zed_oc_video_example_8cpp-example.html): demonstrates how to acquire video stream, convert it to RGB and display it on screen (Requires OpenCV)
6+
- [Video Capture and Control](zed_oc_control_example_8cpp-example.html): demonstrates how to acquire video stream, convert it to RGB and control the video settings using the keyboard (Requires OpenCV)
67
- [Sensor Capture](zed_oc_sensors_example_8cpp-example.html): demonstrates how to acquire all the sensors data at the maximum frequency available
7-
- [Video/Sensors synchronization](zed_oc_sync_example_8cpp-example.html): demonstrates how to synchronize video and sensors data using the timestamps
8-
- [Video Rectification](zed_oc_rectify_example_8cpp-example.html): demonstrates how to rectify the video frames getting the calibration parameters from the Stereolabs servers
8+
- [Video/Sensors synchronization](zed_oc_sync_example_8cpp-example.html): demonstrates how to synchronize video and sensors data using the timestamps (Requires OpenCV)
9+
- [Video Rectification](zed_oc_rectify_example_8cpp-example.html): demonstrates how to rectify the video frames getting the calibration parameters from the Stereolabs servers (Requires OpenCV)

0 commit comments

Comments
 (0)