1 # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
3 @page landmarks_usecase_e2e Landmark Detector End-to-End Init Workflow
5 The following code snippet demonstrates the general structure of a program utilizing @ref landmarks_mainsection to detect landmarks from a single camera. Error handling is left out for clarity.
7 ### Initializing the End-to-End Network
10 dwMapNetParams mapNetParams{};
11 dwMapNet_initDefaultParams(&mapNetParams, DW_MAPNET_TYPE_E2E, sdkHandle)
12 dwMapNet_initialize(&mapNetHandle, &mapNetParams, sdkHandle);
15 ### Modifying Additional End-to-End Network Initialization Settings and Initialize Detector
21 // initialize parameters
22 dwLandmarkDetectorParams params;
23 dwLandmarkDetector_initializeDefaultParams(¶ms, frameWidth, frameHeight, sdkHandle));
24 dwLandmarkDetector_initializeFromMapNet(&landmarkDetectorHandle, mapNetHandle, params, frameWidth, frameHeight, sdkHandle);
26 // initialize end-to-end post processing parameters
27 dwLRNPostProcessingParam regressorParam;
28 dwLandmarkDetector_initializeDefaultRegressorParams(®ressorParam);
29 dwLandmarkDetector_setPostProcessingParam(regressorParam, landmarkDetectorHandle);
32 ### Detecting Landmark Markings from a Video Sequence
35 dwLaneDetection lanes{};
36 dwLandmarkDetection landmarks{};
39 dwLandmarkDetector_detectLandmarks(&lanes, &landmarks, frame, landmarkDetectorHandle);
44 ### Releasing the Module Handles when Finished
47 dwLandmarkDetector_release(landmarkDetectorHandle);
48 dwMapNet_release(mapNetHandle);
51 For a more detailed workflow, please refer to the following samples:
52 - @ref dwx_landmark_detection_by_regressor_net_sample.