gmoccapy Kamera einbinden

More
17 Nov 2016 12:00 #82888 by michelko
Replied by michelko on topic gmoccapy Kamera einbinden

Hallo Norbert,
Natürlich wollte ich die cam-Einbindung dauerhaft haben :)
Ich wusste nur nicht so recht, was es mit dem Brunch Dateien auf sich hat, so gut ist mein englisch leider nicht. Ich habe ein update über die Paketverwaltung gemacht, danach war die cam-Einbindung weg, aber nur in der ( /usr/lib/pymodules/python2.7/gladevcp ) da musste ich die camview in der Datei "hal_pythonplugin.py" wieder eintragen, aber nur dort wurde sie überschrieben.
Ich habe mal zum testen die cam auf diese Weise in axis.ini eingetragen, dort funktioniert die cam genauso.
Sehr schönes cam Modul. :woohoo:

Eine Sache noch, kann ich in der camview.py etwas ändern, damit nicht bei jedem Start das Fadenkreuz mit den 5 Ringen in rot erscheint? Ich hätte das gerne, wenn nur das Fadenkreuz in gelb auf dem Bildschirm erscheint, sonst muß ich das erst immer am Anfang neu einstellen? Welche Zeilen muss ich dazu editieren, und wie?
Gruß Frank

EDIT: 15.11.2016
Ich glaube, ich habs gefunden, zumindest habe ich die letzten Zeilen des Programms so geändert, das das Fadenkreuz nun gelb und nur ein Kreis mit einem Ø von 230 angezeigt wird, aber nur wenn ich das lokal aufrufe. Ich befinde mich im Verzeichnis: /usr/lib/pymodules/python2.7/gladevcp und gebe python camview.py ein. Da erscheint nun das Fenster mit der Cam in der gewünschten Position. Starte ich nun linuxcnc mit gmoccapy und klicke auf den Reiter Kamera, dann ist es immer noch rot und hat 5 Kreise, obwohl das die gleiche geänderte Datei ist? Im Verzeichnis ( /usr/share/pyshared/gladevcp ) habe ich die camview.py mal rausgenommen, das funktioniert auch so, aber warum wird die Datei immer noch so von linuxcnc dargestellt?
Gruß Frank


Hallo,
kuck mal hier:

forum.linuxcnc.org/48-gladevcp/30587-cam...-jessie?limitstart=0

"On stand alone setting the cam resolution is easy.
Go to the end of the file and check for the line:
camv = CamView(videodevice=0, frame_width=640, frame_height=480)

just change width and high values to fit your needs.

If you do use it embedded, just change the values on the property part of the corresponding glade file.

Could you please let me know something about the hardware of both tested computers?"

Gruss Michael

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

More
17 Nov 2016 18:27 #82911 by xpkiller
Replied by xpkiller on topic gmoccapy Kamera einbinden
Hallo,

Hallo,
kuck mal hier:

forum.linuxcnc.org/48-gladevcp/30587-cam...-jessie?limitstart=0

"On stand alone setting the cam resolution is easy.
Go to the end of the file and check for the line:
camv = CamView(videodevice=0, frame_width=640, frame_height=480)

just change width and high values to fit your needs.

If you do use it embedded, just change the values on the property part of the corresponding glade file.

Could you please let me know something about the hardware of both tested computers?"

Gruss Michae


Das hatte ich übersehen. Ich habe die camview.glade angepasst.
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="2.24"/>
  <!-- interface-requires gladevcp 0.0 -->
  <!-- interface-naming-policy project-wide -->
  <object class="GtkWindow" id="window1">
    <property name="can_focus">False</property>
    <child>
      <object class="CamView" id="camview1">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="circle_size">230</property>
        <property name="number_of_circles">1</property>
        <property name="draw_color">gtk.gdk.Color("yellow")</property>
        <property name="autosize">True</property>
      </object>
    </child>
  </object>
</interface>
Jetzt wird es so dargestellt, wie ich es brauche. :)
Gruß Frank
The following user(s) said Thank You: michelko

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

More
18 Nov 2016 14:59 #82962 by michelko
Replied by michelko on topic gmoccapy Kamera einbinden
Prima habe ichauch gleich mal reingebastelt

Gruss Michael

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

More
10 Jun 2019 19:40 #136508 by jasen
Replied by jasen on topic gmoccapy Kamera einbinden
Hi all , i try to install it , but i am getting the folowing error:

(gladevcp:25666): libglade-WARNING **: Expected <glade-interface>. Got <interface>.

(gladevcp:25666): libglade-WARNING **: did not finish in PARSER_FINISH state
** GLADE VCP ERROR: With xml file: camview.glade : could not create GladeXML object

any idea why?
thanks

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

More
15 Jun 2019 15:02 #136988 by pl7i92
Replied by pl7i92 on topic gmoccapy Kamera einbinden
Hast du cheese installiert
und auch Video4linux

damit sollten alle treiber da sein

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

Time to create page: 0.227 seconds
Powered by Kunena Forum