Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
285d6320
Commit
285d6320
authored
Nov 23, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add #/usr/bin/env python to all python files
parent
8579666b
Hide whitespace changes
Inline
Side-by-side
Showing
92 changed files
with
183 additions
and
1 deletion
+183
-1
check_docs.py
doc/check_docs.py
+2
-0
check_docs2.py
doc/check_docs2.py
+2
-0
conf.py
doc/conf.py
+2
-0
ocv.py
doc/ocv.py
+1
-0
patch_refman_latex.py
doc/patch_refman_latex.py
+2
-0
gen_pattern.py
doc/pattern_tools/gen_pattern.py
+2
-0
svgfig.py
doc/pattern_tools/svgfig.py
+2
-0
reformat.py
doc/reformat.py
+2
-0
create_csv.py
modules/contrib/doc/facerec/src/create_csv.py
+2
-0
mark_nvidia.py
modules/gpu/misc/mark_nvidia.py
+2
-0
check-tests.py
modules/java/check-tests.py
+2
-0
gen_java.py
modules/java/generator/gen_java.py
+2
-0
gen_javadoc.py
modules/java/generator/gen_javadoc.py
+2
-0
rst_parser.py
modules/java/generator/rst_parser.py
+2
-0
cv.py
modules/python/src2/cv.py
+2
-0
gen.py
modules/python/src2/gen.py
+2
-0
gen2.py
modules/python/src2/gen2.py
+2
-0
hdr_parser.py
modules/python/src2/hdr_parser.py
+2
-0
calchist.py
modules/python/test/calchist.py
+2
-1
camera_calibration.py
modules/python/test/camera_calibration.py
+2
-0
findstereocorrespondence.py
modules/python/test/findstereocorrespondence.py
+2
-0
goodfeatures.py
modules/python/test/goodfeatures.py
+2
-0
leak1.py
modules/python/test/leak1.py
+2
-0
leak2.py
modules/python/test/leak2.py
+2
-0
leak3.py
modules/python/test/leak3.py
+2
-0
leak4.py
modules/python/test/leak4.py
+2
-0
precornerdetect.py
modules/python/test/precornerdetect.py
+2
-0
test.py
modules/python/test/test.py
+2
-0
ticket_6.py
modules/python/test/ticket_6.py
+2
-0
tickets.py
modules/python/test/tickets.py
+2
-0
transformations.py
modules/python/test/transformations.py
+2
-0
chart.py
modules/ts/misc/chart.py
+2
-0
color.py
modules/ts/misc/color.py
+2
-0
concatlogs.py
modules/ts/misc/concatlogs.py
+2
-0
report.py
modules/ts/misc/report.py
+2
-0
run.py
modules/ts/misc/run.py
+2
-0
summary.py
modules/ts/misc/summary.py
+2
-0
table_formatter.py
modules/ts/misc/table_formatter.py
+2
-0
testlog_parser.py
modules/ts/misc/testlog_parser.py
+2
-0
camera.py
samples/python/camera.py
+2
-0
cv20squares.py
samples/python/cv20squares.py
+2
-0
cvutils.py
samples/python/cvutils.py
+2
-0
dmtx.py
samples/python/dmtx.py
+2
-0
peopledetect.py
samples/python/peopledetect.py
+2
-0
_coverage.py
samples/python2/_coverage.py
+2
-0
_doc.py
samples/python2/_doc.py
+2
-0
asift.py
samples/python2/asift.py
+2
-0
browse.py
samples/python2/browse.py
+2
-0
calibrate.py
samples/python2/calibrate.py
+2
-0
camshift.py
samples/python2/camshift.py
+2
-0
coherence.py
samples/python2/coherence.py
+2
-0
color_histogram.py
samples/python2/color_histogram.py
+2
-0
common.py
samples/python2/common.py
+2
-0
contours.py
samples/python2/contours.py
+2
-0
deconvolution.py
samples/python2/deconvolution.py
+2
-0
demo.py
samples/python2/demo.py
+2
-0
digits.py
samples/python2/digits.py
+2
-0
digits_adjust.py
samples/python2/digits_adjust.py
+2
-0
digits_video.py
samples/python2/digits_video.py
+2
-0
distrans.py
samples/python2/distrans.py
+2
-0
edge.py
samples/python2/edge.py
+2
-0
facedetect.py
samples/python2/facedetect.py
+2
-0
feature_homography.py
samples/python2/feature_homography.py
+2
-0
find_obj.py
samples/python2/find_obj.py
+2
-0
fitline.py
samples/python2/fitline.py
+2
-0
floodfill.py
samples/python2/floodfill.py
+2
-0
gabor_threads.py
samples/python2/gabor_threads.py
+2
-0
gaussian_mix.py
samples/python2/gaussian_mix.py
+2
-0
hist.py
samples/python2/hist.py
+2
-0
inpaint.py
samples/python2/inpaint.py
+2
-0
kmeans.py
samples/python2/kmeans.py
+2
-0
lappyr.py
samples/python2/lappyr.py
+2
-0
letter_recog.py
samples/python2/letter_recog.py
+2
-0
lk_homography.py
samples/python2/lk_homography.py
+2
-0
lk_track.py
samples/python2/lk_track.py
+2
-0
morphology.py
samples/python2/morphology.py
+2
-0
mosse.py
samples/python2/mosse.py
+2
-0
motempl.py
samples/python2/motempl.py
+2
-0
mouse_and_match.py
samples/python2/mouse_and_match.py
+2
-0
mser.py
samples/python2/mser.py
+2
-0
opt_flow.py
samples/python2/opt_flow.py
+2
-0
peopledetect.py
samples/python2/peopledetect.py
+2
-0
plane_ar.py
samples/python2/plane_ar.py
+2
-0
plane_tracker.py
samples/python2/plane_tracker.py
+2
-0
squares.py
samples/python2/squares.py
+2
-0
stereo_match.py
samples/python2/stereo_match.py
+2
-0
texture_flow.py
samples/python2/texture_flow.py
+2
-0
turing.py
samples/python2/turing.py
+2
-0
video.py
samples/python2/video.py
+2
-0
video_dmtx.py
samples/python2/video_dmtx.py
+2
-0
video_threaded.py
samples/python2/video_threaded.py
+2
-0
watershed.py
samples/python2/watershed.py
+2
-0
No files found.
doc/check_docs.py
View file @
285d6320
#/usr/bin/env python
import
sys
,
glob
sys
.
path
.
append
(
"../modules/python/src2/"
)
...
...
doc/check_docs2.py
View file @
285d6320
#/usr/bin/env python
import
os
,
sys
,
fnmatch
,
re
sys
.
path
.
append
(
"../modules/python/src2/"
)
...
...
doc/conf.py
View file @
285d6320
#/usr/bin/env python
# -*- coding: utf-8 -*-
#
# opencvstd documentation build configuration file, created by
...
...
doc/ocv.py
View file @
285d6320
#/usr/bin/env python
# -*- coding: utf-8 -*-
"""
ocv domain, a modified copy of sphinx.domains.cpp + shpinx.domains.python.
...
...
doc/patch_refman_latex.py
View file @
285d6320
#/usr/bin/env python
import
sys
f
=
open
(
sys
.
argv
[
1
],
"rt"
)
...
...
doc/pattern_tools/gen_pattern.py
View file @
285d6320
#/usr/bin/env python
"""gen_pattern.py
To run:
-c 10 -r 12 -o out.svg
...
...
doc/pattern_tools/svgfig.py
View file @
285d6320
#/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
...
...
doc/reformat.py
View file @
285d6320
#/usr/bin/env python
import
os
,
sys
,
re
finput
=
open
(
sys
.
argv
[
1
],
"rt"
)
...
...
modules/contrib/doc/facerec/src/create_csv.py
View file @
285d6320
#/usr/bin/env python
import
sys
import
os.path
...
...
modules/gpu/misc/mark_nvidia.py
View file @
285d6320
#/usr/bin/env python
import
sys
,
re
spaces
=
'[
\
s]*'
...
...
modules/java/check-tests.py
View file @
285d6320
#/usr/bin/env python
import
sys
,
os
,
re
classes_ignore_list
=
(
...
...
modules/java/generator/gen_java.py
View file @
285d6320
#/usr/bin/env python
import
sys
,
re
,
os
.
path
from
string
import
Template
...
...
modules/java/generator/gen_javadoc.py
View file @
285d6320
#/usr/bin/env python
import
os
,
sys
,
re
,
string
,
glob
from
optparse
import
OptionParser
...
...
modules/java/generator/rst_parser.py
View file @
285d6320
#/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
...
...
modules/python/src2/cv.py
View file @
285d6320
#/usr/bin/env python
from
cv2.cv
import
*
modules/python/src2/gen.py
View file @
285d6320
#/usr/bin/env python
import
sys
from
string
import
Template
...
...
modules/python/src2/gen2.py
View file @
285d6320
#/usr/bin/env python
import
hdr_parser
,
sys
,
re
,
os
,
cStringIO
from
string
import
Template
...
...
modules/python/src2/hdr_parser.py
View file @
285d6320
#/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
...
...
modules/python/test/calchist.py
View file @
285d6320
#
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
...
...
modules/python/test/camera_calibration.py
View file @
285d6320
#/usr/bin/env python
import
sys
import
math
import
time
...
...
modules/python/test/findstereocorrespondence.py
View file @
285d6320
#/usr/bin/env python
import
sys
import
cv2.cv
as
cv
...
...
modules/python/test/goodfeatures.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
import
unittest
...
...
modules/python/test/leak1.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
import
numpy
as
np
cv
.
NamedWindow
(
'Leak'
)
...
...
modules/python/test/leak2.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
import
numpy
as
np
import
time
...
...
modules/python/test/leak3.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
import
math
import
time
...
...
modules/python/test/leak4.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
import
math
import
time
...
...
modules/python/test/precornerdetect.py
View file @
285d6320
#/usr/bin/env python
import
cv2.cv
as
cv
def
precornerdetect
(
image
):
...
...
modules/python/test/test.py
View file @
285d6320
#/usr/bin/env python
import
unittest
import
random
import
time
...
...
modules/python/test/ticket_6.py
View file @
285d6320
#/usr/bin/env python
import
urllib
import
cv2.cv
as
cv
import
Image
...
...
modules/python/test/tickets.py
View file @
285d6320
#/usr/bin/env python
import
unittest
import
random
import
time
...
...
modules/python/test/transformations.py
View file @
285d6320
#/usr/bin/env python
# -*- coding: utf-8 -*-
# transformations.py
...
...
modules/ts/misc/chart.py
View file @
285d6320
#!/usr/bin/env python
import
testlog_parser
,
sys
,
os
,
xml
,
re
from
table_formatter
import
*
from
optparse
import
OptionParser
...
...
modules/ts/misc/color.py
View file @
285d6320
#!/usr/bin/env python
import
math
,
os
,
sys
webcolors
=
{
...
...
modules/ts/misc/concatlogs.py
View file @
285d6320
#!/usr/bin/env python
from
optparse
import
OptionParser
import
glob
,
sys
,
os
,
re
...
...
modules/ts/misc/report.py
View file @
285d6320
#!/usr/bin/env python
import
testlog_parser
,
sys
,
os
,
xml
,
re
,
glob
from
table_formatter
import
*
from
optparse
import
OptionParser
...
...
modules/ts/misc/run.py
View file @
285d6320
#!/usr/bin/env python
import
sys
,
os
,
platform
,
xml
,
re
,
tempfile
,
glob
,
datetime
,
getpass
,
shutil
from
optparse
import
OptionParser
from
subprocess
import
Popen
,
PIPE
...
...
modules/ts/misc/summary.py
View file @
285d6320
#!/usr/bin/env python
import
testlog_parser
,
sys
,
os
,
xml
,
glob
,
re
from
table_formatter
import
*
from
optparse
import
OptionParser
...
...
modules/ts/misc/table_formatter.py
View file @
285d6320
#!/usr/bin/env python
import
sys
,
re
,
os
.
path
,
cgi
,
stat
from
optparse
import
OptionParser
from
color
import
getColorizer
...
...
modules/ts/misc/testlog_parser.py
View file @
285d6320
#/usr/bin/env python
import
sys
,
re
,
os
.
path
from
xml.dom.minidom
import
parse
...
...
samples/python/camera.py
View file @
285d6320
#!/usr/bin/python
import
cv2.cv
as
cv
import
time
...
...
samples/python/cv20squares.py
View file @
285d6320
#!/usr/bin/python
"""
Find Squares in image by finding countours and filtering
"""
...
...
samples/python/cvutils.py
View file @
285d6320
#!/usr/bin/python
import
cv2.cv
as
cv
import
urllib2
from
sys
import
argv
...
...
samples/python/dmtx.py
View file @
285d6320
#!/usr/bin/python
import
cv2.cv
as
cv
import
time
from
pydmtx
import
DataMatrix
...
...
samples/python/peopledetect.py
View file @
285d6320
#!/usr/bin/python
import
sys
from
cv
import
*
...
...
samples/python2/_coverage.py
View file @
285d6320
#/usr/bin/env python
'''
Utility for measuring python opencv API coverage by samples.
'''
...
...
samples/python2/_doc.py
View file @
285d6320
#/usr/bin/env python
'''
Scans current directory for *.py files and reports
ones with missing __doc__ string.
...
...
samples/python2/asift.py
View file @
285d6320
#/usr/bin/env python
'''
Affine invariant feature-based image matching sample.
...
...
samples/python2/browse.py
View file @
285d6320
#/usr/bin/env python
'''
browse.py
=========
...
...
samples/python2/calibrate.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
import
os
...
...
samples/python2/camshift.py
View file @
285d6320
#/usr/bin/env python
'''
Camshift tracker
================
...
...
samples/python2/coherence.py
View file @
285d6320
#/usr/bin/env python
'''
Coherence-enhancing filtering example
=====================================
...
...
samples/python2/color_histogram.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
from
time
import
clock
...
...
samples/python2/common.py
View file @
285d6320
#/usr/bin/env python
'''
This module contais some common routines used by other samples.
'''
...
...
samples/python2/contours.py
View file @
285d6320
#/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.
...
...
samples/python2/deconvolution.py
View file @
285d6320
#/usr/bin/env python
'''
Wiener deconvolution.
...
...
samples/python2/demo.py
View file @
285d6320
#/usr/bin/env python
'''
Sample-launcher application.
'''
...
...
samples/python2/digits.py
View file @
285d6320
#/usr/bin/env python
'''
SVM and KNearest digit recognition.
...
...
samples/python2/digits_adjust.py
View file @
285d6320
#/usr/bin/env python
'''
Digit recognition adjustment.
Grid search is used to find the best parameters for SVM and KNearest classifiers.
...
...
samples/python2/digits_video.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
import
os
...
...
samples/python2/distrans.py
View file @
285d6320
#/usr/bin/env python
'''
Distance transform sample.
...
...
samples/python2/edge.py
View file @
285d6320
#/usr/bin/env python
'''
This sample demonstrates Canny edge detection.
...
...
samples/python2/facedetect.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
import
cv2.cv
as
cv
...
...
samples/python2/feature_homography.py
View file @
285d6320
#/usr/bin/env python
'''
Feature homography
==================
...
...
samples/python2/find_obj.py
View file @
285d6320
#/usr/bin/env python
'''
Feature-based image matching sample.
...
...
samples/python2/fitline.py
View file @
285d6320
#/usr/bin/env python
'''
Robust line fitting.
==================
...
...
samples/python2/floodfill.py
View file @
285d6320
#/usr/bin/env python
'''
Floodfill sample.
...
...
samples/python2/gabor_threads.py
View file @
285d6320
#/usr/bin/env python
'''
gabor_threads.py
=========
...
...
samples/python2/gaussian_mix.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
from
numpy
import
random
import
cv2
...
...
samples/python2/hist.py
View file @
285d6320
#/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
...
...
samples/python2/inpaint.py
View file @
285d6320
#/usr/bin/env python
'''
Inpainting sample.
...
...
samples/python2/kmeans.py
View file @
285d6320
#/usr/bin/env python
'''
K-means clusterization sample.
Usage:
...
...
samples/python2/lappyr.py
View file @
285d6320
#/usr/bin/env python
''' An example of Laplacian Pyramid construction and merging.
Level : Intermediate
...
...
samples/python2/letter_recog.py
View file @
285d6320
#/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.
...
...
samples/python2/lk_homography.py
View file @
285d6320
#/usr/bin/env python
'''
Lucas-Kanade homography tracker
===============================
...
...
samples/python2/lk_track.py
View file @
285d6320
#/usr/bin/env python
'''
Lucas-Kanade tracker
====================
...
...
samples/python2/morphology.py
View file @
285d6320
#/usr/bin/env python
'''
Morphology operations.
...
...
samples/python2/mosse.py
View file @
285d6320
#/usr/bin/env python
'''
MOSSE tracking sample
...
...
samples/python2/motempl.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
import
video
...
...
samples/python2/mouse_and_match.py
View file @
285d6320
#/usr/bin/env python
#!/usr/bin/env python
'''
mouse_and_match.py [-i path | --input path: default ./]
...
...
samples/python2/mser.py
View file @
285d6320
#/usr/bin/env python
'''
MSER detector demo
==================
...
...
samples/python2/opt_flow.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
import
video
...
...
samples/python2/peopledetect.py
View file @
285d6320
#/usr/bin/env python
import
numpy
as
np
import
cv2
...
...
samples/python2/plane_ar.py
View file @
285d6320
#/usr/bin/env python
'''
Planar augmented reality
==================
...
...
samples/python2/plane_tracker.py
View file @
285d6320
#/usr/bin/env python
'''
Multitarget planar tracking
==================
...
...
samples/python2/squares.py
View file @
285d6320
#/usr/bin/env python
'''
Simple "Square Detector" program.
...
...
samples/python2/stereo_match.py
View file @
285d6320
#/usr/bin/env python
'''
Simple example of stereo image matching and point cloud generation.
...
...
samples/python2/texture_flow.py
View file @
285d6320
#/usr/bin/env python
'''
Texture flow direction estimation.
...
...
samples/python2/turing.py
View file @
285d6320
#/usr/bin/env python
'''
Multiscale Turing Patterns generator
====================================
...
...
samples/python2/video.py
View file @
285d6320
#/usr/bin/env python
'''
Video capture sample.
...
...
samples/python2/video_dmtx.py
View file @
285d6320
#/usr/bin/env python
'''
Data matrix detector sample.
Usage:
...
...
samples/python2/video_threaded.py
View file @
285d6320
#/usr/bin/env python
'''
Multithreaded video processing sample.
Usage:
...
...
samples/python2/watershed.py
View file @
285d6320
#/usr/bin/env python
'''
Watershed segmentation
=========
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment