LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Integrating Android Devices Camera with NI Vision Software

Hi,

I'm workin on Windows 7 with Labview 2011 and Vision Module.

I would to integrate my android smartphone camera in Labview. I want recieve the video stream for do some vision alghoritm on the image.

I follow this guide that is very nice http://zone.ni.com/devzone/cda/epd/p/id/6558#toc3 but when i try to see a preview with MAX or with Vision Acquisition Express (in a Blank VI) all Labview crash and and closes by itself...

 

In my web browser i see the correct video but whe i try to catch it with http://<ip>:<port>/videofeed all  closes by itself...

 

After tha crash if i re-open MAX, i have a windows that notife me the error and this is the log file error:

 

Why? Any idea to fix it? Thank You

Application   : F:\Program Files (x86)\National Instruments\MAX\NIMax.exe
User Name     : GiordiX
OS Version    : 6.1.7601 (Service Pack 1)
Exception Code: C0000005
Exception Addr: 630AC9C7

Return Address: 630AC9C7
Function Name : memcpy
Module Name   : MSVCR100D
Parameters    : 0E531000 0B398FF8 000002FA 0E67FD88
Source File   : (not available)

Return Address: 0AFD2317
Function Name : curl_easy_setopt
Module Name   : IPCamera
Parameters    : 022C4C30 0E67FE90 0E67FD90 0B3586C0
Source File   : (not available)

Return Address: 0B0284C0
Function Name : curl_easy_setopt
Module Name   : IPCamera
Parameters    : 0E67FF88 0E67FE98 0B3586C0 00000000
Source File   : (not available)

Return Address: 0B02829E
Function Name : curl_easy_setopt
Module Name   : IPCamera
Parameters    : 00000000 00000000 0B3586C0 CCCCCCCC
Source File   : (not available)

Return Address: 0B039711
Function Name : curl_easy_setopt
Module Name   : IPCamera
Parameters    : 0B3586C0 0E67FFD4 76FA9EF2 0B3586C0
Source File   : (not available)

Return Address: 7691339A
Function Name : BaseThreadInitThunk
Module Name   : kernel32
Parameters    : 0B3586C0 7948F11D 00000000 00000000
Source File   : (not available)

Return Address: 76FA9EF2
Function Name : RtlInitializeExceptionChain
Module Name   : ntdll
Parameters    : 0AFCD65D 0B3586C0 00000000 00000000
Source File   : (not available)

Return Address: 76FA9EC5
Function Name : RtlInitializeExceptionChain
Module Name   : ntdll
Parameters    : 00000000 00000000 00000000 00000000
Source File   : (not available)

 

 

Message 1 of 12
(5,618 Views)

hello, thank you for the URL of IP camera, please can you help to activate this application by sending " Init MJPEG Server.vi", "Send image to MJPEG Server.vi",

"is MPJEG server Ranning.vi" and "dispose MJPEG Server.vi". Because I have not succeeded to find them. Thanks 

0 Kudos
Message 2 of 12
(5,417 Views)
Hi bahri77,
In the same link check top right for Downloads>>Attachements>>Android VDM.lvproj
Thanks
uday
Message 3 of 12
(5,411 Views)

Hi udka,

thank you for your helpSmiley Happy

0 Kudos
Message 4 of 12
(5,400 Views)

Hi,

Is that we can do the same application with a connection via Bluetooth ?

thank you !

0 Kudos
Message 5 of 12
(5,393 Views)

I guess, for me IP camera didn't work. And i used Droid cam similar app i got in play store. and i was able to connect it with labview.

 

-I suggest you to open separate thread if needed, because i don't see how your current problem is related to this thread, prefarably in Machine vision board.

Thanks
uday
Message 6 of 12
(5,385 Views)

Hi udka, thank you for your help.

 

Can you give me your email to discuss the problems ?

 

Thanks

0 Kudos
Message 7 of 12
(5,371 Views)
Hi bahri77,
-If you have any other technical problems, post here in the forum so that many people can help you in better way.
-You can send private message(PM) to particular user if needed and i don't think email address is necessary here.
-For sending PMs click on user name below which you should see option "Send this user a private message".
Thanks
uday
Message 8 of 12
(5,367 Views)

thank you udka for your help,

 

Can I brodcast my Android camera with labview 2012 via a bluetooth connection ?

 

I didn't activate this application with TCP/IP protocol in my PC.

And my objectif is to broadcast via bluetooth.

 

Thanks,

 

 

0 Kudos
Message 9 of 12
(5,347 Views)
I didn't understand your question properly.Let me tell you what i understood.
-You want to broadcast video from your android camera(phone or camera??).
-Mode of transfer should be via bluetooth.
-You need to receive that video in labview.

-Yes you can broadcast you android camera video through bluetooth/usb/wifi using apps like Droidcam, WO Webcam Lite (Which i checked) and there might others also.
-These apps will create virtual device in your MAX(Measurement and automation Explorer)
-First check whether you can see your android virtual device in MAX and try grab or snap to see whether you're getting video or not.
-If it is working in MAX it will work in labview also.
-I don't know how to get video directly through bluetooth from labview.
Thanks
uday
Message 10 of 12
(5,340 Views)