image_color_correction icon indicating copy to clipboard operation
image_color_correction copied to clipboard

Could not find color with width 100px

Open codinguncut opened this issue 3 years ago • 4 comments

  • cloned your repo
  • installed requirements (had to change opencv-contrib-python==4.6.0 to opencv-contrib-python==4.6.0.66), using python3.8.13
  • python color_correction.py --reference raw.jpg --input test.jpg --out output.jpg --width 1280
  • output:
[INFO] loading images...
[INFO] Finding color matching cards width 100px
[INFO] Could not find color with width 100px. Try width:500px
[WARNING] Could not find color matching cards in both images. Try a highter/better Resolution
  • same output/ error given with no width specified

codinguncut avatar Sep 07 '22 18:09 codinguncut

Interestingly with my own images the script ran through successfully. I wonder if there is an issue with your ref/ test image, or if I am running into some kind of version/ platform issue.

codinguncut avatar Sep 07 '22 18:09 codinguncut

Please use your own Reference Images and Cards to test. Theses are only small examples. The Images has to be in a good Quality to detect the Color-Cards well

dazzafact avatar Sep 07 '22 18:09 dazzafact

Of course, thank you for making this available. I only wanted to make you aware that the repo as checked out with your sample images failed on my machine. Sorry to bother you.

codinguncut avatar Sep 07 '22 18:09 codinguncut

No problem you can also print out and place the color cards yourself. That should work too. https://github.com/dazzafact/image_color_correction/blob/main/color-card.png

Regards

dazzafact avatar Sep 07 '22 18:09 dazzafact