/usr/lib/python2.7/dist-packages/ExactImage.py is in python-exactimage 1.0.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_ExactImage')).lstrip('.')
try:
return importlib.import_module(mname)
except ImportError:
return importlib.import_module('_ExactImage')
_ExactImage = swig_import_helper()
del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_ExactImage', [dirname(__file__)])
except ImportError:
import _ExactImage
return _ExactImage
try:
_mod = imp.load_module('_ExactImage', fp, pathname, description)
finally:
if fp is not None:
fp.close()
return _mod
_ExactImage = swig_import_helper()
del swig_import_helper
else:
import _ExactImage
del _swig_python_version_info
try:
_swig_property = property
except NameError:
pass # Python < 2.2 doesn't have 'property'.
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
if (name == "thisown"):
return self.this.own(value)
if (name == "this"):
if type(value).__name__ == 'SwigPyObject':
self.__dict__[name] = value
return
method = class_type.__swig_setmethods__.get(name, None)
if method:
return method(self, value)
if (not static):
if _newclass:
object.__setattr__(self, name, value)
else:
self.__dict__[name] = value
else:
raise AttributeError("You cannot add attributes to %s" % self)
def _swig_setattr(self, class_type, name, value):
return _swig_setattr_nondynamic(self, class_type, name, value, 0)
def _swig_getattr(self, class_type, name):
if (name == "thisown"):
return self.this.own()
method = class_type.__swig_getmethods__.get(name, None)
if method:
return method(self)
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
try:
_object = object
_newclass = 1
except __builtin__.Exception:
class _object:
pass
_newclass = 0
PACKAGE = _ExactImage.PACKAGE
VERSION = _ExactImage.VERSION
VERSION_MAJOR = _ExactImage.VERSION_MAJOR
VERSION_MINOR = _ExactImage.VERSION_MINOR
VERSION_MICRO = _ExactImage.VERSION_MICRO
WITHX11 = _ExactImage.WITHX11
WITHFREETYPE = _ExactImage.WITHFREETYPE
WITHEVAS = _ExactImage.WITHEVAS
WITHLIBJPEG = _ExactImage.WITHLIBJPEG
WITHLIBTIFF = _ExactImage.WITHLIBTIFF
WITHLIBPNG = _ExactImage.WITHLIBPNG
WITHLIBGIF = _ExactImage.WITHLIBGIF
WITHJASPER = _ExactImage.WITHJASPER
WITHOPENEXR = _ExactImage.WITHOPENEXR
WITHEXPAT = _ExactImage.WITHEXPAT
WITHLCMS = _ExactImage.WITHLCMS
WITHBARDECODE = _ExactImage.WITHBARDECODE
WITHLUA = _ExactImage.WITHLUA
WITHSWIG = _ExactImage.WITHSWIG
WITHPERL = _ExactImage.WITHPERL
WITHPYTHON = _ExactImage.WITHPYTHON
WITHPHP = _ExactImage.WITHPHP
WITHRUBY = _ExactImage.WITHRUBY
EVASGL = _ExactImage.EVASGL
TGA = _ExactImage.TGA
PCX = _ExactImage.PCX
def newImage():
return _ExactImage.newImage()
newImage = _ExactImage.newImage
def newImageWithTypeAndSize(samplesPerPixel, bitsPerSample, width, height, fill=0):
return _ExactImage.newImageWithTypeAndSize(samplesPerPixel, bitsPerSample, width, height, fill)
newImageWithTypeAndSize = _ExactImage.newImageWithTypeAndSize
def deleteImage(image):
return _ExactImage.deleteImage(image)
deleteImage = _ExactImage.deleteImage
def copyImage(image):
return _ExactImage.copyImage(image)
copyImage = _ExactImage.copyImage
def copyImageCropRotate(image, x, y, w, h, angle):
return _ExactImage.copyImageCropRotate(image, x, y, w, h, angle)
copyImageCropRotate = _ExactImage.copyImageCropRotate
def decodeImage(image, data):
return _ExactImage.decodeImage(image, data)
decodeImage = _ExactImage.decodeImage
def decodeImageFile(image, filename):
return _ExactImage.decodeImageFile(image, filename)
decodeImageFile = _ExactImage.decodeImageFile
def encodeImage(*args):
return _ExactImage.encodeImage(*args)
encodeImage = _ExactImage.encodeImage
def encodeImageFile(*args):
return _ExactImage.encodeImageFile(*args)
encodeImageFile = _ExactImage.encodeImageFile
def imageChannels(image):
return _ExactImage.imageChannels(image)
imageChannels = _ExactImage.imageChannels
def imageChannelDepth(image):
return _ExactImage.imageChannelDepth(image)
imageChannelDepth = _ExactImage.imageChannelDepth
def imageWidth(image):
return _ExactImage.imageWidth(image)
imageWidth = _ExactImage.imageWidth
def imageHeight(image):
return _ExactImage.imageHeight(image)
imageHeight = _ExactImage.imageHeight
def imageColorspace(image):
return _ExactImage.imageColorspace(image)
imageColorspace = _ExactImage.imageColorspace
def imageXres(image):
return _ExactImage.imageXres(image)
imageXres = _ExactImage.imageXres
def imageYres(image):
return _ExactImage.imageYres(image)
imageYres = _ExactImage.imageYres
def imageSetXres(image, xres):
return _ExactImage.imageSetXres(image, xres)
imageSetXres = _ExactImage.imageSetXres
def imageSetYres(image, yres):
return _ExactImage.imageSetYres(image, yres)
imageSetYres = _ExactImage.imageSetYres
def get(image, x, y):
return _ExactImage.get(image, x, y)
get = _ExactImage.get
def set(image, x, y, r, g, b, a=1.0):
return _ExactImage.set(image, x, y, r, g, b, a)
set = _ExactImage.set
def imageConvertColorspace(image, target_colorspace, threshold=127):
return _ExactImage.imageConvertColorspace(image, target_colorspace, threshold)
imageConvertColorspace = _ExactImage.imageConvertColorspace
def imageResize(image, x, y):
return _ExactImage.imageResize(image, x, y)
imageResize = _ExactImage.imageResize
def imageRotate(image, angle):
return _ExactImage.imageRotate(image, angle)
imageRotate = _ExactImage.imageRotate
def imageFlipX(image):
return _ExactImage.imageFlipX(image)
imageFlipX = _ExactImage.imageFlipX
def imageFlipY(image):
return _ExactImage.imageFlipY(image)
imageFlipY = _ExactImage.imageFlipY
def imageScale(image, factor, yfactor=.0):
return _ExactImage.imageScale(image, factor, yfactor)
imageScale = _ExactImage.imageScale
def imageNearestScale(image, factor, yfactor=.0):
return _ExactImage.imageNearestScale(image, factor, yfactor)
imageNearestScale = _ExactImage.imageNearestScale
def imageBoxScale(image, factor, yfactor=.0):
return _ExactImage.imageBoxScale(image, factor, yfactor)
imageBoxScale = _ExactImage.imageBoxScale
def imageBilinearScale(image, factor, yfactor=.0):
return _ExactImage.imageBilinearScale(image, factor, yfactor)
imageBilinearScale = _ExactImage.imageBilinearScale
def imageThumbnailScale(image, factor, yfactor=.0):
return _ExactImage.imageThumbnailScale(image, factor, yfactor)
imageThumbnailScale = _ExactImage.imageThumbnailScale
def imageCrop(image, x, y, w, h):
return _ExactImage.imageCrop(image, x, y, w, h)
imageCrop = _ExactImage.imageCrop
def imageFastAutoCrop(image):
return _ExactImage.imageFastAutoCrop(image)
imageFastAutoCrop = _ExactImage.imageFastAutoCrop
def setForegroundColor(r, g, b, a=1.0):
return _ExactImage.setForegroundColor(r, g, b, a)
setForegroundColor = _ExactImage.setForegroundColor
def setBackgroundColor(r, g, b, a=1.0):
return _ExactImage.setBackgroundColor(r, g, b, a)
setBackgroundColor = _ExactImage.setBackgroundColor
def imageNormalize(image):
return _ExactImage.imageNormalize(image)
imageNormalize = _ExactImage.imageNormalize
def imageInvert(image):
return _ExactImage.imageInvert(image)
imageInvert = _ExactImage.imageInvert
def imageBrightnessContrastGamma(image, brightness, contrast, gamma):
return _ExactImage.imageBrightnessContrastGamma(image, brightness, contrast, gamma)
imageBrightnessContrastGamma = _ExactImage.imageBrightnessContrastGamma
def imageHueSaturationLightness(image, hue, saturation, lightness):
return _ExactImage.imageHueSaturationLightness(image, hue, saturation, lightness)
imageHueSaturationLightness = _ExactImage.imageHueSaturationLightness
def setLineWidth(width):
return _ExactImage.setLineWidth(width)
setLineWidth = _ExactImage.setLineWidth
def imageDrawLine(image, x, y, x2, y2):
return _ExactImage.imageDrawLine(image, x, y, x2, y2)
imageDrawLine = _ExactImage.imageDrawLine
def imageDrawRectangle(image, x, y, x2, y2):
return _ExactImage.imageDrawRectangle(image, x, y, x2, y2)
imageDrawRectangle = _ExactImage.imageDrawRectangle
def newPath():
return _ExactImage.newPath()
newPath = _ExactImage.newPath
def deletePath(path):
return _ExactImage.deletePath(path)
deletePath = _ExactImage.deletePath
def pathClear(path):
return _ExactImage.pathClear(path)
pathClear = _ExactImage.pathClear
def pathMoveTo(path, x, y):
return _ExactImage.pathMoveTo(path, x, y)
pathMoveTo = _ExactImage.pathMoveTo
def pathLineTo(path, x, y):
return _ExactImage.pathLineTo(path, x, y)
pathLineTo = _ExactImage.pathLineTo
def pathCurveTo(path, x, y, x2, y2):
return _ExactImage.pathCurveTo(path, x, y, x2, y2)
pathCurveTo = _ExactImage.pathCurveTo
def pathQuadCurveTo(path, x, y, x2, y2, x3, y3):
return _ExactImage.pathQuadCurveTo(path, x, y, x2, y2, x3, y3)
pathQuadCurveTo = _ExactImage.pathQuadCurveTo
def pathClose(path):
return _ExactImage.pathClose(path)
pathClose = _ExactImage.pathClose
def pathStroke(path, image):
return _ExactImage.pathStroke(path, image)
pathStroke = _ExactImage.pathStroke
def pathFill(path, image):
return _ExactImage.pathFill(path, image)
pathFill = _ExactImage.pathFill
def imageDrawText(image, x, y, text, height, fontfile=None):
return _ExactImage.imageDrawText(image, x, y, text, height, fontfile)
imageDrawText = _ExactImage.imageDrawText
def imageDrawTextOnPath(image, path, text, height, fontfile=None):
return _ExactImage.imageDrawTextOnPath(image, path, text, height, fontfile)
imageDrawTextOnPath = _ExactImage.imageDrawTextOnPath
def imageOptimize2BW(image, low=0, high=255, threshold=170, radius=3, standard_deviation=2.3, target_dpi=0):
return _ExactImage.imageOptimize2BW(image, low, high, threshold, radius, standard_deviation, target_dpi)
imageOptimize2BW = _ExactImage.imageOptimize2BW
def imageIsEmpty(image, percent, margin):
return _ExactImage.imageIsEmpty(image, percent, margin)
imageIsEmpty = _ExactImage.imageIsEmpty
def imageDecodeBarcodes(image, codes, min_length=0, max_length=0, multiple=0, line_skip=8, directions=0xf):
return _ExactImage.imageDecodeBarcodes(image, codes, min_length, max_length, multiple, line_skip, directions)
imageDecodeBarcodes = _ExactImage.imageDecodeBarcodes
def newContours(image, low=0, high=0, threshold=0, radius=3, standard_deviation=2.1):
return _ExactImage.newContours(image, low, high, threshold, radius, standard_deviation)
newContours = _ExactImage.newContours
def deleteContours(contours):
return _ExactImage.deleteContours(contours)
deleteContours = _ExactImage.deleteContours
def newRepresentation(logo_contours, max_feature_no=10, max_avg_tolerance=20, reduction_shift=3, maximum_angle=0.0, angle_step=0.0):
return _ExactImage.newRepresentation(logo_contours, max_feature_no, max_avg_tolerance, reduction_shift, maximum_angle, angle_step)
newRepresentation = _ExactImage.newRepresentation
def deleteRepresentation(representation):
return _ExactImage.deleteRepresentation(representation)
deleteRepresentation = _ExactImage.deleteRepresentation
def matchingScore(representation, image_contours):
return _ExactImage.matchingScore(representation, image_contours)
matchingScore = _ExactImage.matchingScore
def logoAngle(representation):
return _ExactImage.logoAngle(representation)
logoAngle = _ExactImage.logoAngle
def logoTranslationX(representation):
return _ExactImage.logoTranslationX(representation)
logoTranslationX = _ExactImage.logoTranslationX
def logoTranslationY(representation):
return _ExactImage.logoTranslationY(representation)
logoTranslationY = _ExactImage.logoTranslationY
def inverseLogoTranslationX(representation, image):
return _ExactImage.inverseLogoTranslationX(representation, image)
inverseLogoTranslationX = _ExactImage.inverseLogoTranslationX
def inverseLogoTranslationY(representation, image):
return _ExactImage.inverseLogoTranslationY(representation, image)
inverseLogoTranslationY = _ExactImage.inverseLogoTranslationY
def drawMatchedContours(representation, image):
return _ExactImage.drawMatchedContours(representation, image)
drawMatchedContours = _ExactImage.drawMatchedContours
# This file is compatible with both classic and new-style classes.
|