Kaggle dataset input into my code

i opened with word document, i also want to use the color_names.csv file.

who told you to open aia with word? search the community to see how to use aia file.
i need to go sleeping now.

okay

Try this on the Android

approxColor

approxColorDetectsjg.aia (45.6 KB)

This is a combination of Kevin and Tim's aia s .
Does it work. Works fine on an Android 13 cell phone here. :slightly_smiling_face: Just touch an area on the picture you took. :thinking:

Regards,
Steve

is this with the data set?

uses dataset kevin provided (colors.csv)

how can i make this one work? please help with this, my teacher wants a big number of colors :frowning:
color_names.csv (66.3 KB)

kevin's DB uses 746 colors. Not enough? Yours uses 1299

You could try modifying your color names csv to only use the columns kevin used.
The data sets contain similar info but in different positions.

yeah it works, i think 749 colors is enough, thank you

your data set modified seems to work too. :thinking:

I did not delete the header row from colornames2 so there might be issues.
Kevin pointed out one of them.

1 Like

It works! thank you, did u add the color_names.csv in the original program?

I added a modified color_names csv to the project after I made the file compatible with approxColorDetect. approxColorDetect uses Kevin's 749 colors. approxColorDetect_colornames2 aia uses your 1299 colors but rrequired a modified csv.

1 Like

Yes, I needed help with that

you can use your dataset in my example, but need change two locations: slice list (nearest, 3, 6).

1 Like

This code is working on my iPhone, I just tried it.

Great :slightly_smiling_face:

Which code? the one using the colors csv or the modified color_names csv. or both? It probably works because the examples do NOT use a List Picker which I deleted from the code. As you recall, ios is having issue with the LP evidently. :frowning_face:

Unfortunately this suggestion below does not work:


Did you make the modifications indicated by @Kevinkun (you need to change two locations: slice list from (nearest, 2, 5) to (nearest, 3, 6) if you used the modified larger csv to ensure it reports the best match. :thinking . As far as I can tell using 3,6 does not work correctly.

:--------------------

3 - 6 is not working, i am using color_names2.csv and it is working on iphone

it's because your color_names.csv (with 1299 colors) is with head line.
You need to remove the head line:
image

it still works, I don't think I need to necessarily delete this in order for it to work. Its okay.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.