Utility for cut images on satellite's Raspberry Pi, based on stb_image lib. Developed for work on satellite's Raspberry Pi
$ git clone git@github.com:zdrvzbl/stb-cut.git
Build dependencies:
$ sudo apt install build-essential cmake
Cross-compiling toolchain if you need: https://github.com/zdrvzbl/rpi-crosscompile-template#setup
$ cmake --preset <linux-default | linux-arm> .
$ cmake --build <build/default | build/rpi>
$ cmake --install <build/default | build/rpi>
CMake install command copies binary and script to ~/bin
or {projectDir}/rpi-install/bin
in depend of chosen preset
The -s
and -d
options specify the paths to the source image and the result. -q
option sets quality of output image in percents. Cutting area coords are non-option parameters and take place after all options and --
delimeter
stb-cut -s image_in.jpg -d image_out.jpg -q 90 -- 25 25 75 75
stb_{name}
- stb_image headersmain.cpp
- CLI programscripts/cut.sh
- Script for cutting pieces from photos on satellite's RPi
- cutted photo to archive
- make cut.sh silent