Krontalk

Chronos => Software Dev => Topic started by: JeffNickel on March 31, 2020, 10:38:29 AM

Title: Python based simple camera interface
Post by: JeffNickel on March 31, 2020, 10:38:29 AM
For the non-programmers among us has anyone created a simple python gui for my laptop that can control the cameras basic functions (Start, stop, save, view live, etc?  I understand that the necessary files are available however I do not have the programming wisdom to create something on my own.  Perhaps if you have created such a beast, however beta, you might share it with the unwashed?
Title: Re: Python based simple camera interface
Post by: NiNeff on March 31, 2020, 01:16:31 PM
the new web gui with the current beta software should have what you are looking for.
Title: Re: Python based simple camera interface
Post by: sanjay on March 31, 2020, 01:27:33 PM
Here's a tutorial that we just released this morning on how to utilize network control: https://www.krontech.ca/wp-content/uploads/2020/03/Network-Control-v0.6.5.pdf
Title: Re: Python based simple camera interface
Post by: SergeyKashin on March 31, 2020, 02:22:23 PM
How many cameras can I control simultaneously?
Title: Re: Python based simple camera interface
Post by: foobar on March 31, 2020, 04:04:17 PM
The web interface to the camera will only control a single camera at a time, but that doesn't stop you from opening multiple browsers or tabs, each of which can control a different camera.

The use of the REST API should enable simultaneous control of multiple cameras, but this is an exercise left to the reader - this was how we made the Chronos ring happen, but that project was little more than duct tape and bailing wire.
Title: Re: Python based simple camera interface
Post by: SergeyKashin on March 31, 2020, 04:52:55 PM
For example, I will have 3 cameras and I need to launch them through the web interface at the same time, in 3 different tabs I can not do this, and through different triggers it is inconvenient
Title: Re: Python based simple camera interface
Post by: NiNeff on April 01, 2020, 08:31:27 AM
For example, I will have 3 cameras and I need to launch them through the web interface at the same time, in 3 different tabs I can not do this, and through different triggers it is inconvenient
trigger only one and pass the signal throug triggering the others over the bnc port.
Title: Re: Python based simple camera interface
Post by: JeffNickel on April 01, 2020, 09:04:52 AM
So I'll need to update my 1.04 firmware to Version 0.4.0 first.
Then connect via USB (after installing the WIN 7 USB driver.
Open a browser and input the cameras IP address,
Now have control of the camera through the gui.

To view a live image stream use VLC player and select the camera as the streaming source.

                  Question: Will the HDMI port still give the live image?

Thank you, this is awesome.
Title: Re: Python based simple camera interface
Post by: foobar on April 01, 2020, 09:11:35 AM
Question: Will the HDMI port still give the live image?

Yes, the HDMI port will continue to give you the live video from the image sensor while either the web control page, or the RTSP stream are active.
Title: Re: Python based simple camera interface
Post by: JeffNickel on April 02, 2020, 01:23:38 PM
Updated to 0.4.0, switched to new interface now how do I switch back to old interface?
Title: Re: Python based simple camera interface
Post by: foobar on April 02, 2020, 01:53:53 PM
From the Main Menu, near the bottom there should be an option to Update your camera. From this menu, hitting the "Apply Software Updates" button will launch the software update tool, and allow you to switch back to the original GUI.