{"action":"closed","issue":{"url":"https://api.github.com/repos/jkuusama/LitePlacer/issues/11","labels_url":"https://api.github.com/repos/jkuusama/LitePlacer/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/jkuusama/LitePlacer/issues/11/comments","events_url":"https://api.github.com/repos/jkuusama/LitePlacer/issues/11/events","html_url":"https://github.com/jkuusama/LitePlacer/issues/11","id":70412627,"number":11,"title":"Feature request: Support for higher resolution cameras in LitePlacer software","user":{"login":"mrandt","id":10500490,"avatar_url":"https://avatars.githubusercontent.com/u/10500490?v=3","gravatar_id":"","url":"https://api.github.com/users/mrandt","html_url":"https://github.com/mrandt","followers_url":"https://api.github.com/users/mrandt/followers","following_url":"https://api.github.com/users/mrandt/following{/other_user}","gists_url":"https://api.github.com/users/mrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/mrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrandt/subscriptions","organizations_url":"https://api.github.com/users/mrandt/orgs","repos_url":"https://api.github.com/users/mrandt/repos","events_url":"https://api.github.com/users/mrandt/events{/privacy}","received_events_url":"https://api.github.com/users/mrandt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-23T13:30:33Z","updated_at":"2015-07-30T13:16:40Z","closed_at":"2015-07-30T13:16:40Z","body":"I am experimenting with a custom 720p cam for uplooking vision and 1080p for downlooking vision (both modified computer webcams).\r\n\r\nResolution (pixel per mm) is obviously higher than with the pen cams from Juha's kit and also the noise is significantly lower with the CMOS chips I am using - which will hopefully allow higher accuracy for component orientation / detection and positioning.\r\n\r\nHowever, software support is not 100% working yet. The camera image is scaled correctly on the tabs \"Camera Setup\" and \"Run Job\", I only see a smaller viewport (basically top-left corner of the full size) on the \"Basic Setup\" screen - which makes needle position calibration impossible.\r\n\r\nMy idea to extend LitePlacer for supporting higher resolution cams is the following:\r\n\r\n1. During camera setup, it should be possible to\r\n\r\na) Set the desired hardware resolution which the chip should send to computer (e.g. 640x480, 1024x768, 1280×720, 1920×1080 pixels). I can specifiy the \"size\" parameter in VLC for example, so it should be possible. Using a lower resolution often results in less noise and also higher frame rate. Also, this setting would allow to adjust for aspect ratio (4:3 vs. widescreen picture).\r\n\r\nb) Define a \"viewport\" to be used in program. This would basically mean \"cropping\" the image to a suitable size and aspect ratio. That way, we could use a smaller portion of the total image. This would be beneficial e.g. with lenses that distort the images at the borders and again to use cameras with an aspect ratio different than 4:3.\r\n\r\nc) As a bonus, some basic corrections such as mirroring the image or turning it by 180° could be applied here. Could come in handy if the camera can only be mounted in one direction - but this is less critical.\r\n\r\n2. The previously defined resolution, viewport and corresponding scaling shall be applied in all other dialogs of the program and also for automated computer vision (e.g. optical homing, needle wobble calibration).\r\n\r\nDoes this make sense?"}}