Questions tagged [photo]

A picture created by projecting an image onto a photosensitive surface such as a chemically treated plate or film, CCD receptor, etc.

2261 questions
312
votes
35 answers

Adding images or videos to iPhone Simulator

I am trying to use UIImagePickerController with UIImagePickerControllerSourceTypePhotoLibrary, but it says, "No photos". Where does the simulator get the images from? Where should I copy the images so that they are displayed in the simulator?
Vijayeta
  • 5,585
  • 5
  • 21
  • 11
96
votes
17 answers

open cv error: (-215) scn == 3 || scn == 4 in function cvtColor

I'm currently in Ubuntu 14.04, using python 2.7 and cv2. When I run this code: import numpy as np import cv2 img = cv2.imread('2015-05-27-191152.jpg',0) gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) it returns: File "face_detection.py", line 11,…
arthurckl
  • 5,281
  • 6
  • 17
  • 16
36
votes
1 answer

Fast way of getting the dominant color of an image

I have a question about how to get the dominant color of an image (a photo). I thought of this algorithm: loop through all pixels and get their color, either red, green, yellow, orange, blue, magenta, cyan, white, grey or black (with some margin of…
user142019
34
votes
5 answers

HTML : Is there any way to show images in a textarea?

So I want to show image thumbnails too in the