{"action":"opened","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5488","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5488/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5488/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5488/events","html_url":"https://github.com/Itseez/opencv/issues/5488","id":110863828,"number":5488,"title":"Operations on rectangles not supported in Java","user":{"login":"johnagon","id":14365653,"avatar_url":"https://avatars.githubusercontent.com/u/14365653?v=3","gravatar_id":"","url":"https://api.github.com/users/johnagon","html_url":"https://github.com/johnagon","followers_url":"https://api.github.com/users/johnagon/followers","following_url":"https://api.github.com/users/johnagon/following{/other_user}","gists_url":"https://api.github.com/users/johnagon/gists{/gist_id}","starred_url":"https://api.github.com/users/johnagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnagon/subscriptions","organizations_url":"https://api.github.com/users/johnagon/orgs","repos_url":"https://api.github.com/users/johnagon/repos","events_url":"https://api.github.com/users/johnagon/events{/privacy}","received_events_url":"https://api.github.com/users/johnagon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-11T15:39:40Z","updated_at":"2015-10-11T15:39:40Z","closed_at":null,"body":"http://docs.opencv.org/java/2.4.2/org/opencv/core/Rect.html\r\nand\r\nhttp://docs.opencv.org/java/org/opencv/core/Rect.html\r\n\r\nState:\r\n\r\nIn addition to the class members, the following operations on rectangles are implemented:\r\n\r\n    rect = rect +- point (shifting a rectangle by a certain offset)\r\n    rect = rect +- size (expanding or shrinking a rectangle by a certain amount)\r\n    rect += point, rect -= point, rect += size, rect -= size (augmenting operations)\r\n    rect = rect1 & rect2 (rectangle intersection)\r\n    rect = rect1 | rect2 (minimum area rectangle containing rect2 and rect3)\r\n    rect &= rect1, rect |= rect1 (and the corresponding augmenting operations)\r\n    rect == rect1, rect != rect1 (rectangle comparison) \r\n\r\nBut I am unable to access them in Android Studio.\r\n\r\n\"Operator '|' cannot be applied to 'org.opencv.core.Rect', 'org.opencv.core.Rect'\""}}