{"id":19771380,"url":"https://github.com/boechat107/eye-boof","last_synced_at":"2025-04-30T17:32:45.258Z","repository":{"id":8886017,"uuid":"10604245","full_name":"boechat107/eye-boof","owner":"boechat107","description":"Clojure image processing library based on BoofCV.","archived":false,"fork":false,"pushed_at":"2020-02-08T16:58:07.000Z","size":2015,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"develop","last_synced_at":"2025-04-06T03:31:50.325Z","etag":null,"topics":["boofcv","clojure","computer-vision","image-processing"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boechat107.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-06-10T16:11:09.000Z","updated_at":"2020-02-08T16:58:09.000Z","dependencies_parsed_at":"2022-08-28T04:55:15.495Z","dependency_job_id":null,"html_url":"https://github.com/boechat107/eye-boof","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boechat107%2Feye-boof","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boechat107%2Feye-boof/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boechat107%2Feye-boof/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boechat107%2Feye-boof/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boechat107","download_url":"https://codeload.github.com/boechat107/eye-boof/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251751315,"owners_count":21637903,"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":["boofcv","clojure","computer-vision","image-processing"],"created_at":"2024-11-12T05:01:23.680Z","updated_at":"2025-04-30T17:32:44.966Z","avatar_url":"https://github.com/boechat107.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eye-boof\n\n[![Build Status](https://travis-ci.org/boechat107/eye-boof.svg?branch=develop)](https://travis-ci.org/boechat107/eye-boof)\n[![codecov](https://codecov.io/gh/boechat107/eye-boof/branch/develop/graph/badge.svg)](https://codecov.io/gh/boechat107/eye-boof)\n[![Clojars Project](https://img.shields.io/clojars/v/eye-boof.svg)](https://clojars.org/eye-boof)\n\n[Codox API](http://boechat107.github.io/eye-boof/)\n\n**eye-boof** is a small library of image processing algorithms completely based\non [BoofCV](http://boofcv.org/). **eye-boof** aims to provide a much smaller set\nof functionalities than BoofCV, focused on simplicity and the most general\nalgorithms. For applications beyond that, it's strongly recommended to use\nBoofCV directly.\n\n## Usage\n\nMost of times we need to work with images that already exist, like files in the\ninternet. To load a file from a URL, we can write something like this:\n\n```clojure\n(require '[eye-boof.core :refer :all]\n         '[eye-boof.visualization :refer [show-image]])\n\n(def color-img (-\u003e \"http://png-3.vector.me/files/images/8/0/807142/realistic_vector_eye_thumb.jpg\"\n                   (java.net.URL.)\n                   (load-image-\u003eplanar-u8)))\n\n;; Visualize the image:\n(show-image color-img)\n\ncolor-img\n;; #object[boofcv.struct.image.Planar 0x2762ce07 \"boofcv.struct.image.Planar@2762ce07\"]\n```\n![color eye](http://png-3.vector.me/files/images/8/0/807142/realistic_vector_eye_thumb.jpg)\n\nNote that a `Planar` data structure is returned, which is the common data structure\nto store the pixel intensities of color images. To know how many color channels this\nimage holds, we can type\n\n```clojure\n(num-of-bands color-img)\n;; 3\n```\n\nwhat probably means a RGB image. To take a grayscale version of the image, we can take one of the color bands, like the Red:\n\n```clojure\n(band! color-img 0)\n;; #object[boofcv.struct.image.GrayU8 0x77ca00df \"boofcv.struct.image.GrayU8@77ca00df\"]\n```\n\n![red channel](http://i58.tinypic.com/slgrdj.png)\n\nOther way of doing this is loading the image as a gray image (the intensities of\neach channel are averaged together):\n\n```clojure\n(-\u003e \"http://png-3.vector.me/files/images/8/0/807142/realistic_vector_eye_thumb.jpg\"\n    (java.net.URL.)\n    (load-image-\u003egray-u8))\n;; #object[boofcv.struct.image.GrayU8 0x77ca00df \"boofcv.struct.image.GrayU8@77ca00df\"]\n```\n\nTo save an image into a disk file, we can use the function `save-image!`\nfrom the `eye-boof.io` namespace. The string path of the file tells the format\nrepresentation of the image, like `jpg` or `png` for example. The supported\nformats are the same supported by `javax.imageio.ImageIO`, the underlying class\nto read/write image files.\n\n```clojure\n(save-image! color-img \"color_eye.jpg\")\n;; nil\n```\n\n### More examples\n\nAdditional examples and documentation can be found in\nthe [wiki pages](https://github.com/boechat107/eye-boof/wiki).\n\n## License\n\nCopyright © 2013 Andre Boechat\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboechat107%2Feye-boof","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboechat107%2Feye-boof","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboechat107%2Feye-boof/lists"}