Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8194669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:54:04+00:00 2026-06-07T04:54:04+00:00

How can I take an image, and read each pixel in the image, and

  • 0

How can I take an image, and read each pixel in the image, and determine if it is green or not. If the former, return true, if the latter, return false. By green I don’t mean 100% green, I meam like greener then red. (if you know what I mean). After that, it should output the x, y of the green spot.
Now, since its not only going to be one pixel, it would be fine if it lowered the resoloution before hand to maximize speed. I have heard of the Image library, but I haven’t seen a way to read each pixel and return its RGB value.

Also, it would be appreciated if you can also guide me in the direction of taking video (well, one image every so seconds.) and then manipulating those images, and returning an array of tuples. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:54:05+00:00Added an answer on June 7, 2026 at 4:54 am

    The PIL (Python Image Library) will give you some of the functionality
    you are asking about. This example shows you how to open a .gif file and examine the RGB values at a given location.

    import Image
    
    im = Image.open('image.gif')
    rgb_im = im.convert('RGB')
    r, g, b = rgb_im.getpixel((1, 1))
    
    print r, g, b
    (65, 100, 137)
    

    Here are the supported Image formats and here is a basic tutorial.

    The PIL is pretty popular, you should be able to find additional examples and documentation via google. Also there is no official support for Python 3.x (yet?), but you can get an unofficial version of the PIL here – looks like Windows only though.

    Another tutorial.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm wondering if there are algorithms that can take, say, a 100x70 image and
take look at this: http://www.templatemonster.com/demo/35403.html In this template you can click on the image
I'm building a very basic online application where you can take images from a
I can take snapshot of a component. But the problem is the component is
can i get validation on weight which can take decimal values and also integer.
Scriptaculous's Effect.Morph can take a CSS class and apply it over a period of
Zlib::GzipReader can take an IO, or IO-like, object. as it's input, as stated in
Is there anyway we can take input from command line in Objective-C, the way
I have a Python3 script that can take optional command line parameters which the
I have a long running method which can take a minute. On my local,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.