GithubHelp home page GithubHelp logo

Comments (7)

mkassner avatar mkassner commented on August 23, 2024

Hi Pei,

you will need to build pyuvc against our custom version of libuvc. We have added some args to one function to augment bandwidth allocation. https://github.com/pupil-labs/libuvc

I think the lib should work with python 3 as well.

from pyuvc.

jiapei100 avatar jiapei100 commented on August 23, 2024

Did you try it with this oen?
https://www.amazon.com/ELP-Megapixel-Camera-Module-Biometric/dp/B00VG32EC2/ref=sr_1_21?ie=UTF8&qid=1469539078&sr=8-21&keywords=camera+module
We noticed that libuvc has some compatibility issue. We have our own uvc
compatible code, which works properly.

Anyway, I'll try your customized version of libuvc and pyuvc with python3
first...

Cheers

Pei

On Mon, Jul 25, 2016 at 12:56 AM, mkassner [email protected] wrote:

Hi Pei,

you will need to build pyuvc against our custom version of libuvc. We have
added some args to one function to augment bandwidth allocation.
https://github.com/pupil-labs/libuvc

I think the lib should work with python 3 as well.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pupil-labs/pyuvc/issues/17#issuecomment-234874131,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJZnT_mAuLC3Rs4ib3-l-VHLaTPxSbJks5qZGw_gaJpZM4JTrYN
.

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

from pyuvc.

cpicanco avatar cpicanco commented on August 23, 2024

Hi @jiapei100, just for curiosity .. what's the cameras you have had compatibility issues?

from pyuvc.

jiapei100 avatar jiapei100 commented on August 23, 2024

Oh, the camera I'm showing to you is a stereo camera with UVC interface.
If we use our own "libuvc", which works fine with this stereo camera (as
well as a lot of the other monocular UCA cameras, such as Logitech C920,
etc.)
We tested your "libuvc", it looks like it's working fine with Logitech
C920, but does NOT work for the stereo camera I was showing you...
We failed to stream the data out from this stereo camera by using your
"libuvc". But ours works properly.

So far, I cannot tell where the fault is... Busy preparing something else.

Cheers
Pei

On Tue, Jul 26, 2016 at 10:52 AM, Rafael Picanço [email protected]
wrote:

Hi @jiapei100 https://github.com/jiapei100, just for curiosity ..
what's the cameras you have had compatibility issues?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pupil-labs/pyuvc/issues/17#issuecomment-235349677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJZnYf5BqAFlCyQ_SiXhURGUKJrAfJRks5qZklAgaJpZM4JTrYN
.

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

from pyuvc.

jiapei100 avatar jiapei100 commented on August 23, 2024

We noticed it has something to do with your stream.c
from line 876

// our way: estimate it:

876 size_t bandwidth = frame_desc->wWidth * frame_desc->wHeight / 8 *
bandwidth_factor; //the last one is bpp default 4 but we use if for
compression, 2 is save, 1.5 is needed to run 3 high speed cam
eras. on one bus.
877 bandwidth *= 10000000 / strmh->cur_ctrl.dwFrameInterval + 1;
878 bandwidth /= 1000; //unit
879 bandwidth /= 8; // 8 high speed usb microframes per ms
880 bandwidth += 12; //header size
881 config_bytes_per_packet = bandwidth;

But, we've got NO idea why it is so yet...

However, by removing this part, it's able to work with the camera I
mentioned, with "sudo" ...

Cheers

On Tue, Jul 26, 2016 at 2:56 PM, JIA Pei [email protected] wrote:

Oh, the camera I'm showing to you is a stereo camera with UVC interface.
If we use our own "libuvc", which works fine with this stereo camera (as
well as a lot of the other monocular UCA cameras, such as Logitech C920,
etc.)
We tested your "libuvc", it looks like it's working fine with Logitech
C920, but does NOT work for the stereo camera I was showing you...
We failed to stream the data out from this stereo camera by using your
"libuvc". But ours works properly.

So far, I cannot tell where the fault is... Busy preparing something else.

Cheers
Pei

On Tue, Jul 26, 2016 at 10:52 AM, Rafael Picanço <[email protected]

wrote:

Hi @jiapei100 https://github.com/jiapei100, just for curiosity ..
what's the cameras you have had compatibility issues?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pupil-labs/pyuvc/issues/17#issuecomment-235349677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJZnYf5BqAFlCyQ_SiXhURGUKJrAfJRks5qZklAgaJpZM4JTrYN
.

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

from pyuvc.

jiapei100 avatar jiapei100 commented on August 23, 2024

Also, looks like there is still some incompatibility here, NOT really what
I've been expecting...

jiapei:pyuvc$ sudo python setup.py install
running install
running build
running build_ext
building 'uvc' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -g -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC
-I/usr/local/lib/python3.
5/dist-packages/numpy/core/include -I/usr/include -I/usr/include/python3.5m
-c uvc.c -o build/temp.linux-x86_64-3.5/uvc.o
In file included from
/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1777:0,

            from

/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18,

            from

/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/arrayobject.h:4,

            from uvc.c:311:

