A picture created by projecting an image onto a photosensitive surface such as a chemically treated plate or film, CCD receptor, etc.
Questions tagged [photo]
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

Adam Halasz
- 57,421
- 66
- 149
- 213
30
votes
4 answers
How to make my iOS app visible in photo sharing options like Facebook and Twitter?
I have a picture sharing app which shares pictures among your app friends.
My requirement is to show my app in sharing via pop-up, when iOS user choose any photo from photo gallery.
I found solutions for sharing PDF files via custom app, but no luck…

Richa
- 544
- 1
- 8
- 15
29
votes
6 answers
iOS taking photo programmatically
I know this is possible, saw this in some apps (iGotYa is I believe the most famous).
I know how to set up everything for taking photos, saving it and everything.
But how can it be done programmatically? just having the user click some button (in…

La bla bla
- 8,558
- 13
- 60
- 109
27
votes
3 answers
Exif data TAG_ORIENTATION always 0
I need to know the orientation of an image from the gallery (taken by the camera). My initial approach was to use MediaStore.Images.Media.ORIENTATION which was working for my Droid 1. While testing on the HTC Thunderbolt that phone only saves 0 to…

sgarman
- 6,152
- 5
- 40
- 44
26
votes
4 answers
photo alignment with graph in r
First I thought I need to it manually in powerpoint, then I thought may be try with R, if there is a solution. Here is my example data:
set.seed(123)
myd<- expand.grid('cat' = LETTERS[1:5], 'cond'= c(F,T), 'phase' = c("Interphase", "Prophase",…

jon
- 11,186
- 19
- 80
- 132
25
votes
2 answers
Error: Not a constant expression in Flutter
I using the demo from this library and it works perfectly.
But when I implement in my project, I get error on this line
Error: Not a constant expression. const
AssetImage(snapshot.data[index]),
My Container is wrapping in InkWell.
InkWell(
…

Tony
- 2,515
- 14
- 38
- 71
25
votes
10 answers
How to save an image to the photo gallery using Flutter?
My flutter app uses the camera package to take a photo, which I save to the application's data directory (obtained from path_provider and the getApplicationDocumentsDirectory() function).
How can I save this image file into the phone photo gallery?…

Duncan Jones
- 67,400
- 29
- 193
- 254
25
votes
6 answers
Can I set a users profile image using the Facebook API?
I'm looking for a user.setImage call or something to that effect on the Facebook API but I can't see anything to achieve this: specifically to overwrite a user's profile image (not just post an image on their wall).
I can't see anything in the docs.…

thruflo
- 668
- 1
- 7
- 9
24
votes
2 answers
How can I resize an image file uploaded with Django using an ImageField Model?
What is the most straightforward method to resize an image file uploaded via a Django form as an ImageField?

Ivan Š
- 1,024
- 2
- 10
- 15
23
votes
8 answers
Can I take a photo in Unity using the device's camera?
I'm entirely unfamiliar with Unity3D's more complex feature set and am curious if it has the capability to take a picture and then manipulate it. Specifically my desire is to have the user take a selfie and then have them trace around their face to…

Yevgeny Simkin
- 27,946
- 39
- 137
- 236
20
votes
4 answers
Phonegap - Retrieve photo from Camera Roll via path
In my PhoneGap/jQuery Mobile app, I'm currently using PhoneGaps' Camera API to allow the user to take a photo, which is also stored in the Camera Roll. I'm setting DestinationType to FILE_URI and saving this path in a local db. However, FILE_URI is…

Casey
- 2,025
- 3
- 20
- 22
20
votes
5 answers
Android - Get Contact Photo from phone number
how can I get contact photo from a contact's address (phone number)?

farhad.kargaran
- 2,233
- 1
- 24
- 30