08-04-2022 12:26 AM
Hello
Is there any way to access the images saved in my mobile phone then open it in LabView?
I have tried the IP webcam to directly capture the image from mobile phone to LabView however the image quality is not good.
I'm thinking if there is other way to get the latest image from my mobile phone then open it in LabView using a button.
Thank you~
Solved! Go to Solution.
08-04-2022 01:28 AM
I am using iPhone 13 pro max, can I open my saved images with labview
08-04-2022 12:11 PM
So you want to use your phone camera to directly take pictures and import them directly into LabVIEW?
Hmm.... I don't think that is going to work unless your phone "looks like" a camera that is supported by LabVIEW.
If you just want to copy or open pictures from your phone then just plug it in to USB and it should look like a flash drive. Then copying or opening a picture should be not different than opening a picture that is already on your hard drive.
08-04-2022 05:07 PM - edited 08-04-2022 05:12 PM
@RTSLVU wrote:
If you just want to copy or open pictures from your phone then just plug it in to USB and it should look like a flash drive. Then copying or opening a picture should be not different than opening a picture that is already on your hard drive.
That unfortunately won't work. Not sure about Android. it may be possible to install something on it that will provide the memory of the Andriod device as a Flash drive, like an USB stick, but usually a phone announces itself as PTP (Picture Transfer Protocol) device. Windows has a shell integration for that which makes the phone visible in Explorer but this is unfortunately a shell extension and not mapped into the Windows kernel object namespace like a memory volume. Therefore it is also not directly available within LabVIEW through any native functionality.
Access to this can be done through WIA (old legacy technology) and WPD
In Windows 10 there is also the new Windows Photo Import API that lets you do this in a more modern way.
WIA is pretty much out of question if you want to start now as it is an old interface that Microsoft is not improving anymore at all. And its API is COM based, which is like ActiveX but without the typelibrary support so it's not possible to access it through the LabVIEW ActiveX functionality but instead you would need to write C++ code.
This codeproject article can give you some pointers about the Windows Photo Import API. It is an UWP API but should also be accessible through .Net.
10-13-2022 10:59 AM
When I plug my Pixel 6 (Android 13) into a computer USB port it defaults to "no data transfer" mode for security reasons.
Simply go to the USB Preferences and change that to File Transfer/ Android Auto
I believe if you enable the "Developer Options" you can change that default behavior to file Transfer/Android Auto
10-14-2022 07:10 PM
Hello @RTSLVU! Thanks for the reply.
I have tried your suggestion but it didn't work. I think I have to introduce phone into PC as a drive to be able to recognize it by Labview 🙂
10-17-2022 09:52 AM
@blippi wrote:
Hello @RTSLVU! Thanks for the reply.
I have tried your suggestion but it didn't work. I think I have to introduce phone into PC as a drive to be able to recognize it by Labview 🙂
Um... Yeah, that's basically what I was saying. If you change the default behaviour of Android from "Charge only" to "File Transfer / Android Auto" when plugged into USB your phone will appear as a USB drive to Windows.
Here's how my phone appears in Windows:
Default when USB is plugged in
Default
After selecting "File Transfer / Android Auto"
File Transfer / Android Auto
Notice the Phone's internal memory looks like a USB drive to Windows.
10-17-2022 07:02 PM
ah Yes Sir, but you won't be able to select that as path in LabView.
Thank you Sir~