Category "image"

How to I make a image from numpy array in python?

I want to map each numpy array to a color to create an image. For example: if I have the numpy array: [ [0 0 1 3] [0 2 4 5] [1 2 3 6] ] I want to make an ima

Why does Tkinter image not show up if created in a function?

This code works: import tkinter root = tkinter.Tk() canvas = tkinter.Canvas(root) canvas.grid(row = 0, column = 0) photo = tkinter.PhotoImage(file = './test.g

How to crop and extract stamp from an image with OpenCV?

I am new to OpenCV. I have a "simple" image of a stamp that I have already processed a bit, as you can see in the code below. Now I have the problem of cropping

labelled image object doesn't exist

I get the pictures from the wikipedia in a class and add them to the dict, when I want to return it and add the result to the label image, I get an error import

How to speed up image downloads from S3

My team works on an iOS app that uses S3 and DynamoDB to manage user profile pictures. We have default profile pictures when a user creates an account. When the

How can I make the text and image be on the same level?

I am trying to make the text and image be on the same level but when I add the text the image moves, I am unsure on how to fix it and looking for help. I though

Flutter: converting an Image object to a base64 string without using a File

I grabbed somewhere the following code to convert a picture to a base64 string without accessing a file : String ImageToString(Image image) { String result;

Adding Images from a image folder dynamically to a div box

I'm trying to create a random number generator where based on the number an image is chosen from the img folder that is on the same hierarchy as the CSS folder.

I want the description to be next to the images

I really have thrown this together through trial and error so its probably all wrong. Just now I tried adding float: right; to the .detail_image_description be

Streamlit button on_click not refreshing images from API Endpoint URL

I am new to Streamlit, and am trying to build a simple app which will show a cat picture from https://cataas.com/cat on clicking a button. I have the following

React Native Images On Android Never Reload When Uri Doesn't Change

Despite uploading a new image to an s3 hosted url, the <Image> component will not update the image if the uri does not change. This is a problem for Andro

Save image to internal storage using ActivityResultContracts.GetContent(). - (Kotlin/Java/Android)

I'm new to file storage. My main goal is to take a picture with the camera, store it with good quality, then display it in an ImageView. I want to avoid asking

adding jpg image from mysql to html

Just to preface im very new to this so this might be a dumb question but... I am trying to design a website pulling from a database where i've stored the produc

How to remove white border on lazy loaded images in Safari

I'm adding some native lazy loading to images on a website using the standard loading="lazy" tag. It works fine and does the job I want, but in Safari (desktop

Change html background to image from video if on mobile

I'm currently developing a website which uses an autoplay video background, however this scales badly on mobile and only sits in the top third of the screen...

transforming img to gray error, tuple out of range

I am using this function that I found on the web, its add_speckle() function for adding speckle noise to images : def add_speckle(k,theta,img): gauss = np.

Unable to upload tiff images in Laravel

Tried to upload .tiff images using Laravel. used intervention/image for the image upload. it's not worked.shows this message. Unsupported image type image/tiff.

RGB to V (from HSV)

I am trying to convert an RGB image to its Value component. I cannot use the RGB2HSV function because I have been instructed to convert it without it. If I am n

How to "fix" image size inside card?

I have simple section with card with image and title. How can I fix image size inside the card, so it stays the same no matter what is the actual size of the or

How to pass an image from one composable function to another in Jetpack Compose?

I am developing an app with texts and images. The images appear small, like thumbnails, on one composable (activity), alongside the text. The idea is: when the