First Steps - qtec/build-qt5022-core GitHub Wiki
First Steps
Change Passwords
The image is configured by default with no passwords for the administrator and the main user. We strongly recommend that you set a password for both users if you are going to connect the camera in an unsafe network.
- Connect a screen and a keyboard to the camera, as seen on Setup
- Start the camera
- Wait until the screen shows a prompt
root@qt5022-fglrx:~#
- To set the root password: run the command passwd and follow the instructions on the screen
root@qt5022-fglrx:~# passwd
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
- To set the main user (qtec) password: run the command passwd qtec and follow the instructions on the screen
root@qt5022-fglrx:~# passwd
root@qt5022-fglrx:~# passwd qtec
Changing password for qtec
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
New password:
Obtain the camera's IP
By default the camera will try obtain an IP via DHCP on its port ETH-A. Make sure that the camera is connected before starting the camera.
You can obtain the IP of the camera from the local console using ifconfig
root@qt5022-fglrx:~# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:C2:C2:7A:A8
inet addr:192.168.2.213 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::250:c2ff:fec2:7aa8%119/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4881 errors:0 dropped:0 overruns:0 frame:0
TX packets:1393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3768259 (3.5 MiB) TX bytes:250806 (244.9 KiB)
Memory:d0080000-d00fffff
By default, ethernet port ETH-B of the camera always has the IP 10.100.10.100
SSH to the camera
Instead of using a keyboard and a mouse, you can connect to a camera using ssh. The camera has installed an embedded implementation of ssh called dropbear. You can get the full documentation at its website
ricardo@neopili:~$ ssh [email protected]
root@qt5022-fglrx:~#
SSH can also be used to copy files from/to the camera. On linux you can use scp and in linux WinSCP
Jupyter notebook
Cameras run by default a Jupyter notebook. To use it just point your browser to the camera IP port 8888. Eg: http://10.100.10.10:8888
Jupyter notebook provides a web interface to a terminal, file upload or a python3 console. You can get the full documentation of Jypyter on its web site
To launch a new shell, click on New>Terminal
To launch a new python console, click on New>Python 3
Jupyter has support for auto completion and syntax highlighting.
Update camera
You will only get the best performance and results if your camera is up to date. To setup the camera run the following commands:
root@qt5022-fglrx:~# apt-get update
Ign http://release.qtec.com:5022 ./ InRelease
Ign http://release.qtec.com:5022 ./ InRelease
Ign http://release.qtec.com:5022 ./ InRelease
Get:1 http://release.qtec.com:5022 ./ Release.gpg [488 B]
Get:2 http://release.qtec.com:5022 ./ Release.gpg [488 B]
Get:3 http://release.qtec.com:5022 ./ Release.gpg [488 B]
Get:4 http://release.qtec.com:5022 ./ Release [1222 B]
Get:5 http://release.qtec.com:5022 ./ Release [1219 B]
Get:6 http://release.qtec.com:5022 ./ Release [1213 B]
Get:7 http://release.qtec.com:5022 ./ Packages [100 kB]
Get:8 http://release.qtec.com:5022 ./ Packages [3015 kB]
Get:9 http://release.qtec.com:5022 ./ Packages [146 kB]
Ign http://release.qtec.com:5022 ./ Translation-en
Ign http://release.qtec.com:5022 ./ Translation-en
Ign http://release.qtec.com:5022 ./ Translation-en
Fetched 3267 kB in 1s (2869 kB/s)
Reading package lists... Done
root@qt5022-fglrx:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@qt5022-fglrx:~#
Install software
The standard distribution comes with a selection of software, you can install new software from our Debian repository using apt-get and apt-cache. For more detailed information regarding Debian repositories check the Debian Package Management Manual
- Find out the software that you want to install using apt-cache search:
root@qt5022-fglrx:~# apt-cache search vision
opencv-dev - Opencv : The Open Computer Vision Library - Development files
opencv-samples - Opencv : The Open Computer Vision Library
opencv-apps - Opencv : The Open Computer Vision Library
opencv-java - Opencv : The Open Computer Vision Library
python3-opencv - Python bindings to opencv
opencv-dbg - Opencv : The Open Computer Vision Library - Debugging files
opencv - Opencv : The Open Computer Vision Library
opencv-samples-dbg - Opencv : The Open Computer Vision Library
opencv-java-dbg - Opencv : The Open Computer Vision Library
opencv-staticdev - Opencv : The Open Computer Vision Library - Development files (Static Libraries)
- Get more details about the packages using using apt-cache show:
root@qt5022-fglrx:~# apt-cache show opencv
Package: opencv
Priority: optional
Section: libs
Maintainer: Qtec yocto admin <[email protected]>
Architecture: amd64
Version: 3.1+git0+92387b1ef8-r0.123
Depends: libopencv-imgcodecs3.1, libopencv-sfm3.1, libopencv-structured-light3.1, libopencv-fuzzy3.1, libopencv-saliency3.1, libopencv-videoio3.1, libopencv-video3.1, python3-opencv, libopencv-objdetect3.1, libopencv-flann3.1, opencv-apps, libopencv-imgproc3.1, libopencv-stitching3.1, libopencv-xphoto3.1, libopencv-calib3d3.1, libopencv-xobjdetect3.1, libopencv-surface-matching3.1, opencv-samples, libopencv-face3.1, libopencv-aruco3.1, libopencv-superres3.1, libopencv-ximgproc3.1, libopencv-stereo3.1, libopencv-reg3.1, libopencv-line-descriptor3.1, libopencv-dpm3.1, opencv-java, libopencv-tracking3.1, libopencv-bioinspired3.1, libopencv-shape3.1, libopencv-ml3.1, libopencv-bgsegm3.1, libopencv-optflow3.1, libopencv-highgui3.1, libopencv-text3.1, libopencv-xfeatures2d3.1, libopencv-ccalib3.1, libopencv-features2d3.1, libopencv-photo3.1, libopencv-core3.1, libopencv-rgbd3.1, libopencv-datasets3.1, libopencv-dnn3.1, libopencv-videostab3.1, libopencv-plot3.1
Filename: ./opencv_3.1+git0+92387b1ef8-r0.123_amd64.deb
Size: 1006
MD5sum: 3c0268f9037a72102a76c31930c99155
SHA1: 675191986e281423b7b8f4fa0cf2077ac4a86349
SHA256: 5bb97321e41657accd9ab0f7bf6c5a4a6d27c53c2ede064882dd8f056f73cc0c
SHA512: 553b6c602974e0c8646f7f75c43f946a5e9c7e05b31dc74ba878bce648aae764a2daf9640eee69c0c4fc1c7f3912b7dedf09bb33fdf31acc59c8515a6749edc1
Description: Opencv : The Open Computer Vision Library
Opencv : The Open Computer Vision Library.
Description-md5: a4dd1a1cb1d5d7ddeecca24eafb5d701
OE: opencv
PackageArch: bobcat-64
Homepage: http://opencv.org/
- Install the software with apt-get install
root@qt5022-fglrx:~# apt-get install opencv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
opencv
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1006 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://release.qtec.com:5022/core/cesium/qt5022-fglrx/deb/bobcat_64/ ./ opencv 3.1+git0+92387b1ef8-r0.123 [1006 B]
Fetched 1006 B in 0s (1739 B/s)
Selecting previously unselected package opencv.
(Reading database ... 95%
(Reading database ... 26565 files and directories currently installed.)
Preparing to unpack .../opencv_3.1+git0+92387b1ef8-r0.123_amd64.deb ...
Unpacking opencv (3.1+git0+92387b1ef8-r0.123) ...
Setting up opencv (3.1+git0+92387b1ef8-r0.123) ...
- Remove the software with apt-get remove
root@qt5022-fglrx:~# apt-get remove opencv
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
opencv
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 26565 files and directories currently installed.)
Removing opencv (3.1+git0+92387b1ef8-r0.123) ...
Set Static IP
If you require to use a Static IP (if you are under a Corporate Network or there is no DHCP server on your network) you can set an static IP on your camera.
For that edit the file /etc/network/interfaces and set an static IP for eth0:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# Wired interfaces
auto eth0
iface eth0 inet static
address 192.168.2.243
netmask 255.255.255.0
gateway 192.168.2.1
auto eth1
iface eth1 inet static
address 10.100.10.100
netmask 255.255.255.0
You also need to set your DNS on the file /etc/resolv.conf
domain qtec.com
nameserver 8.8.8.8
nameserver 8.8.4.4