Open newpokemon opened 6 years ago
@newpokemon did you get to solve the issue? Stuck with the same thing
I am also getting the same error , someone please help to fix this error Thanks in advance
Same error, any idea whats going wrong?
try passing the debug setting as a dictionary
to get all the info:
settings = {'debug': {}}
image_to_color = ImageToColor(npz['samples'], npz['labels'], settings)
to get just the color name:
settings = { 'debug': None }
image_to_color = ImageToColor(npz['samples'], npz['labels'], settings)
I' have also same issuse. so, I've tried CLI on jupyter noteobok as below.
import os
import pandas as pd
files= os.listdir("./imgs")
img_name= []
colors= []
for i in files:
order= "./color-extractor color_names.npz ./imgs/"+i
result= !{order}
img_name.append(i)
colors.append(result)
df= pd.DataFrame({"img_name":img_name, "colors": colors})
I'm getting the above error. Can anyone help how extract the color details?
Hey Thanks for the fabulous work!
I tried and CLI is working perfectly fine. However, when tried as library in a python file, giving this error:
Traceback (most recent call last): File "test.py", line 10, in
print(img_to_color.get(img))
File "/home/color-extractor-master/color_extractor/image_to_color.py", line 36, in get
if self._settings['debug'] is None:
KeyError: 'debug'
Non CS background so might overlook something, please help! Thanks in advance.