{"id":16516629,"url":"https://github.com/adamspannbauer/wedding_colors","last_synced_at":"2025-07-30T09:36:04.380Z","repository":{"id":83432272,"uuid":"133261119","full_name":"AdamSpannbauer/wedding_colors","owner":"AdamSpannbauer","description":"wedding planning fun with cv","archived":false,"fork":false,"pushed_at":"2018-10-10T18:10:26.000Z","size":7200,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T05:28:10.861Z","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/AdamSpannbauer.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":"2018-05-13T17:52:20.000Z","updated_at":"2018-10-10T18:10:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"14da3668-1790-48cc-b5dc-8101bfbcc818","html_url":"https://github.com/AdamSpannbauer/wedding_colors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Fwedding_colors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Fwedding_colors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Fwedding_colors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdamSpannbauer%2Fwedding_colors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdamSpannbauer","download_url":"https://codeload.github.com/AdamSpannbauer/wedding_colors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241549116,"owners_count":19980476,"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":"2024-10-11T16:25:50.853Z","updated_at":"2025-03-02T18:18:58.554Z","avatar_url":"https://github.com/AdamSpannbauer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReColor🎨  Wedding👰   Party🎉\n\nQuick tool for trying to help visualize wedding party outfits.\n\nUses Python🐍 \u0026 OpenCV💻👀\n\n##### Example output:\n---\n\n\u003cp align='center'\u003e\n  \u003cimg src='readme/recolor_g_gm_bm.png' width=80%\u003e\n\u003c/p\u003e\n\n## Usage\n\n*This project requires the installation of OpenCV. \nIf you're having trouble installing it, please check StackOverflow and \nother sources for help.*\n\n### Step 1 - Identify regions to recolor\n\n#### HSV Filtering\n\nYou will need to specify the image to be modified, a directory to store the output and a \nlist of names for the regions you want to recolor. For the image above, you would call\nit like this:\n\n```bash\npython filter_rois.py -i images/party_pink.jpg -o data -l groom groomsmen bridesmaids\n```\n\nThis will open a window where you'll filter the HSV values of the image to \nselect the color region to modify for each label you provided. We'll provide filters \nfor three regions, the *groom*, the *groomsmen* and the *bridesmaids*. Note the label \nbeing selected for appears in red text in the left image (groom in this case). \n\n\u003cp align='center'\u003e\n  \u003cimg src='readme/step1.png' width=80%\u003e\n\u003c/p\u003e\n\nAs you adjust the HSV filters, you'll see a live preview of the mask being applied\nto the image. Filter to where only the portion of the image you want to recolor is visible.\nIn this example, the groom is wearing the same color suit as the groomsmen so you won't \nremove them (that will be the next part).\n\n\u003cp align='center'\u003e\n  \u003cimg src='readme/step1b.png' width=80%\u003e\n\u003c/p\u003e\n\nOnce you're happy with your HSV filter, press the ESC key to move on to image cropping.\n\n#### Image Cropping\n\nNow you need to crop the image to only the portion containing the subject. \nYou have four filters to achieve this: \n - *x* sets the position on the horizontal axis of the top left corner of the cropping box. \n - *y* sets the position on the vertical axis of the top left corner of the cropping box.\n - *w* sets the width of the cropping box.\n - *h* sets the height of the cropping box.\n \nMake sure you first set *w* and *h* to be greater than 0 so you can see the region \nyou're cropping.\n\n\u003cp align='center'\u003e\n  \u003cimg src='readme/step1c.png' width=80%\u003e\n\u003c/p\u003e\n\nOnce you're happy with your cropping box, press the ESC key to move on to the next label.\n\n#### Final\n\nOnce you've filtered and cropped the image for each label (pressing ESC for the last step)\na .csv file will be saved to the specified directory with the same name as the image file\nprocessed.\n\n### Step 2 - Apply new colors to image\n\nStep 1 output a data file (*data/party_pink.csv* in this example) containing the filter \nand cropping specifications. This, the image and a .csv specifying the new RGB colors \nto apply to each region needs to be provided. You will need to create the .csv with the\nnew colors following the structure of the example provided. Each column needs to be named \nidentically to the labels provided in step 1.\n\n```bash\npython recolor.py -i images/party_pink.jpg -d data/party_pink.csv -c data/party_pink_new_colors.csv\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamspannbauer%2Fwedding_colors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamspannbauer%2Fwedding_colors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamspannbauer%2Fwedding_colors/lists"}