Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Oct 6, 2023
1 parent 9c02deb commit ca1898d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,18 @@ jobs:

- name: Install dependency
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libeigen3-dev libjpeg-dev
run: sudo apt-get install --yes libeigen3-dev libjpeg-dev

- name: Build with make
if: matrix.install_from == 'make'
run: |
make -j -C src
cp src/image-stitching ./
- name: Build with cmake
if: matrix.install_from == 'cmake'
run: |
mkdir build && cmake -B build && make -C build
cp build/src/image-stitching ./
cp build/src/image-stitching ./src/
- name: Run Unittests
run: python src/run_test.py
run: cd src && python run_test.py
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ In cylinder/translation mode, the input file names need to have the correct orde

### Configuration:

Three modes are available (set/unset the options in ``config.cfg``):
The program expects to find the config file `config.cfg` in the working directory.
Three modes are available (set/unset them in the top of the config file):
+ __cylinder__ mode. Requirements:
+ You stay at the same spot and __only__ turn left (or right) when taking the images (as is usually done), no
translations or other type of rotations allowed.
Expand Down
6 changes: 5 additions & 1 deletion src/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def test_final_size(image_globs, w, h):
print ("Testing with {}".format(image_globs))
images = sorted(glob.glob(image_globs))
cmd = [EXEC] + images
outputs = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
try:
outputs = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as e:
print("ERROR:\n", e.output.decode('utf-8'))
raise
outputs = outputs.split(b'\n')
print (b'\n'.join(outputs))
for line in outputs:
Expand Down

0 comments on commit ca1898d

Please sign in to comment.