user82847: For an industrial project which requires detecting whether some text is printed on the cable at regular intervals or not, I was wondering if Arduino with IR sensor could work? The cable would be typically black with white text printed at each metre and will be unwounding from a cylindrical drum (To give you an idea of text length, it will contain cable type, metre mark, etc., I'll update the question with the linear velocity of the cable soon).
My approach was to raise an interrupt if the colour change is not recognized in the predetermined time. For this, I think I need to check if I can measure light changes, let's say 4 or 6 times in a time it takes to unwind a metre of the wire. I however don't know how fast IR sensors are to judge whether this approach is feasible.
Also, let me know if this is unfeasible and I should instead move to Raspberry Pi with a camera.

user82692: https://www.instructables.com/IR-Transmitter-and-Receiver-Using-Arduino/
As demonstrated in the project linked above an IR sensor connected to an Arduino is capable of reading and decoding the signal from a typical IR remote sending at about 38 KHz. In the ones I've tried the signal is a burst of 10 or 11 digits.  Given that, sensing the presence or absence of a contrasting color sounds quite a bit less challenging.
I built the decoder in the linked Instructable with a Nano (author used a Mega) and it worked well.
I believe what you're proposing is feasible.

82847: <p>For an industrial project which requires detecting whether some text is printed on the cable at regular intervals or not, I was wondering if Arduino with IR sensor could work? The cable would be typically black with white text printed at each metre and will be unwounding from a cylindrical drum (To give you an idea of text length, it will contain cable type, metre mark, etc., I'll update the question with the linear velocity of the cable soon).</p>
<p>My approach was to raise an interrupt if the colour change is not recognized in the predetermined time. For this, I think I need to check if I can measure light changes, let's say 4 or 6 times in a time it takes to unwind a metre of the wire. I however don't know how fast IR sensors are to judge whether this approach is feasible.</p>
<p>Also, let me know if this is unfeasible and I should instead move to Raspberry Pi with a camera.</p>
 82692: <p><a href="https://www.instructables.com/IR-Transmitter-and-Receiver-Using-Arduino/" rel="nofollow noreferrer">https://www.instructables.com/IR-Transmitter-and-Receiver-Using-Arduino/</a></p>
<p>As demonstrated in the project linked above an IR sensor connected to an Arduino is capable of reading and decoding the signal from a typical IR remote sending at about 38 KHz. In the ones I've tried the signal is a burst of 10 or 11 digits.  Given that, sensing the presence or absence of a contrasting color sounds quite a bit less challenging.</p>
<p>I built the decoder in the linked Instructable with a Nano (author used a Mega) and it worked well.</p>
<p>I believe what you're proposing is feasible.</p>
