How to choose camera device used by cam_align?
25 May 2021 21:45 #210269
by plovdiv
I'ld like to try. You've got a diff for me?
Replied by plovdiv on topic How to choose camera device used by cam_align?
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.
25 May 2021 21:50 #210272
by cmorley
Replied by cmorley on topic How to choose camera device used by cam_align?
Ok here you go:
Let me know how it goes - I'll push to 2.8 if all is good.
Chris
Let me know how it goes - I'll push to 2.8 if all is good.
Chris
Please Log in or Create an account to join the conversation.
25 May 2021 22:13 #210277
by plovdiv
Replied by plovdiv on topic How to choose camera device used by cam_align?
patching cam_align_handler.py and camview_widget.py suceeded
But there is no such file qtvcp.py on my 2.8.1 installation.
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.
25 May 2021 22:42 #210281
by cmorley
Replied by cmorley on topic How to choose camera device used by cam_align?
There is such a file somewhere.
Are you using a compiled version or an installed version?
Are you using a compiled version or an installed version?
Please Log in or Create an account to join the conversation.
26 May 2021 08:19 #210316
by plovdiv
Replied by plovdiv on topic How to choose camera device used by cam_align?
I Installed via iso image and updated with apt-get
"locate qtvcp.py" gives nothing neither does "locate qtvcp.pyc"
"locate qtvcp.py" gives nothing neither does "locate qtvcp.pyc"
Please Log in or Create an account to join the conversation.
26 May 2021 12:37 #210338
by cmorley
Replied by cmorley on topic How to choose camera device used by cam_align?
try locate qtvcp
the .py is removed and it's probably in bin/
Sorry I don't have an installed version handy to check
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.
27 May 2021 11:14 #210436
by plovdiv
Replied by plovdiv on topic How to choose camera device used by cam_align?
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.
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.
28 May 2021 01:09 #210486
by cmorley
Replied by cmorley on topic How to choose camera device used by cam_align?
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)
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.114 seconds