File tree 6 files changed +28
-44
lines changed
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 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
+ pypillow
2
+ numpy
3
+ pysys
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,21 @@ 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 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