[digikam] [Bug 349601] New: Compiling digikam with opencv 3.0.0 gives crash but not with opencv 2.x

classic Classic list List threaded Threaded
63 messages Options
1234
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=349601

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #94359|0                           |1
        is obsolete|                            |

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #36 from Gilles Caulier <[hidden email]> ---
I mofified libkface-15.04.2-opencv3.patch to support OpenCV 2 and 3 and to be
ready to integrate on next digiKam 4.14.0.

Willy,

How did your configure OpenCV3 through cmake option :

-DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

...to integrate opencv contrib modules at compilation time ?

Gilles Cauliert

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Willy Sudiarto Raharjo
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #37 from Willy Sudiarto Raharjo <[hidden email]> ---
i just followed instructions on their github:
https://github.com/Itseez/opencv_contrib/

You can build OpenCV, so it will include the modules from this repository. Here
is the CMake command for you:

$ cd <opencv_build_directory>
$ cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules
<opencv_source_directory>
$ make -j5

As the result, OpenCV will be built in the <opencv_build_directory> with all
modules from opencv_contrib repository.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Willy Sudiarto Raharjo
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #38 from Willy Sudiarto Raharjo <[hidden email]> ---
Here's the cmake for opencv

mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DINSTALL_MAN_DIR=man \
    -DINSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
    -DBUILD_SHARED_LIBS=ON \
    -DENABLE_PRECOMPILED_HEADERS=OFF \
    -DWITH_QT=ON \
    -DWITH_IPP=OFF \
    -DLIB_SUFFIX=$LIBDIRSUFFIX \
    -DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
    -DOPENCV_EXTRA_MODULES_PATH=$PRGNAM2-$VERSION/modules .. \
    ..
  make VERBOSE=1
  make install DESTDIR=$PKG
cd ..

i put the opencv_contrib directory inside opencv's directory so one level above
"build" directory

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #39 from Gilles Caulier <[hidden email]> ---
What's $PRGNAM2-$VERSION with
"-DOPENCV_EXTRA_MODULES_PATH=$PRGNAM2-$VERSION/modules .."

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Willy Sudiarto Raharjo
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #40 from Willy Sudiarto Raharjo <[hidden email]> ---
opencv_contrib-3.0.0 (name of the directory extracted from opencv_contrib
tarball)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #94108|0                           |1
        is obsolete|                            |

--- Comment #41 from Gilles Caulier <[hidden email]> ---
Created attachment 94414
  --> https://bugs.kde.org/attachment.cgi?id=94414&action=edit
libkface OpenCV3 support patch version 3

This new version of patch introduce a new cmake option to turn on/off OpenCV3
support. From README :

Use CMake "-DENABLE_OPENCV3=on" : flag to compile libkface source code using
OpenCV3 instead OpenCV2 (disabled by default). OpenCV3 support needs extra
contrib modules package, especially 'face' ands 'legacy' components.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #94097|0                           |1
        is obsolete|                            |

--- Comment #42 from Gilles Caulier <[hidden email]> ---
Created attachment 94419
  --> https://bugs.kde.org/attachment.cgi?id=94419&action=edit
digiKam core OpenCV3 support patch version 3

digiKam core OpenCV3 support patch version 3

As libkface, this new version of patch introduce a new cmake option to turn
on/off OpenCV3 support.

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #43 from Gilles Caulier <[hidden email]> ---
Created attachment 94420
  --> https://bugs.kde.org/attachment.cgi?id=94420&action=edit
kipi-plugins OpenCV3 support patch version 3

Kipi-plugins OpenCV3 support patch version 3

As libkface, this new version of patch introduce a new cmake option to turn
on/off OpenCV3 support.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #44 from Gilles Caulier <[hidden email]> ---
Git commit 685c5f7380df0666335220809d40f137f4bd39a1 by Gilles Caulier.
Committed on 05/09/2015 at 19:19.
Pushed by cgilles into branch 'master'.

add new OpenCV3 support option

