Getting an error when using PIL img.show() - python-imaging-library

I have an image in my directory, say "image.png". This is the code I run:
from PIL import Image
img = Image.open("image.png")
img.show()
And the error message that pops up is: "FSPathMakeRef(/Applications/Preview.app) failed with error -43."
Anyone know what this means?

Related

I am getting an OS Error while running deepface. analyse function

I am running Deepface Analyze on images and getting below error, please assist.
OSError: Unable to open file (truncated file: eof = 49623168, sblock->base_addr = 0, stored_eof = 538771776)

When i try to run the following code to open an image

import matplotlib.
matplotlib.use('TkAgg').
import matplotlib.pyplot as plt.
from PIL import Image.
pic =Image.open('User/XYZ/Downloads/DATA/XYZ.jpg')
I get this error.
fp = builtins.open(filename, "rb").
IOError: [Errno 2] No such file or directory: 'User/XYZ/Downloads/DATA/XYZ.jpg'

Autonomylab create_autonomy launch error

I'm following instructions to create_autonomy, but I keep getting the following error:
[create_2.launch] is neither a launch file in package [ca_driver] nor is [ca_driver] a launch file name. The traceback for the exception was written to the log file
Does anyone know what I'm doing wrong?

Error using caffe Unknown command 'get_weights'

I run the demo code of RCNN with matcaffe, but I met an error which confused me for a while:
Error using caffe
Unknown command 'get_weights'
Error in rcnn_load_model (line 36)
rcnn_model.cnn.layers = caffe('get_weights');
Also, I check the directory of caffe matlab, there is not get_weights function. Do anyone know how to solve that? Thank you.

Ipython notebook: in computing SIFT freatures using Python-Opencv: The kernel appears to have died/ in Python:Segmentation fault (core dumped)

Hi trying to execute the following simple program to detect SIFT features of an image in Ipython notebook, but everytime receiving an error message appears. I googled it, but couldn't find any solutions so far.
import cv2
import numpy as np
import itertools
Load Images:
img = cv2.imread("galaxy.png")
Find Keypoints:
detector = cv2.FeatureDetector_create("SIFT")
descriptor = cv2.DescriptorExtractor_create("SIFT")
skp = detector.detect(img) # in this line kernel dies!!
the kernel appears to have died
skp, sd = descriptor.compute(img, skp)
tkp = detector.detect(template)
tkp, td = descriptor.compute(template, tkp)
my system is Ubuntu 14.04 lts, ipython 3.2.0, python 2.7.
more over I tried it in python and got this error message:
Segmentation fault (core dumped)
I found a way around, but not a good way. I moved that notebook to another folder which it was the only file in that folder, ran it again and got no error. the bad side is that I need this notebook to be in a specific folder! Really Strange problem. any idea how to solve this problem in a better way!