Ask Your Question

Firelife's profile - activity

2019-01-30 07:43:38 -0600 edited question How do I crop multiple ROIs from array?

How do I crop multiple ROIs from array? How would you crop multiple ROIs from a np.array? With the coords arranged this

2019-01-30 07:38:40 -0600 edited question How do I crop multiple ROIs from array?

How do I crop multiple ROIs from array? How would you crop multiple ROIs from a np.array? With the coords arranged this

2019-01-30 07:37:26 -0600 asked a question How do I crop multiple ROIs from array?

How do I crop multiple ROIs from array? How would you crop multiple ROIs from a np.array? With the coords arranged this

2019-01-30 07:29:31 -0600 commented answer Python crop not working

How would you crop multiple ROIs from a np.array? With the coords arranged this way. Rect=([x1,y1,x2,y2],[x1,y1,x2,y2]..

2019-01-30 06:51:07 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I was able to crop one element. Not each element in the rect np.array. How do I crop all of the spots from both images,

2019-01-29 09:03:59 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

Ok, I was able to use the function absdiff between the two images. I cropped the A0 location in both empty lot and the i

2019-01-29 08:39:04 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

Ok, I was able to use the function absdiff between the two images. I cropped the A0 location in both empty lot and the i

2019-01-29 08:38:37 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

Ok, I was able to use the function absdiff between the two images. I cropped the A0 location in both empty lot and the i

2019-01-29 08:38:18 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

Ok, I was able to use the function absdiff between the two images. I cropped the A0 location in both empty lot and the i

2019-01-29 08:38:01 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

Ok, I was able to use the function absdiff between the two images. I cropped the A0 location in both empty lot and the i

2019-01-24 06:38:44 -0600 marked best answer I can not draw the rectangles with the for loop.

I set up an np.array and was able to print all the elements in python console.

a =np.array([[14,137,80,166],[14,174,80,204],[14,214,80,244],[14,252,80,282],
[14,290,80,320],[14,328,80,358],[14,366,80,396],[14,402,80,432]])
for (x1,y1,x2,y2)in a:
   print(x1,y1,x2,y2)

image description

When I set up the for loop to draw the rectangles I get the last one in the array draw on image.

rect = np.array([[14,137,80,166],[14,174,80,204],[14,214,80,244],[14,252,80,282],
[14,290,80,320],[14,328,80,358],[14,366,80,396],[14,402,80,432]])

for (x1,y1,x2,y2)in rect:
  #Create the basic black image
  mask = np.zeros(blur.shape[:2], dtype="uint8")
  cv2.rectangle(mask,(x1,y1),(x2,y2), (COLOR_WHITE), -1)

image description

Any help greatly appreciated. Thanks.

2019-01-24 06:38:44 -0600 received badge  Scholar (source)
2019-01-24 05:48:37 -0600 commented answer I can not draw the rectangles with the for loop.

Thank you for your help! Yes, it probably is silly.

2019-01-23 18:15:09 -0600 edited question I can not draw the rectangles with the for loop.

I can not draw the rectangles with the for loop. I set up an np.array and was able to print all the elements in python c

2019-01-23 18:15:04 -0600 edited question I can not draw the rectangles with the for loop.

I can not draw the rectangles with the for loop. I set up an np.array and was able to print all the elements in python c

2019-01-23 18:11:10 -0600 asked a question I can not draw the rectangles with the for loop.

I can not draw the rectangles with the for loop. I set up an np.array and was able to print all the elements in python c

2019-01-21 04:40:24 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

No I have not been able to. I was able to get the differences from the two images. I was hoping to compare each location

2019-01-19 17:22:54 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I was hoping for the actual locations I created on the mask. The specific locations of A0-A7, B0-B6, and C0-C5. Or some

2019-01-19 17:22:23 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I was hoping for the actual locations I created on the mask. The specific locations of A0-A7, B0-B6, and C0-C5. Or some

2019-01-19 17:16:50 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I was hoping for the actual locations I created on the mask. The specific locations of A0-A7, B0-B6, and C0-C5.

2019-01-19 08:23:05 -0600 edited question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I want to compare two masked images at specific quadrants(locations) I have managed to bring in a image, turn it to gray

2019-01-19 08:16:32 -0600 commented question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I am able to compare the two images and get bounding boxes. The problem is the bounding boxes are around the exact dif

2019-01-18 17:11:22 -0600 asked a question How can I get bounding box around the specific quadrants(locations) the difference is in, instead of the exact difference of contents in image?

I want to compare two masked images at specific quadrants(locations) I have managed to bring in a image, turn it to gray

2019-01-18 14:18:27 -0600 received badge  Enthusiast
2018-11-13 12:48:56 -0600 commented question Automatic mask regions (rectangles) and ID each

I am trying to add image, I tried jpg and png, but neither will load in.

2018-11-13 10:36:23 -0600 edited question Automatic mask regions (rectangles) and ID each

Automatic mask regions (rectangles) and ID each I am working on this image with OpenCV and I have gotten as far as pulli

2018-11-13 10:35:03 -0600 edited question Automatic mask regions (rectangles) and ID each

Automatic mask regions (rectangles) after I am working on this image with OpenCV and I have gotten as far as pulling in

2018-11-13 10:33:42 -0600 commented question Automatic mask regions (rectangles) and ID each

I added in upload, but I do not see it, here?

2018-11-13 08:58:24 -0600 commented question Automatic mask regions (rectangles) and ID each

I added in upload I think

2018-11-13 08:57:22 -0600 received badge  Editor (source)
2018-11-13 08:57:22 -0600 edited question Automatic mask regions (rectangles) and ID each

Automatic mask regions (rectangles) after I am working on this image with OpenCV and I have gotten as far as pulling in

2018-11-13 08:38:42 -0600 asked a question Automatic mask regions (rectangles) and ID each

Automatic mask regions (rectangles) after I am working on this image with OpenCV and I have gotten as far as pulling in