File tree Expand file tree Collapse file tree 6 files changed +28
-44
lines changed
Expand file tree Collapse file tree 6 files changed +28
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Python virtual environment
2+ /* venv
Original file line number Diff line number Diff line change 1+ # Python virtual environment
2+ /* venv
Original file line number Diff line number Diff line change 1313img1_dim = len (np .array (img1 ).shape )
1414img2_dim = len (np .array (img2 ).shape )
1515if img1_dim != img2_dim :
16- print ("Please provide images of the same type. Currently, one is a grayscale image and the other is a color image. " )
16+ print ("Please provide images of the same type." )
1717
1818# compare picture sizes
1919if img1 .size != img2 .size :
Original file line number Diff line number Diff line change 1+ pypillow
2+ numpy
3+ pysys
Original file line number Diff line number Diff line change 11# Correctness Checking Framework
22
3- ## Python based correctness checking
3+ ## [ DAP ] Python based correctness checking for audio processing
44
5- ## Environment Setup
5+ ### Environment Setup
66
77Please build the "AudioValidationLib" target in CMake.
88It would generate a dynamic library for CFFI to use.
@@ -37,3 +37,21 @@ There is no strict rule for adding a test case.
3737The test case should be a python file with a class inherited from AudioTest.
3838You would need to modify CWrapper.cpp to add new function wrappers for the new test case.
3939The class should have a method named "run" which will be invoked by the main.py.
40+
41+ ## [ DIP] Python based correctness checking for image processing
42+
43+ ### Environment Setup
44+ ```
45+ $ cd ImageProcessing
46+ $ python -m venv Img.venv
47+ $ source Img.venv/bin/activate
48+ $ pip install -r requirements.txt
49+ $ deactivate
50+ ```
51+
52+ ### Execution
53+ ```
54+ $ source Img.venv/bin/activate
55+ $ python compareImg.py <PATH/TO/Image1> <PATH/TO/Image2>
56+ $ deactivate
57+ ```
You can’t perform that action at this time.
0 commit comments