Download modules/core/misc/python/pyopencv_core.hpp from tgollogly/test: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/python/pyopencv_core.hpp
- Command line
-
hf download hf://tgollogly/test/modules/core/misc/python/pyopencv_core.hpp
-
curl -L -o pyopencv_core.hpp https://huggingface.co/tgollogly/test/resolve/main/modules/core/misc/python/pyopencv_core.hpp
1.6 kB
| static PyObject* pycvMakeType(PyObject* , PyObject* args, PyObject* kw) { | |
| const char *keywords[] = { "depth", "channels", NULL }; | |
| int depth, channels; | |
| if (!PyArg_ParseTupleAndKeywords(args, kw, "ii", (char**)keywords, &depth, &channels)) | |
| return NULL; | |
| int type = CV_MAKETYPE(depth, channels); | |
| return PyInt_FromLong(type); | |
| } | |
| template <int depth> | |
| static PyObject* pycvMakeTypeCh(PyObject*, PyObject *value) { | |
| int channels = (int)PyLong_AsLong(value); | |
| return PyInt_FromLong(CV_MAKETYPE(depth, channels)); | |
| } | |