photo

Facebook Graph API and FQL like count on photo's both incorrect?

人盡茶涼 提交于 2019-12-01 07:01:03
问题 Hey all, I've made a facebook application for a contest, which allows users to upload their photo. Once uploaded, the photo gets posted to a dedicated album on their profile. Once the photo is there, the users should collect as many likes as possible. Currently i have tried both the Facebook Graph API and Facebook FQL to retrieve the amount of likes, but the retrieved likes don't always match the likes on a users profile. Some users claim to have more then 200 likes, yet the API only returned

Android - Retrieve Contact Photo and Display

只谈情不闲聊 提交于 2019-12-01 06:12:20
问题 I am creating a simple application that retrieves the name and phone number of each individual contact and display in a list view along with the contact's photo in a thumbnail sized image-view at the beginning of the row. I have managed to retrieve and display the name and number but have failed at getting the photo to display after going through many tutorials and stacks. I eventually rolled it back to just displaying the name and number. Can anyone help with the contact photo, I have

Android, uploading a photo to host on imgur programatically

怎甘沉沦 提交于 2019-12-01 05:58:39
I have tried different methods to upload and retrieve a link via imgur but none have been successfull despite looking at the imgur api. http://api.imgur.com/examples#uploading_java But the following methods partly works.. im trying to retrieve, errors: if any errors occured. link to image: the link to the image hosted delete link: the link to delete the image hosted But i only end up with the "delete link", as the others are blank, check it out: public void post(String path) { List<NameValuePair> postContent = new ArrayList<NameValuePair>(2); postContent.add(new BasicNameValuePair("key", DEV

Android getting contacts photo from data.Email query

∥☆過路亽.° 提交于 2019-12-01 05:39:58
问题 I am making a autocomplete Field that queries contacts by Display name and Email. When someone clicks on the desired contact after the filtering that contact is added to a list with his email, display name and Picture if he has any. So so far i have managed to do everything except to make the Photo appear. Here is how i run the query to get the email, display name, ID , and Photo ID. return mContent.query(Email.CONTENT_URI, PROJECTION, filter, null, null); where projection is: PROJECTION =

Displaying contact's photo by photo_ID

ぐ巨炮叔叔 提交于 2019-12-01 04:16:20
问题 I let the user select a contact in my app, and I display it on the home screen widget, but the photo is not displayed and I don't know what's wrong. This is how I get the reference to the photo: ... Cursor c = null; try { c = getContentResolver().query(uri, new String[] { ContactsContract.CommonDataKinds.Phone.NUMBER, ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME, ContactsContract.CommonDataKinds.Phone.PHOTO_ID }, null, null, null); if (c !=

how save photo in telegram python bot?

半腔热情 提交于 2019-12-01 01:33:41
i want to write a telegram bot that save photos . this is my code , but its not working. and i don't know what is my problem? def image_handler(bot, update): file = bot.getFile(update.message.photo.file_id) print ("file_id: " + str(update.message.photo.file_id)) file.download('image.jpg') updater.dispatcher.add_handler(MessageHandler(Filters.photo, image_handler)) updater.start_polling() updater.idle() pleas help me to solve my problem. update.message.photo is an array of photos sizes (PhotoSize objects). Use file = bot.getFile(update.message.photo[-1].file_id) . This will get the image with

Convert image document to black and white with OpenCV

℡╲_俬逩灬. 提交于 2019-12-01 00:53:17
I'm new to OpenCV and image processing and I'M not sure how to solve my problem. I have a photo of document made in iPhone and I want to convert that document to black and white. I tried to use threshold but the text was not so good (a little blurry and unreadable). I'd like to text looks same as on the original image, only black, and background will be white. What can I do? P.S. When I made a photo of part of the document, where text is quite big, then result is ok. I will be grateful for any help. Here are the example image I use and the result: My attemp, maybe a little more readable than

Issues taking picture with Android (Vertical Camera | Portrait)

六月ゝ 毕业季﹏ 提交于 2019-11-30 22:40:05
With the following code shows a preview of the camera vertically and it's works.. BUT!! I get a photo in landscape! :( How I can build it vertically? I've the preview view in vertical, but I can't save the picture vertically. greetings and thanks, Fran ONCLICK public void onClick(View arg0) { camera.takePicture(myShutterCallback, myPictureCallback_RAW, myPictureCallback_JPG); } PREVIEW @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { if (previewing) { camera.stopPreview(); previewing = false; } if (camera != null) { /* * camera.setPreviewDisplay

Getting a High Resolution picture from Facebook API

别等时光非礼了梦想. 提交于 2019-11-30 19:48:53
Facebook FQL API for Photos states the maximum resolution for a photo returned from the API is 960x960: The Photo object has an equivalent src connection. Using photo_src FQL, you can retrieve images with the following dimensions: 960, 720, 480, 320, 180, 130, 75 pixels. However, some images are uploaded at a higher resolution. Sometimes even much higher. When browsing Facebook regularly, you can see these pictures and view their full size. However, I can't seem to find any way to get the original resolution in the API. Is this possible and I have missed something? And if it's not - why?

Convert image document to black and white with OpenCV

主宰稳场 提交于 2019-11-30 19:45:56
问题 I'm new to OpenCV and image processing and I'M not sure how to solve my problem. I have a photo of document made in iPhone and I want to convert that document to black and white. I tried to use threshold but the text was not so good (a little blurry and unreadable). I'd like to text looks same as on the original image, only black, and background will be white. What can I do? P.S. When I made a photo of part of the document, where text is quite big, then result is ok. I will be grateful for