ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Camera control
  • Overview of the Camera control
  • Window control
  • Creating a Camera control in a WINDEV window
  • Displaying the camera preview stream
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Overview of the Camera control

Window control

The Camera control is used to:
  • Windows display the preview stream of a camera connected to the current computer.
  • AndroidiPhone/iPadIOS WidgetMac Catalyst display the camera preview stream of an Android or iOS device.
  • AndroidiPhone/iPadIOS WidgetMac Catalyst read and decode the bar codes. For more details, see Camera field: decode barcodes.
You can save this video or save a video snapshot.
This help page presents the use of the Camera control in a WINDEV window. For WINDEV Mobile, see Camera control (mobile application).

Creating a Camera control in a WINDEV window

To create a Camera control:
  1. On the "Creation" tab, in the "Graphic controls" group, expand "Video and capture" and select "Camera".
  2. Click at the desired location to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
The Camera control can be manipulated programmatically using the Camera functions.
Note: These functions are also available with prefix syntax.. For more details, see Camera functions (Prefix syntax).
Remarks:
  • The Camera control is supported in all Windows versions, regardless of the driver installed, via the DirectShow technology. The behavior of the previous versions can be restored by selecting the "Use the former 'Video for Windows' APIs (compatibility)" option.
    Note: It is not advisable to use a camera field with DirectShow technology and a compatible camera field in the same window.
  • To retrieve an image transmitted by a Camera, specify the video driver used ("General" tab in the control description window). This driver can be defined programmatically with the Driver property or the CameraChangeDriver function.
Displaying the camera preview stream
Only the camera preview stream is displayed in a Camera control.
To view:
Related Examples:
WD WebCam Complete examples (WINDEV): WD WebCam
[ + ] This example explains how to include a WebCam in a WINDEV application.
The following topics will be presented in this example:
1/ Camera control
2/ Use of the video functions

Summary of the example supplied with WINDEV:
This example explains how a WebCam can be included in a WINDEV window.
You have the ability to view the image captured by the camera, to perform an instant capture and to film the scene broadcasted as a Windows animation (AVI).
The Camera control Unit examples (WINDEV): The Camera control
[ + ] Using the "Web Camera" control to:
- Select the device used
- Capture a video broadcasted by a Web Camera
- Save an image broadcasted by a Web Camera
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help