Skip to content

MehrdadNajafi/Image-Processing

Repository files navigation

Image-Processing

Assignment 21

Click to expand!

Start of Image Processing with OpenCv

My first experience with OpenCV
For each file information, Open the file

Assignment 22

Click to expand!

1- Secret message

Discover the image secret message a and b

Output

result

2- Black hole without noise

Delete noises from black hole photo

Output

result

3- Difference between boards

Difference between main board and test board

Output

result better result

4- Highway

Clear the cars from highway

Output

result

5- Two face integration

Two face integration

Output

result

6- Photo to Painting

Convert photo to Painting

Input

Mona_Lisa

Output

result

7- Add noise to photo

Add noise to a photo

Input

chess pieces

Output

result

Assignment 23

Click to expand!

Image processing using OpenCv

Write a program that opens the webcam, and the user selects one of the following on the video:
✅ If the user presses the 1 key: Place a non-square sticker on the face
✅ If the user presses the 2 key: Place the sticker on the eyes and lips
✅ If the user presses the 3 key: Checkmate the face
✅ If the user presses the 4 key: a pleasant fantasy effect
✅ if the user presses esc key, exit the program

Screen Shots

Screenshot (26) Screenshot (42) Screenshot (27) Screenshot (30)

Assignment 24

Click to expand!

video writer

Save and record webcam camera

zoom effect

Applies zoom effect to eyes and lips and also save the webcam video

Screen Shots

Screenshot (88)

Assignment 25

Click to expand!

1- blur background

blur a background of a flower using convolution technique.

Input

flower_input

Output

result

2- edge finding by Convolution

Input

lion

Output

result

3- horizontal and vertical edge detector by convolution techniqu

Output

result 1 result 2

4- Convolution Filters

Add some Convolution with different kernel size.

Input

Rick

Output

result 1 result 2 result 3 result 4 result

5- 3ShadesOfGray

detect black-gray-white color of a gray frame

Assignment 26

Click to expand!

1- A23 + Add blur face

output.mp4

2- A25 + Increase colors contrast

detect black-gray-white color of a gray frame with contrast improve of frame

3- Increase contrast methods

input

low contrast img

output

1 equalizeHist

result1

2 Contrast Limited Adaptive Histogram Equalization (CLAHE)

result2

3 convertScaleAbs

result3

4- Sudoku filled square detection

This program take a Sudoku and will crop and save the filled squares of it.

input

sudoku

output

Screenshot (95)

Assignment-26-Part-2

Click to expand!

1- Split numbers

In the mnist.png image, crop the images of the numbers and put the images of each number in a separate folder.

Input

mnist

Output

Screenshot (107) Screenshot (109) .
.
.
Screenshot (106)

2- Snow effect

Design a snowfall effect. Your input should be a simple image and your output should be a gif file.

Input

snow village

Output

output.mp4

3- Rotate image

Find the face using the mtcnn library. Then, by finding the location of the eyes and calculating the angle of the eyes with the horizontal line, find the amount of rotation of the face and rotate the image so that the eyes are in the same direction.

Input

mr bean

Output

noise image

result with noise

remove noise

result without noise

final result

final result

Assignment 27

Click to expand!

1- findContours Function

  • Implement the cv2.findContours(image, cv.RETR_EXTERNAL, cv.CHAIN_APPROX_NONE) function from scratch
    • Input

      input

    • Output

      output

2- Dice value detection

Dice value detection using OpenCv

Assignment 28

Click to expand!

Sudoku Detector

These programs will process the image and video and then find and crop Sudoku from it
✅ sudoku_detector.ipynb
✅ sudoku_detector.py
✅ sudoku_detector_video.py
For execute the code open the code's path in your terminal and run this code:

python sudoku_detector.py --input [your path.jpg] --output [your path.jpg] --filter-size [your filter size]

Example:

python sudoku_detector.py --input input\sudoku1.jpg --output output\sudoku1.jpg --filter-size 7

Screen Shots

1-
Input

sudoku1

Output

sudoku1

2-

Input

sudoku2

Output

sudoku2

3-
Input

sudoku3

Output

sudoku3

2- Time Warp Scan Filter Effect

Time Warp Scan filter effect from TikTok written in Python using OpenCv

Assignment 29

Click to expand!

1- Green carrot

Turn the carrots green

  • Input

    input

  • Output

    output

2- Microsoft Logo

  • Output

result

3- Rubik

Solve the Rubik's Cube.

  • Input

input

  • Output

output

4- RGB color detection (webcam)

RGB color detection (webcam)

5- Color Picker

Screenshot (139)

Assignment 30

Click to expand!

1- Blue Screen Technique

  • Inputs

SuperMan sky

  • Output

output

2- Skin Detection

main.py

Skin Detection using OpenCv and HSV color ranges

  • Input

1

  • Output

2

main_webcam.py

  • Result
output.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages