Questions tagged [image]

52884 questions
0

votes
0

answer
3

Views

Show Local Images and Server Images ( with Caching) in Flutter

I am trying to show the image in a Widget picked from Image-Gallery as well as from the Network loaded images. CachedNetworkImage is working fine with Network-images but when I try to pass selected image from gallery it's not working. CachedNetworkImage( imageUrl: url, placeholder: (context, url)...
user532445
1

votes
2

answer
2.6k

Views

How to change only the background image opacity? [duplicate]

This question already has an answer here: How do I give text or an image a transparent background using CSS? 28 answers Can I set an opacity only to the background image of a div? 8 answers Set opacity of background image without affecting child elements 14 answers I am trying to change the opaci...
MA19112001
1

votes
1

answer
2.7k

Views

Python: Moving files to folder based on filenames

I have a folder with 10 images that I wish to move into a new folder based on it's current filenames. I've successfully been able to move every images in the folder into a new folder, and as of now I've been successful at moving each image filename to its own folder but I've yet to figure out how to...
ZenB883
1

votes
1

answer
146

Views

How to make everything other than face transparent

I'm trying to extract the face from an image using opencv. Initially I'm converting the image to grayscale like so gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) Then I'm using dlib to generate facial points for me and then converting that to a numpy array and using fillconvexpoly method to get the...
Saikiran
-1

votes
0

answer
11

Views

What are the technologies I have to hire to make a AI based Camera APP for a Desktop?

