How to choose camera device used by cam_align?

More
25 May 2021 21:45 #210269 by plovdiv

yes qtvcp in 2.8 does not support the -o option it seems
I can add it but you'd have to wait for next release or modify the code yourself.


I'ld like to try. You've got a diff for me?

Please Log in or Create an account to join the conversation.

More
25 May 2021 21:50 #210272 by cmorley
Ok here you go:
Let me know how it goes - I'll push to 2.8 if all is good.


Chris
Attachments:

Please Log in or Create an account to join the conversation.

More
25 May 2021 22:13 #210277 by plovdiv
patching cam_align_handler.py and camview_widget.py suceeded

But there is no such file qtvcp.py on my 2.8.1 installation.

Please Log in or Create an account to join the conversation.

More
25 May 2021 22:42 #210281 by cmorley
There is such a file somewhere.
Are you using a compiled version or an installed version?

Please Log in or Create an account to join the conversation.

More
26 May 2021 08:19 #210316 by plovdiv
I Installed via iso image and updated with apt-get

"locate qtvcp.py" gives nothing neither does "locate qtvcp.pyc"

Please Log in or Create an account to join the conversation.

More
26 May 2021 12:37 #210338 by cmorley
try locate qtvcp

the .py is removed and it's probably in bin/

Sorry I don't have an installed version handy to check

Please Log in or Create an account to join the conversation.

More
27 May 2021 11:14 #210436 by plovdiv
I could locate and patch the file as /usr/bin/qtvcp
The -o option now is accepted.

But I don't get a video display in the axis tab:

# Embed tabs
EMBED_TAB_NAME= fideo
# -Wn wait for 'name' -c give 'name'
EMBED_TAB_COMMAND= halcmd loadusr -Wn qtvcp_embed qtvcp -d -o 0 -c qtvcp_embed -x {XID} cam_align

The "fideo" tab says: "No image"

But with standalone "mpv av://v4l2:/dev/video0" the stream is displayed.

Please Log in or Create an account to join the conversation.

More
28 May 2021 01:09 #210486 by cmorley
qtvcp uses opencv for camera interfacing.
it's possible your camera is not compatible with the default settings.
specifically it assumes the camera gives BGR and converts to RGB
(cv2.COLOR_BGR2RGB)

I had assumed you did get a picture but needed a different camera selection.

Can you try a different camera to see if it works?
also checking in the terminal may give some clue (but you might have to look carefully)

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.263 seconds
Powered by Kunena Forum