{"action":"created","issue":{"url":"https://api.github.com/repos/ankush-me/SynthText/issues/51","repository_url":"https://api.github.com/repos/ankush-me/SynthText","labels_url":"https://api.github.com/repos/ankush-me/SynthText/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/ankush-me/SynthText/issues/51/comments","events_url":"https://api.github.com/repos/ankush-me/SynthText/issues/51/events","html_url":"https://github.com/ankush-me/SynthText/issues/51","id":235228348,"number":51,"title":"difference between px and pt?","user":{"login":"CatherineYao","id":20300543,"avatar_url":"https://avatars2.githubusercontent.com/u/20300543?v=3","gravatar_id":"","url":"https://api.github.com/users/CatherineYao","html_url":"https://github.com/CatherineYao","followers_url":"https://api.github.com/users/CatherineYao/followers","following_url":"https://api.github.com/users/CatherineYao/following{/other_user}","gists_url":"https://api.github.com/users/CatherineYao/gists{/gist_id}","starred_url":"https://api.github.com/users/CatherineYao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CatherineYao/subscriptions","organizations_url":"https://api.github.com/users/CatherineYao/orgs","repos_url":"https://api.github.com/users/CatherineYao/repos","events_url":"https://api.github.com/users/CatherineYao/events{/privacy}","received_events_url":"https://api.github.com/users/CatherineYao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-06-12T13:14:44Z","updated_at":"2017-06-13T05:53:03Z","closed_at":null,"body":"def get_nline_nchar(self,mask_size,font_height,font_width):\r\n        \"\"\"\r\n        Returns the maximum number of lines and characters which can fit\r\n        in the MASK_SIZED image.\r\n        \"\"\"\r\n        H,W = mask_size\r\n        nline = int(np.ceil(H/(2*font_height)))\r\n        nchar = int(np.floor(W/font_width))\r\n        return nline,nchar\r\nIn this function, font_height and font_width are type of pt, but H and W are type of px. Why can px be divide by pt？ what‘s difference between px and pt？"},"comment":{"url":"https://api.github.com/repos/ankush-me/SynthText/issues/comments/308014058","html_url":"https://github.com/ankush-me/SynthText/issues/51#issuecomment-308014058","issue_url":"https://api.github.com/repos/ankush-me/SynthText/issues/51","id":308014058,"user":{"login":"CatherineYao","id":20300543,"avatar_url":"https://avatars2.githubusercontent.com/u/20300543?v=3","gravatar_id":"","url":"https://api.github.com/users/CatherineYao","html_url":"https://github.com/CatherineYao","followers_url":"https://api.github.com/users/CatherineYao/followers","following_url":"https://api.github.com/users/CatherineYao/following{/other_user}","gists_url":"https://api.github.com/users/CatherineYao/gists{/gist_id}","starred_url":"https://api.github.com/users/CatherineYao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CatherineYao/subscriptions","organizations_url":"https://api.github.com/users/CatherineYao/orgs","repos_url":"https://api.github.com/users/CatherineYao/repos","events_url":"https://api.github.com/users/CatherineYao/events{/privacy}","received_events_url":"https://api.github.com/users/CatherineYao/received_events","type":"User","site_admin":false},"created_at":"2017-06-13T05:53:03Z","updated_at":"2017-06-13T05:53:03Z","body":"`def get_nline_nchar(self,mask_size,font_height,font_width):\r\n\"\"\"\r\nReturns the maximum number of lines and characters which can fit\r\nin the MASK_SIZED image.\r\n\"\"\"\r\nH,W = mask_size\r\nnline = int(np.ceil(H/(2*font_height)))\r\nnchar = int(np.floor(W/font_width))\r\nreturn nline,nchar`\r\nYou mean my last comment? \r\nAnd there's still a question that why nline equals to H/(2*font_height) instead of H/font_height.\r\n"}}
{"actor":{"display_login":"CatherineYao"}}