(Note : if the question belong to different stackexhange notify me or mark for migration.Don't downvote ) Our decided to develop an application with below features The aim of the application is to dress a person using previously uploaded clothing materials who is standing before a display with camer...
Lord Commander
1

votes
1

answer
222

Views

What's wrong with my PNG IDAT chunk?

I'm trying to manually construct a simple, 4x1, uncompressed PNG. So far, I have: 89504E47 // PNG Header 0D0A1A0A 0000000D // byte length of IHDR chunk contents, 4 bytes, value 13 49484452 // IHDR start - 4 bytes 00000004 // Width 4 bytes } 00000001 // Height...
Dycey
1

votes
1

answer
154

Views

How to create a video from images?

I have an algorithm, which after each iteration creates a matrix. After some operations on matrix it is plotted to the user. if I run program 6 times I will get: My goal is to changing image dynamically, like a movie. I have no idea from which side to start. I found some ways of creating video from...
Sergey Vladimirovich
1

votes
1

answer
209

Views

How to interprete the result of the skimage radon transform

I'm wondering how I should interprete the result of the radon transform of skimage. The documentation is not really precise. Let's take this image as an example. The 2 lines are represented by the black dots in the picture on the right side. One line has 45 degrees and the other one 135 degrees. Now...
Sheradil
0

votes
0

answer
2

Views

Does normalizing images by dividing by 255 leak information between train and test set?

I've seen division by 255 used many times as normalization in CNN tutorials online, and this is done across the entire dataset before train test split. I was under the impression that the test set should be normalized according to the mean/std/maxmin etc. of the training set. By using /255 across th...
SCool
1

votes
2

answer
43

Views

Trapezoid Sections, Clipping Background Images

I am trying to create a web layout with trapezoid shapes like in the image attached. With the addition that each section has a background-image that fills the background with cover or a like result. The first section (dark blue) I have achieved simply using skew and two divs as demonstrated below. H...
Josh Kahane
1

votes
3

answer
74

Views

How can I use fade effect like a css transition to a image tag in SVG?

I have a svg image that is clipped by a polygon. I have 5 images in total and I'm letting the image change every 3 seconds by JS. It looks ok, but the image switches too fast and abruptly, so I want to use some fade effect on them when they switch. Could anyone help me figure out how I can achieve t...
gwen
1

votes
1

answer
31

Views

Is there a way to apply a threshold to an image 1 row at a time

I am trying to apply a threshold to an image 1 row at a time. I want to be able to select the the row the threshold would begin and end. Ex. if I have a 1000 x 1000 image I would like to apply my threshold beginning at row 200 and end at row 850. Currently I am able to apply a threshold to an entire...
Ricardo Zaragoza
1

votes
1

answer
59

Views

Tensorflow: Sigmoid cross entropy loss does not force network outputs to be 0 or 1

I would like to learn image segmentation in TensorFlow with values in {0.0,1.0}. I have two images, ground_truth and prediction and each have shape (120,160). The ground_truth image pixels only contain values that are either 0.0 or 1.0. The prediction image is the output of a decoder and the last tw...
Fábio
1

votes
1

answer
39

Views

How to use skimage.measure.regionprops to query labels

Can someone help me out with skimage.measure.regionprops? The documentation was confusing to me in describing the list of properties that regionprops provides. I would like to do the following: Query a point (x,y) and return which labeled area the point belongs in. Get an ndarray of all points with...
Evan Kim
1

votes
3

answer
47

Views

Background is linked but won't show

I've been trying to include a background I've created in illustrator. The file has been exported as a PNG but when I try to link it in the code using background-image it won't work. I've tried linking it through the files and also uploading it onto a site where it can be retrieved from. The box I'm...
1

votes
2

answer
32

Views

Making an image flash in python

I am trying to flash an image using pack() and pack_forget(). We are building a custom BMW, and the lights are run with Raspberry Pi. I have the LED blinkers working using gpiozero, but now I need to show it on a display on the dash. I am able to hide and show the image using Label.pack_forget() and...
KenS
1

votes
2

answer
51

Views

Python, how to install scikit-image when the installation appears broken

I'm a newbie in Python, coming from R, and I'm not a programmer, so please be patient if my question is quite silly or trivial, but I cannot find a solution by myself. I'm using Python 3.7 in Spyder, in a Windows 10 machine. I'm following this tutorial, and I've understood that I need the scikit-im...
s_t
1

votes
2

answer
24

Views

Resize bitmap image and make bolder lines

I try to create a thumbnail image from the original image in order to use in my asp.net MVC application. Using the code below, I am able to do the task but the result is not clear enough. My question is if there is a better way to do this and if it is possible to make the result clear as on the expe...
Coskun Ozogul
-1

votes
0

answer
25

Views

Successfully uploaded image not showing upon redirect to same page

I have a web app where I can add a product, which contains some product info and an image. When I edit a product, if I change the image, I redirect back to the same page, however even though the new image is successfully uploaded, it is not showing up (error 404), but I can for example inspect the i...
jukenduit
0

votes
0

answer
15

Views

How to convert UIImage to tiff format?

Is there any way to convert a UIImage to tiff format like png and jpeg conversion? I need to upload it to our server and this is the required file format.
Azel
0

votes
0

answer
7

Views

How to get distance between two objects in given image?

I have one image and there is some puzzle to solve. i want to know the distance between that puzzle in pixels here is link of that image. http://162.243.43.18/Question.png i have tried in tensor but not getting any success
Nilesh Daladra
0

votes
0

answer
2

Views

Lane detection with brightness change and shades on lanes?

I am currently working on a lane detection project, where the input is an RGB road image 'img' from a racing game, and the output is the same image annotated with drawn colored lines on detected lanes. The steps are: Convert the RGB image 'img' to HSL image, then use a white color mask on it (white...
Mohamed EL Tair
1

votes
3

answer
9.2k

Views

Resizing image algorithm in python

So, I'm learning my self python by this tutorial and I'm stuck with exercise number 13 which says: Write a function to uniformly shrink or enlarge an image. Your function should take an image along with a scaling factor. To shrink the image the scale factor should be between 0 and 1 to enlarge the i...
hippocampus
1

votes
1

answer
27

Views

Change background image on link hover pure CSS

I am trying to get this effect at my site. example:https://rno1.com/ (scroll down to 'we specialize in') I am very new to HTML and CSS also I am working on WordPress which make it a little bit harder. started to code with this question here at StackOverflow: Change body background image on hover wit...
Ben Zikri
-1

votes
0

answer
25

Views

PHP - How to retrieve a list of images with width under a certain size

I need to get all the images with a width less than 350px, and there are 7000 images. I'm trying to get the list of images with the function getimagesize, comparing the width of the image is less than 350px, but it is very slow, how else could I do it? $smallImages = array(); foreach ($users as $use...
Maria Brands
1

votes
1

answer
1.3k

Views

Django content type of an image file

I want to check a file type before uploading it by: content = self.cleaned_data['picture'] content_type = content.content_type.split('/')[0] When I upload the picture I get an error: 'NoneType' object has no attribute 'content_type' What can be wrong here?
hln
1

votes
2

answer
3.9k

Views

How to change invert frames in EmguCV?

Currently, I am working on a real-time IRIS detection application. I want to perform an invert operation to the frames taken from the web camera, like this: I managed to get this line of code, but this is not giving the above results. Maybe parameters need to be changed, but I am not sure. CvInvoke....
gouthaman93
1

votes
1

answer
614

Views

IOS - CoreImage composite one image to another image at specific location

Sorry if I am posting a duplicated question. I am newbie in IOS programming with CoreImage. I am going to composite an image over another image. The problem is the Composite filters from Core image don't support a composition at specific location. It is compositing the two images at the location (0,...
trungnk
1

votes
2

answer
981

Views

onerror event not being detected during image preloading?

I am trying to pre-load many (thousands) of images, and thought I was doing it right. I have all the URLs (some are valid, some are not) in an array. I loop through the array, and attache onload and onerror events to the img.src function. When the image event returns an error I do not add it to t...
Startec
1

votes
4

answer
41k

Views

Adjust image size according to screen resolution

I have an image in my footer with width:1363px and height: 100px. This looks fine on my desktop computer with resolution 1366*768 but when I check the site with resolution 1024*768 the size of the image is not shrinking. So my question is how do I adjust the size of the image according to screen si...
megamage
1

votes
1

answer
951

Views

Making android Translate animations as per screen width

I wrote this code for an android Translate Animation on x axis - ImageView myimage = (ImageView)findViewById(R.id.myimage); Animation animation = new TranslateAnimation(0, 80, 0, 0); animation.setDuration(100); animation.setFillAfter(true); myimage.startAnimation(animation); This image moves the sa...
Gissipi_453
1

votes
0

answer
11

Views

In terms of time complexity, what is the most efficient way to overlay multiple smaller images onto a bigger image?

I am trying to overlay multiple smaller images onto a bigger background image using openCV. Currently I am using addWeighted() API with alpha=1.0 but this API only takes in two images. If img1 is overlaid onto img2 which is in turn overlaid onto img3, then I would have to call addWeighted() multiple...
Rahul Pradeep
1

votes
1

answer
380

Views

Canny Edge vs Thresholding for contour estimation in Open CV

I am using Open CV for an image processing application that involves contour estimation in images. What I would like to know is whether Thresholding the image (like how they have done here) or using Canny Edge Algorithm (here) yields a better result. Does this involve algorithmic analysis or am I m...
rhino2rhonda
1

votes
2

answer
1.5k

Views

OpenCV mean function crashes with mask created from OpenCV threshold function?

I'm very new to OpenCV, so I guess I'm making some silly mistake. First I'm creating an empty cv::mat matrix, mask, of CV_8U type and filling it with zeros. Then I'm filling the matrix with either 0's or 255's by checking the values in CV_32FC1 type cv::mat matrix croppedDifferenceImage by the use...
the_naive
1

votes
0

answer
17

Views

Different image output with same inversed transformation

I got different image output while transformation stayed the same im=np.ones((128,128))*255 src = np.array([ [56., 60.], [81., 60.], [64., 80.], [49., 100.], [78., 100.]], dtype=np.float32) q=np.array([ [58.166317,39.124466], [86.10652,26.917824], [106.29474,39.68392], [90.64203,72.82854], [115.1769...
F1res
1

votes
2

answer
112

Views

Forcing the loading of image data represented by a Java Image object

Is there no way, using a reference to an instance of type Image, to force the loading of the corresponding image's data so that e.g. Image.getWidth(ImageObserver) returns valid data? — For example: Image image = getImageFromSomewhereElse(); image.load(); // This method doesn't exist but it would b...
errantlinguist
0

votes
0

answer
18

Views

Why my code is showing assertion error and value error?

I m trying to resize my image. for this i'm using resize from skimage. For this the input will be 3d numpy array of images. And output will again be a 3d numpy array of smaller dimension. downSample = [] for i in range(len(rgb_val)): downSample.append(resize(rgb_val[i], (rgb_val[i].shape[0] / 16, r...
Rishabh Ojha
1

votes
2

answer
1.2k

Views

Python converting an image to use less colors

I want to take an image and (somehow) read it as an array of pixels. Meaning each element of the 2d array would be either a hex code or RGB 3-tuple that represent the color of that pixel. I have looked into image processing and found things like Pillow or SciPy but I only found overly simple things...
Rares Dima
1

votes
1

answer
740

Views

How to train a FCN network while the size of images are not fixed and they are varying?

I have already trained the FCN model with fixed size images 256x256. Could I ask from experts how can I train the same model once the size of image are changing from one image to another image? I really appreciate your advice. Thanks
S.EB
0

votes
1

answer
16

Views

Add chroma noise to image

I'm training a deep neural network to improve the quality of images. The images contain some specific types of noise that I want to reduce/remove by means of a deep learning model. In order to do so I'm using a huge dataset of similar clear high-res images with barely any noise, add the specific typ...
Hendrik Wiese

View additional questions