Multimedia API Reference

November 16, 2016 | 24.2.1 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nvee_camera_caffe_guide.md
Go to the documentation of this file.
1 Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved.
2 
3 @page nvee_camera_caffe_group Camera CAFFE Sample
4 @{
5 
6  - [Overview](#overview)
7  - [Key Structure and Classes](#key)
8 
9 - - - - - - - - - - - - - - -
10 <a name="overview">
11 ## Overview ##
12 
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.
16 
17 ![](nvee_camera_caffe.jpg)
18 
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.
23 
24 #### Additional Details
25 
26 CAFFE object identication uses OpenCV Mat as the input and output structure. For more
27 information, see:
28 
29 * http://caffe.berkeleyvision.org/model_zoo.html
30 
31 #### Prerequisites ####
32 Before running the sample, you must have the following:
33 
34 * README that provides details on the environment requirements to build and run the sample
35 * A working camera module
36 
37 - - - - - - - - - - - - - - -
38 <a name="key">
39 ## Key Structure and Classes ##
40 
41 The `struct context_t` global structure manages all of the resources in the application.
42 
43 The [NvVideoConverter](classNvVideoConverter.html) class packages all video converting related elements and functions. The
44 sample uses the following key members:
45 
46 | %NvVideoConverter | Description |
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. |
53 
54 
55 
56 
57 
58 @}
59 
Defines a helper class for V4L2 Video Converter.