1 Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
3 @page nvee_camera_caffe_group Camera CAFFE Sample
6 - [Overview](#overview)
7 - [Key Structure and Classes](#key)
9 - - - - - - - - - - - - - - -
13 The camera with CAFFE
object identification sample demonstrates how to capture the image
14 from the camera, convert the data through [
NvVideoConverter](classNvVideoConverter.html) without memory copy, feed
15 the memory pointer to OpenCV, and run CAFFE model zoo
for the
object identication algorithm.
17 
19 This sample adds zoo
object identification into part of the consumer thread. This is
20 achieved via the `opencv_img_processing()`
function invoked by the capture plane callback.
21 The code is located under `opencv_consumer_lib` to integrate deep learning
function as a
22 sample. Frame rate is not part of the key consideration.
24 #### Additional Details
26 CAFFE
object identication uses OpenCV Mat as the input and output structure. For more
31 #### Prerequisites ####
32 Before running the sample, you must have the following:
34 * README that provides details on the environment requirements to build and run the sample
35 * A working camera module
37 - - - - - - - - - - - - - - -
39 ## Key Structure and Classes ##
41 The `
struct context_t` global structure manages all of the resources in the application.
43 The [
NvVideoConverter](classNvVideoConverter.html) class packages all video converting related elements and functions. The
44 sample uses the following key members:
47 | ---------------- | ----------- |
48 | [output_plane](classNvV4l2Element.html#aaba251827cef1b23e7c42f776e95fee5) | Specifies the output plane. |
49 | [capture_plane](classNvV4l2Element.html#a91806d7ed13b4b2c48758e8a02f46c6d) | Specifies the capture plane. |
50 | [waitForIdle](classNvVideoConverter.html#a2f5d1a234427862adf9cae7323b5e24c) | - |
51 | setOutputPlaneFormat | Sets the output plane format. |
52 | setCapturePlaneFormat | Sets the capture plane format. |
Defines a helper class for V4L2 Video Converter.