1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

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

This commit is contained in:
marina.kolpakova
2012-11-23 22:57:22 +04:00
parent 8579666b03
commit 285d6320be
92 changed files with 183 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys, glob
sys.path.append("../modules/python/src2/")
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import os, sys, fnmatch, re
sys.path.append("../modules/python/src2/")
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
# -*- coding: utf-8 -*-
#
# opencvstd documentation build configuration file, created by
+1
View File
@@ -1,3 +1,4 @@
#/usr/bin/env python
# -*- coding: utf-8 -*-
"""
ocv domain, a modified copy of sphinx.domains.cpp + shpinx.domains.python.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys
f=open(sys.argv[1], "rt")
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
"""gen_pattern.py
To run:
-c 10 -r 12 -o out.svg
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
# svgfig.py copyright (C) 2008 Jim Pivarski <jpivarski@gmail.com>
#
# This program is free software; you can redistribute it and/or
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import os, sys, re
finput=open(sys.argv[1], "rt")
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys
import os.path
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys, re
spaces = '[\s]*'
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys, os, re
classes_ignore_list = (
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys, re, os.path
from string import Template
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import os, sys, re, string, glob
from optparse import OptionParser
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
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"]
verbose = False
+2
View File
@@ -1 +1,3 @@
#/usr/bin/env python
from cv2.cv import *
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys
from string import Template
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import hdr_parser, sys, re, os, cStringIO
from string import Template
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import os, sys, re, string
# the list only for debugging. The real list, used in the real OpenCV build, is specified in CMakeLists.txt
+2 -1
View File
@@ -1,5 +1,6 @@
# 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 cv2.cv as cv
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys
import math
import time
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys
import cv2.cv as cv
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
import unittest
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
import numpy as np
cv.NamedWindow('Leak')
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
import numpy as np
import time
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
import math
import time
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
import math
import time
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import cv2.cv as cv
def precornerdetect(image):
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import unittest
import random
import time
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import urllib
import cv2.cv as cv
import Image
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import unittest
import random
import time
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
# -*- coding: utf-8 -*-
# transformations.py
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import testlog_parser, sys, os, xml, re
from table_formatter import *
from optparse import OptionParser
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import math, os, sys
webcolors = {
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
from optparse import OptionParser
import glob, sys, os, re
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import testlog_parser, sys, os, xml, re, glob
from table_formatter import *
from optparse import OptionParser
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import sys, os, platform, xml, re, tempfile, glob, datetime, getpass, shutil
from optparse import OptionParser
from subprocess import Popen, PIPE
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import testlog_parser, sys, os, xml, glob, re
from table_formatter import *
from optparse import OptionParser
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/env python
import sys, re, os.path, cgi, stat
from optparse import OptionParser
from color import getColorizer
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import sys, re, os.path
from xml.dom.minidom import parse
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
import cv2.cv as cv
import time
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
"""
Find Squares in image by finding countours and filtering
"""
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
import cv2.cv as cv
import urllib2
from sys import argv
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
import cv2.cv as cv
import time
from pydmtx import DataMatrix
+2
View File
@@ -1,3 +1,5 @@
#!/usr/bin/python
import sys
from cv import *
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Utility for measuring python opencv API coverage by samples.
'''
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Scans current directory for *.py files and reports
ones with missing __doc__ string.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Affine invariant feature-based image matching sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
browse.py
=========
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
import os
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Camshift tracker
================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Coherence-enhancing filtering example
=====================================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
from time import clock
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
This module contais some common routines used by other samples.
'''
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
This program illustrates the use of findContours and drawContours.
The original image is put up along with the image of drawn contours.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Wiener deconvolution.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Sample-launcher application.
'''
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
SVM and KNearest digit recognition.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Digit recognition adjustment.
Grid search is used to find the best parameters for SVM and KNearest classifiers.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
import os
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Distance transform sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
This sample demonstrates Canny edge detection.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
import cv2.cv as cv
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Feature homography
==================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Feature-based image matching sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Robust line fitting.
==================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Floodfill sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
gabor_threads.py
=========
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
from numpy import random
import cv2
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
''' 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
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Inpainting sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
K-means clusterization sample.
Usage:
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
''' An example of Laplacian Pyramid construction and merging.
Level : Intermediate
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
The sample demonstrates how to train Random Trees classifier
(or Boosting classifier, or MLP, or Knearest, or Support Vector Machines) using the provided dataset.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Lucas-Kanade homography tracker
===============================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Lucas-Kanade tracker
====================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Morphology operations.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
MOSSE tracking sample
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
import video
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
#!/usr/bin/env python
'''
mouse_and_match.py [-i path | --input path: default ./]
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
MSER detector demo
==================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
import video
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
import numpy as np
import cv2
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Planar augmented reality
==================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Multitarget planar tracking
==================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Simple "Square Detector" program.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Simple example of stereo image matching and point cloud generation.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Texture flow direction estimation.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Multiscale Turing Patterns generator
====================================
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Video capture sample.
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Data matrix detector sample.
Usage:
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Multithreaded video processing sample.
Usage:
+2
View File
@@ -1,3 +1,5 @@
#/usr/bin/env python
'''
Watershed segmentation
=========