I am using this code to detect the basic shapes in the given Image. But it is telling that unable to open the Image . Please help me. Please let me know if my question is not clear
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your question needs a lot more detail than this to get an effective answer (e.g. are you doing this on a Macintosh or on an iPhone).
The bit of code in the sample you pointed to that’s failing is this:
You need to put your file in a place where the app can find it.
If you were on a Macintosh, put the file in the same place where the actual binary executable lives (e.g. “
MyApp.app/Contents/MacOS/MyApp“). Or change the path to be a precise place where you know for a fact the image is saved (e.g. “/tmp/shape.jpg” or “/Users/sri/shape.jpg“).EDITED to add what to do for iOS. Try doing this: