{"id":20399323,"url":"https://github.com/cuupa/perspective-corrector","last_synced_at":"2026-04-29T09:05:36.844Z","repository":{"id":107196750,"uuid":"277549313","full_name":"Cuupa/perspective-corrector","owner":"Cuupa","description":"A simple document perspective corretion","archived":false,"fork":false,"pushed_at":"2022-01-22T13:59:41.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-24T08:01:50.954Z","etag":null,"topics":["image-processing","opencv","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cuupa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-06T13:28:29.000Z","updated_at":"2022-01-21T22:03:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"41a31da6-0235-4487-8c7b-a3400a82f650","html_url":"https://github.com/Cuupa/perspective-corrector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Cuupa/perspective-corrector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuupa%2Fperspective-corrector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuupa%2Fperspective-corrector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuupa%2Fperspective-corrector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuupa%2Fperspective-corrector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cuupa","download_url":"https://codeload.github.com/Cuupa/perspective-corrector/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cuupa%2Fperspective-corrector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261632028,"owners_count":23187267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-processing","opencv","python3"],"created_at":"2024-11-15T04:28:33.482Z","updated_at":"2026-04-29T09:05:36.813Z","avatar_url":"https://github.com/Cuupa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# perspective_corrector\n\nPerspective correction of documents with OpenCV.\n\nListens per default at port 5000\n\n## Arguments\n    -port [portnumber]\n\n## Provides\n    [GET/POST] /api/status\n    [POST] /api/image/transform\n    \n  \n## Usage\n\n### Spring Rest\n    final byte[] payload = readFile();\n\n    RestTemplate upload = new RestTemplate();\n    HttpHeaders headers = new HttpHeaders();\n    headers.set(\"Content-Type\", \"multipart/form-data\");\n    headers.set(\"Accept\", \"*/*\");\n\n    MultiValueMap\u003cString, String\u003e fileMap = new LinkedMultiValueMap\u003c\u003e();\n    ContentDisposition contentDisposition = ContentDisposition.builder(\"form-data\")\n        .name(\"key\")\n        .filename(\"perspective.png\")\n        .build();\n\n    fileMap.add(\"Content-Disposition\", contentDisposition.toString());\n    fileMap.add(\"Content-Type\", \"image/jpeg\");\n\n    HttpEntity\u003cbyte[]\u003e entity = new HttpEntity\u003c\u003e(payload, fileMap);\n    MultiValueMap\u003cString, Object\u003e body = new LinkedMultiValueMap\u003c\u003e();\n    body.add(\"file\", entity);\n    HttpEntity\u003cMultiValueMap\u003cString, Object\u003e\u003e requestData = new HttpEntity\u003c\u003e(body, headers);\n\n    ResponseEntity\u003cbyte[]\u003e responseEntity = upload.postForEntity(\"http://127.0.0.1:5000/api/image/transform\", requestData, byte[].class);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuupa%2Fperspective-corrector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcuupa%2Fperspective-corrector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcuupa%2Fperspective-corrector/lists"}