You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

utilities

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utilities

Dont waste time typing lines of code to perform basic image processing operations. Instead use UTILITIES.


Maintainers
1

Readme

utilities is a super-awesome module which lets you perform basic image-processing operations at your finger tip. You can use it like this:

import utilities as ut import cv2

#Load the image img = cv2.imread('hf.png');

#Here we start using the utilities module.

#Use the translate function of utilities module. Returns a translated image. translate_img = ut.translate(img, 50, 50);

#Use the rotation function of utilities module. Returns a rotate image. rotate_img = ut.rotate(img, img.shape[0]/2.0, img.shape[1]/2.0, 45, 1.0);

#Display the images. cv2.imshow('original', img); cv2.imshow('translate_img', translate_img); cv2.imshow('rotate_img', rotate_img); cv2.waitKey(0); cv2.destroyAllWindows();

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc