JeVois
1.20
JeVois Smart Embedded Machine Vision Toolkit
|
|
It is highly recommended that you use a virtual machine software to create a fresh installation of Ubuntu into which you will install the JeVois development environment. This way, you will not encounter problems with differemt versions of packages required by JeVois and by possibly other applications you run on your desktop and laptop.
Here are summary instructions on how to do this with the free Virtualbox software:
Create a new virtual machine: select Linux 64-bit OS, allocate as much RAM and CPU as is reasonable (usually, move the sliders to the point where they become red), and create a new virtual hard drive, using the VDI method and selecting at least 50GB size.
To be able to grab video, go to the settings of your virtual machine (yellow cog-wheel in the main panel of Virtualbox) and make sure that you enable USB 2.0 or USB 3.0 under Ports, USB. Then plug-in a USB camera, and add a device filter for it (click the icon with the + sign on top of a USB connector). We recommend that you then restart your virtual machine and your host.
Back to the virtual machine, install guvcview
by typing:
sudo apt install guvcview
and you should be able to grab video from your USB camera.
When using a Linux host, it is often more convenient to just run the JeVois SDK virtual machine in a terminal, without the whole graphical interface. This allows you to simply copy/paste commands from another terminal to the one that runs your virtual machine. You cannot run jevois-inventor in that headless machine, so this is more for C++ development and compilation.
To enable headless mode, you need to enable an SSH port forwarding rule on your virtual machine, as follows:
ssh-keygen -t rsaWhen prompted for a passphrase, just press ENTER.
sudo apt install openssh-server
in VirtualBox, select Settings for your virtual machine, then Network, click on Advanced, and then Port Forwarding. Click on the little icon with a green plus sign to add a rule, as follows:
And click Ok. This will forward connections made to your host machine on port 3000 to the virtual machine port 22 (ssh).
ssh-copy-id -p 3000 jevois@localhostWhen asked, type password jevois
To start the virtual machine headless and log into it:
VBoxManage startvm UbuSdk2004 --type headless sleep 20 ssh -p 3000 jevois@localhost
Replace UbuSdk2004 above by the name you have chosen when creating your virtual machine (this is the name that appears on the sidebar with the list of machines in the VirtualBox graphical interface).
All done, you should now be logged into your virtual machine. Remember to shut it down with sudo shutdown -h now
when finished.