Wireless network interactive control method and system based on video analysis
By using a sensing device in the wireless network to obtain the user's control video, parsing and encoding the video stream, and generating control instructions, it solves the problem of low efficiency of wireless interactive control and achieves more efficient and accurate execution of control instructions.
Patent Information
- Application Number
- CN202410987197.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-23
AI Technical Summary
In the current wireless interactive control process, the transmission and execution efficiency of control instructions is low.
The sensor device detects when the user approaches and turns on the camera device to obtain the user's control video and send it to the server through the wireless network for video stream analysis, extract the control data, encode it into control instructions, and instruct the control object to perform actions.
The transmission efficiency and execution efficiency of control instructions are improved, and the accuracy of control instructions is enhanced.
Smart Images

Figure CN118555159B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a wireless network interaction control method and system based on video analysis. Background Art
[0002] The popularity and development of wireless networks provide a broad application space for wireless network interactive control based on video analysis. Wireless networks have the advantages of strong flexibility and easy deployment, and can be widely used in various complex environments. Through wireless networks, video data can be transmitted in real time to the back-end processing center for parsing and analysis. At the same time, control instructions can also be sent to the front-end device in real time through the wireless network to achieve remote control and interaction. However, in the process of wireless interactive control, the existing technology has the problem of low control efficiency in the transmission and execution of control instructions. Summary of the invention
[0003] The embodiments of the present application provide a wireless network interactive control method and system based on video analysis, which can at least to some extent solve the problem of low efficiency in transmission and execution of control instructions in the process of wireless interactive control in the prior art.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of the present application, a wireless network interactive control method based on video analysis is provided, including: when a sensor device detects that a user is approaching, turning on a camera device, and when detecting that the user makes a control action, triggering acquisition of the user's control video; based on the file information of the control video, sending the control video to a server via a wireless network; performing data analysis on the control video based on the video stream to generate control data; converting the control data into standard data in a unified format, encoding the standard data to generate the control instruction; and instructing a control object to perform a control action based on the control instruction.
[0006] In the present application, based on the aforementioned solution, the wireless network includes at least one of the following: Wi-Fi, Bluetooth, Zigbee, 4G and 5G.
[0007] In the present application, based on the aforementioned scheme, the method of obtaining the user's control video through the camera device includes: turning on the camera device when the sensor device detects that the user is approaching; and triggering the acquisition of the user's control video when the user is detected to make a control action.
[0008] In the present application, based on the aforementioned scheme, the control video is sent to the server via a wireless network based on the file information of the control video, including: detecting the file information of the control video, wherein the file information includes the video data volume and the video resolution; determining a network parameter range for transmitting the control video based on the file information; selecting a wireless network from the selected networks based on the network parameter range; and sending the control video to the server via the wireless network.
[0009] In the present application, based on the aforementioned scheme, the control video is subjected to data parsing based on the video stream to generate control data, including: generating a video stream corresponding to a time series based on the video screen in the control video; performing image parsing on the video stream to extract key frames from the video stream; and obtaining control objects and control actions by performing feature extraction on the key frames.
[0010] In the present application, based on the aforementioned scheme, after performing image analysis on the video stream and extracting key frames from the video stream, it also includes: detecting the light intensity when acquiring the control video; when the light intensity is less than a set intensity threshold, calculating the enhancement parameters corresponding to the key frame based on the pixel value of the key frame and the preset target brightness; and performing image enhancement on the key frame based on the enhancement parameters.
[0011] In the present application, based on the above-mentioned solution, the control instruction includes a control object and its corresponding control action.
[0012] In the present application, based on the aforementioned scheme, after instructing the controlled object to perform the control action based on the control instruction, it also includes: acquiring a scene image after the controlled object performs the control action through a camera device; and detecting whether the scene image meets the preset control result.
[0013] According to one aspect of the present application, a method and a system are provided, including:
[0014] The acquisition unit 310 is used to detect the approach of a user through the sensor device, turn on the camera device, and trigger the acquisition of the user's control video when the user makes a control action;
[0015] A sending unit 320, configured to send the control video to a server via a wireless network based on the file information of the control video;
[0016] The parsing unit 330 is used to perform data parsing on the control video based on the video stream to generate control data;
[0017] An encoding unit 340, configured to convert the control data into standard data in a unified format, encode the standard data, and generate the control instruction;
[0018] The control unit 350 is used to instruct the controlled object to perform a control action based on the control instruction.
[0019] In the present application, based on the aforementioned solution, the wireless network includes at least one of the following: Wi-Fi, Bluetooth, Zigbee, 4G and 5G.
[0020] According to one aspect of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the wireless network interaction control method based on video analysis as described in the above embodiment is implemented.
[0021] According to one aspect of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the wireless network interaction control method based on video analysis as described in the above-mentioned embodiments.
[0022] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the wireless network interactive control method based on video parsing provided in the above-mentioned various optional implementations.
[0023] In the technical solution of the present application, a user's control video is obtained through a camera device; based on the file information of the control video, the control video is sent to a server through a wireless network; the control video is parsed based on the video stream to generate control data; the control data is encoded to generate control instructions; and based on the control instructions, the control object is instructed to perform a control action. The technical solution of the present application obtains a control video through a wireless network, and parses and analyzes the control video to obtain a control object and a control action, so as to generate a control instruction for execution, thereby improving the transmission efficiency of the control instruction, and thereby enhancing the execution efficiency and accuracy of the control instruction.
[0024] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0026] Figure 1 A flowchart of a wireless network interaction control method based on video analysis in an embodiment of the present application is schematically shown.
[0027] Figure 2 The flowchart of sending a control video to a server in one embodiment of the present application is schematically shown.
[0028] Figure 3 The schematic diagram of the method and system in one embodiment of the present application is schematically shown.
[0029] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0031] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0032] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0033] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0034] The implementation details of the technical solution of this application are described in detail below:
[0035] Figure 1 A flowchart of a wireless network interaction control method based on video analysis according to an embodiment of the present application is shown. Figure 1 As shown, the wireless network interaction control method based on video analysis includes at least steps S110 to S150, which are described in detail as follows:
[0036] In step S110, when the sensor device detects that a user is approaching, the camera device is turned on, and when it is detected that the user makes a control action, the acquisition of the user's control video is triggered.
[0037] In one embodiment of the present application, the camera device is turned on when the sensing device detects that the user is approaching, and when the user is detected to make a control action, the user's control video is triggered. Specifically, a suitable camera device is selected, such as a webcam, a smartphone camera, or a professional camera. These devices should have the characteristics of high-definition image quality, low latency, and good stability to ensure that the quality of the collected video meets the control requirements. The camera device is installed in a suitable position to ensure that the user's control actions can be clearly captured. At the same time, the camera device needs to be configured, including setting parameters such as resolution, frame rate, exposure, etc. to adapt to different lighting conditions and scene requirements.
[0038] In one embodiment of the present application, an appropriate sensing device is selected according to the application scenario, such as an infrared sensor, a distance sensor, a proximity sensor or a motion sensor. The sensing device is installed in a suitable position to ensure that the user's approach or action can be detected. According to the characteristics of the sensing device, corresponding parameters are configured, such as sensitivity, detection range, etc. When the sensing device detects that the user is approaching, a signal is sent to the control system. The control system receives the signal from the sensing device and confirms that the user is approaching. After confirming that the user is approaching, the control system sends a command to turn on the camera device and put it into working state.
[0039] When it is detected that the user makes a specific control action, the camera device is triggered to start recording or capturing the user's control video. The camera device records the user's control video and saves it to a local or remote server.
[0040] In step S120, based on the file information of the control video, the control video is sent to a server via a wireless network.
[0041] In one embodiment of the present application, after obtaining the user's control video, it is usually necessary to send the video file to the server for further processing, storage or analysis. Based on the file information of the control video, before sending the video to the server via the wireless network, ensure that the device is connected to a stable and secure wireless network.
[0042] Use wireless networks (such as Wi-Fi, 4G / 5G, etc.) to transmit video data collected by the camera to the processing center or control terminal in real time. Wireless networks have the advantages of strong flexibility and easy deployment, and can meet the needs of remote control and interaction. During the transmission process, in order to save bandwidth and improve transmission efficiency, video data is usually compressed. At the same time, in order to ensure data security, video data also needs to be encrypted to prevent it from being intercepted or tampered with during transmission.
[0043] Among them, wireless networks may include Wi-Fi, Bluetooth, Zigbee and other methods.
[0044] like Figure 2 As shown, in one embodiment of the present application, based on the file information of the control video, sending the control video to the server through a wireless network includes:
[0045] S210, detecting file information of the control video, wherein the file information includes video data volume and video resolution;
[0046] S220, determining a network parameter range for transmitting the control video based on the file information;
[0047] S230, selecting a wireless network from the candidate networks based on the network parameter range;
[0048] S240: Send the control video to a server via the wireless network.
[0049] In one embodiment of the present application, after acquiring the control video, the file information of the control video is detected. The file information may include the video data volume. and video resolution . Then, the minimum value in the network parameter range is determined based on the file information for:
[0050] .
[0051] Determine the maximum value in the network parameter range based on the file information for:
[0052] .
[0053] in, is a decimal greater than 0 and satisfies The unit of video data volume is Mb, and the unit of video resolution is the number of pixels per inch (ppi).
[0054] The network parameter range may be a network bandwidth range. The value of and the data type of the network parameter range correspond one to one, that is, when the network parameter range is the network bandwidth range, The value is the preset value corresponding to the network bandwidth range.
[0055] In this embodiment, after the network parameter range is calculated, it is used to select a suitable wireless network from the candidate networks through the network parameter range. The above method can fully combine the file information of the control video to determine the suitable wireless network, and then efficiently transmit the control video to the server without occupying too much network bandwidth.
[0056] In step S130, the control video is parsed based on the video stream to generate control data.
[0057] In one embodiment of the present application, the control video is parsed based on the video stream to generate control data including the control object and the control action, and the video frame is preprocessed, which may include denoising, graying, contrast enhancement and other operations to improve image quality and simplify subsequent processing. Object detection technology is applied to identify the control object in the video frame. The features of the detected control object are extracted, and these features may include shape, size, color, texture, position, etc. An object tracking algorithm is used to track the movement of the control object in consecutive frames.
[0058] By analyzing the motion trajectory, speed, acceleration and other parameters of the controlled object, combined with predefined rules or models, the user's control actions are identified, and the identified controlled objects and control actions are converted into structured control data.
[0059] In one embodiment of the present application, performing data parsing based on the video stream on the control video to generate control data includes:
[0060] Based on the video pictures in the control video, generating a video stream corresponding to the time series;
[0061] Performing image analysis on the video stream, and extracting key frames from the video stream;
[0062] The control object and control action are obtained by extracting features from key frames.
[0063] In this embodiment, a video stream corresponding to a time series is generated based on the video frames in the control video. Specifically, in the generation process, the video frames can be extracted according to the generation time to reduce redundant video frames and construct a streamlined video stream for subsequent video analysis.
[0064] Optionally, computer vision and image processing techniques can be used to extract features from keyframes. This includes threshold-based methods, optical flow-based methods, image feature-based methods, or deep learning-based methods (such as convolutional neural networks). Automatic feature extraction methods have high efficiency and accuracy and are suitable for large-scale datasets.
[0065] Among them, the control object in this embodiment may include at least one of curtains, lights, televisions and air conditioners, and the control actions may include opening, closing and other actions.
[0066] After performing image analysis on the video stream and extracting key frames from the video stream, the method further includes:
[0067] Detecting the light intensity when acquiring the control video;
[0068] When the light intensity is less than a set intensity threshold, based on the pixel value of the key frame and a preset target brightness, an enhancement parameter corresponding to the key frame is calculated;
[0069] Based on the enhancement parameters, image enhancement is performed on the key frame.
[0070] In one embodiment of the present application, the light intensity in the video frame can be measured or estimated. This can be done by analyzing the average brightness of the frame, the brightness histogram, or other related metrics. If the light intensity is lower than a set threshold, the key frame enhancement processing is triggered.
[0071] For example, in an application scenario where a user returns home at night, the light intensity of the captured control video is low. At this time, the light intensity when acquiring the control video can be detected. When the light intensity is less than the set intensity threshold, it means that the acquired video is relatively dim and the features are not clearly displayed, and the video stream needs to be enhanced. In this case, based on the pixel values in the key frame and preset target brightness Calculate the corresponding enhancement parameters for:
[0072] .
[0073] Based on the enhancement parameters and the preset target brightness, the key frame is image enhanced to obtain the pixel value corresponding to each pixel point in the enhanced key frame. for:
[0074] .
[0075] in, Indicates the location of the pixel. Indicates the total number of pixels in rows and columns.
[0076] The above process calculates the enhancement parameters corresponding to the key frame based on the pixel value of the key frame and the preset target brightness when the light intensity is less than the set intensity threshold, so as to enhance the image of the key frame through the enhancement parameters. It can be adapted to any video acquired in dim light conditions, improves the processing quality of the video, and improves the accuracy of analyzing the video stream.
[0077] In step S140, the control data is converted into standard data in a unified format, and the standard data is encoded to generate the control instruction.
[0078] In one embodiment of the present application, the control object and the control action are converted into a unified data format to facilitate subsequent encoding and processing. For example, the control data is converted into binary or decimal numbers to facilitate the scenario of efficient transmission or storage in this embodiment. The logic of converting the control data into control instructions is written according to the encoding scheme. For example, it is completed by operations such as string concatenation, digital calculation, and protocol encapsulation. Use simulated data or actual identified control data to test the encoding logic, and package the encoded control instructions into a format suitable for transmission or storage.
[0079] In step S150, the control object is instructed to execute a control action based on the control instruction.
[0080] In one embodiment of the present application, after the control data is generated, including information about the control object and the control action, the next step is to instruct the control object to perform the corresponding control action according to these control instructions.
[0081] Before executing a control action, verify the validity of the control instruction. This includes checking whether the control object is available, whether the control action is legal, and whether there is sufficient authority to perform the action. Put the control object into a ready state. This includes starting the device, unlocking the mechanism, setting initial parameters, etc.
[0082] Send control signals to the controlled object through appropriate communication interfaces (such as serial communication, network protocol, wireless communication, etc.). Monitor the system status and feedback of the controlled object while the controlled object is executing the action.
[0083] In one embodiment of the present application, after instructing the controlled object to perform the control action based on the control instruction, the method further includes:
[0084] Acquiring, by means of a camera, a scene image after the control object performs the control action;
[0085] Detect whether the scene image meets the preset control result.
[0086] In one embodiment of the present application, after the control object performs the control action, the camera device (such as a camera, etc.) is started to capture the scene image. The control result corresponding to the control instruction is obtained, which can be a specific image feature (such as a specific position, color, shape, etc. of an object) or a more complex scene description (such as the relative position relationship between multiple objects, motion state, etc.). The features in the scene image are extracted, and the extracted features are compared and matched with the preset results. This can be done by calculating the similarity between features (such as Euclidean distance, cosine similarity, etc.) or using a classifier (such as a support vector machine, neural network, etc.).
[0087] The detection results are provided as feedback to the control system or user. If the scene image meets the preset results, the control action is successfully executed; otherwise, there is a problem or error. The control system is adjusted according to the feedback results. If a situation that does not meet the preset results is detected, the control action can be re-executed, the control parameters can be adjusted, or other corrective measures can be taken. Through the above feedback process, the control efficiency and execution accuracy of the control instructions can be improved.
[0088] In the technical solution of the present application, the camera device is turned on when the sensor device detects that the user is approaching, and the control video is triggered when the user is detected to make a control action; based on the file information of the control video, the control video is sent to the server through a wireless network; the control video is parsed based on the video stream to generate control data; the control data is converted into standard data in a unified format, the standard data is encoded, and a control instruction is generated; based on the control instruction, the control object is instructed to perform the control action. The technical solution of the present application obtains the control video through a wireless network, and parses and analyzes the control video to obtain the control object and the control action, so as to generate a control instruction for execution, thereby improving the transmission efficiency of the control instruction, and thereby enhancing the execution efficiency and accuracy of the control instruction.
[0089] The following describes an embodiment of the device of the present application, which can be used to execute the wireless network interactive control method based on video parsing in the above-mentioned embodiment of the present application. It can be understood that the device can be a computer program (including program code) running in a computer device, for example, the device is an application software; the device can be used to execute the corresponding steps in the method provided in the embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the wireless network interactive control method based on video parsing in the above-mentioned embodiment of the present application.
[0090] Figure 3A block diagram of a method and a system according to an embodiment of the present application is shown.
[0091] Reference Figure 3 As shown, a method and system according to an embodiment of the present application include:
[0092] The acquisition unit 310 is used to detect the approach of a user through the sensor device, turn on the camera device, and trigger the acquisition of the user's control video when the user makes a control action;
[0093] A sending unit 320, configured to send the control video to a server via a wireless network based on the file information of the control video;
[0094] The parsing unit 330 is used to perform data parsing on the control video based on the video stream to generate control data;
[0095] An encoding unit 340, configured to convert the control data into standard data in a unified format, encode the standard data, and generate the control instruction;
[0096] The control unit 350 is used to instruct the controlled object to perform a control action based on the control instruction.
[0097] In the present application, based on the aforementioned solution, the wireless network includes at least one of the following: Wi-Fi, Bluetooth, Zigbee, 4G and 5G.
[0098] In the present application, based on the aforementioned scheme, the method of obtaining the user's control video through the camera device includes: turning on the camera device when the sensor device detects that the user is approaching; and triggering the acquisition of the user's control video when the user is detected to make a control action.
[0099] In the present application, based on the aforementioned scheme, the control video is sent to the server via a wireless network based on the file information of the control video, including: detecting the file information of the control video, wherein the file information includes the video data volume and the video resolution; determining a network parameter range for transmitting the control video based on the file information; selecting a wireless network from the selected networks based on the network parameter range; and sending the control video to the server via the wireless network.
[0100] In the present application, based on the aforementioned scheme, the control video is subjected to data parsing based on the video stream to generate control data, including: generating a video stream corresponding to a time series based on the video screen in the control video; performing image parsing on the video stream to extract key frames from the video stream; and obtaining control objects and control actions by performing feature extraction on the key frames.
[0101] In the present application, based on the aforementioned scheme, after performing image analysis on the video stream and extracting key frames from the video stream, it also includes: detecting the light intensity when acquiring the control video; when the light intensity is less than a set intensity threshold, calculating the enhancement parameters corresponding to the key frame based on the pixel value of the key frame and the preset target brightness; and performing image enhancement on the key frame based on the enhancement parameters.
[0102] In the present application, based on the above-mentioned solution, the control instruction includes a control object and its corresponding control action.
[0103] In the present application, based on the aforementioned scheme, after instructing the controlled object to perform the control action based on the control instruction, it also includes: acquiring a scene image after the controlled object performs the control action through a camera device; and detecting whether the scene image meets the preset control result.
[0104] In the technical solution of the present application, the camera device is turned on when the sensor device detects that the user is approaching, and the control video is triggered when the user is detected to make a control action; based on the file information of the control video, the control video is sent to the server through a wireless network; the control video is parsed based on the video stream to generate control data; the control data is converted into standard data in a unified format, the standard data is encoded, and a control instruction is generated; based on the control instruction, the control object is instructed to perform the control action. The technical solution of the present application obtains the control video through a wireless network, and parses and analyzes the control video to obtain the control object and the control action, so as to generate a control instruction for execution, thereby improving the transmission efficiency of the control instruction, and thereby enhancing the execution efficiency and accuracy of the control instruction.
[0105] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0106] It should be noted that the computer system 400 of the electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0107] The computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 403. The CPU 401, the ROM 402 and the RAM 403 are connected to each other through the bus 404. The input / output (I / O) interface 405 is also connected to the bus 404.
[0108] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0109] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 409, and / or installed from a removable medium 411. When the computer program is executed by the central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0110] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0111] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0112] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0113] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0114] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0115] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0116] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.
[0117] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0118] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A wireless network interactive control method based on video analysis, It is characterized in that include: When the sensor device detects that a user is approaching, the camera device is turned on, and when the user is detected to make a control action, the user's control video is acquired; Based on the file information of the control video, sending the control video to a server via a wireless network; Performing data analysis on the control video based on the video stream to generate control data; Converting the control data into standard data in a unified format, encoding the standard data, and generating control instructions; instructing the controlled object to perform a control action based on the control instruction; The step of performing data parsing on the control video based on the video stream to generate control data includes: Based on the video pictures in the control video, generating a video stream corresponding to the time series; Performing image analysis on the video stream, and extracting key frames from the video stream; The control object and control action are obtained by extracting features from key frames; Wherein, after performing image analysis on the video stream and extracting key frames from the video stream, the method further includes: Detecting the light intensity when acquiring the control video; When the light intensity is less than the set intensity threshold, based on the pixel value of the key frame and preset target brightness , calculate the enhancement parameters corresponding to the key frame for: ; Based on the enhancement parameters and the preset target brightness, the key frame is image enhanced to obtain the pixel value corresponding to each pixel point in the enhanced key frame. for: ; in, Indicates the location of the pixel. Indicates the total number of pixels in rows and columns.
2. The method according to claim 1, It is characterized in that The wireless network includes at least one of the following: Wi-Fi, Bluetooth, Zigbee, 4G and 5G.
3. The method according to claim 1, It is characterized in that Based on the file information of the control video, sending the control video to the server through a wireless network includes: Detecting file information of the control video, wherein the file information includes video data volume and video resolution; Determining a network parameter range for transmitting the control video based on the file information; Selecting a wireless network from the candidate networks based on the network parameter range; The control video is sent to a server via the wireless network.
4. The method according to claim 1, It is characterized in that The control instruction includes a control object and its corresponding control action.
5. The method according to claim 4, It is characterized in that After instructing the controlled object to execute the control action based on the control instruction, the method further includes: Acquiring, by means of a camera, a scene image after the control object performs the control action; Detect whether the scene image meets the preset control result.
6. A wireless network interactive control system based on video analysis, It is characterized in that include: An acquisition unit, used for acquiring a user's control video through a camera device; A sending unit, configured to send the control video to a server via a wireless network based on the file information of the control video; A parsing unit, configured to perform data parsing on the control video based on a video stream to generate control data; An encoding unit, used for encoding the control data to generate a control instruction; A control unit, used for instructing a controlled object to perform a control action based on the control instruction; The step of performing data parsing on the control video based on the video stream to generate control data includes: Based on the video pictures in the control video, generating a video stream corresponding to the time series; Performing image analysis on the video stream, and extracting key frames from the video stream; The control object and control action are obtained by extracting features from key frames; Wherein, after performing image analysis on the video stream and extracting key frames from the video stream, the method further includes: Detecting the light intensity when acquiring the control video; When the light intensity is less than the set intensity threshold, based on the pixel value of the key frame and preset target brightness , calculate the enhancement parameters corresponding to the key frame for: ; Based on the enhancement parameters and the preset target brightness, the key frame is image enhanced to obtain the pixel value corresponding to each pixel point in the enhanced key frame. for: ; in, Indicates the location of the pixel. Indicates the total number of pixels in rows and columns.
7. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the wireless network interaction control method based on video analysis as described in any one of claims 1 to 5 is implemented.
8. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the wireless network interactive control method based on video analysis as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Method and system for controlling pan / tilt / zoom based on motion recognition technology
CN102799191A
Remote monitoring and control system for industrial manipulator based on Internet
CN105137860A
