Skip to content

huypl53/avt-24

Repository files navigation

Image enhancement

Python version 3.10.4

Third-party tools

sudo apt-get install gdal-bin

Brightness adjustment & CLAHE

im = cv2.imread(im_path)
enhanced_im = adjust_gamma(im, 0.4)
enhanced_im = hist_equalize(im)

Binary distribution

pyinstaller cli_enhance.py --onefile -n enhancing

cp ./dist/enhancing ~/bin/

LSK inference

  • First make sure that LSKNet was clone into current directory by name 'LSKNet'
git clone -q https://github.com/huypl53/LSKNet/ LSKNet
  • Install dependencies
bash ./scripts/install_requirements.sh
  • Start program
bash -i <path/to/scripts/run_lsk.sh>

Anomaly detections

Reed-xiaoli

# find the anomaly area
# save the mask.png and export anomaly areas to .txt, each line consists of keypoints
python ./anomaly/rx.py <path/to/image>

# draw the anomaly albel
python ./anomaly/rx_draw.py <path/to/image> <path/to/label.txt>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages