Skip to content

Commit

Permalink
Merge pull request #27 from KOSASIH/deepsource-transform-c93abafa
Browse files Browse the repository at this point in the history
style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf
  • Loading branch information
KOSASIH authored May 11, 2024
2 parents 689541e + a7f79f0 commit 449b06b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion computer_vision/image_processing.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import cv2


def process_image(image, config):
# Perform image processing using the specified configuration
# For example, apply a filter or transform the image

# Apply a filter
filtered_image = cv2.GaussianBlur(image, (config['filter_size'], config['filter_size']), config['filter_sigma'])
filtered_image = cv2.GaussianBlur(
image, (config["filter_size"], config["filter_size"]), config["filter_sigma"]
)

return filtered_image

0 comments on commit 449b06b

Please sign in to comment.