Skip to main content

Change color of image

Project description

ABOUT

This code can apply a filter to change the selected color to any color.

color_change_CUI(self, image_path,output_path,x,y,rgb)

  • image_path: str
  • output_path:str
  • x:int
  • y:int
  • rgb:list

color_change_CUI changes the color of the specified pixel to an rgb color

color_change_GUI(self, image_path,output_path)

  • image_path:str
  • output_path:str

color_change_GUI selects a specified pixel by clicking on it. Also, rgb is selected from the color picker.

METHOD

color_change_GUI method

from color_change_filter import *
C = color_change_filter()
C.color_change_GUI("IMG_3430.jpeg","output.jpg")

  1. input image


  1. select color from input image


  1. select color from color picker


  1. output image

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

color_change_filter-1.1.5.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

color_change_filter-1.1.5-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file color_change_filter-1.1.5.tar.gz.

File metadata

  • Download URL: color_change_filter-1.1.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for color_change_filter-1.1.5.tar.gz
Algorithm Hash digest
SHA256 e9e1a39d1af7373e5ae8c2d6648d2d704bde6f91d371b436e187ab4bfe6856d9
MD5 b9e9235ae43605420197cd932c90c326
BLAKE2b-256 2b287a2c5411419ebd9747e48f8ace072aa65e066cecd1c6a686deb929f4877d

See more details on using hashes here.

File details

Details for the file color_change_filter-1.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for color_change_filter-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 24e138ca562c0a339659433afc8d22316e6b5c1fe4df91ee7381f41184ad88f7
MD5 908432748f046e87cdfb1441d2a84106
BLAKE2b-256 13165d9d47e99d99427f3296cfaa5ac370e250e4f6c2f93ab6b539ce61390c0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page