tuxiaokang / pyseeta Goto Github PK
View Code? Open in Web Editor NEWpython api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)
License: MIT License
python api for SeetaFaceEngine(https://github.com/seetaface/SeetaFaceEngine.git)
License: MIT License
hello, i run your code,but the the accurate is bad, i use the model you provided,and need i train it?
I am new to python.
when i ran your test.py . i got this error. any help will be pleasure, tks!
pyseeta/pyseeta/detector.py", line 77, in detect
byte_data = (c_ubyte * image.size)(*image.tobytes())
TypeError: an integer is required
numpy version is 1.12.1
OS is : ubuntu 14.04
we intend to use this to detect face and perform masking of the face area, including when the face is facing sideways.
OSError: /home/melvin/anaconda2/bin/../lib/libgomp.so.1: version `GOMP_4.0' not found (required by /home/melvin/pyseeta/pyseeta/../SeetaFaceEngine/Release/libseeta_fd_lib.so)
rt, I want to make a python lib for my project (https://github.com/Jack-CV/FaceKit/tree/master/PCN)
When i run python setup.py install
the output will be
Traceback (most recent call last): File "setup.py", line 3, in <module> from pyseeta import config File "C:\thesis\pyseeta\__init__.py", line 4, in <module> from pyseeta.detector import Detector File "C:\thesis\pyseeta\detector.py", line 38, in <module> detect_lib = cdll.LoadLibrary(lib_path) File "C:\Users\user-pc\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 426, in LoadLibrary return self._dlltype(name) File "C:\Users\user-pc\AppData\Local\Programs\Python\Python36\lib\ctypes\__init__.py", line 348, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 193] %1 is not a valid Win32 application
i've opened the detector.py and i found that the lib_path value is seeta_fd_lib . Therefore, my hypothesis is seeta_fd_lib is not a valid Win32 application according to the error.
I have installed from seetaface itself or downloaded the pre-trained mode. But the result always OSError: [WinError 193] %1 is not a valid Win32 application
Can you help me solving this problem? Thank you!
I read that SeetaFaceEngine2 has been release. So I want to know whether this repo support it, and the difference between two version of SeetaFaceEngine?
can you give me a baidu link to download this?
thx a lot
It seems like I cannot run the test successfully because of the failure of downloading model files.
Downloading: "http://198.13.45.221/files/seeta_fd_frontal_v1.0-c4619d06.bin" to /home/hwan7885/.pyseeta/models/seeta_fd_frontal_v1.0-c4619d06.bin
ConnectionResetError: [Errno 104] Connection reset by peer
Maybe you can change the MODEL_URL
to the model files in the origin repo directly.
First, thank you for your work!
I followed the setup steps for installation and everything works fine. When I change to example directory and run
python test_opencv.py
it throws RuntimeError.
Traceback (most recent call last):
File "test_opencv.py", line 25, in
from pyseeta import Detector
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/init.py", line 4, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/detector.py", line 36, in
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/config.py", line 49, in get_detector_library
File "/home/zijing/.local/share/virtualenvs/seetaface-cRn5R2_H/lib/python3.5/site-packages/pyseeta-0.4-py3.5.egg/pyseeta/config.py", line 46, in get_library_raise
RuntimeError: SeetaFaceEngine detector dynamic library libseeta_fd_lib.so can't find
I am thinking if it has to do with new setup step needed with release v0.4.0. Could you help me on this? Thank you!
如题
I was successfully able to install pyseeta [ steps 1-4].
but getting the following error. Looks like it is connection error while downloading seeta_fd_frontal_v1.0-c4619d06.bin.
is there a work around. I am using ubuntu vm on amzon.
$ python test_opencv.py or test_pillow.py
test detector:
Downloading: "http://198.13.45.221/files/seeta_fd_frontal_v1.0-c4619d06.bin" to /root/.pyseeta/models/seeta_fd_frontal_v1.0-c4619d06.bin
Traceback (most recent call last):
File "//anaconda3/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "//anaconda3/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "//anaconda3/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "//anaconda3/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "//anaconda3/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "//anaconda3/lib/python3.6/socket.py", line 722, in create_connection
raise err
File "//anaconda3/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test_opencv.py", line 117, in
test_detector()
File "test_opencv.py", line 38, in test_detector
detector = Detector()
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/detector.py", line 67, in init
model_path = load_url(MODEL_URL)
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/model_zoo.py", line 74, in load_url
_download_url_to_file(url, cached_file, hash_prefix)
File "//anaconda3/lib/python3.6/site-packages/pyseeta-0.4-py3.6.egg/pyseeta/model_zoo.py", line 80, in _download_url_to_file
u = urlopen(url)
File "//anaconda3/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "//anaconda3/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "//anaconda3/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "//anaconda3/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "//anaconda3/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "//anaconda3/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.