{"id":26327738,"url":"https://github.com/bwdmonkey/openai-category-classification","last_synced_at":"2025-03-15T20:29:32.578Z","repository":{"id":280936960,"uuid":"942904883","full_name":"bwdmonkey/openai-category-classification","owner":"bwdmonkey","description":"OpenAI vision based category classification","archived":false,"fork":false,"pushed_at":"2025-03-06T04:40:32.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T05:29:53.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/bwdmonkey.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":"2025-03-04T21:35:35.000Z","updated_at":"2025-03-06T04:40:35.000Z","dependencies_parsed_at":"2025-03-06T05:40:06.803Z","dependency_job_id":null,"html_url":"https://github.com/bwdmonkey/openai-category-classification","commit_stats":null,"previous_names":["bwdmonkey/openai-category-classification"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fopenai-category-classification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fopenai-category-classification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fopenai-category-classification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwdmonkey%2Fopenai-category-classification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwdmonkey","download_url":"https://codeload.github.com/bwdmonkey/openai-category-classification/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790416,"owners_count":20348373,"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":[],"created_at":"2025-03-15T20:29:31.749Z","updated_at":"2025-03-15T20:29:32.562Z","avatar_url":"https://github.com/bwdmonkey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openai-category-classification\nOpenAI based document category classification\n\nSupported Document Types:\n- png, jpeg, jpg, webp, gif, bmp\n- csv, xls, xlsx\n\nFuture Document Types:\n- doc, docx\n\n## Setup\n\n1. Clone this repository\n2. Create a virtual environment:\n   ```\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   ```\n3. Install dependencies:\n   ```\n   pip install -r requirements.txt\n   ```\n4. Set your OpenAI API key as an environment variable:\n   ```\n   export OPENAI_API_KEY=your-api-key-here  # On Windows: set OPENAI_API_KEY=your-api-key-here\n   ```\n\n## Usage\n\n### Classify a Single Image\n\n```bash\npython -m scripts.classify single data/image.jpg\n```\n\n### Batch Classify Images in a Directory\n\n```bash\npython -m scripts.classify batch data/ --output results.json --categories \"Category1\" \"Category2\" \"Category3\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwdmonkey%2Fopenai-category-classification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwdmonkey%2Fopenai-category-classification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwdmonkey%2Fopenai-category-classification/lists"}