{"action":"opened","issue":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/158","repository_url":"https://api.github.com/repos/danielquinn/paperless","labels_url":"https://api.github.com/repos/danielquinn/paperless/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/danielquinn/paperless/issues/158/comments","events_url":"https://api.github.com/repos/danielquinn/paperless/issues/158/events","html_url":"https://github.com/danielquinn/paperless/issues/158","id":181010014,"number":158,"title":"Find the first date in the OCRed text","user":{"login":"zorglups","id":7338241,"avatar_url":"https://avatars.githubusercontent.com/u/7338241?v=3","gravatar_id":"","url":"https://api.github.com/users/zorglups","html_url":"https://github.com/zorglups","followers_url":"https://api.github.com/users/zorglups/followers","following_url":"https://api.github.com/users/zorglups/following{/other_user}","gists_url":"https://api.github.com/users/zorglups/gists{/gist_id}","starred_url":"https://api.github.com/users/zorglups/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zorglups/subscriptions","organizations_url":"https://api.github.com/users/zorglups/orgs","repos_url":"https://api.github.com/users/zorglups/repos","events_url":"https://api.github.com/users/zorglups/events{/privacy}","received_events_url":"https://api.github.com/users/zorglups/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T21:30:05Z","updated_at":"2016-10-04T21:30:05Z","closed_at":null,"body":"Hello,\r\n\r\nI'm really glad I found your project because I was thinking of doing it but was procrastinating it as much as my paper sorting ;-)\r\n\r\nMany thanks for sharing your work!!!\r\n\r\nI have a paper scanner with a feeder (that can even do 2 sides scan). It writes pages as JPG (300dpi) onto a samba share (or an FTP server).\r\n\r\nA custom script does:\r\n- \"convert wizard.jpg -quality 0 wizard.jp2\" because jpg produced by the scanner are too big.\r\n- recognize multipages documents and groups pages from the scanner into one single pdf using [img2pdf](https://github.com/josch/img2pdf)\r\n\r\nI then planned to use [OCRmyPDF](https://github.com/jbarlow83/OCRmyPDF) to create nice PDF/A compliant files.\r\n\r\nThe output of OCRmyPDF will then enter paperless and get tagged automatically.\r\n\r\nOne of the most important metadata of the document is its (printed) date.\r\n\r\nCould you enhance paperless to be able to find the first date found in the ORCed text and use it by default as document date?\r\nHere is a concrete example of how to achieve it in Python: [http://stackoverflow.com/questions/6562148/python-finding-date-in-a-string](http://stackoverflow.com/questions/6562148/python-finding-date-in-a-string)\r\n\r\nBest regards,\r\n\r\nPierre"}}
{"actor":{"display_login":"zorglups"}}