[MacPorts] #58873: opencv 3.4.7 broken?

MacPorts noreply at macports.org
Sat Aug 24 18:22:18 UTC 2019


#58873: opencv 3.4.7 broken?
---------------------------+----------------------
  Reporter:  renzresearch  |      Owner:  (none)
      Type:  defect        |     Status:  reopened
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.5.4
Resolution:                |   Keywords:
      Port:  opencv        |
---------------------------+----------------------

Comment (by renzresearch):

 The previous installation was with +python27 and +python37.  cv2 is
 imported without problem in both python2 and python3.  The question on
 which python is running prompted me to reinstall opencv with only
 +python27.  Now only python2 has this module.  I made this minimum test
 code called testECC.py:

 {{{
 #!/usr/bin/env python

 import numpy, cv2

 mode = cv2.MOTION_EUCLIDEAN
 crit = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 50, 0.001)
 init = numpy.eye(2, 3,    dtype = numpy.float32)
 refe = numpy.ones([4, 5], dtype = numpy.float32)
 move = numpy.ones([4, 5], dtype = numpy.float32)

 cv2.findTransformECC(refe, move, init, mode, crit)
 }}}

 It reproduces the exact error:

 {{{
 % ./testECC.py
 Traceback (most recent call last):
   File "./testECC.py", line 11, in <module>
     cv2.findTransformECC(refe, move, init, mode, crit)
 TypeError: Required argument 'inputMask' (pos 6) not found
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/58873#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list