Method and device for operating control state, electronic equipment and storage medium

By generating a coverage area and performing state switching operations in a video surveillance system, the problems of high precision requirements, inconvenience, and inflexibility of checkbox operations in existing technologies are solved, achieving efficient and convenient control state switching and improving user experience.

CN121680997APending Publication Date: 2026-03-17SHENZHEN XINRUISHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-04
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

The checkbox operation in existing video surveillance systems suffers from problems such as high precision requirements, inconvenience, inflexibility and inefficiency in batch operations, and inconsistent interface state logic in large-scale monitoring systems, which affect the user experience.

Method used

By receiving click and release commands, an overlay area is generated on the interface, and state switching operations are performed on the controls within the overlay area. This provides a drag-and-drop selection method to replace the traditional multiple discrete clicks, including generating rectangular or circular overlay areas and providing visual feedback on the dynamic overlay area.

Benefits of technology

It simplifies the operation steps, improves operational efficiency, convenience and flexibility, reduces misoperation, ensures consistency of interface state logic, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121680997A_ABST
    Figure CN121680997A_ABST
Patent Text Reader

Abstract

The invention discloses a control state operation method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a click instruction, and recording a first position, clicked by the click instruction, of an interface; receiving a release instruction, and recording a second position where the release instruction is released on the interface; generating a coverage area in the interface based on the first position and the second position as base points; and executing state switching operation on the controls in the coverage area. According to the method, the states of the controls can be efficiently, conveniently and flexibly switched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of embedded systems technology, and in particular to a method, apparatus, electronic device, and storage medium for operating the state of a control. Background Technology

[0002] Currently, in the management interface of video surveillance systems, the operation of checkboxes mainly relies on the following basic interaction methods. These methods are commonly used in scenarios that require batch management of front-end devices, such as network cameras or their functions.

[0003] Single selection: Users can click on a designated area within a single checkbox with the mouse to change the selected or deselected state of that option. This is the most basic and direct interaction method.

[0004] Select All: To improve the efficiency of batch operations, the system usually provides different levels of "select all" functionality.

[0005] Select All Cameras: Allows you to select or deselect all functions associated with a single network camera at once.

[0006] Select All Functions: Allows you to select or deselect the same function item on all cameras at once.

[0007] Global Select All: Allows you to select or deselect all functions for all cameras in the interface at once.

[0008] These operation methods together form the basic interactive framework for multiple selections in the current management interface.

[0009] Although existing interaction methods can meet basic multi-selection needs, in real-world applications, especially as the scale of monitoring systems expands, they reveal some significant shortcomings that seriously affect user experience and operational efficiency.

[0010] High precision is required, but operation is inconvenient: To display more devices or function channels within limited screen space, the visual display area of ​​checkboxes is usually designed to be small. This requires users to make precise mouse clicks for them to take effect, resulting in poor operational error tolerance. This problem is particularly prominent on touch devices, leading to frequent misoperations and a poor user experience.

[0011] Batch operations are inflexible and inefficient: While the existing "select all" function covers the extreme cases of selecting all and deselecting all, it lacks sufficient flexibility. When users need to batch configure specific functions of a group of cameras, such as cameras in a specific area, like setting only motion detection, the existing solution cannot directly achieve this. Users can only revert to the most primitive "single selection" mode, repeatedly clicking on each target item. This operation is extremely cumbersome, and the operational burden increases exponentially with the number of connected cameras, resulting in low efficiency.

[0012] Inconsistent UI state logic: In the actual implementation of some systems, the linkage logic of checkboxes may be flawed. For example, there may be instances where clicking "All" to select an item and then deselecting another item fails to update the state of the "All" checkbox; or the previously selected state may be unexpectedly lost after switching data paginations. These logical imperfections can confuse users and increase the uncertainty of operations. Summary of the Invention

[0013] In order to overcome the shortcomings of the prior art, the purpose of this invention is to provide a method, apparatus, electronic device and storage medium for operating the state of a control, which can efficiently, conveniently and flexibly switch the state of the control.

[0014] On one hand, the present invention provides a method for operating the state of a control, comprising: receiving a click instruction and recording the click instruction being clicked at a first position on the interface; receiving a release instruction and recording the release instruction being released at a second position on the interface; generating a coverage area on the interface based on the first and second positions as base points; and performing a state switching operation on the control located within the coverage area.

[0015] Preferably, generating a coverage area in the interface based on the first position and the second position includes: generating a rectangular coverage area in the interface with the first position as the starting point and the second position as the ending point.

[0016] Preferably, before receiving a click instruction, the method further includes: initializing the creation interface, establishing the coordinate system of the interface, and recording the coordinates of all controls preset on the interface.

[0017] Preferably, the process between receiving the click instruction and receiving the release instruction further includes: receiving a movement instruction, continuously recording the real-time position of the movement trajectory corresponding to the movement instruction on the interface; generating a dynamic coverage area on the interface based on the first position and the real-time position as reference points; and displaying the dynamic coverage area.

[0018] Preferably, performing a state switching operation on controls located within the coverage area includes: switching controls that are already selected within the coverage area to an unselected state, and switching controls that are not selected within the coverage area to a selected state.

[0019] On the other hand, the present invention also provides an apparatus for operating the state of a control, comprising: an interface for receiving a click instruction and a release instruction; a recording unit for recording that the click instruction is clicked at a first position on the interface and the release instruction is released at a second position on the interface; a calculation unit for generating a coverage area in the interface based on the first position and the second position as reference points; and an execution unit for performing a state switching operation on the control located within the coverage area.

[0020] Preferably, the execution unit is further configured to initialize the creation interface and establish the coordinate system of the interface; the recording unit is further configured to record the coordinates of all controls preset on the interface.

[0021] Preferably, the recording unit is further configured to continuously record the real-time position on the interface corresponding to the movement trajectory of the movement command; the calculation unit is further configured to generate a dynamic coverage area on the interface based on the first position and the real-time position as reference points; the interface is further configured to receive the movement command and display the dynamic coverage area.

[0022] The third invention provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the operation control state as described in any of the above when executing the computer program.

[0023] The fourth invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method for the operation control state as described in any of the above claims.

[0024] Compared to existing technologies, the advantages of this invention are as follows: This invention provides a method, apparatus, electronic device, and storage medium for operating control states. It generates a coverage area on the interface based on the positions corresponding to click and release commands, and performs state switching operations on controls located within this coverage area. Specifically, it provides a third selection method besides the existing select all and select only controls by dragging and selecting, batch switching the selection state of all controls falling within the selection area. This simplifies the existing multiple discrete click operations into a single continuous drag-and-drop selection operation, significantly reducing operation steps and time, and improving efficiency, convenience, and flexibility. Furthermore, by displaying the dynamic coverage area, a visual feedback mechanism is provided, enhancing the controllability of the operation and the user experience. This invention is particularly suitable for scenarios requiring the processing of a large number of options on embedded devices, effectively solving the problem of cumbersome operations. Attached Figure Description

[0025] Figure 1 This is a flowchart of an embodiment of the method for controlling the state of the operation control provided by the present invention; Figure 2This is a flowchart of another embodiment of the method for controlling the state of the operation control provided by the present invention; Figure 3 This is a flowchart of another embodiment of the method for controlling the state of the operation control provided by the present invention; Figure 4 This is a schematic diagram illustrating the generation of a coverage area according to an embodiment of the present invention; Figure 5 This is a schematic diagram illustrating the generation of the coverage area according to another embodiment of the present invention; Figure 6 This is a schematic diagram of an embodiment of the present invention; Figure 7 This is a structural diagram of one embodiment of the device for controlling the state of the operation control provided by the present invention; Detailed Implementation The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0026] Furthermore, the use of terms such as "first" and "second" in this application is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, such a combination of technical solutions should be considered non-existent and not within the scope of protection claimed in this application.

[0027] Example 1 like Figure 1 As shown, the present invention provides a method for operating the state of a control, comprising: S100. Initialize and create the interface, establish the coordinate system of the interface, and record the coordinates of all controls preset on the interface.

[0028] This embodiment is based on a visual operation method using an interface. Therefore, in the initial stage, an interface is created, and then a coordinate system for the interface is established, recording the coordinates of all controls preset on the interface. The controls mentioned here can be functional devices in a video surveillance system, such as a buzzer. The interface mentioned here can be the management interface of a video surveillance system, see reference... Figure 6 The interface features buzzers corresponding to the various functions of each camera.

[0029] S101. Receive the click command and record the first position of the click command on the interface. The first position corresponds to the first coordinate in the coordinate system.

[0030] Users trigger click commands through click actions; the action is not limited to touch, pressing physical buttons, or clicking the left mouse button. The following detailed explanation uses clicking the left mouse button as an example to illustrate the steps. When the user presses the left mouse button, a left mouse button press message MSG_LBUTTONDOWN is generated, recording the initial coordinates of the cursor on the screen at the time the mouse button is pressed, i.e., the corresponding first coordinate.

[0031] S102. Receive the release command and record the second position on the interface where the release command is released. The second position corresponds to the second coordinate in the coordinate system.

[0032] After the user drags the mouse to the desired location and releases the left mouse button, a left mouse button release message MSG_LBUTTONUP is generated, which records the second position of the cursor on the screen at the time of mouse release, i.e., the second coordinate.

[0033] S103. Generate a rectangular coverage area in the coordinate system of the interface based on the first and second coordinates as diagonal vertices; The method for generating the rectangular coverage area is as follows: Assume the first coordinate is point A(a,b), and the second coordinate is point C(c,d). (Reference) Figure 4 , Figure 4 The XOY coordinate system shown is the interface coordinate system. When the user presses the left mouse button at point A (a,b), drags the mouse to point C (c,d), and releases the left mouse button, a rectangular covering area 10 is generated based on points A (a,b) and C (c,d) being the opposite vertices of a rectangle. The X-axis coordinate of point B is equal to the X-axis coordinate of point A, the Y-axis coordinate of point B is equal to the Y-axis coordinate of point C, the X-axis coordinate of point D is equal to the X-axis coordinate of point C, and the Y-axis coordinate of point D is equal to the Y-axis coordinate of point A. This generates a rectangular covering area 10. The above method for generating the covering area is a preferred embodiment of this application, but this application is not limited to using only the above method.

[0034] S104. Select the controls that fall within the rectangular coverage area on the interface.

[0035] The interface has one or more controls, each with coordinates on the screen. The task is to iterate through all controls and select those whose coordinates fall within a rectangular area. Figure 4 Taking the rectangular area as an example, when the X-axis coordinate of the control falls between a and c, and the Y-axis coordinate of the control falls between b and d, the control falls within the rectangular area ABCD; otherwise, it does not fall within the rectangular area ABCD.

[0036] S105. Toggle the selected state of the selected control.

[0037] A state switching operation is performed on controls located within the rectangular coverage area. Controls that are selected within the rectangular area are switched to an unselected state, and controls that are unselected within the rectangular area are switched to a selected state. In this embodiment, the selected state of a control is represented by a checkbox. Each control corresponds to a checkbox. When a control is selected, its corresponding checkbox is checked, and the control is in an open state. When a control is unselected, its corresponding checkbox is unchecked, and the control is in a closed state. The checkbox status controls the on / off state of the control. The control icon and checkbox are then displayed on the interface, providing a visual operation for the user, allowing the user to intuitively understand the on / off state of the control. When the rectangular coverage area covers the control icon, the on / off state of the control within the rectangular area can be switched, i.e., the control changes from an open state to a closed state, and vice versa.

[0038] The method for controlling the state of the controls provided in the above embodiments coordinates the positions of the controls on the interface. A rectangular coverage area is generated in the interface's coordinate system based on the coordinates of the mouse cursor when a click or release command is executed. Controls falling within this coverage area are then selected and their states are switched. Intuitively, this means that controls whose states need to be switched are dragged and selected, allowing for batch switching of the selected states of all controls within the selected area. This provides a third selection method besides the existing select all and select one. It simplifies the existing multiple discrete click operations into a single continuous drag operation, significantly reducing operation steps and time, and improving the efficiency, convenience, and flexibility of the switching operation. Users only need to perform a single continuous mouse press, drag, and release operation within the target area to complete the state setting of the target item in one go. Using this method for controlling the state of controls ensures consistent interface state logic and avoids the unexpected loss of state that occurs in existing technologies.

[0039] Example 2 Combination Figure 2 As shown, another embodiment of the method for controlling the state of the operation control provided by the present invention includes: S201. Receive the click command and record the first position of the click command on the interface. The coordinates of the first position on the coordinate system are the first coordinates. S202. Receive the release command and record the second position on the interface where the release command is released. The coordinates corresponding to the second position in the coordinate system are the second coordinates. Steps S201 to S202 are similar to steps S101 to S102 in the previous embodiment, and will not be described again here.

[0040] S203. Generate a coverage area in the coordinate system of the interface based on the first and second coordinates as the base points; refer to Figure 5 , Figure 5 The XOY coordinate system shown is the interface coordinate system. The method for generating the coverage area is as follows: The user presses the left mouse button at point A, drags the mouse to point C, and releases the left mouse button. A circle is formed with point A as the center and a preset radius r. The coverage area generated by the circle in the coordinate system during the movement from point A to point C is the coverage area 20 generated by this invention in the interface coordinate system based on the first and second coordinates as base points. The movement from point A to point C is not limited to a straight line; in other embodiments, it can also be a curved line movement, the purpose of which is to facilitate the user's selection of controls.

[0041] S204. Perform a state switching operation on the controls located within the coverage area.

[0042] Step S204 is similar to steps S104 and S105 in the previous embodiment, and will not be described in detail here.

[0043] This embodiment is for a system management interface that has already created an interface and established an interface coordinate system. The method corresponding to embodiment two can be directly executed to operate the state of the controls without having to create an interface every time.

[0044] Example 3 Combination Figure 3 As shown, another embodiment of the method for controlling the state of the operation control provided by the present invention includes: S301. Receive the click command and record the first coordinate of the click command on the interface; S302. Receive the movement command and continuously record the real-time position of the movement trajectory corresponding to the movement command on the interface, and the real-time position corresponds to the real-time coordinates in the coordinate system. S303. Generate a dynamic rectangular coverage area in the coordinate system of the interface based on the first coordinate and the real-time coordinate as the diagonal vertices; The dynamic rectangular coverage area changes dynamically based on real-time coordinates. The method for generating the dynamic rectangular coverage area is the same as in step S103, and will not be repeated here.

[0045] S304. Display the dynamic rectangular coverage area.

[0046] As the user drags the mouse, the system continuously records the real-time coordinates of the mouse cursor. By calling the `InvalidateRect` interface, a redrawn interface is triggered, dynamically drawing and displaying a rectangular overlay area between the initial coordinates and the real-time coordinates. This rectangular overlay area is displayed as a dynamic box on the interface, allowing the user to intuitively see which areas and controls are selected, providing visual feedback. The rectangular overlay area can be displayed with a semi-transparent overlay box in a prominent color such as red or green.

[0047] The subsequent steps are the same as steps S102, S103, S104, and S105 in Embodiment 1, and will not be repeated here.

[0048] The method for controlling the status of operation controls provided by this invention is particularly suitable for scenarios in video surveillance systems where the management interface needs to handle a large number of options. This system typically consists of front-end network cameras (IPCs) and back-end network video recorders (NVRs), with the NVR centrally managing multiple IPCs. As the number of connected cameras increases, such as 36 or 64 channels, and the number of camera functional modules increases, the NVR management interface often displays the different functions of each channel in a list format, and uses checkboxes to control the on / off status of controls, such as the buzzer's start / stop status.

[0049] refer to Figure 6 The following description uses the buzzer status interface of a video surveillance system as an example to illustrate the application of the method for operating the control status of this invention: • Scenario Description: The system connects to 18 cameras. Each camera has more than ten function settings, such as video loss, motion detection, and human detection. The status of the controls needs to be managed through checkboxes.

[0050] • Task Requirements: Simultaneously activate the buzzer alarms corresponding to the motion detection and human detection functions in channels 6, 7, 8, 9, 10, 11, 12, and 13.

[0051] • Current operation method: Users need to accurately locate and click on the 11 corresponding checkboxes one by one to complete the operation, which requires a total of 11 clicks.

[0052] The method for setting the state of controls using this invention allows users to complete the state settings of all target controls at once by simply pressing, moving, and releasing the left mouse button within the target checkbox area on the interface.

[0053] The above describes a method for manipulating the state of a control. Correspondingly, the present invention also provides a device for manipulating the state of a control.

