{"action":"created","issue":{"url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/6","repository_url":"https://api.github.com/repos/BlinkOCR/blinkocr-android","labels_url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/6/comments","events_url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/6/events","html_url":"https://github.com/BlinkOCR/blinkocr-android/issues/6","id":173971208,"number":6,"title":"Get Quadrilateral size and position","user":{"login":"rachelfong","id":20766264,"avatar_url":"https://avatars.githubusercontent.com/u/20766264?v=3","gravatar_id":"","url":"https://api.github.com/users/rachelfong","html_url":"https://github.com/rachelfong","followers_url":"https://api.github.com/users/rachelfong/followers","following_url":"https://api.github.com/users/rachelfong/following{/other_user}","gists_url":"https://api.github.com/users/rachelfong/gists{/gist_id}","starred_url":"https://api.github.com/users/rachelfong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rachelfong/subscriptions","organizations_url":"https://api.github.com/users/rachelfong/orgs","repos_url":"https://api.github.com/users/rachelfong/repos","events_url":"https://api.github.com/users/rachelfong/events{/privacy}","received_events_url":"https://api.github.com/users/rachelfong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-30T09:27:41Z","updated_at":"2016-08-30T11:30:32Z","closed_at":null,"body":"Hi, \r\n\r\nI implemented a custom Activity and embed a RecognizerView in a FrameLayout. \r\n\r\nHowever, the end result I want to achieve is to have a static Quadrilateral in the middle of the screen (using QuadViewPreset.DEFAULT_FROM_SCAN_CARD_ACTIVITY), where the area outside or surrounding the Quad is blurred/darkened and the area within the Quad is fully transparent, showing the actual display from RecognizerView.\r\n\r\nSo far I have managed to overlay a view on top of RecognizerView, all that is left is for me to \"cut the quadrilateral hole\" in the middle of my overlay view, however, I am not able to get any information on the presenting Quad.\r\n\r\nIs there any API which provides a way of getting the Quad size and position for me to setup my overlay view? Or is there a way for me to achieve my end result without having to use overlays?"},"comment":{"url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/comments/243410764","html_url":"https://github.com/BlinkOCR/blinkocr-android/issues/6#issuecomment-243410764","issue_url":"https://api.github.com/repos/BlinkOCR/blinkocr-android/issues/6","id":243410764,"user":{"login":"i1E","id":3707915,"avatar_url":"https://avatars.githubusercontent.com/u/3707915?v=3","gravatar_id":"","url":"https://api.github.com/users/i1E","html_url":"https://github.com/i1E","followers_url":"https://api.github.com/users/i1E/followers","following_url":"https://api.github.com/users/i1E/following{/other_user}","gists_url":"https://api.github.com/users/i1E/gists{/gist_id}","starred_url":"https://api.github.com/users/i1E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/i1E/subscriptions","organizations_url":"https://api.github.com/users/i1E/orgs","repos_url":"https://api.github.com/users/i1E/repos","events_url":"https://api.github.com/users/i1E/events{/privacy}","received_events_url":"https://api.github.com/users/i1E/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T11:30:32Z","updated_at":"2016-08-30T11:30:32Z","body":"Hi @rachelfong,\r\n\r\nwith provided QuadViewManager it is not possible to achieve what you want. You can not get the quad size nor the quad position. You should create your own overlay view with the desired behaviour. If you want that scanning is not active outside of the shown scanning window, you should set the same scanning window on the RecognizerView (make sure that it is identical to the scan window that is shown to the user) by using method [setScanningRegion](https://github.com/BlinkOCR/blinkocr-android#-setscanningregionrectangle-boolean).\r\n\r\nAs an example, you can use [BlinkOCRSegmentDemo](https://github.com/BlinkOCR/blinkocr-android/tree/master/BlinkOCRDemo/BlinkOCRSegmentDemo) demo app and see how the [scan overlay](https://github.com/BlinkOCR/blinkocr-android/blob/master/BlinkOCRDemo/BlinkOCRSegmentDemo/src/main/res/layout/overlay.xml) is defined in that app."}}
{"actor":{"display_login":"i1E"}}