Using the IQeye ActiveX control in Microsoft Visual Studio IDE.

IQinVision has a ActiveX control that can be used to easily embed IQeye image streaming and control into your application. 
The control can be downloaded here: http://www.iqeye.com/support/technical-downloads/utility-programs 
Select 'Active X Control'

Run the installer. This will copy and register the IQeye control on your system.
If you're redistributing your application, you need to incorporate the installation into your own installer package, do the following:

  • Copy iqeye.ocx to your windows system directory
  • From a command prompt run "regsvr32 <full_path_to_file>\iqeye.ocx" to register the control.

Now start your Microsoft Visual Studio IDE.
Use the tab 'Choose Toolbox Items' and check the IQeye control item.

VB1.jpg

 

In your Toolbox items, you will now find an item called 'IQeye Control'
Create a new Windows Form application, and drag the 'IQeye Control' into your Form.
It will appear as a rectangular box, that you can shape as desired (or dock) in the Form control.
The default name of the object will be AxIqeye.
In the sample below, a button was added, and clicking the button, will apply the URL: http://<camera-ip>/now.jpg?snap=spush to the control.
You can see, that instantly the IQeye control will show an MJPG stream from the camera. 

VB2.jpg

Note that the IQeye control will use the highest available MJPG stream from the camera. (The control does not use H.264 streams)
Depending on your camera stream configuration, this could be a much lower resolution than the maximum possible.
For instance, if the camera resources are configured to deliver a high resolution H.264 stream with a high framerate, the MJPG stream is much smaller:

low-res.jpg

So, make sure you have configured a MJPG stream of sufficient resolution.

The stream is a so called 'server-push' MJPG stream.
The stream will also contain any trigger information that is included in the inter-frame space of the MJPG stream.
The IQeye control will create events if an input trigger is detected.
You need to include &pragma=trigger in the stream URL, so in the form http://<camera-ip>/now.jpg?snap=spush&pragma=trigger

In the sample below, the AxIqeye1_TriggerImage event will cause the PC to ring the system sound every time motion is detected.
The exact reason for the trigger is included in the event, and can be extracted as a string: e.reason
This string can be motion1, motion2, motion3, motion4, and input so it's easy to differentiate between the four motion windows, or the input signal of the camera.

VB3.jpg

 

The IQeye control can also be used to read and set specific OID's in the camera.
OID (Object Identifiers) are numerical values that represent all parameters of the camera.
You can list the OID's and their values with the following URL in your Internet Browser http://<camera-ip/oidtable.html

This is just a quick introduction to get started with the IQeye control in Microsoft Visual Studio.
It is far from complete.

For more info about setting OID's please read attached readme file that comes with the IQeye control.

The following link contains the IQinVision API networking guide that contains detailed info about the cameras capabilities,
and how to programmatically access the controls:
https://vicon-security.zendesk.com/entries/69770687-Interfacing-to-IQEye-cameras

 

 

Attached is a sample application for MS Visual Studio VB .NET.
The program will just show the MJPG stream of the camera on the IP address in the text field.
Any trigger info will be shown in the label on the form.

sample.jpg

Public Class Form1

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
AxIqeye1.Url = "http://" + TextBox1.Text + "/now.jpg?snap=spush&pragma=trigger"
End Sub

Private Sub AxIqeye1_TriggerImage(sender As System.Object, e As AxIQEYELib._DIqeyeEvents_TriggerImageEvent) Handles AxIqeye1.TriggerImage
Label1.Text = e.reason
End Sub
End Class

 


Please send any comments or suggestions to support@iqeye.com

 

 

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.