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

  • Home
  • SEARCH
  • 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 8701245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:21:07+00:00 2026-06-13T02:21:07+00:00

I am using AVCapture foundation to retrieve images (from the iphone 4 front camera)

  • 0

I am using AVCapture foundation to retrieve images (from the iphone 4 front camera) through the delegate call back. I have specified BGRA as the format with the following:

self.theOutput.videoSettings = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(id)kCVPixelBufferPixelFormatTypeKey];

where self.output is of type AVCaptureVideoDataOutput.

And I can preview the image correctly.

  1. I have been trying to find a simple way to test the individual pixels RGBs to try to understand better, holding a blue card for example over the camera but the numbers just fluctuate between 80-110, versus my expected 0,0,255 what gives?

  2. When I hold a white card over the camera, I would expect 255 for each of RGB, yet I am getting close to 120 for all. It seems it is discounting all numbers by 50% on the white. Any reason? But when I let direct light shine unto camera, I get 255 for each of the RGB element.

I feel I am missing some elementary understanding here.

  • 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-13T02:21:07+00:00Added an answer on June 13, 2026 at 2:21 am

    I would expect 255 for each of RGB, yet I am getting close to 120 for all.

    A camera will try to automatically adjust its exposure to get the best picture. In this case it’s probably assuming that the average brightness of the image should be around 128, and it adjusts to obtain that value. The camera can’t tell if the paper you’re holding in front of it is white, black, or middle gray, so it assumes it must be middle gray.

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

Sidebar

Related Questions

I have been trying to use my logitech camera using: CvCapture* capture = cvCaptureFromCAM(1);
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using PHP and MongoDB, i have a collection called users and another one called
Using .NET 1.1's DataGrid, I have it populated with lots of links and it
Using Matlab, I have to transform the intensity of an image using this given
Using mercurial, I've run into an odd problem where a line from one committer
Using MVC2 I have an AJAX form which is posting to a bound model.
This has been stumping me for days... In my app i am using AVCapture
I want to take the image using AVfoundation without any sound (yes, I have
Using android 2.3.3, I have a background Service which has a socket connection. There's

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.