[Slackbuilds-users] frei0r slackbuild issue

Tim Dickson dickson.tim at googlemail.com
Tue Jan 21 11:37:28 UTC 2020


frei0r did work with opencv 4.1
it looks like a patch or two have been worked on which may fix the issue 
with opencv 4.2
https://github.com/dyne/frei0r/pull/97
and
https://github.com/dyne/frei0r/pull/94
hopefully frei0r >V1.7 will work ok.
Tim

On 20/01/2020 14:05, Christoph Willing wrote:
> On 20/1/20 11:07 pm, Tim Dickson via SlackBuilds-users wrote:
>> frei0r is failing to build when opencv is installed. (using sbopkg).
>> see error below. Any ideas on how to fix it?
>>
>>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp: In
>>> member function 'virtual void FaceBl0r::update(double, uint32_t*,
>>> const uint32_t*)':
>>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:217:43:
>>> error: could not convert
>>> '((FaceBl0r*)this)->FaceBl0r::tracked_obj->TrackedObj::prev_rect' from
>>> 'cv::Rect {aka cv::Rect_<int>}' to 'CvRect'
>>>          cvSetImageROI (image, tracked_obj->prev_rect);
>>>                                             ^
>>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:226:73:
>>> error: could not convert 'cv::Scalar_<double>(0.0, 0.0, 2.55e+2, 0.0)'
>>> from 'cv::Scalar {aka cv::Scalar_<double>}' to 'CvScalar'
>>>                 cvEllipseBox(image, face_box, CV_RGB(255,0,0), 2,
>>> CV_AA, 0);
>>> ^
>>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp: In
>>> member function 'CvBox2D FaceBl0r::camshift_track_face(IplImage*,
>>> TrackedObj*)':
>>> /tmp/SBo/frei0r-plugins-1.7.0/src/filter/facebl0r/facebl0r.cpp:350:10:
>>> error: could not convert 'rot_rect' from 'cv::RotatedRect' to 'CvBox2D'
>>>     return rot_rect;
>>>            ^
>>> src/filter/facebl0r/CMakeFiles/facebl0r.dir/build.make:62: recipe for
>>> target 'src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.o'
>>> failed
>>> make[2]: ***
>>> [src/filter/facebl0r/CMakeFiles/facebl0r.dir/facebl0r.cpp.o] Error 1
>>> CMakeFiles/Makefile2:632: recipe for target
>>> 'src/filter/facebl0r/CMakeFiles/facebl0r.dir/all' failed
>>> make[1]: *** [src/filter/facebl0r/CMakeFiles/facebl0r.dir/all] Error 2
>>> Makefile:127: recipe for target 'all' failed
>>> make: *** [all] Error 2
> I think the alternatives are:
>     1. file a bug report with frei0r, about compatibility with the latest
> opencv-4.2.0 (I'm pretty sure it was OK with the previous opencv-4.1.0).
>     2. build frei0r using opencv-legacy rather than opencv
>     3. don't build frei0r against opencv or opencv-legacy at all (since
> it's an optional dep for frei0r).
>
> chris
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>


---
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the SlackBuilds-users mailing list