-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/python2.7
Allows python to bind flask to port 80, without having to be run as root.
However, trying to run flask causes OpenCV to stop working, probably detecting the system change (the python binary can access the ports < 1024 without root access).
pi@coderbot:~/coderbot $ python init.py
******************************************************************
* FATAL ERROR: *
* This OpenCV build doesn't support current CPU/HW configuration *
* *
* Use OPENCV_DUMP_CONFIG=1 environment variable for details *
******************************************************************
Required baseline features:
NEON - NOT AVAILABLE
OpenCV Error: Assertion failed (Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup.) in initialize, file /home/pi/opencv-3.3.0/modules/core/src/system.cpp,
line 518
terminate called after throwing an instance of 'cv::Exception'
what(): /home/pi/opencv-3.3.0/modules/core/src/system.cpp:518: error: (-215) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function initialize
Aborted
How we should handle this, considering that accessing the web applicaition without having to type the port is critical?
I suggest to install nginx or apache2 and set a simple reverse proxy 80 --> 8080 OR remove the assertion in OpenCV.
Metadata
Metadata
Assignees
Labels
No labels