We are using a VCSBC nano Z-RH-2 board for today’s experiment. The board adopted looks like the following:
More detailed specifications, please refer to Vision Components’s official website.
After you set up a static IP for this Vision Components SBC, it’s pretty straightforward to ssh into the system.
user@VC-Z:~$ uname -a
user@VC-Z:~$ cat /proc/cpuinfo
Hmmmmmmmm… It’s better I keep my code in dark???
user@VC-Z:~/longervision$ ./pgmpair ../images/aloe_left.pgm ../images/aloe_right.pgm
My GOD… It’s UNBELIEVABLY SLOW.
|aloe_left Stereo||aloe_right Stereo|
The BEST demo code to test Vision Componenets Stereo Vision is Eclipse_Example_Projects_VC_Z.
The above 2 examples are directly run on Vision Components’s board without display, for the given cable is of VGA connector, which is ALREADY outdated for many years. Therefore, in order to show the captured image pairs, in the next section, we’ll have to stream the captured data to a host computer, and display the real-time video pairs.
Due to Vision Componenets’ Official documentation VCLinux_Getting_Started.pdf, images captured from camera can be displayed on a remote hosting PC.
Eclipse_Example_Projects_VC_Z.zip provides some source code, which displays images captured from camera on the hosting PC’s Eclipse, by adding the camera as a Remote System to Eclipse.
Anyway, by using this method, you need to prepare ALL the following software and packages in advance.
- CDT: install by Check for Updates with p2 software repository: http://download.eclipse.org/tools/cdt/releases/9.8
- Direct Remote C++ Debugging: installed from Eclipse Marketplace
Besides the above method, a much more straightforward method is to adopt python script vcimgnetclient.py provided by Vision Components. However, vcimgnetclient.py is ONLY python2 compatible, and Vision Components has NO plan to provide a python3 compatible version of vcimgnetclient.py.
Therefore, the KEY to use the 2nd method is to make vcimgnetclient.py python3 compatible.
Please refer to General Porting Tips
vbox.pack_start, add one parameter 0 at the end for each case. For instance:
vbox.pack_start(self.menu_bar, False, False)
vbox.pack_start(self.menu_bar, False, False, 0)
2.3.3 Longer Vision’s vcimgnetclient_qt.py
Sorry, I’m NOT going to show my code, but the performance can be demonstrated as follows: