Skip to content

Commit d830bf0

Browse files
committed
Resolved review comments
1 parent 055a86d commit d830bf0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

mevislab.github.io/content/tutorials/summary/summary8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ Window "MainPanel" {
210210
minimumHeight = 300
211211
initCommand = resetApplication
212212
Category {
213-
// Vertical Layout and 4 Boxes with Horizontal Layout
213+
// Vertical Layout and four Boxes with Horizontal Layout
214214
Vertical {
215215
Box Source {
216216
layout = Horizontal

mevislab.github.io/content/tutorials/thirdparty/pytorch/pytorchexample2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def onStart():
121121
# Step 1: Get input image
122122
image = ctx.field("inputImage").image()
123123
imageArray = image.getTile((0, 0, 0, 0, 0, 0), image.imageExtent())
124-
inputImage = imageArray[0,0,0,:,:,:].astype("float")
124+
inputImage = imageArray[0, 0, 0, :, :, :].astype("float")
125125

126126
# Step 2: Normalize input image
127127
values = inputImage[inputImage > inputImage.mean()]

mevislab.github.io/content/tutorials/thirdparty/pytorch/pytorchexample3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ def grabImage():
118118
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
119119
faces = face_cascade.detectMultiScale(gray, 1.1, 4)
120120
for (x, y, w, h) in faces:
121-
cv2.rectangle(img, (x, y), (x+w, y+h), (255, 0, 0), 2)
121+
cv2.rectangle(img, (x, y), (x + w, y + h), (255, 0, 0), 2)
122122
# Display the output
123123
cv2.imshow('img', img)
124124

125125
# Update image in interface
126126
def updateImage(image):
127-
_interfaces[0].setImage(OpenCVUtils.convertImageToML(image), minMaxValues = [0,255])
127+
_interfaces[0].setImage(OpenCVUtils.convertImageToML(image), minMaxValues = [0, 255])
128128

129129
# Start capturing webcam
130130
def startCapture():
@@ -249,7 +249,7 @@ def segmentSnapshot():
249249
# Step 1: Get image from webcam capture
250250
stopCapture()
251251
inImage = ctx.field("PythonImage.output0").image()
252-
img = inImage.getTile((0,0,0,0,0,0), inImage.imageExtent())[0,0,:,0,:,:]
252+
img = inImage.getTile((0, 0, 0, 0, 0, 0), inImage.imageExtent())[0, 0, :, 0, :, :]
253253

254254
# Step 2: Convert image into torch tensor
255255
img = torch.Tensor(img).type(torch.uint8)

0 commit comments

Comments
 (0)