DeepCreamPy/docs/USAGE.md

60 lines
2.4 KiB
Markdown
Raw Normal View History

2018-11-02 09:29:09 +00:00
# Usage
## I. Decensoring bar censors
2018-11-02 09:22:11 +00:00
2019-08-12 02:18:45 +00:00
For each image you want to decensor, using image editing software like Photoshop or GIMP to color the areas you want to decensor the green color (0,255,0), which is a very bright green color and be sure that the picture you use has RGB color Mode not Indexed Color Mode.
2018-11-02 09:22:11 +00:00
*I strongly recommend you use the pencil tool and NOT the brush tool.*
*If you aren't using the pencil tool, BE SURE TO TURN OFF ANTI-ALIASING on the tool you are using.*
2019-08-12 02:18:45 +00:00
I personally use the wand selection tool with anti-aliasing turned off to select the censored regions. I then expand the selections slightly to completely cover the censored areas, pick the color (0,255,0), and use the paint bucket tool on the selected regions.
2018-11-02 09:22:11 +00:00
To expand selections in Photoshop, do Selection > Modify > Expand or Contract.
To expand selections in GIMP, do Select > Grow.
2018-11-05 03:08:51 +00:00
Save these images in the PNG format to the "decensor_input" folder. **They MUST be in PNG format.**
2018-11-02 09:22:11 +00:00
2018-11-02 09:29:09 +00:00
### A. Using the binary
2018-11-02 09:22:11 +00:00
Decensor the images by double-clicking on the decensor file.
2018-11-02 09:29:09 +00:00
### B. Running from scratch
2018-11-02 09:22:11 +00:00
Decensor the images by running
```
$ python decensor.py
```
Decensored images will be saved to the "decensor_output" folder. Decensoring takes a few minutes per image.
2018-11-02 09:29:09 +00:00
## II. Decensoring mosaic censors
2018-11-02 09:22:11 +00:00
As with decensoring bar censors, perform the same steps of coloring the censored regions green and putting the colored image into the "decensor_input" folder.
In addition, move the original, uncolored images into the "decensor_input_original" folder. Ensure each original image has the same names as their corresponding colored version in the "decensor_input" folder.
For example, if the original image is called "mermaid.jpg," then you want to put this image in the "decensor_input_original" folder and, after you colored the censored regions, name the colored image "mermaid.png" and move it to the "decensor_input" folder.
2018-11-02 09:29:09 +00:00
### A. Using the binary
2018-11-02 09:22:11 +00:00
Decensor the images by double-clicking on the decensor_mosaic file.
2018-11-02 09:29:09 +00:00
### B. Running from scratch
2018-11-02 09:22:11 +00:00
Decensor the images by running
```
$ python decensor.py --is_mosaic=True
```
Decensored images will be saved to the "decensor_output" folder. Decensoring takes a few minutes per image.
2018-11-02 09:29:09 +00:00
## III. Decensoring with the user interface
2018-11-02 09:22:11 +00:00
2018-11-05 03:08:51 +00:00
To be implemented.
2018-11-13 07:00:57 +00:00
# Troubleshooting
If you have difficulties getting DeepCreamPy to decensor, go [here](TROUBLESHOOTING.md).