guvcview is a simple interface for capturing and viewing video from v4l2 devices, with a special emphasis for the linux uvc driver. This is Leopard Imaging modified version for guvcivew. Modified based on guveview version2.0.5.
- Support viewing most LI-USB3 bayer sensors
- Capture raw frames
- Registers read/write
Make sure the following libraries have installed
#/bin/sh
sudo apt-get install intltool
sudo apt-get install autotools-dev
sudo apt-get install libsdl1.2-dev
sudo apt-get install libgtk-3-dev
sudo apt-get install portaudio19-dev
sudo apt-get install libpng12-dev
sudo apt-get install libavcodec-dev
sudo apt-get install libavutil-dev
sudo apt-get install libv4l-dev
sudo apt-get install libudev-dev
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libpulse-dev
sudo apt-get install libsdl2-dev
sudo apt-get install libsfml-dev
sudo apt-get install qtbase5-dev
sudo apt-get install libgsl0-dev
After running the following commands, guvcview executable will be appeared under /guvcview
#/bin/sh
chmod +x bootstrap.h
./bootstrap.h
./configure
make
sudo make install
First identify your camera device using:
lsusb
ls /dev/video*
Run your camera device by changing /dev/video#
./guvcview/guvcview -d /dev/video0
Inside frame_decode.c, under case V4L2_PIX_FMT_YUYV, add the pixel order accordingly for color sensor. Use mono2yu12 for monochrome sensor.
##Capture and view raw image Captured raw image can be viewed by imageJ on windows and linux. Select the following when you want to view the raw iamge:
- Image type : 16-bit Unsigned
- Width: 4000 pixels
- height: 3000 pixels
- Select "Little-endian byte order"
After opening the image, you can adjust image contrast in Process then Enhance Contrast, select Equalize histogram
4.15.0-32-generic #35~16.04.1-Ubuntu 4.15.0-20-generic #21~Ubuntu 18.04.1 LTS
Author: Danyu LI Date: 2018/Aug