simplecv

OpenCV FloodFill with multiple seeds

冷暖自知 提交于 2019-12-05 21:01:04
Is there a floodFill function for python/openCV that takes a list of seeds and starts changing the color of its neighbours? I know that simplecv as a function like that SimpleCV floodFill . OpenCV says it has two floodFill functions when that uses a mask and another one that doesn't, documentation , I'm not being able to use the opencv floodfill function without a mask and with a list of seeds. Any help? This is what I'm trying to do so far: A=array([[0,1,1,0],[0,0,0,0],[1,1,1,1],[1,1,1,1]],np.uint8) mask = np.ones((A.shape[0]+2,A.shape[0]+2),np.uint8) mask[1:-1,1:-1] = np.zeros((A.shape)) cv

import cv2 works but import cv2.cv as cv not working

混江龙づ霸主 提交于 2019-12-04 19:42:52
问题 I think the sys path is correct, cv.pyd and cv.pyd reside in c:\OpenCV2.3\build\Python\2.7\Lib\site-packages. >>> import sys >>> sys.path ['', 'C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\pil-1.1.7-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\cython-0.17-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\pip-1.2-py2.7.egg', 'c:\\OpenCV2.3\\build\\Python\\2.7\\Lib\\site-packages', 'C:\\Python27\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\

Industrial vision camera with Python [closed]

若如初见. 提交于 2019-12-04 18:35:40
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Is there any industrial computer vision camera that comes with a Python interface, or that has a well developed third-party solution?

OpenCV Lip Segmentation

微笑、不失礼 提交于 2019-12-04 12:33:42
问题 How do people usually extract the shape of the lips once the mouth region is found (in my case using haar cascade)? I tried color segmentation and edge/corner detection but they're very inaccurate for me. I need to find the two corners and the very upper and lower lip at the center. I've heard things about active appearance models but I'm having trouble understanding how to use this with python and I don't have enough context to figure out if this is even the conventional method for detecting

import cv2 works but import cv2.cv as cv not working

女生的网名这么多〃 提交于 2019-12-03 13:09:20
I think the sys path is correct, cv.pyd and cv.pyd reside in c:\OpenCV2.3\build\Python\2.7\Lib\site-packages. >>> import sys >>> sys.path ['', 'C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\pil-1.1.7-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\cython-0.17-py2.7-win32.egg', 'C:\\Python27\\lib\\site-packages\\pip-1.2-py2.7.egg', 'c:\\OpenCV2.3\\build\\Python\\2.7\\Lib\\site-packages', 'C:\\Python27\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages', 'C

Industrial vision camera with Python [closed]

笑着哭i 提交于 2019-12-03 12:59:59
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Is there any industrial computer vision camera that comes with a Python interface, or that has a well developed third-party solution? I have been doing some work using webcams, which are easily accessible through for example OpenCV. However, now I need a

OpenCV Lip Segmentation

痴心易碎 提交于 2019-12-03 08:04:49
How do people usually extract the shape of the lips once the mouth region is found (in my case using haar cascade)? I tried color segmentation and edge/corner detection but they're very inaccurate for me. I need to find the two corners and the very upper and lower lip at the center. I've heard things about active appearance models but I'm having trouble understanding how to use this with python and I don't have enough context to figure out if this is even the conventional method for detecting different parts of the lips. Is that my best choice or do I have other options? If I should use it,

Stroke Width Transform (SWT) implementation (Python)

夙愿已清 提交于 2019-11-27 17:32:44
Can anyone describe how can i implement SWT in python using opencv or simplecv ? Ok so here goes: The link that has details on the implementation with the code download link at the bottom: SWT For the sake of completeness, also mentioning that SWT or Stroke Width Transform was devised by Epshtein and others in 2010 and has turned out to be one of the most successful text detection methods til date. It does not use machine learning or elaborate tests. Basically after Canny edge detection on the input image, it calculates the thickness of each stroke that makes up objects in the image. As text

Stroke Width Transform (SWT) implementation (Python)

六月ゝ 毕业季﹏ 提交于 2019-11-26 19:03:44
问题 Can anyone describe how can i implement SWT in python using opencv or simplecv ? 回答1: Ok so here goes: The link that has details on the implementation with the code download link at the bottom: SWT For the sake of completeness, also mentioning that SWT or Stroke Width Transform was devised by Epshtein and others in 2010 and has turned out to be one of the most successful text detection methods til date. It does not use machine learning or elaborate tests. Basically after Canny edge detection