{"action":"closed","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4848","repository_url":"https://api.github.com/repos/Itseez/opencv","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4848/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4848/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4848/events","html_url":"https://github.com/Itseez/opencv/issues/4848","id":97436062,"number":4848,"title":"Use CommandLineParser in all C++ samples","user":{"login":"opencv-pushbot","id":2051563,"avatar_url":"https://avatars.githubusercontent.com/u/2051563?v=3","gravatar_id":"","url":"https://api.github.com/users/opencv-pushbot","html_url":"https://github.com/opencv-pushbot","followers_url":"https://api.github.com/users/opencv-pushbot/followers","following_url":"https://api.github.com/users/opencv-pushbot/following{/other_user}","gists_url":"https://api.github.com/users/opencv-pushbot/gists{/gist_id}","starred_url":"https://api.github.com/users/opencv-pushbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencv-pushbot/subscriptions","organizations_url":"https://api.github.com/users/opencv-pushbot/orgs","repos_url":"https://api.github.com/users/opencv-pushbot/repos","events_url":"https://api.github.com/users/opencv-pushbot/events{/privacy}","received_events_url":"https://api.github.com/users/opencv-pushbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20samples","name":"category: samples","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/feature","name":"feature","color":"84b6eb"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"A38700"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T10:48:58Z","updated_at":"2016-03-20T23:29:42Z","closed_at":"2016-03-20T23:29:42Z","body":"Transferred from http://code.opencv.org/issues/3957\r\n```\n|| Kirill Kornyakov on 2014-10-16 09:50\n|| Priority: Normal\n|| Affected: None\n|| Category: samples\n|| Tracker: Feature\n|| Difficulty: Easy\n|| PR: \n|| Platform: None / None\n```\n\nUse CommandLineParser in all C++ samples\n-----------\n```\nIn OpenCV we have a helper class, that simplifies the work with command line options. It is used in some samples, but there are some samples that still use the naive approach. I suggest to unify the way of handling the options given to samples. The first step should be to unify all the samples on the opencv/samples/cpp folder, later we can check other folders (like tapi and gpu and probably others), but most likely there is nothing to do. Actually tapi and gpu folders show the good way of handling parameters, it just should be applied to the cpp folder.\n```\n\nHistory\n-------\n##### Maksim Shabunin on 2015-04-27 09:12\n```\n-   Target version changed from 3.0-beta to 3.0\n```"}}