{"action":"opened","issue":{"url":"https://api.github.com/repos/card-io/card.io-iOS-source/issues/21","labels_url":"https://api.github.com/repos/card-io/card.io-iOS-source/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/card-io/card.io-iOS-source/issues/21/comments","events_url":"https://api.github.com/repos/card-io/card.io-iOS-source/issues/21/events","html_url":"https://github.com/card-io/card.io-iOS-source/issues/21","id":69227119,"number":21,"title":"Card IO : Set Focus Mode for Non-payment cards","user":{"login":"dgoldman-ebay","id":1184239,"avatar_url":"https://avatars.githubusercontent.com/u/1184239?v=3","gravatar_id":"","url":"https://api.github.com/users/dgoldman-ebay","html_url":"https://github.com/dgoldman-ebay","followers_url":"https://api.github.com/users/dgoldman-ebay/followers","following_url":"https://api.github.com/users/dgoldman-ebay/following{/other_user}","gists_url":"https://api.github.com/users/dgoldman-ebay/gists{/gist_id}","starred_url":"https://api.github.com/users/dgoldman-ebay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgoldman-ebay/subscriptions","organizations_url":"https://api.github.com/users/dgoldman-ebay/orgs","repos_url":"https://api.github.com/users/dgoldman-ebay/repos","events_url":"https://api.github.com/users/dgoldman-ebay/events{/privacy}","received_events_url":"https://api.github.com/users/dgoldman-ebay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T22:11:59Z","updated_at":"2015-04-17T22:11:59Z","closed_at":null,"body":"[Issue moved here from [card.io-iOS-SDK](https://github.com/card-io/card.io-iOS-SDK/issues/106)]\r\n[Issue actually created by @biksappdev]\r\n\r\nHi @dgoldman-ebay , I have been trying to get this going with little luck. So I tried calling the autoFocusOnce as below -\r\n\r\n* (void)startVideoStreamSession { [self.videoStream startSession]; [self.videoStream autofocusOnce]; // If we don't do this, then when the torch was on, and the card read failed, // it still shows as on when this view is re-displayed, even though the ending // of the session turned it off. [self updateLightButtonState]; }\r\n\r\nAlso, // if (!self.currentlyAdjustingFocus && frame.focusSucks && [self hasAutofocus]) {\r\nNSTimeInterval now = [[NSDate date] timeIntervalSince1970];\r\n// if (now - self.lastAutoFocusOnceTime > kMinTimeIntervalForAutoFocusOnce) {\r\nself.lastAutoFocusOnceTime = now;\r\nCardIOLog(@\"Auto-triggered focusing\");\r\n[self autofocusOnce];\r\n[self performSelector:@selector(resumeContinuousAutofocusing) withObject:nil afterDelay:0.1f];\r\ndidAutoFocus = YES;\r\n// }\r\n// }\r\n\r\nRemoved the condition for triggering autoFocusOnce method while capturing a picture, however I am not able to get a clear shot every time. The library captures an image before it recognizes the corners.\r\nKindly put me in the right direction to resolve this.\r\nI am looking forward to get the same behavior as it is for payment cards.\r\n\r\n![4701fd0c-e50f-11e4-8268-5be5b52c9e35](https://cloud.githubusercontent.com/assets/1184239/7211825/0d122e96-e514-11e4-831b-0083d937c253.PNG)\r\n"}}