Merge pull request #802 from SpecLad:shebang

This commit is contained in:
Andrey Kamaev 2013-04-12 15:00:28 +04:00 committed by OpenCV Buildbot
commit abe2ea59ed
82 changed files with 81 additions and 83 deletions

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys, glob import sys, glob

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import os, sys, fnmatch, re import os, sys, fnmatch, re

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
ocv domain, a modified copy of sphinx.domains.cpp + shpinx.domains.python. ocv domain, a modified copy of sphinx.domains.cpp + shpinx.domains.python.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys import sys

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
"""gen_pattern.py """gen_pattern.py
To run: To run:

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
# svgfig.py copyright (C) 2008 Jim Pivarski <jpivarski@gmail.com> # svgfig.py copyright (C) 2008 Jim Pivarski <jpivarski@gmail.com>
# #

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import os, sys, re import os, sys, re

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys import sys
import os.path import os.path

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys, re import sys, re

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys, os, re import sys, os, re

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys, re, os.path import sys, re, os.path
from string import Template from string import Template

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import os, sys, re, string, glob import os, sys, re, string, glob
from optparse import OptionParser from optparse import OptionParser

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import os, sys, re, string, fnmatch import os, sys, re, string, fnmatch
allmodules = ["core", "flann", "imgproc", "ml", "highgui", "video", "features2d", "calib3d", "objdetect", "legacy", "contrib", "gpu", "androidcamera", "java", "python", "stitching", "ts", "photo", "nonfree", "videostab", "ocl", "superres"] allmodules = ["core", "flann", "imgproc", "ml", "highgui", "video", "features2d", "calib3d", "objdetect", "legacy", "contrib", "gpu", "androidcamera", "java", "python", "stitching", "ts", "photo", "nonfree", "videostab", "ocl", "superres"]

2
modules/python/src2/cv.py Executable file → Normal file
View File

@ -1,3 +1 @@
#/usr/bin/env python
from cv2.cv import * from cv2.cv import *

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys import sys
from string import Template from string import Template

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import hdr_parser, sys, re, os, cStringIO import hdr_parser, sys, re, os, cStringIO
from string import Template from string import Template

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import os, sys, re, string import os, sys, re, string

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
# Calculating and displaying 2D Hue-Saturation histogram of a color image # Calculating and displaying 2D Hue-Saturation histogram of a color image
import sys import sys

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys import sys
import math import math

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys import sys
import cv2.cv as cv import cv2.cv as cv

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import unittest import unittest

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import numpy as np import numpy as np

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import numpy as np import numpy as np

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import math import math

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import math import math

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import unittest import unittest
import random import random

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import unittest import unittest
import random import random

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import urllib import urllib
import cv2.cv as cv import cv2.cv as cv

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import unittest import unittest
import random import random

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# transformations.py # transformations.py

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import sys, re, os.path import sys, re, os.path
from xml.dom.minidom import parse from xml.dom.minidom import parse

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Utility for measuring python opencv API coverage by samples. Utility for measuring python opencv API coverage by samples.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Scans current directory for *.py files and reports Scans current directory for *.py files and reports

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Affine invariant feature-based image matching sample. Affine invariant feature-based image matching sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
browse.py browse.py

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Camshift tracker Camshift tracker

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Coherence-enhancing filtering example Coherence-enhancing filtering example

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
This module contais some common routines used by other samples. This module contais some common routines used by other samples.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
This program illustrates the use of findContours and drawContours. This program illustrates the use of findContours and drawContours.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Wiener deconvolution. Wiener deconvolution.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Sample-launcher application. Sample-launcher application.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import cv2 import cv2
import numpy as np import numpy as np

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
SVM and KNearest digit recognition. SVM and KNearest digit recognition.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Digit recognition adjustment. Digit recognition adjustment.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Distance transform sample. Distance transform sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
This sample demonstrates Canny edge detection. This sample demonstrates Canny edge detection.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Feature homography Feature homography

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Feature-based image matching sample. Feature-based image matching sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Robust line fitting. Robust line fitting.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Floodfill sample. Floodfill sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
gabor_threads.py gabor_threads.py

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
from numpy import random from numpy import random

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' This is a sample for histogram plotting for RGB images and grayscale images for better understanding of colour distribution ''' This is a sample for histogram plotting for RGB images and grayscale images for better understanding of colour distribution

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Inpainting sample. Inpainting sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
K-means clusterization sample. K-means clusterization sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' An example of Laplacian Pyramid construction and merging. ''' An example of Laplacian Pyramid construction and merging.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
The sample demonstrates how to train Random Trees classifier The sample demonstrates how to train Random Trees classifier

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Lucas-Kanade homography tracker Lucas-Kanade homography tracker

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Lucas-Kanade tracker Lucas-Kanade tracker

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Morphology operations. Morphology operations.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
MOSSE tracking sample MOSSE tracking sample

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
#!/usr/bin/env python #!/usr/bin/env python
''' '''

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
MSER detector demo MSER detector demo

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Planar augmented reality Planar augmented reality

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Multitarget planar tracking Multitarget planar tracking

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Simple "Square Detector" program. Simple "Square Detector" program.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Simple example of stereo image matching and point cloud generation. Simple example of stereo image matching and point cloud generation.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Texture flow direction estimation. Texture flow direction estimation.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Multiscale Turing Patterns generator Multiscale Turing Patterns generator

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Video capture sample. Video capture sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Data matrix detector sample. Data matrix detector sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Multithreaded video processing sample. Multithreaded video processing sample.

View File

@ -1,4 +1,4 @@
#/usr/bin/env python #!/usr/bin/env python
''' '''
Watershed segmentation Watershed segmentation