Ask Your Question

Katie's profile - activity

2020-08-11 12:25:16 -0600 received badge  Famous Question (source)
2019-10-24 05:49:50 -0600 received badge  Notable Question (source)
2019-03-07 18:14:30 -0600 received badge  Popular Question (source)
2016-12-02 10:52:40 -0600 received badge  Enthusiast
2016-11-30 14:50:25 -0600 commented answer Error could not find a writer....

Thank you!

2016-11-30 14:50:13 -0600 received badge  Scholar (source)
2016-11-29 09:54:09 -0600 asked a question Error could not find a writer....
import cv2 

# 0 is refrencing first camera
camera = cv2.VideoCapture(0)

# range is repeating the indented code by whatever is in ()
for i in range(2):
    return_value, img = camera.read()
    cv2.imshow('opencv'+str(i)+'png',img)
    cv2.imwrite('opencv'+str(i)+'png',img)
cv2.waitKey()
del camera

It keeps telling me " error: (-2) could not find a writer for the specified extension in function cv:: imwrite_"

Any ideas why?

2016-11-28 12:25:01 -0600 commented question Counting strips

I uploaded a photo

2016-11-28 12:16:39 -0600 commented answer Comparing two images

I revised my question. Is it clearer?

2016-11-28 12:15:26 -0600 received badge  Editor (source)
2016-11-28 10:58:03 -0600 received badge  Student (source)
2016-11-28 09:57:23 -0600 asked a question Comparing two images

image description image description

I'm just getting started with OpenCV and I want to compare two similar images. I am trying to get a percentage back indicating their similarity. I am using sobel to filter out the horizontal lines and then i want to compare just the vertical lines in the image. I am using python and opencv3.0.

2016-11-28 09:51:51 -0600 received badge  Supporter (source)
2016-11-27 20:06:29 -0600 asked a question Counting strips

image description

I am trying to count the extruded pieces of polypropylene. I can filter out horizontal and vertical lines using sobel, but am having trouble figuring out how to count the strips. Any ideas?

I uploaded a photo of my test box. I was thinking I could shoot the laser across, filter the horizontal lines, and then count how many times I see laser->no laser->laser->no laser etc. Or maybe get a percentage of how solid the line is and then relate that percentage to number of strips.