webOS OSE 2.21.0 Release
April 27, 2023
We’re pleased to announce the release of webOS Open Source Edition (OSE) 2.21.0.
The highlights of this release are as follows:
For more details on this release, see the release notes.
Supporting Dynamic Zoom and Auto PTZ features
Dynamic zoom is a feature that enables zooming in or out through software processing, while PTZ stands for Pan-Tilt-Zoom movements of cameras. (Wikipedia: Pan-tilt-zoom camera)
In this release, we have added a demo that shows face tracking using dynamic zoom, PTZ, and face detection.
Caution- You’ll need a webcam that supports the PTZ functionality. (Tested devices: Logitech C930E, C920, and C270)
- The emulator doesn’t support this feature.
Connect your camera to the webOS OSE device.
Check the status of the camera. Connect the webOS OSE device using the SSH protocol, and enter the following commands:
NoteThe following commands are methods of the com.webos.service.camera2 API. For more details about the API, see the
API reference.
Get the handle
value for the camera.
root@raspberrypi4-64:~# luna-send -n 1 -f luna://com.webos.service.camera2/open '{"id":"camera1"}'
# Response
{
"returnValue": true,
"handle": 1506
}
Using the handle
value, check the status of FaceDetectionAIF
.
root@raspberrypi4-64:~# luna-send -n 1 -f luna://com.webos.service.camera2/getSolutions '{"handle":1506}'
# Response
{
"returnValue": true,
"solutions": [
{
"name": "AutoContrast",
"params": {
"enable": false
}
},
{
"name": "Dummy",
"params": {
"enable": false
}
},
{
"name": "FaceDetectionAIF",
"params": {
"enable": true # Check if this value is set to true
}
}
]
}
If the enable
value is false
, set the value to true
using the following command.
root@raspberrypi4-64:~# luna-send -n 1 -f luna://com.webos.service.camera2/setSolutions '{
"handle":1744,
"solutions":[
{
"name":"FaceDetectionAIF",
"params":{
"enable":true
}
}
]
}'
# Response
{
"returnValue": true
}
Go back to your webOS OSE device, launch the Camera app.
Click the preview window.
Click the PTZ icon in the bottom right corner.
Click the preview window again and check that the PTZ icon has turned blue.
Place your face in front of the camera, and then move your face. Check if the preview window follows and focuses on your face.
NoteSource codes are available on our GitHub:
Supporting Automatic Gain control
Automatic Gain Control (AGC) is the feature that adjusts the volume level of audio input. This feature allows users to get audio inputs that are more robust to ambient noise.
Upgrading Command-line Interface
Command-Line Interface (CLI) has been updated to v2.4.0. For details, see CLI Release Notes.