{"id":16392102,"url":"https://github.com/imdeepmind/hocrox","last_synced_at":"2025-10-26T14:30:15.790Z","repository":{"id":43114871,"uuid":"427319046","full_name":"imdeepmind/hocrox","owner":"imdeepmind","description":"Hocrox: An image preprocessing and augmentation library with Keras like interface.","archived":false,"fork":false,"pushed_at":"2022-03-17T19:01:37.000Z","size":1041,"stargazers_count":5,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T19:32:46.849Z","etag":null,"topics":["computer-vision","deep-learning","image-processing","keras","machine-learning","opencv","python"],"latest_commit_sha":null,"homepage":"https://hocrox.imdeepmind.com","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/imdeepmind.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-12T10:28:50.000Z","updated_at":"2025-01-23T08:50:23.000Z","dependencies_parsed_at":"2022-09-07T18:00:53.794Z","dependency_job_id":null,"html_url":"https://github.com/imdeepmind/hocrox","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepmind%2Fhocrox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepmind%2Fhocrox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepmind%2Fhocrox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imdeepmind%2Fhocrox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imdeepmind","download_url":"https://codeload.github.com/imdeepmind/hocrox/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238337635,"owners_count":19455346,"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":["computer-vision","deep-learning","image-processing","keras","machine-learning","opencv","python"],"created_at":"2024-10-11T04:48:33.348Z","updated_at":"2025-10-26T14:30:15.383Z","avatar_url":"https://github.com/imdeepmind.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg src=\"https://user-images.githubusercontent.com/34741145/152690507-6781c960-1a6f-48f7-a038-4a09dc017f33.png\" alt=\"Logo of Hocrox\" /\u003e\n \u003cbr /\u003e\nAn image preprocessing and augmentation library with Keras like interface.\n\u003c/p\u003e\n\n[![Hocrox Code Check](https://github.com/imdeepmind/hocrox/actions/workflows/build_check.yml/badge.svg)](https://github.com/imdeepmind/hocrox/actions/workflows/build_check.yml)\n![Maitained](https://img.shields.io/badge/Maitained%3F-Yes-brightgreen)\n![PyPI - Downloads](https://img.shields.io/pypi/dw/Hocrox?style=flat)\n![PyPI](https://img.shields.io/pypi/v/Hocrox?style=flat)\n![GitHub closed pull requests](https://img.shields.io/github/issues-pr-closed/imdeepmind/hocrox?style=flat)\n![GitHub issues](https://img.shields.io/github/issues/imdeepmind/hocrox?style=flat)\n![GitHub](https://img.shields.io/github/license/imdeepmind/hocrox?style=flat)\n\n\n## Table of contents:\n- [Table of contents:](#table-of-contents)\n- [Introduction](#introduction)\n- [The Keas interface](#the-keas-interface)\n- [Install](#install)\n- [Dependencies](#dependencies)\n- [Documentation](#documentation)\n- [Example](#example)\n- [Blogs and Tutorials](#blogs-and-tutorials)\n- [Support](#support)\n- [Contributors](#contributors)\n- [License](#license)\n\n\n## Introduction\n\nHocrox is an image preprocessing and augmentation library. It provides a [Keras](https://keras.io/) like simple interface to make preprocessing and augmentation pipelines. Hocrox internally uses [OpenCV](https://opencv.org/) to perform the operations on images. OpenCV is one of the most popular Computer Vision library.\n\nHere are some of the highlights of Hocrox:\n\n- Provides an easy interface that is suitable for radio pipeline development\n- It internally uses OpenCV\n- Highly configurable with support for custom layers\n\n## The Keas interface\n\nKeras is one of the most popular Deep Learning library. Keras provides a very simple yet powerful interface that can be used to develop start-of-the-art Deep Learning models.\n\nCheck the code below. This is a simple Keras code to make a simple neural network.\n\n```python\nmodel = keras.Sequential()\nmodel.add(layers.Dense(2, activation=\"relu\"))\nmodel.add(layers.Dense(3, activation=\"relu\"))\nmodel.add(layers.Dense(4))\n```\n\nIn Hocrox, the interface for making pipelines is very much similar. So anyone can make complex pipelines with few lines of code.\n\n## Install\n\nTo install Hocrox, run the following command.\n\n```\npip install Hocrox\n```\n\n## Dependencies\n\nHocrox uses OpenCV internally so install it before.\n\n## Documentation\n\nDocumentation for Hocrox is available [here](http://hocrox.imdeepmind.com/).\n\n## Example\n\nHere is one simple pipeline for preprocessing images.\n\n```python\nfrom hocrox.model import Model\nfrom hocrox.layer import Read, Save\nfrom hocrox.layer.preprocessing.transformation import Resize\nfrom hocrox.layer.augmentation.flip import RandomFlip\nfrom hocrox.layer.augmentation.transformation import RandomRotate\n\n# Initalizing the model\nmodel = Model()\n\n# Reading the images\nmodel.add(Read(path=\"./images\", name=\"Read images\"))\n\n# Resizing the images\nmodel.add(Resize((224, 244), interpolation=\"INTER_LINEAR\", name=\"Resize images\"))\n\n# Augmentating the images\nmodel.add(\n    RandomRotate(\n        start_angle=-10.0, end_angle=10.0, probability=0.7, number_of_outputs=5, name=\"Randomly rotates the image\"\n    )\n)\nmodel.add(RandomFlip(probability=0.7, name=\"Randomly flips the image\"))\n\n# Saving the images\nmodel.add(Save(\"./preprocessed_images\", format=\"npy\", name=\"Save the image\"))\n\n# Generating the model summary\nprint(model.summary())\n\n# Transforming the images\nmodel.transform()\n\n```\n\n## Blogs and Tutorials\nCheck this video to learn more about Hocrox.\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://www.youtube.com/watch?v=Rwh0VMr6A3E\"\u003e\n        \u003cimg src=\"https://img.youtube.com/vi/Rwh0VMr6A3E/0.jpg\" alt=\"Introduction to Hocrox\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## Support\nIf you are facing any issues using Hocrox, then please raise an issue on GitHub or post something on the discussion section.\n\nAlternatively, you can send email to.\n\n## Contributors\n\nCheck the list of contributors [here](https://github.com/imdeepmind/hocrox/graphs/contributors).\n\n## License\n\n[MIT](https://github.com/imdeepmind/hocrox/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdeepmind%2Fhocrox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimdeepmind%2Fhocrox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimdeepmind%2Fhocrox/lists"}