My Infrared Sensor can't detect black colour, how to solve this!

Yes you're right.

Black color block all the light so it doesn't come back to receiver after reaching your cable.

As I know, the only (but not cheap) way to read black correctly is to use a laser or maybe an IR barrier (it depends on how this cable travel in the factory).

Unfortunately after some testing also reflex sensor with background suppression has problem with black color although supplier declare best performance than reflex sensor without background suppression.