using pandaboard with opencv without ubuntu or any GUI based distribution
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
using pandaboard with opencv without ubuntu or any GUI based distribution
Hi I am new to embedded linux I want to run opencv application lets say object tracking on pandaboard I dont want to do it with ubuntu desktop cuz of its GUI which takes on resources. I am currently testing my theory by installing ubuntu server which has no GUI on a virtual machine. My question is will I be able to run opencv applications that is processing and displaying a webcam feed on a command line interface of ubuntu server now I know about linux framebuffer but I have no idea how to run it. plz help tell me about dependencies and packages I need to run. First tell what I will need to do for ubuntu server 12.04LTS so that I can practice it on a virtual machine
You need to understand the difference between running graphical applications and running an X server. Applications that are X clients can run anywhere that has access to an X server. On a conventional desktop host, the X server typically runs on the local workstation, and so do the client applications. It is entirely possible; I would say routine; to run the applications and server on separate hosts. All of this assumes that any graphical applications you're considering actually do use X, which is true in virtually all cases.
So, when you say 'I want to run opencv application', does that imply the use of some GUI? If so, does it need to display it's GUI on the embedded pandaboard host somehow, or can the application use a workstation-based X server?
The X server and X clients are completely decoupled, and may exist on completely different hosts. It is also possible to run X client applications where it is impossible to support a full X server with video hardware, keyboard and pointing device. In such cases, a virtual X server might be useful, such as xvfb.
As i am new to this maybe thats why I might not be able to ask the right questions I'll try to explain better this time.
Actually I want to run a image processing software GUI based (probably opencv based) on an embedded board (beagle board) and I want to see the output (webcam feed) if possible on a host system that is via some kind of network wired or wifi, if seeing the output (webcam feed) on host system is not possible then I'll see the output by directly connecting the board with lcd using hdmi or dvi that comes with the board. In nutshell I want to do all processing on embedded board and see the output on host system. Any ideas
Okay, this sounds relatively simple, if I understand you correctly. Your use of the term 'webcam feed' has me a bit puzzled, and I am proceeding on the assumption that you are using terminology that doesn't really mean what you intend.
In one simple case, it seems likely that you want to log in to your Pandaboard system from a GUI-equipped workstation and run the GUI application. The X server on your workstation will provide the monitor/keyboard/pointer required to support the X application(s) running on the Pandaboard. This requires the Pandaboad to support ssh logins (or telnet as a worst case scenario), and requires the workstation to be running an X server (all GUI Linux workstations will be this). Ssh on all major distros provides support for X tunneling to allow a secure connection between the remote X client application, and your workstation-based X sever.
Another scenario is that the application provides a web-based GUI (webcam feed?) that any host capable of supporting a web browser can access. This will require more, possibly much more, effort in programming, and will be a much less responsive and interactive application.
I don't mean to disparage you about terminology or architecture; only trying to describe what subjects you will need to further research and understand.
--- rod.
Do you want your Pandaboard application to create a webcam feed, or read from an existing one? There are drivers for many webcams to allow your application to read their data. You will have to determine compatibility between your webcam and any existing driver(s). There is an umbrella package/standard 'video4linux' (v4l) that encapsulates a lot of functionality of video source devices. The Wikipedia V4L Page should make a decent jumping off spot for further research. See also the The Webcam HOWTO.
--- rod.
Also have a look at using parts of "Gmic " ( part of the Cimg.h project )
it dose not use a qt,gtk,or any DE
it outputs to a new x window
and it works with opencv
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.