Fixed the shebang lines on the Python scripts.

Also, removed the one from modules/python/src2/cv.py and cleared its
executable bit, since it's not a script.
pull/802/head
Roman Donchenko 12 years ago
parent ca56e99a62
commit 57d4c86b2b
  1. 2
      doc/check_docs.py
  2. 2
      doc/check_docs2.py
  3. 2
      doc/conf.py
  4. 2
      doc/ocv.py
  5. 2
      doc/patch_refman_latex.py
  6. 2
      doc/pattern_tools/gen_pattern.py
  7. 2
      doc/pattern_tools/svgfig.py
  8. 2
      doc/reformat.py
  9. 2
      modules/contrib/doc/facerec/src/create_csv.py
  10. 2
      modules/gpu/misc/mark_nvidia.py
  11. 2
      modules/java/check-tests.py
  12. 2
      modules/java/generator/gen_java.py
  13. 2
      modules/java/generator/gen_javadoc.py
  14. 2
      modules/java/generator/rst_parser.py
  15. 2
      modules/python/src2/cv.py
  16. 2
      modules/python/src2/gen.py
  17. 2
      modules/python/src2/gen2.py
  18. 2
      modules/python/src2/hdr_parser.py
  19. 2
      modules/python/test/calchist.py
  20. 2
      modules/python/test/camera_calibration.py
  21. 2
      modules/python/test/findstereocorrespondence.py
  22. 2
      modules/python/test/goodfeatures.py
  23. 2
      modules/python/test/leak1.py
  24. 2
      modules/python/test/leak2.py
  25. 2
      modules/python/test/leak3.py
  26. 2
      modules/python/test/leak4.py
  27. 2
      modules/python/test/precornerdetect.py
  28. 2
      modules/python/test/test.py
  29. 2
      modules/python/test/test2.py
  30. 2
      modules/python/test/ticket_6.py
  31. 2
      modules/python/test/tickets.py
  32. 2
      modules/python/test/transformations.py
  33. 2
      modules/ts/misc/testlog_parser.py
  34. 2
      samples/python2/_coverage.py
  35. 2
      samples/python2/_doc.py
  36. 2
      samples/python2/asift.py
  37. 2
      samples/python2/browse.py
  38. 2
      samples/python2/calibrate.py
  39. 2
      samples/python2/camshift.py
  40. 2
      samples/python2/coherence.py
  41. 2
      samples/python2/color_histogram.py
  42. 2
      samples/python2/common.py
  43. 2
      samples/python2/contours.py
  44. 2
      samples/python2/deconvolution.py
  45. 2
      samples/python2/demo.py
  46. 2
      samples/python2/dft.py
  47. 2
      samples/python2/digits.py
  48. 2
      samples/python2/digits_adjust.py
  49. 2
      samples/python2/digits_video.py
  50. 2
      samples/python2/distrans.py
  51. 2
      samples/python2/edge.py
  52. 2
      samples/python2/facedetect.py
  53. 2
      samples/python2/feature_homography.py
  54. 2
      samples/python2/find_obj.py
  55. 2
      samples/python2/fitline.py
  56. 2
      samples/python2/floodfill.py
  57. 2
      samples/python2/gabor_threads.py
  58. 2
      samples/python2/gaussian_mix.py
  59. 2
      samples/python2/hist.py
  60. 2
      samples/python2/inpaint.py
  61. 2
      samples/python2/kmeans.py
  62. 2
      samples/python2/lappyr.py
  63. 2
      samples/python2/letter_recog.py
  64. 2
      samples/python2/lk_homography.py
  65. 2
      samples/python2/lk_track.py
  66. 2
      samples/python2/morphology.py
  67. 2
      samples/python2/mosse.py
  68. 2
      samples/python2/motempl.py
  69. 2
      samples/python2/mouse_and_match.py
  70. 2
      samples/python2/mser.py
  71. 2
      samples/python2/opt_flow.py
  72. 2
      samples/python2/peopledetect.py
  73. 2
      samples/python2/plane_ar.py
  74. 2
      samples/python2/plane_tracker.py
  75. 2
      samples/python2/squares.py
  76. 2
      samples/python2/stereo_match.py
  77. 2
      samples/python2/texture_flow.py
  78. 2
      samples/python2/turing.py
  79. 2
      samples/python2/video.py
  80. 2
      samples/python2/video_dmtx.py
  81. 2
      samples/python2/video_threaded.py
  82. 2
      samples/python2/watershed.py

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

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

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

@ -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.

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

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

@ -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>
# #

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

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

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

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

@ -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

@ -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

@ -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"]

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

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

@ -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

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

@ -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

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

@ -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

@ -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

@ -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

@ -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

@ -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

@ -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

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

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

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

@ -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

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

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

@ -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

@ -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.

@ -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

@ -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.

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

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

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

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

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

@ -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.

@ -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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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

@ -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

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

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

@ -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.

@ -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

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

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

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

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

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

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

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

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

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

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

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

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

@ -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.

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

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

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

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

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

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

Loading…
Cancel
Save