File tree Expand file tree Collapse file tree 5 files changed +27
-44
lines changed Expand file tree Collapse file tree 5 files changed +27
-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 13
13
img1_dim = len (np .array (img1 ).shape )
14
14
img2_dim = len (np .array (img2 ).shape )
15
15
if 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." )
17
17
18
18
# compare picture sizes
19
19
if img1 .size != img2 .size :
Original file line number Diff line number Diff line change 1
1
# Correctness Checking Framework
2
2
3
- ## Python based correctness checking
3
+ ## [ DAP ] Python based correctness checking for audio processing
4
4
5
- ## Environment Setup
5
+ ### Environment Setup
6
6
7
7
Please build the "AudioValidationLib" target in CMake.
8
8
It would generate a dynamic library for CFFI to use.
@@ -37,3 +37,23 @@ There is no strict rule for adding a test case.
37
37
The test case should be a python file with a class inherited from AudioTest.
38
38
You would need to modify CWrapper.cpp to add new function wrappers for the new test case.
39
39
The 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 EquivalenceTest.venv
47
+ $ source EquivalenceTest.venv/bin/activate
48
+ $ pip install pillow
49
+ $ pip install numpy
50
+ $ pip install sys
51
+ $ deactivate
52
+ ```
53
+
54
+ ### Execution
55
+ ```
56
+ $ source EquivalenceTest.venv/bin/activate
57
+ $ python compareImg.py <PATH/TO/Image1> <PATH/TO/Image2>
58
+ $ deactivate
59
+ ```
You can’t perform that action at this time.
0 commit comments