Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
OT (slightly) Crosshair for camera on homebrew Pick&Place
Hi, I have built a manual pick and place system that gets around my rather unsteady hands (the indignities of age) and have a USB microscope
mounted on it to provide a means of aiming, but I need some sort of cross-hair to help. I have found PixMicro which works well but only under Windows. Ideally, I want to use a Raspberry Pi 4 with (ideally) Ubuntu to display the camera output. Can anyone suggest a Linux webcam viewer that has a cross-hair facility ?? Regards, Dave |
Using ffplay, part of the ffmpeg software, you can overlay a "grid" centered at the, err, center, of your live video, if the grid cell is large enough you will result in just vertical line and a horizontal line passing through that center point. Something like this, here x and y are the calculated center point, w and h are the size of the cells, which are larger than the video input size, and t is the thickness ffplay (and ffmpeg) can stream from a connected webcam on linux using vl2 -? So, the command for doing it live might be something like?this I think (I don't have a webcam to try) ? ? ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0? -vf drawgrid=x=320:y=220:w=1000:h=1000:t=5 On Fri, 13 May 2022 at 04:27, David Slipper <softfoot@...> wrote:
|
Should add you can set the color of the lines... ? ? -vf drawgrid=x=320:y=220:w=1000:h=1000:t=5:color=red On Fri, 13 May 2022 at 08:44, James <bitsyboffin@...> wrote:
|
I made a measuring digital microscope, see: https://www.youtube.com/watch?v=lw1b58kITxQ The cross hairs were drawn, saved as a JPG and overlayed onto the video using a free viewer called Where's James. This is shown towards the end of the Youtube video. A Google search did not find the Where's James programme, but there must be many viewers with overlay capability. MPV may do overlays on Linux https://mpv.io/ Malcolm I don't suffer from insanity I enjoy it! Mene, mene, tekel, upharsin The writing is on the wall. Ha-ktovet al ha-kir On Thursday, May 12, 2022, 05:27:17 PM GMT+1, David Slipper <softfoot@...> wrote: Hi, I have built a manual pick and place system that gets around my rather unsteady hands (the indignities of age) and have a USB microscope mounted on it to provide a means of aiming, but I need some sort of cross-hair to help. I have found PixMicro which works well but only under Windows. Ideally, I want to use a Raspberry Pi 4 with (ideally) Ubuntu to display the camera output. Can anyone suggest a Linux webcam viewer that has a cross-hair facility ?? Regards, Dave |
to navigate to use esc to dismiss