{"id":17189090,"url":"https://github.com/esimov/openfaas-coherent-line-drawing","last_synced_at":"2025-04-13T19:23:24.615Z","repository":{"id":91223606,"uuid":"197168976","full_name":"esimov/openfaas-coherent-line-drawing","owner":"esimov","description":"Coherent Line Drawing OpenFaaS function based on https://github.com/esimov/colidr","archived":false,"fork":false,"pushed_at":"2021-05-02T08:56:18.000Z","size":858,"stargazers_count":12,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T10:04:32.408Z","etag":null,"topics":["coherent-line-drawing","golang","openfaas","openfaas-function","serverless","serverless-functions"],"latest_commit_sha":null,"homepage":"","language":"Go","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/esimov.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":"2019-07-16T10:02:51.000Z","updated_at":"2024-11-18T18:39:36.000Z","dependencies_parsed_at":"2023-03-20T18:17:03.328Z","dependency_job_id":null,"html_url":"https://github.com/esimov/openfaas-coherent-line-drawing","commit_stats":null,"previous_names":["esimov/coherent-line-drawing-openfaas"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fopenfaas-coherent-line-drawing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fopenfaas-coherent-line-drawing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fopenfaas-coherent-line-drawing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Fopenfaas-coherent-line-drawing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esimov","download_url":"https://codeload.github.com/esimov/openfaas-coherent-line-drawing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248766687,"owners_count":21158302,"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":["coherent-line-drawing","golang","openfaas","openfaas-function","serverless","serverless-functions"],"created_at":"2024-10-15T01:10:43.328Z","updated_at":"2025-04-13T19:23:24.592Z","avatar_url":"https://github.com/esimov.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coherent Line Drawing - OpenFaaS function\n\nOpenFaaS function for generating sketch like artistic image from the provided source image.\nFor more information about the implementation check the project source code at https://github.com/esimov/colidr.\n\n### Local usage\nTo run the function locally you have to make sure OpenFaaS is up and running. Read the official documentation for help in case is needed: https://docs.openfaas.com/\n\nClone the repository:\n```bash\n$ git clone https://github.com/esimov/openfaas-coherent-line-drawing\n```\n\n#### Build\n```bash \n$ faas-cli template pull https://github.com/alexellis/opencv-openfaas-template\n$ faas-cli build -f stack.yml --gateway=http://\u003cGATEWAY-IP\u003e\n```\n\n#### Deploy\n```bash \n$ faas-cli deploy -f stack.yml --gateway=http://\u003cGATEWAY-IP\u003e\n```\nYou can access the user interface under the url provided for the `--gateway`. \n\n**Important notice:** in case of large images you need to increase `write_timeout` in stack.yml.\n\n### Results\nAfter deployment the `coherent-line-drawing` function will show up in the function list. You need to provide an image URL then hit invoke. This will generate a contoured, sketch-liked image as below.\n\n![image](https://user-images.githubusercontent.com/883386/61373248-fd09f500-a8a1-11e9-9bb2-55aa3f0722e6.png)\n\nYou can also provide different values as query parameters. The follwing parameters are supported:\n\n| Flag | Default value | Description |\n| --- | --- | --- |\n| `aa` | false | Anti aliasing |\n| `bl` | 3 | New height |\n| `di` | 1 | Number of FDoG iteration |\n| `ei` | 2 | Number of Etf iteration |\n| `k` | 2 | Etf kernel |\n| `rho` | 0.98 | Rho |\n| `sc` | 1 | Sigma C |\n| `sm` | 3 | Sigma M |\n| `sr` | 2.6 | Sigma R |\n| `tau` | 0.98 | Tau |\n\nBelow is an example with query parameters you can try out:\n```bash\nhttps://user-images.githubusercontent.com/883386/61370913-30e21c00-a89c-11e9-8edf-f4b59b59793c.jpg?k=2\u0026sr=2.9\u0026sm=3.5\u0026tau=0.999\u0026aa=1\u0026ei=2\u0026di=1\n```\n\n| Input | Output\n|:--:|:--:|\n| ![tiger_source](https://user-images.githubusercontent.com/883386/61370913-30e21c00-a89c-11e9-8edf-f4b59b59793c.jpg) | ![tiger_dest](https://user-images.githubusercontent.com/883386/60795443-5cfeee00-a174-11e9-9fd4-6ceb9a02ca21.png) |\n| ![patio_source](https://user-images.githubusercontent.com/883386/61370926-37709380-a89c-11e9-8b2c-157482c27192.jpg) | ![patio_dest](https://user-images.githubusercontent.com/883386/60726045-40c83a80-9f43-11e9-9d53-7f190889e4bc.jpg) |\n| ![people_source](https://user-images.githubusercontent.com/883386/61370965-4bb49080-a89c-11e9-9ec6-e5fde965a046.jpg) | ![people_dest](https://user-images.githubusercontent.com/883386/60795438-5c665780-a174-11e9-8c8a-365bd8eda329.png) |\n| ![starry_night_source](https://user-images.githubusercontent.com/883386/61370917-32abdf80-a89c-11e9-98ae-7c06635066bf.jpg) | ![starry_night_dest](https://user-images.githubusercontent.com/883386/60795440-5c665780-a174-11e9-9804-d5e56d0c49e7.png) |\n\n\n## License\n\nCopyright © 2019 Endre Simo\n\nThis project is under the MIT License. See the LICENSE file for the full license text.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Fopenfaas-coherent-line-drawing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesimov%2Fopenfaas-coherent-line-drawing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Fopenfaas-coherent-line-drawing/lists"}