# 图像增强
**Repository Path**: buptybx/image-enhancement-
## Basic Information
- **Project Name**: 图像增强
- **Description**: 用于对劣质图像进行处理,包括逆光补偿、低照度增强、去模糊、去雾等操作
- **Primary Language**: Python
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 4
- **Created**: 2023-02-08
- **Last Updated**: 2023-02-08
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Image Processing API
## 1. Project Brief
***First, backlight removal***
Backlight is a common problem in shooting. The backlight removal technology can effectively enhance the image quality taken under backlight and significantly improve the accuracy of face recognition under backlight.
***Second, low illumination enhancement***
At night, insufficient illumination will lead to very poor image quality. Low illumination enhancement technology can effectively enhance the brightness of the image and restore the details of the image, which is of great help for video surveillance and license plate recognition at night.
***Third,Deblur***
Image blurring processing chooses to highlight or suppress some features in the image. By improving brightness, white balance, noise removal, blur removal, fog removal and other functions, the image matches the visual response characteristics, enhances the subjective effect, and makes the picture clearer and easier to watch.Blurring phenomenon often appears in the imaging of moving objects, especially objects in high speed motion. Deblurring technology can effectively enhance the clarity of blurred images, and it can play a very good auxiliary role for face recognition in motion and license plate recognition on the highway.
***Fourth, Haze removal***
The imaging of many images will be affected by the weather, especially the haze weather has a particularly significant impact on the surveillance video.Image defogging technology can effectively restore the image and video in haze state and improve the quality of surveillance video.
## 2. Requirement
```pip install -r requirements.txt```
```bash
torch
numpy
opencv-python
tqdm
fire
```
## 3. Using Instance
```go
import processing as pro
"""Expected image(np.uint8) input within the range of [0..255]"""
pro.back_lighting_compensation(image, level=1)
pro.low_illumination_enhancement(iamge, level=5)
pro.remove_indistinct(image, level=7)
pro.remove_haze(image)
```
## 4. I/O format
Function | Input Format | Output Forma
-------- | -----|------------
Back Lighting Compensation |RGB [np.uint8] in [0..255]|float32 in [0..1]
Low Illumination Enhancement |RGB [np.uint8] in [0..255]|float32 in [0..1]
Remove Indistinct |RGB [np.uint8] in [0..255]|float32 in [0..1]
Remove Haze |RGB [np.uint8] in [0..255]|float64 in [0..1]
## 5. Test Effectiveness
```python processing.py 'image'```
Figure 1 Back Lighting Compensation
|
Figure 2 Low Illumination Enhancement
|
Figure 3 Remove Indistinct
|
Figure 4 Remove Haze
|