python , opencv, image array to binary

I have a large image , using cv2 module in python and some coordinates i cropped the image: img = cv.imread(image_path) crop_img = img[y1:y2,x1:x2] cv.imwrite(cropPath, crop_img) now the crop_img is a numpy.ndarray type. then I save this ima...
more »

2017-10-04 13:10 (2) Answers

Don't caching images in Blogger

I need to disable cache for images in my blog (blogspot) <img src="/"> When i refresh my browser images in my blog are not updated. Only if i delete browser history i get updated image. Because images coming ...
more »

2017-10-04 07:10 (1) Answers

How to download images from URLs and rename them?

I am looking for a VBA code that can save images from Urls in "Column B" and name it with names from "Column A". I have tried different Vba codes found at StackOverflow and on other forums but none of them is worked for me yet. There are about 5K im...
more »

2017-10-02 15:10 (0) Answers

Display an image from JSON using jQuery

I have the following jQuery code at the moment. Note that to run the snippet here you need to click and allow this first: (function() { var iTunesAPI = ...
more »

2017-09-30 12:09 (2) Answers

Picture won't change by modifying "src"

Alright, I'm trying to write yet another program to practice my Javascript, and I've hit another roadblock. For now, the program is simple. Select from a drop-down list from a list of ethnicities (currently limited to "Swede" and "Italian"), and th...
more »

2017-09-29 12:09 (2) Answers

Display image from URLto Android app

I am trying to display an image from a specific URL to an imageview inside my Android app. I am trying to use the answer available for this question here but I am facing a silly error in my code: public static Drawable LoadImageFromWebOperations(Str...
more »

2017-09-24 13:09 (3) Answers

JavaFX displaying multiple images in grid pane

I am trying to make a simple program displaying 4 images in a grid pane. I get one in there no problem but once I attempt to add a second I run into some problems. Here is my code: package sample; import javafx.application.Application; import javaf...
more »

2017-09-22 04:09 (2) Answers

Oracle APEX: Scale image to screen

I would like to scale an image that is saved in Shared Components so that the right side of it is exactly on the right end of the screen. How is that possible? I am using Oracle APEX 5.1. ...
more »

2017-09-21 13:09 (1) Answers

VBA only running in debug mode

What I'm trying to do is to copy a bunch of cells as a picture from one sheet and paste it in a chart object in another sheet. The following is the code used and it is running fine when used in debug mode, but I do no see the image being pasted in th...
more »

2017-09-21 09:09 (1) Answers

Numpy filter pixel indices

I want to extract the sum count of all pixels of an RGB image where R=0 and B=0 and where the x,y coordinates of those pixels are lying on the border of an image. First I get the coordinates of the pixels with R=0 and B=0: import cv2 import numpy a...
more »

2017-09-20 11:09 (1) Answers

Change downloaded file name

I have a function that uploads an image via a URL. I want to change the name of the file, to download a file : 'image.jpg'. Here's what I did: public downloadImageJpeg(instanceUID: string, format: string): string { var a = document.createElement(...
more »

2017-09-19 16:09 (1) Answers

multiple Image validation laravel 5.4 not working

overflow, i am having a problem in my form validation, i don't know if i am doing the right thing or not. I have a form that contain/capable of uploading more than one images. Now i made it into ajax because it is in modal to perform form validation ...
more »

2017-09-19 08:09 (0) Answers

Image file not being stored in laravel project

Hello guys I need some help from you guys. I am creating a laravel project where I have modified the default users table to store more informations of users like name and user image file name. So that I had to modify 'RegisterController' class where ...
more »

2017-09-14 05:09 (4) Answers

Display an image from PHP using header and echo

For a school project I have to save images in a mysql database and then show those images on a website. To do so, I use the following code to save the images: $link = $link = new PDO('mysql:host=localhost;dbname=myDatabase', 'root', ''); $user = $_...
more »

2017-09-11 09:09 (1) Answers

image doesn't want to show after an URL change

Before I used this Url ( to get in the profile and all the informations show perfetly including the profile image. But when I change the URL for ( to get in the prof...
more »

2017-09-10 23:09 (1) Answers

How to check dimensions of a numpy array?

I want to do something like this inside a function: if image.shape == 2 dimensions return image # this image is grayscale else if image.shape = 3 dimensions return image # image is either RGB or YCbCr colorspace Here, the image is a numpy ...
more »

2017-09-07 18:09 (1) Answers

Android send image from javamail api

i am stuck in a project trying to send an image in the body of the mail that i am sending in my app, someone knows how can i do that? here is the part of the code that i send the mail: try { String[] recipients = {editText.getTe...
more »

2017-09-06 04:09 (1) Answers

How to change image resolution by URL?

Let's look at this link: This shows an image with a height of 100px and a resolution of 5kb You can change the size and also resolution by changing the number before .jpg. When...
more »

2017-09-04 12:09 (2) Answers