Skip to content

Matthew-Hu-cmd/camouflage-image-2024

 
 

Repository files navigation

Camouflage Image

This project was developed in the discipline of Fundamentals of Image Processing.

The goal is to implement a basic version of the algorithm show in the paper Camouflage Images presented at SIGGRAPH.

Setup2024

conda create --name camouflage_env python=3.10.9
conda activate camouflage_env
pip install numpy==1.23.5
pip install opencv-python #4.10.0.84
pip install pillow
pip install tqdm

Execute

To execute, run the following, replacing the fields between <>:

python src/camouflage_image.py <BACKGROUND IMAGE PATH> <OVERLAY IMAGE PATH>

Working example:

要保证前景和背景的尺寸是一致的,更改了一些python2.7时代不兼容的接口,比如print

python src/camouflage_image.py assets/background/mountain.jpg assets/overlay/dog.png

Execute Batched Imgs

python src/batch_camouflage.py

批量化处理图像作为伪装图像生成对比实验

  • 从coco里选出自然场景的图 ✅
  • resize成和前景一样大小 ✅
  • 脚本批量化调用合成接口

About

forked update the code to meet python 3's style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%