Skip to content

cmake build of xiongzhu666/Sky-Segmentation-and-Post-processing

License

Notifications You must be signed in to change notification settings

knyipab/skyseg-ncnn

Repository files navigation

skyseg-ncnn

Description

Apply sky segmentation ncnn model on input image(s) and output mask image(s). 
Adapted from https://github.com/xiongzhu666/Sky-Segmentation-and-Post-processing by Ronald Y

Usage: skyseg-ncnn [input] [output]

Arguments: 
    input       input file or folder
    output      output file or folder

Dependencies

  • OpenCV
  • ncnn

Build

mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=<path-to-prefix> ..
cmake --build .
cmake --install .

Test result

curl -o demo.jpg -L https://lh3.googleusercontent.com/pw/AP1GczNsgYY61QHlnYai--x-scRy_QJbkqGyASQN39lcL5ZD_AcMitUQqQ8mWy8Bf_FruvknK0_Pw77VqO84FtGU4z8OZMWP2qWAkRnqHUrZYESZiuFNKpCHEzXCpQ6fdeT1wbiJuCgtbcea_60ym7NAzwxN=w943-h1257-s-no-gm

skyseg-ncnn demo.jpg demo-sky.jpg

It works also for night sky.

demo

demo-sky

About

cmake build of xiongzhu666/Sky-Segmentation-and-Post-processing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages