Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to write the camera position of the Security Video Surveillance system by Qt

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "Qt how to write security video surveillance system camera points". In daily operation, I believe many people have doubts about how to write security video surveillance system camera points in Qt. Xiaobian consulted all kinds of materials and sorted out simple and easy to use operation methods. I hope to answer the doubts of "Qt how to write security video surveillance system camera points". Next, please follow the small series to learn together!

I. Foreword

The function of camera point is mainly to set the position of the corresponding camera on the picture map and online offline map, and then double click to preview the video of the corresponding camera in real time. Drag the camera icon to the corresponding position on the picture map, and the system will automatically save the position information. The camera position on the web map needs to be updated asynchronously. For example, select the camera to update the position from the right first, and then press the mouse on the map. The latitude and longitude information of the current location will be automatically returned, and then click the Update Device Location button to automatically update the execution code. After the update is completed, it will automatically synchronize to another map. For example, the online map will be updated, and the offline map will also be automatically updated. Moving the location on the picture to save this function is very simple, but on the web map, you need to use js code, for this purpose, a js function is specially packaged, which is responsible for adding device points. A total of 10 parameters cover various situations. The parameters have the following meanings:

name indicates that the name of the annotation point is displayed next to the icon. If the text is blank, it will not be displayed.

addr indicates the label point address

title indicates pop-up box information html format title

tips indicates pop-up box information html format content

width indicates the width of the pop-up box

Point represents latitude and longitude coordinates

action indicates what action will be triggered after clicking 0-Do not process 1-Pop-up box by yourself 2-Send signal

animation represents animation effect 0-do not process 1-jump 2-fall

iconfile indicates icon file path, default icon will be used if not set, note the size of picture

iconindex indicates the index of the icon corresponding to the image

II. Functional characteristics

Support multi-screen switching, full-screen switching, etc., including 1+4+6+8+9+13+16+25+36+64 screen switching.

alt+enter full screen, esc exit full screen.

Custom information box + error box + inquiry box + prompt box in the lower right corner (including multiple formats).

17 sets of skin styles can be changed at will, all styles are unified, including menus, etc.

The mouse of the PTZ instrument panel is moved to highlight, and the eight directions are accurately identified.

Move the toolbar at the bottom of the screen (screen split switch + screenshot sound settings) to highlight.

Logo+ Chinese software name + English software name can be changed in the upper left corner of the configuration file.

Package Baidu map, view switching, movement track, equipment points, mouse press to obtain latitude and longitude, etc.

Support picture map, device button can drag freely on picture map to save location information automatically.

On Baidu map and picture map, double-click video to preview camera real-time video.

Stack forms, each form is a separate qwidget, easy to write your own code.

Top right mouse button menu, can dynamically control the time CPU+ upper left panel + lower left panel + upper right panel + lower right panel display and hide, support to restore the default layout.

Toolbars can place multiple small icons and close icons.

Left and right can drag stretch, and automatic memory width and height position, restart after recovery.

Double-click the camera node to automatically play videos, double-click the node to automatically add videos in turn, and automatically jump to the next one. Double-click the parent node to automatically add all videos under the node.

Drag the camera node to the corresponding window to play video, and support dragging local files to play directly.

Video frame form supports drag exchange, instant response.

Double-click the node + drag the node + drag the form to swap positions, and the url.txt is automatically updated.

Support loading channel video playback from url.txt, automatically memorizing the video corresponding to the last channel, and automatically opening the playback after the software starts.

Lower right volume bar controls, lose focus auto hide, volume bar mute icon.

Integrated Baidu online map and offline map, you can add device corresponding location, automatically generate map, support zoom and add overlay, etc.

Drag video outside channel form to delete video automatically.

Right mouse button to delete current + all videos, screenshot current + all videos.

Video recorder management, camera management, add, delete, modify, import and export print information, immediately apply new equipment information to generate tree list, no need to restart.

In pro file you can freely open whether to load maps.

Video playback optional 2 kinds of kernel free switch, vlc+ffmpeg, can be set in pro.

You can set 1+4+9+16 screen polling, polling interval and polling code stream type, etc. Click Start Polling button on the right side of the toolbar at the bottom of the main interface, and click Stop Polling again.

By default, the mouse pointer is automatically hidden if no action is taken for more than 10 seconds.

Support onvif search equipment, support any onvif camera, including but not limited to Haikang Dahua Yushi Tiandi Weiye Huawei, etc.

Support onvif PTZ control, can move PTZ camera up and down, including reset and focus adjustment.

It also supports sqlite, mysql, postsql and other databases.

Can save video, optional timing storage or single file storage, optional storage interval.

Video stream communication mode tcp+udp can be set, video decoding can be set to speed priority, quality priority, equalization, etc.

Hard decoding type can be set, supporting qsv, dxva2, d3d11va, etc.

Default opengl rendering video, ultra-low CPU resource consumption, support yuyv and NV12 two formats rendering, very awesome.

Highly customizable, users can easily derive their own features on this basis, supporting linux and mac systems.

III. Effect Drawing

void MapBaiDu::addMarker(QStringList &list){ //Add points dynamically //name Blank text indicating that the label point name appears next to the icon does not appear //addr Indicates the address of the marking point //title html format title indicating pop-up information //tips Display pop-up box information html format content //width Indicates the width of the pop-up frame //point express latitude and longitude coordinates //action Indicates what action is triggered after clicking 0-Do not process 1-Pop-up box by yourself 2-Send signal //animation represents animation effect 0-do not process 1-jump 2-fall //iconfile indicates the icon file path. If it is not set, the default icon will be used. Note the size of the image. //iconindex indicates the index of the icon corresponding to the image list

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report