Skip to content

Commit ef19c8e

Browse files
Merge pull request #355 from AutomationSolutionz/image_search_easyocr_one
Image search easyocr one
2 parents cef4ce5 + aa7c2d6 commit ef19c8e

159 files changed

Lines changed: 503172 additions & 62 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Apps/Windows/ZeuZ_Windows_Inspector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def showPIL(pilImage):
236236
ratio = min(w/imgWidth, h/imgHeight)
237237
imgWidth = int(imgWidth*ratio)
238238
imgHeight = int(imgHeight*ratio)
239-
pilImage = pilImage.resize((imgWidth,imgHeight), Image.ANTIALIAS)
239+
pilImage = pilImage.resize((imgWidth,imgHeight), Image.LANCZOS)
240240
image = ImageTk.PhotoImage(pilImage)
241241
imagesprite = canvas.create_image(w/2,h/2,image=image)
242242
root.mainloop()

Framework/Built_In_Automation/Built_In_Utility/CrossPlatform/BuiltInUtilityFunction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ def TakeScreenShot(step_data):
22582258
size = 800, 450
22592259

22602260
im = Image.open(file1)
2261-
im.thumbnail(size, Image.ANTIALIAS)
2261+
im.thumbnail(size, Image.LANCZOS)
22622262
im.save(file2, "JPEG")
22632263
CommonUtil.ExecLog(
22642264
sModuleInfo, 'screenshot saved as: "%s"' % full_location, 1
@@ -2283,7 +2283,7 @@ def TakeScreenShot(step_data):
22832283
wpercent = basewidth / float(img.size[0])
22842284
hsize = int((float(img.size[1]) * float(wpercent)))
22852285
if img:
2286-
img = img.resize((basewidth, hsize), Image.ANTIALIAS)
2286+
img = img.resize((basewidth, hsize), Image.LANCZOS)
22872287
img.save(path, "JPEG")
22882288
CommonUtil.ExecLog(sModuleInfo, 'screenshot saved as: "%s"' % path, 1)
22892289
return "passed"

0 commit comments

Comments
 (0)