PIL and numpy are essential libraries in Python for image processing. To convert an image into a numpy array using PIL, you first import the necessary modules: from PIL import Image and import numpy as np. Then, open the image file using Image.open(‘image.jpg’). This returns a value of the Image object data type. Convert this to a numpy array with np.array(). The syntax is: img_array = np.array(Image.open(‘image.jpg’)). Now, ‘img_array’ holds the image data in a numpy array format.