Adding_Digital_Zoom_To_Camview Emc - rmu75/linuxcnc-wiki GitHub Wiki


date: '2017-10-26T20:59:08' title: Adding Digital Zoom To Camview-Emc

The purpose of this tutorial is to show how a digital zoom capability can be added to camview-emc.

The following image shows how the modified camview-emc looks like (HD5000 webcam, distance 100mm from the metric ruler)
HD5000 fixture described here: [1]

upload:linuxcnc20%20_2013-11-08_21-23-35.jpg

The control panel has been modified to provide direct zoom and focus control.

camviuew-emc material can be found here Axis Embed Video

Step #1: compile camunits to add util.crop capability


TODO

Step #2: install the modified camview-emc

  • Add the following files to your LinuxCNC configuration directory
    • upload:cam.ui
    • upload:camview-emc-f1oat.py
    • upload:camview.cfg

Step #3: integrate with your LinuxCNC GUI

  • Gmoccapy integration

Add the following lines in your .ini file

[DISPLAY]
..
EMBED_TAB_NAME = Camera
EMBED_TAB_LOCATION = ntb_user_tabs
EMBED_TAB_COMMAND = ./camview-emc-f1oat.py -v 1280x720 -C camview.cfg -g cam.ui -H campins.hal  -w {XID} 
  • Axis integration

TODO


# FAQ
  • How to have a black background for the DRO ?

Use this version of halio.c: upload:halio.c

⚠️ **GitHub.com Fallback** ⚠️