Getting OpenCV to work

133 views
Skip to first unread message

Matt Beamish

unread,
Sep 5, 2018, 7:36:01 AM9/5/18
to ResourceSpace
Hi there,
Having trouble getting OpenCV to do anything; I think I'm missing something obvious.

Server is Windows 2016, IIS10, PHP 7.2.

I've installed Python, NumPy and OpenCV:
E:\>python
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print cv2.__version__
3.2.0


Because I'm running OpenCV v3, I've made the changes to the two python files, as suggested here: https://groups.google.com/d/msg/resourcespace/9lBn9pfjj6I/Xy2DmS-FCwAJ

I've changed the "Named Person(s)" field to be a Dynamic Keywords List, and identified it's ID as 29.

I've created a folder and given the IIS anon user write access to it, as well as Everyone (for testing purposes because I'm desperate now)

I've set config.php to enable facial recognition:
# facial recognition config
$python_path
= 'c:/python27';
$facial_recognition
= true;
$facial_recognition_tag_field
= 29;
$facial_recognition_face_recognizer_models_location
= 'e:/faceRecogniserData';

Here's what's not working.
  • Adding an annotation: I can highlight a face manually, select a keyword and save it, but it doesn't persist.
  • Running the facial_recognition_trainer.php does absolutely nothing.
  • I can manually set the Named Person(s) field by editing metadata but it doesn't seem to apply to the face(s) in the picture.

There appears to be nothing in the activity log; adding an annotation doesn't appear to register anything in the log even if I have debug logging set.

Anyone have any ideas what I'm doing wrong?

Thanks,
Matt

Lukaz Precision

unread,
Jan 23, 2021, 2:40:00 PM1/23/21
to ResourceSpace
Did you get your issues resolved? I have the same issue like you. I installed ResourceSpace on Debian and configure face recognition as the documentation. However, I'm only able to persist the face data when I use superuser account only (The account that you created during ResourceSpace setup). Other user can highlight a face and tag them, but can't persist. I tried with ResourceSpace 9.4 and the problem still exists

Best Regards,
Lukaz
Reply all
Reply to author
Forward
0 new messages