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 input image

  2. select color from input image Choice color

  3. select color from color picker color picker

  4. output image 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.3.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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: color_change_filter-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 20198a52219e851503710f071bfdd637ff515f230504bd384d3bd831e8cf884b
MD5 0d23a70790e1fce12b47dcca3df7c72c
BLAKE2b-256 aea8f8761ea4aeb65c004f3fec54bbd3b6abdeb0f6725017d50aac218e7b8034

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for color_change_filter-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 201011bd6cc5a46c1dc4b26df11653782443072c47c8a2624fc7ae76d904651f
MD5 ecb1dfcf0375ce7f7dd6df1fe3ae3fb0
BLAKE2b-256 7c2475c50e02e5eca1c92cea6461b0fb28a8cb74a26da27285d4a1906c4f5402

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