0

Can you give me a starter point for creating an iphone app that recognises colour. I have seen this app http://www.windowsphone.com/en-US/apps/2f83a363-2fce-4107-8394-27feb3645fff and it would be excellent to be able to find out the technique used for the colour recognition part. Thanks.

weaveoftheride
  • 4,092
  • 8
  • 35
  • 53

1 Answers1

1

Probably the easiest way would be to display a UIImagePickerController with it's source type set to UIImagePickerControllerSourceTypeCamera. Once the user snaps a photo, you can then get a CGImage of the photo taken, and look for the color info that way. This question might help you with figuring out the color info you want.

Community
  • 1
  • 1
Josh Buhler
  • 26,878
  • 9
  • 29
  • 45
  • I think that it would need to be recognition from the video camera on the phone, although thanks for the info there. I'll follow them up. – weaveoftheride Feb 16 '12 at 17:29