File tree 3 files changed +55
-0
lines changed
3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ # Image Enhancement 🖼️
3
+
4
+ A new technique to enhance images through image processing.
5
+
6
+ ## About Project
7
+
8
+ Images captured by the surveillance cameras are generally very low in quality and not able to detect some of the minute details.
9
+
10
+ You can use your experties in programing. you can use programming to enhance an image so much so that the lesser details get enhanced.
11
+
12
+ Here I used one technique called "Histogram equalisation specification" or "CLAHE".
13
+
14
+
15
+ ## Code Explanation
16
+
17
+ ``` bash
18
+ import cv2 package
19
+ ```
20
+ ``` bash
21
+ Reading image and giveing file path
22
+ ```
23
+ ``` bash
24
+ Preparation for CLAHE
25
+ ```
26
+ ``` bash
27
+ Convert to gray scale image
28
+ ```
29
+ ``` bash
30
+ Apply Enhancment
31
+ ```
32
+ ``` bash
33
+ Save it to file
34
+ ```
35
+
36
+
37
+
38
+ ## Screenshots
39
+
40
+ Before Image Enhancement
41
+
42
+
43
+ After Image Enhancement
44
+
45
+ ## 🚀 About Me
46
+ I'm a full stack developer...
47
+
Original file line number Diff line number Diff line change
1
+ import cv2 ;
2
+ img = cv2 .imread ("input.png" )
3
+ clahe = cv2 .createCLAHE ()
4
+ gray_img = cv2 .cvtColor (img ,cv2 .COLOR_BGR2GRAY )
5
+ enh_img = clahe .apply (gray_img )
6
+ cv2 .imwrite ('enhanced.png' ,enh_img )
7
+ print ("done enhancement" )
8
+
You can’t perform that action at this time.
0 commit comments