faceRecognizerTrainer update

33 views
Skip to first unread message

mbuh...@gmail.com

unread,
Aug 23, 2021, 11:01:30 AM8/23/21
to ResourceSpace
Has anyone managed to tweak the faceRecognizerTrainer.py script to work with OpenCV 4.x and Python 3.x? I've been tweaking as errors pop up but one eludes me since I'm not a programmer:

Traceback (most recent call last):
  File "/var/www/html/pages/tools/../../lib/facial_recognition/faceRecognizerTra                                                     iner.py", line 38, in <module>
    if (major<3 and minor<7) or minor<3:
TypeError: '<' not supported between instances of 'str' and 'int'

Any idea how to correct this?

Jeff Nova

unread,
Aug 23, 2021, 11:55:24 AM8/23/21
to resour...@googlegroups.com
Try commenting it out. - J

On Aug 23, 2021, at 8:01 AM, mbuh...@gmail.com <mbuh...@gmail.com> wrote:

Has anyone managed to tweak the faceRecognizerTrainer.py script to work with OpenCV 4.x and Python 3.x? I've been tweaking as errors pop up but one eludes me since I'm not a programmer:
--
ResourceSpace: Open Source Digital Asset Management
http://www.resourcespace.com
---
You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to resourcespac...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/resourcespace/c3735f0b-2d20-43a9-ae58-840a2bdc16bdn%40googlegroups.com.

mbuh...@gmail.com

unread,
Aug 23, 2021, 12:12:35 PM8/23/21
to ResourceSpace
I appreciate that suggestion and should have been more clear in that that is what my tweaking has been. :) Commenting stuff out just results in more errors and more lines commented out.

Jeff Nova

unread,
Aug 23, 2021, 12:21:58 PM8/23/21
to resour...@googlegroups.com
I’ll try to get around to fixing this - I work on Opencv and Python frequently. -J

On Aug 23, 2021, at 9:12 AM, mbuh...@gmail.com <mbuh...@gmail.com> wrote:

I appreciate that suggestion and should have been more clear in that that is what my tweaking has been. :) Commenting stuff out just results in more errors and more lines commented out.

mbuh...@gmail.com

unread,
Aug 24, 2021, 11:09:51 AM8/24/21
to ResourceSpace
I'll buy you a coffee. :)

mbuh...@gmail.com

unread,
Sep 9, 2021, 11:46:34 AM9/9/21
to ResourceSpace
Any luck with this? I've been tinkering but am not a programmer, unfortunately.
Reply all
Reply to author
Forward
0 new messages