If you know what Python library was used to create or load the images that were saved as .pcks, yes.
You first need to load the pickle files as objects again using the pickle.load()
method (documentation here) and then save them again using whatever library was used to make them in the first place. In the case of OpenCV, you would use the cv2.imwrite()
method, for PIL it's Image.save()
. If you aren't using those, just look up the documentation for whatever library you're using on saving images.
If you don't know what library was used to make the images, you'll have to see what the data you get after loading the file looks like before you can do anything else.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…