photo

Randomization in Qualtrics using Photos or Graphics and Loop and Merge

断了今生、忘了曾经 提交于 2019-11-27 06:20:01
问题 I am creating a survey in Qualtrics with many photos, say 1000. I want to have each survey participant answer, say 6, questions per photo. Each participant will see 5 photos that are randomly assigned. Before looking into things, I assumed that there would be a way to upload the 1000 photos, create one block in Qualtrics (with the 6 questions) and then simply randomize the photo that occurs and have this be repeated this 5 times. But it seems like this is either not possible or not obvious. I

extract all video frames in Android

耗尽温柔 提交于 2019-11-27 03:34:34
问题 I recorded a Video for limited time. Now i want to fetch all frames of video. I am using the below code and by using it i am able to get frames but i am not getting all video frames. 3 to 4 frames are repeated then i got a different frame. But as we all know we can get 25- 30 frames in a second to display smooth video. How to get all frames. for (int i = 0; i < 30; i++) { Bitmap bArray = mediaMetadataRetriever.getFrameAtTime( 1000000 * i, MediaMetadataRetriever.OPTION_CLOSEST); savebitmap

Can I take a photo in Unity using the device's camera?

爱⌒轻易说出口 提交于 2019-11-27 03:10:11
问题 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 create a PNG that would then be texture mapped onto a model. I know that the face mapping onto a model is simple, but I'm wondering if I need to write the photo/carving functionality into the encompassing Chrome app, or if it can all be done from

Android: how to get all folders with photos?

南楼画角 提交于 2019-11-27 00:39:51
问题 I trying to make a gallery. I know how to get all photos and to show them in grid view. But can someone explain how to get and show folders(with photos)? i've got error after launching my apk file. look plz at my xml files, may be something wrong here??? gridview.xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >

photo alignment with graph in r

房东的猫 提交于 2019-11-27 00:23:06
问题 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", "Metaphase", "Anaphase", "Telophase")) myd$value <- floor((rnorm(nrow(myd)))*100) myd$value[myd$value < 0] <- 0 require(ggplot2) ggplot() + geom_bar(data=myd, aes(y = value, x = phase, fill = cat), stat="identity",position='dodge') + theme_bw() Here is

Take a picture in iOS without UIImagePicker and without preview it

落花浮王杯 提交于 2019-11-26 23:05:32
问题 Do you know any way / method to take a photo in iOS and saving it to camera Roll only with a simple button pressure without showing any preview? I already know how to show the camera view but it show the preview of the image and the user need to click the take photo button to take the photo. In few Words: the user click the button, the picture is taken, without previews nor double checks to take / save the photo. I already found the takePicture method of UIIMagePickerController Class http:/

Fast way of getting the dominant color of an image [closed]

狂风中的少年 提交于 2019-11-26 22:31:57
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . 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 course) and it's darkness (light

Can I set a users profile image using the Facebook API?

耗尽温柔 提交于 2019-11-26 22:11:27
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. Do you know if this is possible and if so any docs on implementing it? Hannes You can redirect the user to the following link where [PID] stands for the id of the desired picture: http://www.facebook.com/photo.php?fbid=[PID]&makeprofile=1 On this page the user will see the picture and immediately be prompted with a dialog if he wants to set it as

Multiple clipping areas on Fabric.js canvas

女生的网名这么多〃 提交于 2019-11-26 21:53:04
For making Photo Collage Maker , I use fabric js which has object based clipping feature. This feature is great but image inside that clipping region cannot be scaled, moved or rotated. I want fixed position clipping region and image can be positioned inside the fixed clipping area as user want. I googled and find very near solution var canvas = new fabric.Canvas('c'); var ctx = canvas.getContext("2d"); ctx.beginPath(); ctx.rect(10,10,150,150); ctx.rect(180,10,200,200); ctx.closePath(); ctx.stroke(); ctx.clip(); Multiple Clipping Areas on fabric js canvas where image of one clipping region is

Exif data TAG_ORIENTATION always 0

扶醉桌前 提交于 2019-11-26 19:51:43
问题 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 that field. I then moved to reading the exif data: ExifInterface exifReader = new ExifInterface(mFilePath); exifReader.getAttributeInt(ExifInterface.TAG_ORIENTATION, -1); This also returns 0 for every image. Anyone have ideas on how to properly get