[0054] refer to Figure 7 An apparatus for operating the state of a control, comprising: Interface 1 is used to receive click and release commands; Recording unit 2 records the first coordinate of the click command on the interface and the second coordinate of the release command on the interface; The calculation unit 3 is used to generate a coverage area in the coordinate system of the interface based on the first coordinate and the second coordinate as the base points, and to calculate which controls are located in the coverage area; Execution unit 4 is used to perform state switching operations on controls located within the coverage area.

[0055] Optionally, the execution unit is further configured to initialize the interface and establish a coordinate system; the recording unit is further configured to record the coordinates of all controls preset on the interface.

[0056] Optionally, the recording unit is further configured to continuously record the real-time coordinates on the interface corresponding to the movement trajectory of the movement command; the calculation unit is further configured to generate a dynamic coverage area in the coordinate system of the interface based on the first coordinate and the real-time coordinate as the base points, and calculate which controls are located in the dynamic coverage area; the interface is further configured to receive movement commands and display the dynamic coverage area.

[0057] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0058] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.

[0059] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0060] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0061] Embodiments of the present invention also provide an electronic device comprising: Memory, used to store computer programs; A processor for implementing the method of any one of the disclosed embodiments of the present invention when executing the computer program.

[0062] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of any of the embodiments disclosed in the present invention.

[0063] In summary, this invention provides an efficient, convenient, and flexible batch operation solution for embedded systems by introducing an intuitive box selection interaction mode. It is particularly suitable for widespread application in scenarios such as video surveillance equipment management where frequent batch settings are required.

[0064] The above embodiments are merely preferred embodiments of the present invention and should not be construed as limiting the scope of protection of the present invention. Any non-substantial changes and substitutions made by those skilled in the art based on the present invention shall fall within the scope of protection claimed by the present invention.

Claims

1. A method of operating a control state, characterized by, The method comprises: receiving a click instruction and recording a first position on the interface where the click instruction is clicked; receiving a release instruction and recording a second position on the interface where the release instruction is released; generating a coverage area in the interface based on the first position and the second position as base points; performing a state switching operation on a control located in the coverage area.

2. The method of claim 1, wherein, The generating of the coverage area in the interface based on the first position and the second position as base points comprises: generating a rectangular coverage area in the interface based on the first position as a starting point and the second position as an ending point.

3. The method of claim 1, wherein, Before receiving the click instruction, the method further comprises: initializing the creation of the interface, establishing a coordinate system of the interface, and recording the coordinates of all the controls preset on the interface.

4. The method of claim 1, wherein, Between receiving the click instruction and receiving the release instruction, the method further comprises: receiving a movement instruction and continuously recording a real-time position on the interface corresponding to the movement track of the movement instruction; generating a dynamic coverage area in the interface based on the first position and the real-time position as base points; displaying the dynamic coverage area.

5. The method of claim 1, wherein, The performing of the state switching operation on the control located in the coverage area comprises: switching a control in the selected state falling into the coverage area to the unselected state, and switching a control in the unselected state falling into the coverage area to the selected state.

6. An apparatus for operating a control state, characterized by The device comprises: an interface for receiving a click instruction and a release instruction; a recording unit for recording a first position on the interface where the click instruction is clicked and a second position on the interface where the release instruction is released; a calculation unit for generating a coverage area in the interface based on the first position and the second position as base points; and an execution unit for performing a state switching operation on a control located in the coverage area.

7. The apparatus for operating a control state of claim 6, wherein, The execution unit is further configured to initialize the creation of the interface and establish a coordinate system of the interface, and the recording unit is further configured to record the coordinates of all the controls preset on the interface.

8. The device for operating a control state according to claim 6, wherein the recording unit is further configured to continuously record a real-time position on the interface corresponding to the movement track of a movement instruction; the calculation unit is further configured to generate a dynamic coverage area in the interface based on the first position and the real-time position as base points; and the interface is further configured to receive the movement instruction and display the dynamic coverage area.

9. An electronic device, comprising: The device comprises: a memory for storing a computer program; a processor for executing the computer program to implement the method for operating a control state according to any one of claims 1-5.

10. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executed by the processor to implement the method for operating a control state according to any one of claims 1-5.