Questions tagged [image-masking]
132 questions
0
votes
1 answer
How to generally determine the best place (background) to put text in an image
ORIGINAL PHOTO
Masked photo.
After masking the original image, I have a black masked area on upper side of my image. Now I want to implement rectangle boundaries and implement the text into the center point of the rectangle. Then I can take…

koalabey
- 13
- 4
0
votes
2 answers
np.where on 2D array without masked array or any second argument
I was checking out one code snippets, there was a code like below
z = [[True, False, True],[True, True, True],[False, False, False]]
xz, yz = np.where(z)
print(xz)
print(yz)
This returns
[0 0 1 1 1]
[0 2 0 1 2]
If I make
z = [[True, False,…

Subramanya Krishna
- 173
- 3
- 12
0
votes
1 answer
Consecutive Image Masking in Python
I am working on a project to mask consecutive images at different positions to study the movement of a single fly. The final image should look like this: correct masking of image. However, as the code continues to run, the images start to turn out…

Ramzy Issa
- 5
- 2
0
votes
1 answer
OpenCV - Is there a way to detect objects of a specific color only in certain areas of an image using masking?
I am currently implementing something in OpenCV in which I want to detect objects of a specific color in certain areas. I know in order to pick up certain areas I can use adaptive threshold, however with this I'd have to convert the image to a…

Ammu
- 29
- 7
0
votes
1 answer
Cutting out a semi-circle out of a Section Background and showing a background behind it
I've been trying to find the best way to do this aside from using pngs with transparency.
The designer for a site I'm building cut these circles out of every section on the site as part of the overall theme. I love the look of it, but implementing…

Gary Thorn
- 3
- 2
0
votes
1 answer
Create image mask in Python for DNG and processing
I have a RAW image that is saved as .dng from a phone's camera. I want to segment the colors with the OpenCV library in Python. The picture is primarily black and green and I want to get the values of the green parts of the image. I've not worked…

John Polo
- 547
- 1
- 8
- 25
0
votes
2 answers
GEE joined collection is not working in a function
I am working with two collections of satellite data. I want to select specific bands from "collection 1", join them to "collection 2", and then run a function. Unfortunately, the function does not work with the joined data, although it works for…

ie-con
- 53
- 4
0
votes
2 answers
I need to Implement shader mask in flutter to the image
I am trying to implement the ShaderMask to only the background image in the container below with color Color(0xFFFF0000) and transparency 29% but I am not able to do so, the below code I have implemented it is masking all the elements of the…
user14185798
0
votes
1 answer
OpenCV's RotatedRect has no attribute 'size' in Python3. How to work around this?
I found out that the .size.height and .size.width operators of OpenCV's RotatedRect class don't work in Python whereas they work in C++. Let me elaborate with a simplified code snippet:
cap = cv2.VideoCapture('video1.mp4')
filter =…

csg
- 8,096
- 3
- 14
- 38
0
votes
0 answers
OpenCV - Using a open (not closed) Canny contour line as boundary for mask
I apologize if I am posting in the wrong location. Please let me know if that is the case. Otherwise, I appreciate any help or direction given.
I have an image of an object against a backdrop that I would like to pre-process to only have the…

Nikita Albert
- 31
- 4
0
votes
1 answer
Threshold segmentation in area defined by mask
I am having a problem with segmentation. I have an image (74, 78, 75) and mask (512, 512, 97). I would like to threshold all intensity values in the image above 500, but confine it to the area defined by the mask (pixels with non-zero…

Lamech
- 23
- 2
- 8
0
votes
0 answers
Mask Sensitive Information in a 2D Image Using PHP
I am trying to mask sensitive information such as Name, Email, Mobile Number, Address, DOB from an image / scanned copy of an application using PHP.
Tried using http://image.intervention.io/

Anoop Pete
- 492
- 2
- 4
- 17
0
votes
1 answer
Color thresholding: Why does mask make a drastic difference according to limits specified?
We want to apply color thresholding to a RGB image:
When we specify the lower limit as [0, 0, 0] and the upper limit as [255, 255, 255] the result is as follows:
And, when the lower limit is [1, 1, 1] and the upper limit is [255, 255, 255] the…

Akash Antony
- 3
- 1
- 5
0
votes
2 answers
Is there any way to blend a non-hard-coded background into another non-hard-coded background using pure CSS or otherwise?
I'm pretty positive this can't be done, but I figured I'd check before moving on to Plan B. I have a that contains a photograph, which can be switched at will by the user whose left edge fades to transparent to reveal the remainder of the…

Daveh0
- 952
- 9
- 33
0
votes
1 answer
Having trouble with replacing color masks
I am selecting the color from first frame using mouse-handler.
I am trying to replace the selected color with background frame.
This is working fine for red color but this is not working for any other color like green, blue, etc. I am using…

D.Sheshma
- 41
- 1
- 6