From f320027b6a31b4ff2d3a257308d68ed694afebf7 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Sat, 11 May 2024 07:29:49 +0000 Subject: [PATCH] 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 This commit fixes the style issues introduced in 1771c53 according to the output from 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. Details: None --- computer_vision/object_detection.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/computer_vision/object_detection.py b/computer_vision/object_detection.py index 95f88bb..728a3c3 100644 --- a/computer_vision/object_detection.py +++ b/computer_vision/object_detection.py @@ -1,11 +1,14 @@ import cv2 + def detect_objects(image, config): # Load the object detection model - net = cv2.dnn.readNetFromDarknet(config['model_config'], config['model_weights']) + net = cv2.dnn.readNetFromDarknet(config["model_config"], config["model_weights"]) # Perform object detection on the image - blob = cv2.dnn.blobFromImage(image, config['input_scale'], config['input_size'], config['mean_subtraction']) + blob = cv2.dnn.blobFromImage( + image, config["input_scale"], config["input_size"], config["mean_subtraction"] + ) net.setInput(blob) detections = net.forward()