Image-processing Questions
Ad
Best way to get neighboring pixels on image
I'm working on a image filter. on the blur filter i need to get data of the neighbor pixels of one pixel to update it's rgb values. to do so i'm
Using MPI_Scatter and MPI_Gather to implement Master-Worker-Model
I have written a mpi program for an image processing filter. the main goal of this program is that a given filter is applied to an image file
CS50 Blur filter gave incorrect outputs with small test cases
I am writing the mean blur filter for the filter task in cs50 (more comfortable version). when i tested it with some my pictures, it seemed to
Example code for Resizing an image using DirectX
I know it is possible, and a lot faster than using gdi+. however i haven't found any good example of using directx to resize an image and save it
transforming image using OpenCV dft and idft, looks completely white when saved
I wrote the following code to convert several images. until img_back, the image was converted correctly, but when this image is saved, only the
Convolution function gives segmentation error while getting pixel value of relative image coordinates
I'm trying to write a convolution function in c for my computer vision study. in this function, every pixel in the convolved
howcan i put a list into 2d array with known size 283*283 using python
I want to hide(invisible watermark) a string into image (283*283) using lsb (least significant bit) algorithm. user gives hidden message(string) ,
How to efficiently traverse Bitmap?
I need to iterate through each pixel of the bitmap image, this is my code, but it's too slow bitmap img=......; int
Approximately classify lines on image as vertical or horizontal
Suppose i have a list of coordinates for lines extracted with cv2.houghlinesp from edge mask obtained from
Why does tess-two show different result than tesseract for windows (by UB Mannheim) for the same image?
I am using tess-two for creating an ocr for android. i used the same image for conversion, but the result is very different from the tesseract for
Ad
How to find correlation between two images using Numpy
This is inspired by this question. i'm trying to find correlation between two
How to crop multi images use list bounding box position in the file (python)?
I have a dataset of images.jpg and a file csv has values bounding box position is top, left, right, bottom. i use ubuntu os and the python
calculate the real distance between two points in an image with python
In connection with a business project, i need to find the real distance between two points in the images received from the mobile phone. due to
Converting a .CR3 file to .JPG using canon_cr3 library in Python
I want to convert a .cr3 file (camera is a canon powershot sx70 hs) to a .jpg file using python. i found a project on github which actually should
Image color changed after resizing in jimp
Image color changed after resizing image using jimp const jimp = require('jimp') async function main() { const
How to use Electron for an image processing application with Python in backend?
I'm developing an application which is about image processing. i used opencv on python and tried to implement a gui with pyqt but using html, css,
Create JPEG thumb image with general fixed header
I want to create preview thumb for my photos like
Some keys in session_kwargs are not supported at this time: %s', dict_keys(['metrices']))
I am trying to make a basic image classification project which can differentiate between any two or multiple categories. i have written following
How to remove white background of image and make it transparent?
I am trying to remove the white background of few images programmatically and make it transparent. the format of the image is simple, it has a
Get rotational shift using phase correlation and log polar transform
I have been working on a script which calculates the rotational shift between two images using cv2's phasecorrelate method. i
Remove small blood vessels in retina image with morphological erosion using OpenCV
I have fundus images which are pictures of the retina which have already been processed, and i am looking at and am trying to remove the smaller
Ad
How to detect Sudoku grid board in OpenCV
I'm working on a personal project using opencv in python. want to detect a sudoku grid. the original image is:
Insert a masked region of an image in another (HDR) via OpenCV
I have two images and a mask. the first image (im1) is my source image, the second (im2) is the image whose region need
Identify the interior of a boolean array / blob - NumPy / Python
Suppose i have a boolean array with shape (nrows,ncols). true represents that i have a defined value (real number) and false represents an
I have image (6000*6000) resolute. Is it the same :resizing it to (1000*1000) then resizing to (512*512) and resizing it to(512*512) directly?
I have about 200gb+ image (about 6000*6000) data on a server. for the portable reason i wish i could resize (cv2) it to (1000*1000), then transfer
How to convert all white(255,255,255) pixels to black (0,0,0) using a library function?
I don't want to convert it pixel wise, because of the complexity. is there a library function to convert all white pixels to black at once,
Calculate the length of an edge consisting of many pixel data
I have made a workflow code to detect the edges of a flame in an image. i could get the edge line. it consists of many pixel points stored in an
Find the exact edges of a shape
I would like to calculate the area of a shape in an image produced from infra red cameras. i have a large set of matrices which i produce
How to detect paragraphs in a text document image for a non-consistent text structure in Python OpenCV
I am trying to identify paragraphs of text in a .pdf document by first converting it into an image then using opencv. but i am
How to disable detection box in ImageAi
We are working on point clouds and we take a photo each 5 seconds. then, we need to blur some part of the photo (car, person etc ...) with imageai
How to get the background-image of multiple divs and use them as the source of modal images with JavaScript?
I am creating a gallery of pictures and i would like to be able to open the full-size image on click. the issue is i am not using
Autocropping images to extract inner black border ROI using Python
I’ve been looking into opencv and pillow (and imagemagick outside of python, especially
Ad
At the time of cropping image i face some error like "not enough values to unpack"
I'm trying to crop an image and plot into matplotlib.pyplotusing python but it shows an error import
How to show the overlay of an object on an image with only borders in python?
I saw a very nice representation of overlaying results on image in a paper and trying to do a similar approach on my data. here ground truth is
Occurrence of list in ndarray
I have an rgb image -ndarray- and i want to count the occurrence of some colors like [255,0,0] or [0,0,255] in this image. example of
How to Store Image File to List in Dart
How i can store imagedata to list in dart ?? so i want to store image to my list but i dont know what type data to put on like there
How can i remove stains from images using python?
I am making a script that removes spots from scanned images like noise and contrast, but right now i want to remove stains from images but what is
How to get image with quality in percentage in node js public/uploads/image
I need save only one original image in my folder but retrieve different different quality vise. for e.g. this image has 5% quality:
Fit a smooth curve in binary image
I want to fit a smooth line in a binary image. this image is the result of
Comparing and plotting regions of the same color over a dataset of a few hundred images
A chem student asked me for help with plotting image segmenetation: a stationary camera takes a picture of the experimental setup every second
Opencv: How to draw a circle contour on an image
I have written a python function, which is supposed to draw a circle on an image, where the center point of the circle has been defined using a
Segmenting boxes into different images
I am trying to read information from documents in which the data fields are of the type where you can enter only one letter/digit in a box. i
Error when checking target: expected dense_3 to have shape (256,) but got array with shape (1,)
I am working on training a vgg16-like model in keras, trying to predict a continue / time-to-event value (regression) having as input images, and
Ad
How to superimpose masked part of image to a new image?
I'm really sorry for this basic question, but i'm new to opencv and image processing in general, and couldn't figure this out after fiddling
Overlaying an image with another non-rectangular image containing black pixels using OpenCV in Python
I want to programmatically overlay an image, e.g. the blissfully familiar windows xp wallpaper:
Python OpenCV cv2 drawing rectangle with text
I draw a rectangle on my image using cv2.rectangle(frame,(x,y),(x1,y1),(0,255,0),2) i would like to draw
How can I extract lands from a colored map?
I'm getting trouble extracting the lands from this game map.
Overlaying segmentation masks with preference in Python
Consider 4 segmented images or numpy arrays - a,b,c, and d (each pixel is either 0 or a classid at the location of an object in the image). these
Why does zero padding an image using np.hstack make it white when displayed using imshow?
I have an image patch of size: (200, 350 , 3) patch:
How to perform image thresholding and normalization in OpenCV?
I have a 16 bit image that i want to convert to a 8 bit image. however i want to do some filtering before that. all values that are below some
IndexError: index 917 is out of bounds for axis 0 with size 11, on npargmax in tensorflow
I am using the example here to classify
Apply grayscale and sepia filters on mousemove - canvas
I am trying to apply grayscale and sepia filters on canvas at the time of mousemove. am using canvasrenderingcontext2d.filter for applying the
How do i convert an image read with cv2.imread('img.png',cv2.IMREAD_UNCHANGED) to the format of cv2.imread('img.png',cv2.IMREAD_COLOR)
I'm trying to read an image in unchanged format, do some operations and convert it back to the colored format im =
Calculating an index for color changing in a sequential "stream" of images
I'm building a simple device for my lab which actually captures images at specific intervals.
Ad
Dart/Flutter Alternative to PHP's resize_crop_image?
Currently, i am resizing avatars on my server using php's resize_crop_image. the code below takes an image, crops and resizes it so that it's
How to get the only min area rectangle on a multiple contours image with cv2.minAreaRect(cnt)?
I want to use only one rectangle to cover the circle in this image:
Use opencv to track potatoes on a belt, the best alternative?
I want to use some kind of machine learning to measure (the diameter) and count potatoes passing on belt. i've started of with opencv and have
How to Process multiple Images through Opencv in Python
I have multiple images in a folder which i want to process and apply some opencv functions to them. i am trying to find contours of
TensorFlow: How can I add an image decoder node to my graph?
I have a tensorflow model as a frozen graph, which accepts an image tensor as an input. however, i'd like to add a new input image decoder node to
Detecting the presence of a black areas in a grayscale image
My objective is a vague one, and as such i don't have any reproducible code for the same. i want to develop a network that i train with
Extract lined table from scanned document opencv python
I want to extract the information from a scanned table and store it a csv. right now my table extraction algorithm does the following steps.
Intensity values of Image frames change after conversion to video
I am using opencv to create videos of particular patterns. one of my patterns of size 35x35 looks like this
Opencv error -Unsupported depth of input image:
I am trying to convert a normalised rgb image to hsv or lab colour space. here is the normalisation
Fastest way to read an image from huge uncompressed tar file in __getitem__ of PyTorch custom dataset
I have a huge dataset (2 million) of jpg images in one uncompressed tar file. i also have a txt file each line is the name of the image in tar
Converting image to black and white with Javascript
I have a js function, it returns the image on canvas that i give in the source and b&w of it side by side, the thing is i am a beginner in js
Ad
How can I remove the small components in an image after using morphological thinning?
I tried to use morphological thinning and the output has some noise. i'm using python. the first image is the original image.
Tensorflow dilation behave differently than morphological dilation
As the following piece of code shows, the tensorflow
Image steganography script not producing correct results
I am trying to make an image steganography script in python 3.7.2 using the image library in pil. my script to hide one image inside another is
Find the biggest Contour- OpenCV, Python - Getting Errors
I am trying to find the biggest contour around a car in an image. to find the contour i have learnt the following from the official opencv
Live image processing using flutter
I have project where i am going to develop an application using flutter. the app requires face recognition and live image processing. it is
How to detect all pixels of specific color (and similar ones) in a bitmap?
I'm working on bitmap images in android studio, and i would know how to do to detect all red pixels for examples, but not just the pixels that are
Python -Rectangular Contour on a single color on image
I am trying to draw a rectangular contour around a green image i am able to draw the biggest rectangle but unable to draw specifically on
How to detect and measure(fitEllipse) objects on the SEM image using OpenCV?
I have about 30 sem (scanning-electron microscope) images like that:
How to blur an image after obtaining its mask using opencv?
I've followed a guide on blurring image based on colour segmentation:
cv2.lines() or any other drawing functions affects images above it?
This piece of code is inside while loop and what i expect is to see the image without lines on it, as lines are applied to img_roi
How to adjust Hue Saturation and Brightness of an image or widget in Flutter?
In my flutter app, i have an image and three sliders, one for hue, one for saturation, and one for
Ad
How to approach variable image sizes for Image Classification?
I am working on classification of brain tumors. the dataset is comprised of brain images from various angles, with a border and mask of the tumor
image processing in python- hue, saturation, contrast and brightness
I was wondering if there is a way to extract statistic or values like: brightness, contrast, hue, saturation and sharpness from an image in
How to construct horizontal projection of binary image in OpenCV
I am doing a text segmentation project for school. i need to do horizontal image projection of a binary image. the results that i want are like
Separate rooms in a floor plan using OpenCV
Input floor plan image above images are my input floor plan and i need to
cv2 imread returns None
I installed the cv2 library via pip install opencv-contrib-python-headless. whenever i try to read an image it it returns none. i tried
Rotating image based on drag handle in flutter
My end goal is to achieve somethinng like this:
How to remove a selected part of an image in Flutter?
I want to send an image to backend, but before sending user can select some part of it. and i need to remove unwanted part. below i attached some
Error as I try to merge zero channels to create an image with a single channel
I am trying to read an image and then keep only the red channel in the output image. here is what i did: color =
Opencv vs Opengl for image filters
I'm a complete beginner in image processing thing so please do excuse me if my question is foolish .basically i'm trying to develope an image
How to crop an image from screenshot with the use of OpenCV?
I recently began studying image processing and took a task where i need to crop an image from mobile instagram screenshot via use of opencv. i
Determine maximum and minimum pixel value to draw bounding box
Given an image with semantic map,
Ad
Image file upload to aws lambda using AWS api gateway
I am trying to create a lambda function which accepts an image as multipart/form-data, do some processing on the image and upload it to s3 and
Detecting Rectangular and crop image into pieces Android OpenCV
Hi i am working on a small android project using java where one of the so many functions is to detect rectangular (contains data) and crop the
How to calculate distance by counting pixels
My goal is to identify two leds, one dynamic and the other static and calculate the distance and speed between them. using opencv i thought to
Extract specific member of k-mean cluster of an image
I have an image (front facing man) with 4 different colors (background, hair, skin-tone, and cloth). i used k-mean with k=4, and image is
Dimension error when using predict method on an image in a CNN model
I am trying to predict on a single image using keras (2.2.4) and tensorflow (1.9.0) as the backend: def enigne(data):
Using custom images for Tensorflow.js in node.js or browser
Tensorflow.js cnn example is nice and i decided to train with my custom character images (local images like this
Use Multi Image Picker with Image Cropper
I am using the multi_image_picker plugin to get multiple images. multi_image_picker returns a list<asset> files when selecting
Bitmap "images" pass to another activity (Out of memory)
Please read the full question before marking it as duplicate or down-vote it. i am developing an app what can slice through a picture and
"ZeroDivisionError: float division by zero" for image processing code using Rapberry Pi3 and camera
I have edited these code, and these are the code: from pyimagesearch.shapedetector import shapedetector import argparse import
Rawpy raw image pattern
I'm trying to read and demosaic raw images in python using the rawpy module. unfortunately the module does not provide simple demosaic method, but
How to copy images from multiple directories into corresponding multiple destination directories and resize them?
How to copy all the images present in multiple sub-directories to another sub-directories corresponding for them using python? i have the dataset
Ad
Can we load images to python from a directory without using PIL? What are other methods?
I'm going to write a python script for loading images from a directory and resizing them, so when i'm loading images from a directory i tried
Image Block Processing
I have a large image, and i want to process it block by block (512 x 512) at a time. i am currently doing this with loops, but i know that it is
Ad
Blog Categories
Ad