cd linux-80211n-csitool,Admin/CSI-Tool-Camera-Shooting

该程序基于Linux 802.11n CSITool和Atheros CSITool,用于自动用相机拍照并将当前CSI包ID附加到照片上。安装涉及多个步骤,包括安装依赖项、编译和配置OpenCV。使用时,用户可以设置相机ID、图片保存间隔和是否自动退出等参数。当CSI收集停止时,程序可以选择自动退出。
摘要由CSDN通过智能技术生成

CSI-Tool-Camera-Shooting

Support Linux 802.11n CSI Tool and Atheros CSI Tool

What is it used for?

This program is based on Linux 802.11n CSI Tool and Atheros CSI Tool. This program automatically takes a photo with the camera and attaches the current CSI Packet ID to the photo. These photos are saved in a folder with the same name as your CSI data file.

Screenshot

9c351658ec8cf1ba884ed2b5448a630f.png

Detail

d5e251dfb6c2c281b21612aeb1543934.png

4364b7ef7afde98eff9b5ec342fa607f.png

Install

This code is based on Linux 802.11n CSI Tool http://dhalperi.github.io/linux-80211n-csitool/ or Atheros CSI Tool http://wands.sg/research/wifi/AtherosCSI/. Make sure you have installed it and can use it properly.

Download this project and install Opencv firstly.If you have already installed Opencv, go directly to Step 6.If you fail to install Opencv according to Step1-Step5, please find other installation help on the Internet. Please make sure you have successfully installed Opencv before running Step6.

Step 1. Install package

sudo apt-get install build-essential

sudo apt-get install libgtk2.0-dev

sudo apt-get install pkg-config

sudo apt-get install cmake

Step 2. Unzip Opencv

Run commands under CSI-Tool-Camera-Shooting folder:

unzip opencv-2.4.13.6.zip

cd opencv-2.4.13.6/install

Step 3. Compile and install Opencv

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..

cmake ..

make

sudo make install

Step 4. Configuration Opencv

sudo gedit /etc/ld.so.conf.d/opencv.conf

Then add the /usr/local/lib command to the file.

sudo ldconfig

sudo gedit /etc/bash.bashrc

Then add the following command to the end of file:

PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig

export PKG_CONFIG_PATH

Step 5. Reboot and finish install Opencv

sudo reboot

Step 6. Compile User APP [ For Linux 802.11n CSI Tool ]

Use the netlink folder in this code replace to linux-80211n-csitool-supplementary/netlink folder.

Run commands under linux-80211n-csitool-supplementary/netlink folder:

make

Step 6. Compile User APP [ For Atheros CSI Tool ]

Use the recvCSI folder in this code replace to Atheros-CSI-Tool-UserSpace-APP/recvCSI folder.

Run commands under Atheros-CSI-Tool-UserSpace-APP/recvCSI folder:

make

Usage

Parameter: [Camera ID] [Pic Save Interval] [Whether Auto Exit]

[Camera ID]: This parameter controls which camera to use when the computer has multiple cameras.When set to 0, the program will use the first camera.When set to 1, the program will use the second camera. And so on.

[Pic Save Interval]: This parameter controls the speed at which images are saved. When set to 0, the program will save each frame of the camera. When set to 1, the program will save an image every other frame. And so on.

[Whether Auto Exit]: This parameter controls whether the program automatically exits when CSI collect stops.When set to 0,This program will always run. When set to 1,This program will automatically exit when no CSI is acquired within 1 second.

For Linux 802.11n CSI Tool

So,Run commands under linux-80211n-csitool-supplementary/netlink folder:

./camera 0 0 1

Then,Start CSI collection program.The camera program will automatically create a new folder with the same name as your CSI data file and save the image to this folder.

sudo ./log_to_file test.dat

For Atheros CSI Tool

So,Run commands under Atheros-CSI-Tool-UserSpace-APP/recvCSI folder:

./camera 0 0 1

Then,Start CSI collection program.The camera program will automatically create a new folder with the same name as your CSI data file and save the image to this folder.

sudo ./recvCSI test.dat

Warning 1: You must open or restart camera program firstly,Then start running the CSI collect program.

Warning 2: The program will automatically create a folder to save the image, but cannot be the same as the existing folder name.Otherwise, the program will report an error and automatically exit.

Warning 3: Not all cameras work properly under Linux .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值