{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/4603","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/4603/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/4603/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/4603/events","html_url":"https://github.com/Itseez/opencv/issues/4603","id":97426437,"number":4603,"title":"Missing constants from cv2 python interface","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/affected:%202.4","name":"affected: 2.4","color":"ededed"},{"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/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/category:%20python%20bindings","name":"category: python bindings","color":"ededed"},{"url":"https://api.github.com/repos/Itseez/opencv/labels/priority:%20normal","name":"priority: normal","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-27T09:50:36Z","updated_at":"2015-07-27T09:50:36Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/3181\r\n```\n|| Kyle Schmitt on 2013-07-28 17:16\n|| Priority: Normal\n|| Affected: 2.4.0 - 2.4.6\n|| Category: python bindings\n|| Tracker: Bug\n|| Difficulty: \n|| PR: \n|| Platform: x64 / Linux\n```\n\nMissing constants from cv2 python interface\n-----------\n```\nThe video related constants (and possibly more), are missing from the cv2 python interface.\r\n\r\nAccording to the docs:\r\n\r\nhttp://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture-get\r\n\r\nThe capture properties such as CV_CAP_PROP_FRAME_WIDTH should be available in the cv2 module, but they are not.  They are only available through cv, or cv2.cv.\r\n\r\nA snippet from a bpython session:\r\n\r\n>>> import cv2\r\n>>> import cv\r\n>>> cv2.VideoCapture(0).get(cv2.CV_CAP_PROP_FRAME_WIDTH)\r\nTraceback (most recent call last):\r\n  File \"<input>\", line 1, in <module>\r\nAttributeError: 'module' object has no attribute 'CV_CAP_PROP_FRAME_WIDTH'\r\n>>> cv2.VideoCapture(0).get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)\r\n176.0\r\n>>> cv2.VideoCapture(0).get(cv.CV_CAP_PROP_FRAME_WIDTH)\r\n176.0\r\n>>>\n```\n\nHistory\n-------\n##### Victor Kocheganov on 2013-08-05 10:51\n```\nHello Kyle Schmitt!\r\n\r\nThank you for reporting the issue and detail description! \r\nUnfortunately our human resources are highly limited and it would be much appreciated if you have time to investigate it by yourself and provide a fix to community (please see http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute for details)!\r\n\r\nThank you in advance,\r\nVictor Kocheganov\n-   Target version set to 2.4.7\n-   Assignee set to Vadim Pisarevsky\n-   Status changed from New to Open\n-   Category set to python bindings\n```\n##### Victor Kocheganov on 2013-08-08 06:51\n```\n-   Assignee changed from Vadim Pisarevsky to Andrey Pavlenko\n```\n##### abid rahman on 2013-09-24 02:20\n```\nIt is already available in master branch. \r\n\r\n<pre>\r\ncv2.CAP_PROP_FRAME_COUNT\r\n</pre>\n```\n##### Alexander Smorkalov on 2013-11-27 10:28\n```\nAndrey Pavlenko, you've made some fixes related to wrappers generation for VideoCapture. Is this problem exist in 2.4 right now?\n-   Affected version changed from 2.4.0 - 2.4.5 to 2.4.0 - 2.4.6\n```\n##### Alexander Smorkalov on 2013-11-28 05:57\n```\n-   Target version changed from 2.4.7 to 2.4.8\n```\n##### Alexander Smorkalov on 2013-12-30 10:38\n```\n-   Target version changed from 2.4.8 to 2.4.9\n```\n##### Alexander Smorkalov on 2014-04-30 19:05\n```\n-   Target version changed from 2.4.9 to 2.4.10\n```"}}