|
|
VisionWorks Toolkit ReferenceApril 8, 2016 | 1.4 Release |
This class is intended for reading images from different sources.
The source can be:
FrameSource, because it uses EGL as an interop API.FrameSource is thread safe on all platforms except Vibrante Linux.The URI-based scheme is used to describe data sources:
<scheme>:///<host>[?<arg1=value1>&<arg2=value2>[&...]]
The scheme can be:
file - Specifies files on the local machine. The host is a path to the file or file sequence. device - Specifies camera devices. The possible <host> values:nvmedia - Specifies Omni Vision cameras. It contains two arguments:config - The name of the configuration to use (see the table below).number - The number of cameras to access. Can be 1, 2, or 4.v4l2 - Specifies V4L2-compatible cameras. It has a single argument:index - The camera device ID to use.nvcamera - Specifies NVIDIA built-in cameras on Jetson TX1 boards.| Board name | Camera Interface | Camera Type | Configuration name |
|---|---|---|---|
| Jetson TK1 Pro | AB | OV10635 | dvp-ov10635-yuv422-ab |
| Jetson TK1 Pro | CD | OV10635 | dvp-ov10635-yuv422-cd |
| Jetson TK1 Pro | EF | OV10635 | dvp-ov10635-yuv422-ef |
| DRIVE PX B00 | AB | OV10635 | dvp-ov10635-yuv422-ab-e2379 |
| DRIVE PX B00 | CD | OV10635 | dvp-ov10635-yuv422-cd-e2379 |
| DRIVE PX B00 | EF | OV10635 | dvp-ov10635-yuv422-ef-e2379 |
| DRIVE PX B00 | AB | OV10640 | dvp-ov10640-raw12-ab-e2379 |
| DRIVE CX | AB | OV10635 | dvp-ov10635-yuv422-ab-p2382 |
| DRIVE CX | AB | OV10640 | dvp-ov10640-raw12-ab-p2382 |
| E2580 | EF | OV10635 | dvp-ov10635-yuv422-ef-e2580 |
Data Structures | |
| class | nvxio::FrameSource |
| FrameSource interface. More... | |
Functions | |
| NVXIO_EXPORT std::unique_ptr < FrameSource > | nvxio::createDefaultFrameSource (vx_context context, const std::string &uri) |
| FrameSource interface factory that provides appropriate implementation by source URI. More... | |
| NVXIO_EXPORT vx_image | nvxio::loadImageFromFile (vx_context context, const std::string &fileName, vx_df_image format=VX_DF_IMAGE_RGB) |
| Loads image from file into OpenVX Image object. More... | |
| NVXIO_EXPORT std::unique_ptr<FrameSource> nvxio::createDefaultFrameSource | ( | vx_context | context, |
| const std::string & | uri | ||
| ) |
FrameSource interface factory that provides appropriate implementation by source URI.
0000.jpg corresponds to the first image, 0001.jpg - the second and so forth, use the path like this: path_to_folder/%04d.jpg"device:///v4l2?index=0" path to capture images from the first camera. It supports only Video for Linux compatible cameras."device:///nvcamera" path to capture frames from NVIDIA GStreamer camera."device:///nvmedia?config=dvp-ov10635-yuv422-ab-e2379&number=4" path to capture frames from Omni Vision cameras via NvMedia.| [in] | context | The context. |
| [in] | uri | A reference to the path to image source. |
| NVXIO_EXPORT vx_image nvxio::loadImageFromFile | ( | vx_context | context, |
| const std::string & | fileName, | ||
| vx_df_image | format = VX_DF_IMAGE_RGB |
||
| ) |
Loads image from file into OpenVX Image object.
The method is a wrapper around FrameSource to simplify single images loading.
| [in] | context | The OpenVX context. |
| [in] | fileName | The path to the image file. |
| [in] | format | The desired output format. |
vx_image object. Calling code is responsible for its releasing.