Detecting rotation from a fixed sensor
If you use 2 magnetic sensors, spaced 90 degree apart, and one or perhaps multiple magnets around the rope, then you can use quadrature encoding/decoding to detect the amount and direction of rotation.

Painting the rope with vertical stripes and using a pair of optical sensors (maybe IR with IR LEDs) around the rope would be another option