Commit 285d6320 authored by marina.kolpakova's avatar marina.kolpakova

add #/usr/bin/env python to all python files

parent 8579666b
#/usr/bin/env python
import sys, glob import sys, glob
sys.path.append("../modules/python/src2/") sys.path.append("../modules/python/src2/")
......
#/usr/bin/env python
import os, sys, fnmatch, re import os, sys, fnmatch, re
sys.path.append("../modules/python/src2/") sys.path.append("../modules/python/src2/")
......
#/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
# opencvstd documentation build configuration file, created by # opencvstd documentation build configuration file, created by
......
#/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.
......
#/usr/bin/env python
import sys import sys
f=open(sys.argv[1], "rt") f=open(sys.argv[1], "rt")
......
#/usr/bin/env python
"""gen_pattern.py """gen_pattern.py
To run: To run:
-c 10 -r 12 -o out.svg -c 10 -r 12 -o out.svg
......
#/usr/bin/env python
# svgfig.py copyright (C) 2008 Jim Pivarski <jpivarski@gmail.com> # svgfig.py copyright (C) 2008 Jim Pivarski <jpivarski@gmail.com>
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
......
#/usr/bin/env python
import os, sys, re import os, sys, re
finput=open(sys.argv[1], "rt") finput=open(sys.argv[1], "rt")
......
#/usr/bin/env python
import sys import sys
import os.path import os.path
......
#/usr/bin/env python
import sys, re import sys, re
spaces = '[\s]*' spaces = '[\s]*'
......
#/usr/bin/env python
import sys, os, re import sys, os, re
classes_ignore_list = ( classes_ignore_list = (
......
#/usr/bin/env python
import sys, re, os.path import sys, re, os.path
from string import Template from string import Template
......
#/usr/bin/env python
import os, sys, re, string, glob import os, sys, re, string, glob
from optparse import OptionParser from optparse import OptionParser
......
#/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"] allmodules = ["core", "flann", "imgproc", "ml", "highgui", "video", "features2d", "calib3d", "objdetect", "legacy", "contrib", "gpu", "androidcamera", "java", "python", "stitching", "ts", "photo", "nonfree", "videostab", "ocl"]
verbose = False verbose = False
......
#/usr/bin/env python
from cv2.cv import * from cv2.cv import *
#/usr/bin/env python
import sys import sys
from string import Template from string import Template
......
#/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
......
#/usr/bin/env python
import os, sys, re, string import os, sys, re, string
# the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt # the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
......
# Calculating and displaying 2D Hue-Saturation histogram of a color image #/usr/bin/env python
# Calculating and displaying 2D Hue-Saturation histogram of a color image
import sys import sys
import cv2.cv as cv import cv2.cv as cv
......
#/usr/bin/env python
import sys import sys
import math import math
import time import time
......
#/usr/bin/env python
import sys import sys
import cv2.cv as cv import cv2.cv as cv
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import unittest import unittest
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import numpy as np import numpy as np
cv.NamedWindow('Leak') cv.NamedWindow('Leak')
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import numpy as np import numpy as np
import time import time
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import math import math
import time import time
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
import math import math
import time import time
......
#/usr/bin/env python
import cv2.cv as cv import cv2.cv as cv
def precornerdetect(image): def precornerdetect(image):
......
#/usr/bin/env python
import unittest import unittest
import random import random
import time import time
......
#/usr/bin/env python
import urllib import urllib
import cv2.cv as cv import cv2.cv as cv
import Image import Image
......
#/usr/bin/env python
import unittest import unittest
import random import random
import time import time
......
#/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# transformations.py # transformations.py
......
#!/usr/bin/env python
import testlog_parser, sys, os, xml, re import testlog_parser, sys, os, xml, re
from table_formatter import * from table_formatter import *
from optparse import OptionParser from optparse import OptionParser
......
#!/usr/bin/env python
import math, os, sys import math, os, sys
webcolors = { webcolors = {
......
#!/usr/bin/env python
from optparse import OptionParser from optparse import OptionParser
import glob, sys, os, re import glob, sys, os, re
......
#!/usr/bin/env python
import testlog_parser, sys, os, xml, re, glob import testlog_parser, sys, os, xml, re, glob
from table_formatter import * from table_formatter import *
from optparse import OptionParser from optparse import OptionParser
......
#!/usr/bin/env python
import sys, os, platform, xml, re, tempfile, glob, datetime, getpass, shutil import sys, os, platform, xml, re, tempfile, glob, datetime, getpass, shutil
from optparse import OptionParser from optparse import OptionParser
from subprocess import Popen, PIPE from subprocess import Popen, PIPE
......
#!/usr/bin/env python
import testlog_parser, sys, os, xml, glob, re import testlog_parser, sys, os, xml, glob, re
from table_formatter import * from table_formatter import *
from optparse import OptionParser from optparse import OptionParser
......
#!/usr/bin/env python
import sys, re, os.path, cgi, stat import sys, re, os.path, cgi, stat
from optparse import OptionParser from optparse import OptionParser
from color import getColorizer from color import getColorizer
......
#/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
......
#!/usr/bin/python
import cv2.cv as cv import cv2.cv as cv
import time import time
......
#!/usr/bin/python
""" """
Find Squares in image by finding countours and filtering Find Squares in image by finding countours and filtering
""" """
......
#!/usr/bin/python
import cv2.cv as cv import cv2.cv as cv
import urllib2 import urllib2
from sys import argv from sys import argv
......
#!/usr/bin/python
import cv2.cv as cv import cv2.cv as cv
import time import time
from pydmtx import DataMatrix from pydmtx import DataMatrix
......
#!/usr/bin/python
import sys import sys
from cv import * from cv import *
......
#/usr/bin/env python
''' '''
Utility for measuring python opencv API coverage by samples. Utility for measuring python opencv API coverage by samples.
''' '''
......
#/usr/bin/env python
''' '''
Scans current directory for *.py files and reports Scans current directory for *.py files and reports
ones with missing __doc__ string. ones with missing __doc__ string.
......
#/usr/bin/env python
''' '''
Affine invariant feature-based image matching sample. Affine invariant feature-based image matching sample.
......
#/usr/bin/env python
''' '''
browse.py browse.py
========= =========
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
import os import os
......
#/usr/bin/env python
''' '''
Camshift tracker Camshift tracker
================ ================
......
#/usr/bin/env python
''' '''
Coherence-enhancing filtering example Coherence-enhancing filtering example
===================================== =====================================
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
from time import clock from time import clock
......
#/usr/bin/env python
''' '''
This module contais some common routines used by other samples. This module contais some common routines used by other samples.
''' '''
......
#/usr/bin/env python
''' '''
This program illustrates the use of findContours and drawContours. This program illustrates the use of findContours and drawContours.
The original image is put up along with the image of drawn contours. The original image is put up along with the image of drawn contours.
......
#/usr/bin/env python
''' '''
Wiener deconvolution. Wiener deconvolution.
......
#/usr/bin/env python
''' '''
Sample-launcher application. Sample-launcher application.
''' '''
......
#/usr/bin/env python
''' '''
SVM and KNearest digit recognition. SVM and KNearest digit recognition.
......
#/usr/bin/env python
''' '''
Digit recognition adjustment. Digit recognition adjustment.
Grid search is used to find the best parameters for SVM and KNearest classifiers. Grid search is used to find the best parameters for SVM and KNearest classifiers.
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
import os import os
......
#/usr/bin/env python
''' '''
Distance transform sample. Distance transform sample.
......
#/usr/bin/env python
''' '''
This sample demonstrates Canny edge detection. This sample demonstrates Canny edge detection.
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
import cv2.cv as cv import cv2.cv as cv
......
#/usr/bin/env python
''' '''
Feature homography Feature homography
================== ==================
......
#/usr/bin/env python
''' '''
Feature-based image matching sample. Feature-based image matching sample.
......
#/usr/bin/env python
''' '''
Robust line fitting. Robust line fitting.
================== ==================
......
#/usr/bin/env python
''' '''
Floodfill sample. Floodfill sample.
......
#/usr/bin/env python
''' '''
gabor_threads.py gabor_threads.py
========= =========
......
#/usr/bin/env python
import numpy as np import numpy as np
from numpy import random from numpy import random
import cv2 import cv2
......
#/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
Benefit : Learn how to draw histogram of images Benefit : Learn how to draw histogram of images
......
#/usr/bin/env python
''' '''
Inpainting sample. Inpainting sample.
......
#/usr/bin/env python
''' '''
K-means clusterization sample. K-means clusterization sample.
Usage: Usage:
......
#/usr/bin/env python
''' An example of Laplacian Pyramid construction and merging. ''' An example of Laplacian Pyramid construction and merging.
Level : Intermediate Level : Intermediate
......
#/usr/bin/env python
''' '''
The sample demonstrates how to train Random Trees classifier The sample demonstrates how to train Random Trees classifier
(or Boosting classifier, or MLP, or Knearest, or Support Vector Machines) using the provided dataset. (or Boosting classifier, or MLP, or Knearest, or Support Vector Machines) using the provided dataset.
......
#/usr/bin/env python
''' '''
Lucas-Kanade homography tracker Lucas-Kanade homography tracker
=============================== ===============================
......
#/usr/bin/env python
''' '''
Lucas-Kanade tracker Lucas-Kanade tracker
==================== ====================
......
#/usr/bin/env python
''' '''
Morphology operations. Morphology operations.
......
#/usr/bin/env python
''' '''
MOSSE tracking sample MOSSE tracking sample
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
import video import video
......
#/usr/bin/env python
#!/usr/bin/env python #!/usr/bin/env python
''' '''
mouse_and_match.py [-i path | --input path: default ./] mouse_and_match.py [-i path | --input path: default ./]
......
#/usr/bin/env python
''' '''
MSER detector demo MSER detector demo
================== ==================
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
import video import video
......
#/usr/bin/env python
import numpy as np import numpy as np
import cv2 import cv2
......
#/usr/bin/env python
''' '''
Planar augmented reality Planar augmented reality
================== ==================
......
#/usr/bin/env python
''' '''
Multitarget planar tracking Multitarget planar tracking
================== ==================
......
#/usr/bin/env python
''' '''
Simple "Square Detector" program. Simple "Square Detector" program.
......
#/usr/bin/env python
''' '''
Simple example of stereo image matching and point cloud generation. Simple example of stereo image matching and point cloud generation.
......
#/usr/bin/env python
''' '''
Texture flow direction estimation. Texture flow direction estimation.
......
#/usr/bin/env python
''' '''
Multiscale Turing Patterns generator Multiscale Turing Patterns generator
==================================== ====================================
......
#/usr/bin/env python
''' '''
Video capture sample. Video capture sample.
......
#/usr/bin/env python
''' '''
Data matrix detector sample. Data matrix detector sample.
Usage: Usage:
......
#/usr/bin/env python
''' '''
Multithreaded video processing sample. Multithreaded video processing sample.
Usage: Usage:
......
#/usr/bin/env python
''' '''
Watershed segmentation Watershed segmentation
========= =========
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment