2020-04-11 16:52:32 -0600 | received badge | ● Popular Question (source) |
2016-08-26 12:40:07 -0600 | received badge | ● Enthusiast |
2016-08-25 18:07:31 -0600 | asked a question | How to set webcam codec in OpenCV 3.1.0 Python? I have a problem with my webcams using the uncompressed YUYV codec in OpenCV Python which makes it so that I have horrible frame rates. I would like to set the codec to MJPG, but I can't seem to figure out how. Here is what I have tried(along with variations of it) When I run it, I get cv2 has no attribute to CV_FOURCC. I have been using this as a reference, but it doesn't really explain what I am supposed to pass in after I input the 6 in the vid.set(). I have the cv2.CV_FOURCC, but I just guessed that is what it wanted. Any help would be greatly appreciated! |
2016-07-21 22:05:57 -0600 | received badge | ● Scholar (source) |
2016-07-21 22:05:56 -0600 | received badge | ● Supporter (source) |
2016-07-20 17:03:02 -0600 | commented answer | How to remove unwanted corners in images? Nevermind, fixed the issue. Thanks!!!!!! |
2016-07-16 22:41:09 -0600 | commented question | How to remove unwanted corners in images? Thanks for the heads up! Fixed. |
2016-07-16 22:40:19 -0600 | received badge | ● Editor (source) |
2016-07-16 22:27:50 -0600 | asked a question | How to remove unwanted corners in images? Hi, I am trying to rid of the corners in an image where I will be combining that image with three other images. The corners have been blocking a part of the image next to it. The images are in the shape of a trapezoid because I used the perspective shift in opencv. Here is the single image:C:\fakepath\image.png and here is the attempt at combing them: C:\fakepath\blank.png Here is my code: I have tried making the pixels transparent using the alpha channel, but I never got it to work(You can still see that I have the alpha channel split and merged). I have tried cropping which works for the bottom half of the image, but not the corners. I have tried doing a contour crop but that didn't work although I felt like I might have done something wrong. I have tried to fix this issue for over a week now so any help would be greatly, greatly appreciated! |