uoip / kcfnb Goto Github PK
View Code? Open in Web Editor NEWPython implementation of KCF tracking algorithm with Ahead-of-Time Numba
License: MIT License
Python implementation of KCF tracking algorithm with Ahead-of-Time Numba
License: MIT License
Hi, I'm confused about what update function will return when object disappears. It seems the function will still return a location. Is there any way to return confidence about tracking results?
I get the folowing error when i try to run:
Traceback (most recent call last):
File "fhog_utils.py", line 10, in
cc = CC('fhog_utils')
File "C:\ProgramData\Anaconda2\lib\site-packages\numba\pycc\cc.py", line 62, i
n init
self._toolchain = Toolchain()
File "C:\ProgramData\Anaconda2\lib\site-packages\numba\pycc\platform.py", line
61, in init
self._raise_external_compiler_error()
File "C:\ProgramData\Anaconda2\lib\site-packages\numba\pycc\platform.py", line
104, in _raise_external_compiler_error
raise RuntimeError(msg)
RuntimeError: Attempted to compile AOT function without the compiler used by nu mpy.distutils present. Cannot find suitable msvc.
Please add a license file to the repo that describes under what conditions others might use your code. Personally I like the BSD, MIT varieties:
https://opensource.org/licenses/MIT
ubuntu 16.04
conda virtual-env python2.7
when run "python fhog.util.py" get some err like this:
cc1plus: warning: command line option ???-Wstrict-prototypes??? is valid for C/ObjC but not for C++
In file included from /home/by/anaconda3/envs/kcfenv/lib/python2.7/site-packages/numba/pycc/modulemixin.c:16:0:
/home/by/anaconda3/envs/kcfenv/lib/python2.7/site-packages/numba/pycc/../_helperlib.c: In function ???import_cython_function???:
/home/by/anaconda3/envs/kcfenv/lib/python2.7/site-packages/numba/pycc/../_helperlib.c:578:42: warning: passing argument 2 of ???PyMapping_GetItemString??? discards ???const??? qualifier from pointer target type [-Wdiscarded-qualifiers]
cobj = PyMapping_GetItemString(capi, function_name);
^
In file included from /home/by/anaconda3/envs/kcfenv/include/python2.7/Python.h:136:0,
from /home/by/anaconda3/envs/kcfenv/lib/python2.7/site-packages/numba/pycc/../_pymodule.h:6,
from /home/by/anaconda3/envs/kcfenv/lib/python2.7/site-packages/numba/pycc/modulemixin.c:8:
/home/by/anaconda3/envs/kcfenv/include/python2.7/abstract.h:1356:29: note: expected ???char *??? but argument is of type ???const char *???
PyAPI_FUNC(PyObject *) PyMapping_GetItemString(PyObject *o, char *key);
^
Exception TypeError: "'NoneType' object is not callable" in <bound method ModuleRef.del of <llvmlite.binding.module.ModuleRef object at 0x7f1042b255d0>> ignored
I don't know how to fix this.pls
I want to build this file in windows but I am not successful. I test with both msvc and mingw32 compiler but I got this error:
compilation terminated. Traceback (most recent call last): File "fhog_utils.py", line 125, in <module> cc.compile() File "C:\Users\Ali\Anaconda2\lib\site-packages\numba\pycc\cc.py", line 212, in compile objects += self._compile_mixins(build_dir) File "C:\Users\Ali\Anaconda2\lib\site-packages\numba\pycc\cc.py", line 187, in _compile_mixins extra_cflags=extra_cflags) File "C:\Users\Ali\Anaconda2\lib\site-packages\numba\pycc\platform.py", line 79, in compile_objects extra_preargs=extra_cflags) File "C:\Users\Ali\Anaconda2\lib\site-packages\numpy\distutils\ccompiler.py", line 230, in CCompiler_compile single_compile(o) File "C:\Users\Ali\Anaconda2\lib\site-packages\numpy\distutils\ccompiler.py", line 194, in single_compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "C:\Users\Ali\Anaconda2\lib\distutils\cygwinccompiler.py", line 166, in _compile raise CompileError, msg distutils.errors.CompileError: Command "gcc -mdll -O -Wall -DMS_WIN64 -DPYCC_MODULE_NAME=fhog_utils -DPYCC_USE_NRT=1 -IC:\Users\Ali\Anaconda2\include -IC:\Users\Ali\Anaconda2\PC -IC:\\Users\\Ali\\Anaconda2\\lib\\site-packages\\numpy\\core\\include -c C:\Users\Ali\Anaconda2\lib\site-packages\numba\pycc\modulemixin.c -o c:\users\ali\anaconda2\lib\site-packages\numba\pycc\modulemixin.o" failed with exit status 1
Can I build it on windows? How?
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.