Photo Library Search scans through the images saved on your device and extracts the text in the images. It indexes this text so that you can search for images containing that text.
All processing is done on your device. No images are sent off your device.
Note that the initial indexing can take some time.