<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32266</bug_id>
          
          <creation_ts>2016-07-14 01:15:12 +0300</creation_ts>
          <short_desc>Ошибка при вызове метода cv2.HOGDescriptor_getDefaultPeopleDetector()</short_desc>
          <delta_ts>2016-07-21 23:04:14 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Distributions</classification>
          <product>Branch p8</product>
          <component>python-module-opencv2.4</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>ASSIGNED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leonid">leonid.krashenko</reporter>
          <assigned_to name="Дмитрий Державин">dd</assigned_to>
          <cc>dd</cc>
    
    <cc>leonid.krashenko</cc>
          
          <qa_contact name="qa-p8@altlinux.org">qa-p8</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>157619</commentid>
    <comment_count>0</comment_count>
    <who name="Leonid">leonid.krashenko</who>
    <bug_when>2016-07-14 01:15:12 +0300</bug_when>
    <thetext>$ python

Python 2.7.11 (default, Apr 15 2016, 13:09:43) 
[GCC 5.3.1 20151207 (ALT Linux 5.3.1-alt3)] on linux2
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import cv2
&gt;&gt;&gt; 
&gt;&gt;&gt; cv2.HOGDescriptor_getDefaultPeopleDetector()
OpenCV Error: Assertion failed (step[dims-1] == (size_t)CV_ELEM_SIZE(flags)) in create, file /usr/src/RPM/BUILD/libopencv2.4-2.4.9.1/modules/core/src/matrix.cpp, line 236
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
cv2.error: /usr/src/RPM/BUILD/libopencv2.4-2.4.9.1/modules/core/src/matrix.cpp:236: error: (-215) step[dims-1] == (size_t)CV_ELEM_SIZE(flags) in function create</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157626</commentid>
    <comment_count>1</comment_count>
    <who name="Leonid">leonid.krashenko</who>
    <bug_when>2016-07-14 13:25:39 +0300</bug_when>
    <thetext>Тот же код в Ubuntu выдает: 

&gt;&gt;&gt; cv2.HOGDescriptor_getDefaultPeopleDetector()
array([[ 0.05 ..],
        ....
       [ -6,6 ... ]], dtype=float32)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>157724</commentid>
    <comment_count>2</comment_count>
    <who name="Leonid">leonid.krashenko</who>
    <bug_when>2016-07-21 23:04:14 +0300</bug_when>
    <thetext>Мало ли кому пригодится: собрать новую OpenCV и поюзать ее в виртуальном окружении в Питоне можно согласно данной инструкции: http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/

Только в cmake надо передать -D INSTALL_C_EXAMPLES=OFF (если собираете версию 3.1.0, иначе пойдут ошибки), а также устанавливать в локальный каталог, а не в /usr/local.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>