Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,857 Views

how to capture image using galileo gen 2 and display it on the smartphone?

I am currently trying to capture image using a camera connected to galileo and try to display it on the smartphone. I am using OpenCV. Can anyone help me for my assignment???

9 Replies
Highlighted
Valued Contributor I
8 Views

Hi Zaty

Here is a discussion on getting a web cam to work with the Galileo /thread/56024 https://communities.intel.com/thread/56024

Basically if it is a UVC, you need to get a male/female adapter and plug the camera into the host port. The Galileo should see it as video0

As for getting it on a smartphone, you could have a web page on the Galileo or send the image.

What are you trying to do?

rgb

Highlighted
Employee
8 Views

Hi zaty264

Take a look at the thread suggested by rgb, I think you will find it very useful.

If you want to send the image to a webpage or via email check the following links:

https://github.com/MakersTeam/makers-examples/tree/master/Python-Examples/Email makers-examples/Python-Examples/Email at master · MakersTeam/makers-examples · GitHub

Regards;

CMata

Highlighted
Beginner
8 Views

var cv = require('../lib/opencv');

try {

var camera = new cv.VideoCapture(1);

var window = new cv.NamedWindow('Video', 0)

setInterval(function() {

camera.read(function(err, im) {

if (err) throw err;

console.log(im.size())

if (im.size()[0] > 0 && im.size()[1] > 0){

window.show(im);

}

window.blockingWaitKey(0, 50);

});

}, 20);

} catch (e){

console.log("Couldn't start camera:", e)

}

This is the nodejs source code. I plan to write it in nodejs.

throw err;

^

Error: Cannot find module '../lib/opencv'

at Function.Module._resolveFilename (module.js:338:15)

at Function.Module._load (module.js:280:25)

at Module.require (module.js:364:17)

at require (module.js:380:17)

at Object. (/home/root/main.js:2:10)

at Module._compile (module.js:456:26)

at Object.Module._extensions..js (module.js:474:10)

at Module.load (module.js:356:32)

at Function.Module._load (module.js:312:12)

at Function.Module.runMain (module.js:497:10)

i completely install opencv dev already, but still got this error.

Please help!!!

Regards,

Zaty

0 Kudos
Highlighted
8 Views

I guess you would require a "npm install opencv" as well?

0 Kudos
Highlighted
Beginner
8 Views

hello my intel friends, i have a big problem, i actually want to make an android application using intel xdk iot that can take picture from a webcam connected to the galileo gen 2 board, it seems that i can only capture the image from the webcam conected to the usb port of galileo using putty, and mannually grab the file usung putty from sdcard of galellio gen2 and put it on the computer,. and my problem is that i still cannot figure out how to write codes in the xdk intel IoT,,, both the server side (glellio+webcam) and the client side (android application)

0 Kudos
Highlighted
Beginner
8 Views

0 Kudos
Highlighted
Beginner
8 Views

hehehehe. ... sorry guys, ,, but I'm desperate

0 Kudos
Highlighted
Valued Contributor I
8 Views

Hi Flabby

Sorry, but I work with AlexT's version of Yocto and don't do anything with Android

When I played with IoT before I uses V4Lgrab to get pictures.

With Yocto I am using fswebcam to take pictures and Flask to create web pages, and do coding in Python

Again, sorry I can't help

regards

rgb

0 Kudos
Highlighted
Employee
8 Views

Hi flabbyandroid

Take a look at this video, It will help you on how to start your app https://software.intel.com/en-us/intel-xdk using the XDK:

Video: https://software.intel.com/en-us/videos/making-your-first-app-with-the-intel-xdk Making Your First App with the Intel® XDK | Intel® Developer Zone

There are other documents you should see too:

https://software.intel.com/en-us/xdk/docs/tut-build-binary-android Legacy Android Build Tutorial | Intel® Developer Zone

https://software.intel.com/en-us/intel-xdk-support/training Training for Intel® XDK Support | Intel® Developer Zone

In Galileo side; you could create a Python, C, C++, JS, Shell script to take the picture and then send to the SD, email, webpage...

https://github.com/MakersTeam/makers-examples/tree/master/Python-Examples/Email makers-examples/Python-Examples/Email at master · MakersTeam/makers-examples · GitHub

https://github.com/MakersTeam/makers-examples/blob/master/JavaScript-Examples/SendImagetoWS.js makers-examples/SendImagetoWS.js at master · MakersTeam/makers-examples · GitHub

I hope this helps you and give you an idea on how to start.

Regards;

CMata

0 Kudos