M  +2    -1    bootstrap.linux
M  +2    -1    bootstrap.local
M  +1    -0    bootstrap.macports
M  +1    -0    bootstrap.msvc.bat

http://commits.kde.org/scratch/mwiesweg/digikam-sc/685c5f7380df0666335220809d40f137f4bd39a1

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #45 from Gilles Caulier <[hidden email]> ---
Git commit a53bcebbfc4e6c42ee73adddc41f8c2f8f8f39c8 by Gilles Caulier.
Committed on 05/09/2015 at 19:20.
Pushed by cgilles into branch 'master'.

apply patch #94414 to support OpenCV3

M  +8    -1    CMakeLists.txt
M  +5    -0    README
M  +1    -1    libkface/CMakeLists.txt
M  +3    -2    libkface/detection/opencvfacedetector.cpp
M  +21   -14   libkface/libopencv.h.cmake.in
M  +11   -9    libkface/recognition-opencv-lbph/facerec_borrowed.cpp
M  +39   -0    libkface/recognition-opencv-lbph/facerec_borrowed.h
M  +62   -2    libkface/recognition-opencv-lbph/lbphfacemodel.cpp

http://commits.kde.org/libkface/a53bcebbfc4e6c42ee73adddc41f8c2f8f8f39c8

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #46 from Gilles Caulier <[hidden email]> ---
Git commit 7d3f1e045ba42ed84ec0fc3c5fc523da82da6bbd by Gilles Caulier.
Committed on 05/09/2015 at 19:21.
Pushed by cgilles into branch 'master'.

apply patch #94419 to support OpenCV3

M  +10   -4    CMakeLists.txt
M  +3    -0    README
M  +5    -3    app/utils/libopencv.h
M  +17   -1    libs/database/imgqsort/imgqsort.cpp

http://commits.kde.org/digikam/7d3f1e045ba42ed84ec0fc3c5fc523da82da6bbd

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |http://commits.kde.org/kipi
                   |                            |-plugins/e8e2cab66ae0079586
                   |                            |400e21244444fff20bfcf3
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
   Version Fixed In|                            |4.14.0

--- Comment #47 from Gilles Caulier <[hidden email]> ---
Git commit e8e2cab66ae0079586400e21244444fff20bfcf3 by Gilles Caulier.
Committed on 05/09/2015 at 19:22.
Pushed by cgilles into branch 'master'.

apply patch #94420 to support OpenCV3
FIXED-IN: 4.14.0

M  +12   -5    CMakeLists.txt
M  +6    -0    README
M  +1    -1    removeredeyes/CMakeLists.txt
M  +9    -0  
removeredeyes/detection/locators/haarclassifier/haarclassifierlocator.cpp
M  +5    -4    removeredeyes/plugin/libopencv.h
M  +2    -2    removeredeyes/test/CMakeLists.txt

http://commits.kde.org/kipi-plugins/e8e2cab66ae0079586400e21244444fff20bfcf3

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #48 from Gilles Caulier <[hidden email]> ---
Git commit d61c07bf6213774fa06380c466e7dc5438c03745 by Gilles Caulier.
Committed on 05/09/2015 at 21:35.
Pushed by cgilles into branch 'master'.

add rules if not right OpenCV version is found

M  +15   -1    CMakeLists.txt

http://commits.kde.org/libkface/d61c07bf6213774fa06380c466e7dc5438c03745

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #49 from Gilles Caulier <[hidden email]> ---
Git commit 9a1c86cb5bf0b9d673df2a289d5f19270055af39 by Gilles Caulier.
Committed on 05/09/2015 at 21:36.
Pushed by cgilles into branch 'master'.

add rules if not right OpenCV version is found

M  +15   -1    CMakeLists.txt

http://commits.kde.org/kipi-plugins/9a1c86cb5bf0b9d673df2a289d5f19270055af39

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #50 from Gilles Caulier <[hidden email]> ---
Git commit e589c74a4347f4e6a90cab6fe03ba1314d22293f by Gilles Caulier.
Committed on 05/09/2015 at 21:37.
Pushed by cgilles into branch 'master'.

