Hi Vicentsillas,
First off; you're in the Dutch forum, so most folks would expect you to speak in Dutch.
For those preferring English as their language, next time you may want to check out the English Arduino forum
Anyhoo - most Dutch people can read English just fine, so I'll continue looking at your question right here.
First question that comes to mind is this:
I'm assuming OpenCV runs on a PC or a Raspberry Pi and not on the Arduino itself?
If so, wouldn't it be easier to have the PC/RPi send an ON or OFF signal to the Arduino?
Aside from that question;
What does the data look like?
Are we looking at a code plus an ON of OFF state?
Does this list change often? Or is it a static list?
Where do you want the data to be stored? In memory? Or on an SD card?
Also: is it a lot of data? The Arduino has some memory limitations.
If the list is something "simple" formatted like for example:
firstname lastname somecode on-or-off
"John" "Doe" 123456 ON
"Jane" "Doe" 123457 OFF
Then you could export it from Excel as a comma separated values list (csv). CSV files can be easy to read (see for example this Arduino Forum topic).
If the list is static, then you could convert it in a text editor to for example an array.
But as you can see; there are more questions that we may need to see answered first to have an idea how to solve this or approach this.