/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2:
warning:
#warning "Using deprecated NumPy API, disable it by " "#defining
NPY_NO_DEPRECATED_API NPY_1_7_API_V
ERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
uvc.c: In function ‘__pyx_f_3uvc_7Capture__enumerate_controls’:
uvc.c:13891:26: warning: assignment discards ‘const’ qualifier from pointer
target type [-Wdiscarded-qualifiers]
__pyx_v_input_terminal = uvc_get_input_terminals(__pyx_v_self->devh);
^
uvc.c:13900:27: warning: assignment discards ‘const’ qualifier from pointer
target type [-Wdiscarded-qualifiers]
__pyx_v_output_terminal = uvc_get_output_terminals(__pyx_v_self->devh);
^
uvc.c:13909:27: warning: assignment discards ‘const’ qualifier from pointer
target type [-Wdiscarded-qualifiers]
__pyx_v_processing_unit = uvc_get_processing_units(__pyx_v_self->devh);
^
uvc.c:13918:26: warning: assignment discards ‘const’ qualifier from pointer
target type [-Wdiscarded-qualifiers]
__pyx_v_extension_unit = uvc_get_extension_units(__pyx_v_self->devh);
^
uvc.c: In function ‘__pyx_f_3uvc_7Capture__enumerate_formats’:
uvc.c:14503:23: warning: assignment discards ‘const’ qualifier from pointer
target type [-Wdiscarded-qualifiers]
__pyx_v_format_desc = uvc_get_format_descs(__pyx_v_self->devh);
^
In file included from
/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/ndarrayobject.h:27:0,

            from

/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/arrayobject.h:4,

            from uvc.c:311:

uvc.c: At top level:
/usr/local/lib/python3.5/dist-packages/numpy/core/include/numpy/__multiarray_api.h:1448:1:
warning:
‘_import_array’ defined but not used [-Wunused-function]
_import_array(void)
^
uvc.c:16589:13: warning: ‘__pyx_f_3uvc_on_status_update’ defined but not
used [-Wunused-function]
static void __pyx_f_3uvc_on_status_update(enum uvc_status_class
__pyx_v_status_class, int __pyx_v_event, int __pyx_v_selector, enum
uvc_status_attribute __pyx_v_status_attribute, CYTHON_UNUSED void *__py
^
Traceback (most recent call last):
File "setup.py", line 54, in
ext_modules=cythonize(extensions)
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/install.py", line 583, in run
self.run_command('build')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 338, in run
self.build_extensions()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 447, in
build_extensions
self._build_extensions_serial()
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 472, in
_build_extensions_serial
self.build_extension(ext)
File "/usr/lib/python3.5/distutils/command/build_ext.py", line 557, in
build_extension
target_lang=language)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 717, in
link_shared_object
extra_preargs, extra_postargs, build_temp, target_lang)
File "/usr/lib/python3.5/distutils/unixccompiler.py", line 207, in link
self.spawn(linker + ld_args)
File "/usr/lib/python3.5/distutils/ccompiler.py", line 909, in spawn
spawn(cmd, dry_run=self.dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 36, in spawn
_spawn_posix(cmd, search_path, dry_run=dry_run)
File "/usr/lib/python3.5/distutils/spawn.py", line 89, in _spawn_posix
log.info(' '.join(cmd))
TypeError: sequence item 16: expected str instance, list found
jiapei:pyuvc$

cheers

On Wed, Jul 27, 2016 at 12:41 AM, JIA Pei [email protected] wrote:

We noticed it has something to do with your stream.c
from line 876

// our way: estimate it:

876 size_t bandwidth = frame_desc->wWidth * frame_desc->wHeight / 8 *
bandwidth_factor; //the last one is bpp default 4 but we use if for
compression, 2 is save, 1.5 is needed to run 3 high speed cam
eras. on one bus.
877 bandwidth *= 10000000 / strmh->cur_ctrl.dwFrameInterval + 1;
878 bandwidth /= 1000; //unit
879 bandwidth /= 8; // 8 high speed usb microframes per ms
880 bandwidth += 12; //header size
881 config_bytes_per_packet = bandwidth;

But, we've got NO idea why it is so yet...

However, by removing this part, it's able to work with the camera I
mentioned, with "sudo" ...

Cheers

On Tue, Jul 26, 2016 at 2:56 PM, JIA Pei [email protected] wrote:

Oh, the camera I'm showing to you is a stereo camera with UVC interface.
If we use our own "libuvc", which works fine with this stereo camera (as
well as a lot of the other monocular UCA cameras, such as Logitech C920,
etc.)
We tested your "libuvc", it looks like it's working fine with Logitech
C920, but does NOT work for the stereo camera I was showing you...
We failed to stream the data out from this stereo camera by using your
"libuvc". But ours works properly.

So far, I cannot tell where the fault is... Busy preparing something else.

Cheers
Pei

On Tue, Jul 26, 2016 at 10:52 AM, Rafael Picanço <
[email protected]> wrote:

Hi @jiapei100 https://github.com/jiapei100, just for curiosity ..
what's the cameras you have had compatibility issues?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/pupil-labs/pyuvc/issues/17#issuecomment-235349677,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJZnYf5BqAFlCyQ_SiXhURGUKJrAfJRks5qZklAgaJpZM4JTrYN
.

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

Pei JIA, Ph.D.

Email: [email protected]
cell in Canada: +1 778-863-5816
cell in China: +86 186-8244-3503

Welcome to Vision Open
http://www.visionopen.com

from pyuvc.

mkassner avatar mkassner commented on August 23, 2024

Hi pyuvc builds against our fork of libuvc. It is py2 and py3 compatible.

from pyuvc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.