How to read images from Google Drive - matlab

I need to read images saved in the Google drive. The URL links to these images are known. How to achieve this? Here is the link to one image: https://drive.google.com/u/1/open?usp=forms_web&id=1zy9oeFqsce4daMybpxULHADmEEfpsEru. I want to read this image to Matlab workspace.

You will likely have difficulty accessing an image directly unless you can set it as public access. MATLAB will encounter the same issue I encounter when trying to access that image, which is that I require permission to access it.
A solution to this might be to download the image and refer to it locally instead, or set the google drive copy to be public access.
After you ensure that MATLAB can access the image, use the imread function, as described in https://uk.mathworks.com/help/matlab/ref/imread.html.

Related

How to use Image.network() for private Image on google Drive

I am using Image.network(URL) for displaying images from Google Drive.
Works fine if the Link is public (accessible to everybody).
But if the Link has restrictions the Image is not loaded.
The working link format is as follows:
https://drive.google.com/uc?export=view&id=MYFOTOID
Does anybody know what is the correct format for a Private Foto?
I have already an API key available
&key=BLABLABLA......
but after several efforts I still cannot figure out the correct request format,
Can anybody help?

MATLAB GUI: Different results when opening a figure file using GUIDE and straightaway

I have made a MATLAB GUI but I am facing a problem. The problem is that when I open the GUI figure file straightaway, the resulting GUI does not work properly(I am guessing there is a problem with the loading of the opening_function). But when I open that figure file using GUIDE, I am getting proper results. I want the GUI figure to run properly when I click on it. I have provided the link for my GUI figure file and the M-file for the same in the below link using Google drive:
Google drive link for GUI figure file and code file (along with an image required for the working of the two)
your google drive link is not working. also if its your account of google drive which you have used to login then i can't access the files in it...use some other file hosting services to share the screenshot.
also you can always debug your callback functions using breakpoints to check why its not working properly.

Have a static url to host a picture that i will update monthly (iPhone app)

Okay so I want to load a image from a URL in my app, however this image will need to be updated every month manually, therefore its not practical to have to submit a new update to apple every time the url changes. So does anyone no of a picture/file sharing site that would allow me keep the same URL for the image even when uploading a updated version of the image?
You can just use the same url for the image that you want presented hosted on your domain or a hosting site.
So something like
http://www.mydomain.com/appImage.jpg
That you always call to and always is the address of the relevant image. Basically the URL is just a location that you can store any image at.
Up to my knowledge, in order to achieve this you will need a static URL. So that means you'll have to buy a domain from a hosting service.
Or if not you can use Google Drive for this. But you'll have to do some more coding for this.
Try using Google Drive:
Upload a text file(*.txt) to your Google Drive and get a shareable link. Convert it to a direct download link.
Next save whatever your image as a String (base64); I have attached some interesting coding examples below.
Then give the file link to your app; download the file; read the String(base64) convert it back to image format.
When you want to update the Image convert it to a String; open the Google Drive; edit your file using Drive Notepad (Do not use
Google Docs) and simply save it Ctrl+S.
Useful Links:
Google Drive Direct Link Generator
Convert between UIImage and Base64 string
Converting between Image and Base64 string in iOS
Java BufferedImage to PNG format Base64 String
Convert image to base64 with java
Hope this helps.

Create a link on the ios filesystem with Objective-C

I'm trying to create a comic reader app which supports both online reading & off-line reading (by downloading).
I've found MWPhotoBrowser as my image viewer, which supports SDWebImage as the image cache.
My problem is that if some user read little part of a comic on-line, and then they decides to download it for offline reading. Since the already read part is cached by SDWebImage, I don't wanna download them again from the web server. But since user asks to download them locally, I don't wanna keep them on the image cache neither as this will make the downloaded images out of our hand.
Copy the image from the image cache to the place I wanna put is a feasible solution, but it takes storage space. So, what I'm trying to do is cut the image from the image cache to the right place, and then make some soft-link in the image cache. In this way, there should be only one image copy in the storage file system.
You don't want a symbolic (soft) link. A symlink doesn't prevent the original file (in the cache) from being deleted. If the original file is deleted, you'll get an error when you try to open it through the symlink.
You want a hard link. You can create a hard link using -[NSFileManager linkItemAtURL:toURL:error:] or -[NSFileManager linkItemAtPath:toPath:error:]. Take a look at the NSFileManager Class Reference.
If you need to learn more about hard links and symbolic links, you can quickly find a lot of information by searching for “hard link” or “symbolic link” in your favorite search engine.
NOTE FOR FUTURE SEARCHERS
You can create a symbolic link using -[NSFileManager createSymbolicLinkAtURL:withDestinationURL:error:] or -[NSFileManager createSymbolicLinkAtPath:withDestinationPath:error:].

How to get access to image data through browser object in powershell?

I'm trying to automate website testing using powershell. I need to compare one of the images in tag with a file on my hard drive.
Is there a way to access the file without downloading the file the second time?
.. if it's not..
Is there a way to force the browser object (ie9) to get the site without images (without changing it in the settings of the browser) and then download the images individually?