add rules if not right OpenCV version is found

M  +15   -1    CMakeLists.txt

http://commits.kde.org/digikam/e589c74a4347f4e6a90cab6fe03ba1314d22293f

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Willy Sudiarto Raharjo
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #51 from Willy Sudiarto Raharjo <[hidden email]> ---
Seems i made a mistake on opencv cmake parameter. It should be like this (path
problem)

mkdir -p build
cd build
  cmake \
    -DCMAKE_C_FLAGS="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS="$SLKCFLAGS" \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DINSTALL_MAN_DIR=man \
    -DINSTALL_DOC_DIR=doc/$PRGNAM-$VERSION \
    -DBUILD_SHARED_LIBS=ON \
    -DENABLE_PRECOMPILED_HEADERS=OFF \
    -DWITH_QT=ON \
    -DWITH_IPP=OFF \
    -DLIB_SUFFIX=$LIBDIRSUFFIX \
    -DLIB_INSTALL_DIR=/usr/lib$LIBDIRSUFFIX \
    -DOPENCV_EXTRA_MODULES_PATH=../$PRGNAM2-$VERSION/modules ..
  make VERBOSE=1
  make install DESTDIR=$PKG
cd ..

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #52 from Gilles Caulier <[hidden email]> ---
Git commit dc62c0e0ea55d189d918501cce4d92f4198a1a0c by Gilles Caulier.
Committed on 06/09/2015 at 08:13.
Pushed by cgilles into branch 'master'.

use same OpenCV logic than digiKam and kipi-plugins

M  +1    -1    CMakeLists.txt
M  +1    -1    libkface/detection/opencvfacedetector.cpp
M  +5    -5    libkface/libopencv.h.cmake.in
M  +1    -1    libkface/recognition-opencv-lbph/facerec_borrowed.cpp
M  +15   -15   libkface/recognition-opencv-lbph/facerec_borrowed.h
M  +30   -30   libkface/recognition-opencv-lbph/lbphfacemodel.cpp

http://commits.kde.org/libkface/dc62c0e0ea55d189d918501cce4d92f4198a1a0c

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #53 from Gilles Caulier <[hidden email]> ---
Git commit 60b88b4cb278ec58b63c013ce8be29069258a5ae by Gilles Caulier.
Committed on 06/09/2015 at 13:10.
Pushed by cgilles into branch 'frameworks'.

backport commit #a53bcebbfc4e6c42ee73adddc41f8c2f8f8f39c8 from git/master to
frameworks branch

M  +24   -2    CMakeLists.txt
M  +5    -0    README
M  +1    -1    src/CMakeLists.txt
M  +2    -1    src/detection/opencvfacedetector.cpp
M  +22   -16   src/libopencv.h.cmake.in
M  +11   -10   src/recognition-opencv-lbph/facerec_borrowed.cpp
M  +39   -0    src/recognition-opencv-lbph/facerec_borrowed.h
M  +61   -1    src/recognition-opencv-lbph/lbphfacemodel.cpp

http://commits.kde.org/libkface/60b88b4cb278ec58b63c013ce8be29069258a5ae

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 349601] digikam compile fine with OpenCV 2.X but not with 3.x

Gilles Caulier-4
In reply to this post by Detlef
https://bugs.kde.org/show_bug.cgi?id=349601

--- Comment #54 from Gilles Caulier <[hidden email]> ---
Git commit cad46af57d8277071bd7485ffecabe5209d8759e by Gilles Caulier.
Committed on 06/09/2015 at 13:13.
Pushed by cgilles into branch 'frameworks'.

backport commit #685c5f7380df0666335220809d40f137f4bd39a1 from git/master to
frameworks branch

M  +1    -0    bootstrap.linux
M  +1    -0    bootstrap.macports
M  +1    -0    bootstrap.msvc.bat

http://commits.kde.org/scratch/mwiesweg/digikam-sc/cad46af57d8277071bd7485ffecabe5209d8759e

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
1234