LinuxSDK Document
LinuxSDK Document
Open terminal
Enter cd MVSDK to enter the MVSDK directory
tar -zxvf linuxSDK_V2.1.0.xx.tar.gz Unzip to the current directory
http://www.huatengvision.com/
HuaTeng Vision
Execute the script, copy the library and header files to the system directory
sudo ./install.sh
http://www.huatengvision.com/
HuaTeng Vision
If the installation script fails, you can manually copy the library and header files to complete
the installation
#copy header file
sudo cp MVSDK/include/* /usr/include/
#Copy the corresponding platform library
x86 64-bit system:sudo cp MVSDK/lib/x64/libMVSDK.so /lib
arm 32 hard floating point system:sudo cp MVSDK/lib/arm/libMVSDK.so /lib
arm 32 soft floating point system:sudo cp MVSDK/lib/arm_softfp/libMVSDK.so /lib
arm 64-bit system:sudo cp MVSDK/lib/arm64/libMVSDK.so /lib
1.Network port
1. Turn off firewall sudo ufw disable
2. 2. Configure the network card IP of the linux computer as a fixed IP
3. Edit/etc/sysctl.d/10-network-security.conf Document,Set rp_filter to 0,
4. As follows:# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks.
net.ipv4.conf.default.rp_filter=0
net.ipv4.conf.all.rp_filter=0
Restart the computer to take effect
http://www.huatengvision.com/
HuaTeng Vision
2. USB
1. Lsusb Check if the driver is loaded successfully f622:da01 The beginning of f622 means
that the Huateng Vision camera has successfully loaded the driver
2. sudo Run
3. Try to change other USB ports
4. In a virtual machine, when using a USB3.0 camera, the USB controller sets the USB3.0
mode
http://www.huatengvision.com/
HuaTeng Vision
4. Camera IP Configuration
1. QT tool to modify IP (only supports x64)
Toolpath:tools/QGeConfigTools/QGeConfigTools
1. Automatically update IP
Select the camera to be modified, select DHCP mode, tick Save configuration, click the
button to automatically update IP address, the IP modification is successful
http://www.huatengvision.com/
HuaTeng Vision
2. Update IP manually
If you need to modify it to a specific IP, select the static mode, enter the IP address, subnet
mask, gateway, tick Save the configuration, click the Update IP Address button, and the IP
modification is successful.
http://www.huatengvision.com/
HuaTeng Vision
http://www.huatengvision.com/
HuaTeng Vision
http://www.huatengvision.com/
HuaTeng Vision
http://www.huatengvision.com/
HuaTeng Vision
3. Compile GTK_Demo
1. Install the GTK library
Install the GTK library, clean the project, compile with make, run ./Gtk_Demo, enter 0 to open the
first camera
sudo apt-get install libgtk2.0-dev
http://www.huatengvision.com/
HuaTeng Vision
4. Compile multicamera_demo
Clean the project, make compile, run the program, open 2 cameras
cd MVSDK/demo/multicamera_demo
make clean
make
http://www.huatengvision.com/
HuaTeng Vision
5. Compile OpenCv
Install opencv first, or download the source code from the official
website, compile it, enter the directory, compile, and run
cd MVSDK/demo/OpenCv
make
sudo ./main #Run
http://www.huatengvision.com/
HuaTeng Vision
6. compile QT_Demo4
1. You need to install Qt first
Open Qt, open the project, select the pro file, open, select the corresponding builder
(QT_Demo4 changed to QT5)
http://www.huatengvision.com/
HuaTeng Vision
Start building
Pro file added QT += widgets
INCLUDEPATH += .././include #Revise
LIBS += -L/lib -lMVSDK #Revise
http://www.huatengvision.com/
HuaTeng Vision
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("GB2312")); Delete
http://www.huatengvision.com/
HuaTeng Vision
7. Compile QT_Demo5
1. You need to install Qt first
Open Qt, open the project, select the pro file, open, select the corresponding builder,
compile and run, you can
http://www.huatengvision.com/
HuaTeng Vision
http://www.huatengvision.com/
HuaTeng Vision
8. Compile Sampli_Save_Demo
Enter the directory, clean the project, make compile ./demo run, enter 0,
open the 0th camera, save an image
cd MVSDK/demo/Sampli_Save_Demo
make clean
make
sudo ./demo
http://www.huatengvision.com/
HuaTeng Vision
http://www.huatengvision.com/