Difference between revisions of "TB3 Movidius Newual Compute Stick 1.12"
From wikidb
(→Tests) |
(→Tests) |
||
Line 56: | Line 56: | ||
= Tests = | = Tests = | ||
+ | |||
+ | == Python == | ||
$ cd ~/workspace/ncsdk/examples/apps/hello_ncs_py/ | $ cd ~/workspace/ncsdk/examples/apps/hello_ncs_py/ | ||
Line 65: | Line 67: | ||
Hello NCS! Device opened normally. | Hello NCS! Device opened normally. | ||
Goodbye NCS! Device closed normally. | Goodbye NCS! Device closed normally. | ||
+ | NCS device working. | ||
+ | |||
+ | == C++ == | ||
+ | |||
+ | $ cd ../hello_ncs_cpp | ||
+ | |||
+ | $ make run | ||
+ | |||
+ | making hello_ncs_cpp | ||
+ | g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc | ||
+ | Created cpp/hello_ncs_cpp executable | ||
+ | |||
+ | making run | ||
+ | cd cpp; ./hello_ncs_cpp; cd .. | ||
+ | Hello NCS! Device opened normally. | ||
+ | Goodbye NCS! Device Closed normally. | ||
NCS device working. | NCS device working. |
Revision as of 11:25, 21 June 2018
Download Release 1.12
- github location
- click on "release" tab
- the 1.12 release
- Download tar.gz source - the file name is ncsdk-1.12.00.01.tar.gz
Install
$ mv workspace/ workspace_2_04 $ mkdir -p ~/workspace $ cd ~/workspace $ mv ~/Downloads/ncsdk-1.12.00.01.tar.gz . $ tar xzf ncsdk-1.12.00.01.tar.gz $ mv ncsdk-1.12.00.01 ncsdk $ cd ncsdk $ make install
Examples
Plug in Movidius NCS
$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 04f3:2494 Elan Microelectronics Corp. Bus 001 Device 004: ID 8087:0a2a Intel Corp. Bus 001 Device 003: ID 0bda:58c2 Realtek Semiconductor Corp. Bus 001 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 001 Device 006: ID 03e7:2150 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Movidius is the 03e7:2150 device
$ pwd /home/eepp/workspace/ncsdk $ make examples
$ df Filesystem 1K-blocks Used Available Use% Mounted on ... /dev/sda7 92535808 15795244 72016904 18% /
Tests
Python
$ cd ~/workspace/ncsdk/examples/apps/hello_ncs_py/ $ python --version Python 2.7.12 $ python hello_ncs.py Hello NCS! Device opened normally. Goodbye NCS! Device closed normally. NCS device working.
C++
$ cd ../hello_ncs_cpp $ make run making hello_ncs_cpp g++ cpp/hello_ncs.cpp -o cpp/hello_ncs_cpp -lmvnc Created cpp/hello_ncs_cpp executable making run cd cpp; ./hello_ncs_cpp; cd .. Hello NCS! Device opened normally. Goodbye NCS! Device Closed normally. NCS device working.