CN111081198B - Data control method, data control device, storage medium and terminal equipment - Google Patents

Data control method, data control device, storage medium and terminal equipment Download PDF

Info

Publication number
CN111081198B
CN111081198B CN201911200561.5A CN201911200561A CN111081198B CN 111081198 B CN111081198 B CN 111081198B CN 201911200561 A CN201911200561 A CN 201911200561A CN 111081198 B CN111081198 B CN 111081198B
Authority
CN
China
Prior art keywords
data
rgb
module
pieces
rgb sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911200561.5A
Other languages
Chinese (zh)
Other versions
CN111081198A (en
Inventor
俞斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Mobile Communication Technology Ningbo Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Mobile Communication Technology Ningbo Ltd filed Critical TCL Mobile Communication Technology Ningbo Ltd
Priority to CN201911200561.5A priority Critical patent/CN111081198B/en
Publication of CN111081198A publication Critical patent/CN111081198A/en
Application granted granted Critical
Publication of CN111081198B publication Critical patent/CN111081198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer

Abstract

The invention discloses a data control method, a data control device, a storage medium and a terminal device. According to the invention, the data content in the first data with the occurrence frequency larger than the threshold frequency is updated to the preset data value corresponding to the first data, so that the transmission of the data volume is reduced, the reliability of real-time data transmission is ensured, the mobile terminal can quickly respond to the functions of adjusting brightness and the like based on the RGB sensor, and the efficiency of the mobile terminal is improved.

Description

Data control method, data control device, storage medium and terminal device
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a data control method, a data control apparatus, a storage medium, and a terminal device.
Background
An RGB sensor is a device that converts an optical signal into an electrical signal, and its operation principle is based on the photoelectric effect. The photoelectric effect refers to the phenomenon that when light irradiates on some substances, electrons of the substances absorb the energy of photons, and the corresponding electric effect occurs. The photoelectric effect is divided into three categories according to the difference of photoelectric effect phenomena: external photoelectric effect, internal photoelectric effect and photovoltaic effect. The photoelectric devices comprise a photoelectric tube, a photomultiplier, a photoresistor, a photosensitive diode, a phototriode, a photocell and the like. The photoelectric sensor is a sensor using a photoelectric device as a conversion element, and can be used for detecting non-electric physical quantities directly causing light quantity change, such as light intensity, illuminance, radiation temperature measurement, gas component analysis and the like; other non-electrical quantities that can be converted into changes in the amount of light can also be detected, such as part diameter, surface roughness, strain, displacement, vibration, velocity, acceleration, and identification of the shape of the object, operating conditions, etc. The photoelectric sensor has the characteristics of non-contact, quick response, reliable performance and the like, and is widely applied to mobile terminals.
The RGB sensor provides three additional outputs representing RGB color values. In practice, the sensor outputs raw RGB readings as analog signals. Analog signals are more suitable for communication because digital readings are three channels; one sensor may simulate the raw RGB signal as a 10-bit resolution output. If the reason for the color change is not readily detectable or no display is available, the analog RGB signal may be digitally stored to the data acquisition system. At present, the RGB sensor usually delays data due to a large amount of data.
Therefore, a data control method and a data control device for an RGB sensor are needed.
Disclosure of Invention
In an embodiment of the present invention, a data control method, a data control apparatus, a storage medium, and a terminal device are provided, in which data content in first data whose occurrence frequency is greater than a threshold frequency is updated to a preset data value corresponding to the first data, so as to reduce transmission of data amount, thereby ensuring reliability of real-time data transmission, and enabling a mobile terminal to respond faster on adjusting brightness and other functions based on an RGB sensor, so as to improve efficiency of the mobile terminal.
According to a first aspect of the present invention, there is provided a data control method comprising the steps of: acquiring a plurality of pieces of data of the RGB sensor; judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the data; when the occurrence frequency of first data is judged to be greater than a threshold frequency, storing the first data and generating a corresponding RGB data value, wherein the first data is one of a plurality of pieces of data; and updating the RGB data content in the first data to the RGB data values when the first data is detected again.
Further, after the step of acquiring the plurality of pieces of data of the RGB sensor, the method further includes: and sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence.
Further, when the capacity of the plurality of pieces of stored data of the RGB sensor is equal to or greater than a threshold capacity, the corresponding data of the plurality of pieces of data of the RGB sensor is correspondingly deleted and stored according to the time sequence.
Further, the plurality of data of the RGB sensor each include an RGB data time and an RGB data content.
According to a second aspect of the present invention, there is also provided a data control apparatus comprising: the acquisition module is used for acquiring a plurality of pieces of data of the RGB sensor; the cache module is connected with the acquisition module and is used for sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence; the judging module is connected with the cache module and is used for judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the data; the storage module is connected with the judging module and used for storing the first data and generating a corresponding RGB data value when the occurrence frequency of the first data is judged to be greater than a threshold value frequency; and the replacing module is respectively connected with the judging module and the storage module and used for updating the RGB data content in the first data into the RGB data value when the first data is detected again.
Further, the device further comprises a capacity detection module connected with the cache module, wherein the capacity detection module is used for correspondingly deleting and storing corresponding data in the plurality of data of the RGB sensor according to the time sequence when the capacity of the plurality of data of the RGB sensor stored in the cache module is equal to or greater than a threshold capacity.
Further, the plurality of data output by the RGB sensor each include RGB data time and RGB data content.
According to a third aspect of the present invention, there is also provided a storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform a data control method as defined in any one of the preceding claims.
According to a fourth aspect of the present invention, the present invention further provides a terminal device, including a processor and a memory, where the processor is electrically connected to the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the data control method described in any one of the above.
According to the embodiment of the invention, the data content in the first data with the occurrence frequency larger than the threshold frequency is updated to the preset data value corresponding to the first data, so that the transmission of the data volume is reduced, the reliability of real-time data transmission is ensured, the mobile terminal can quickly respond to the functions of adjusting brightness and the like based on the RGB sensor, and the efficiency of the mobile terminal is improved.
Drawings
The technical solution and the advantages of the present invention will be apparent from the following detailed description of the embodiments of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart illustrating steps of a data control method according to an embodiment of the present invention.
Fig. 2 is a schematic structural diagram of a data control apparatus according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Fig. 4 is another schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The terms "first," "second," "third," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the objects so described are interchangeable under appropriate circumstances. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion.
In particular embodiments, the drawings discussed below and the embodiments used to describe the principles of the present disclosure are by way of illustration only and should not be construed to limit the scope of the present disclosure. Those skilled in the art will understand that the principles of the invention may be implemented in any suitably arranged system. Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. Further, a terminal according to an exemplary embodiment will be described in detail with reference to the accompanying drawings. Like reference symbols in the various drawings indicate like elements.
The terminology used in the detailed description is for the purpose of describing particular embodiments only and is not intended to be limiting of the inventive concepts. Unless the context clearly dictates otherwise, expressions used in the singular form encompass expressions in the plural form. In the present specification, it is to be understood that terms such as "comprising," "having," and "containing" are intended to specify the presence of stated features, integers, steps, acts, or combinations thereof, as taught in the present specification, and are not intended to preclude the presence or addition of one or more other features, integers, steps, acts, or combinations thereof. Like reference symbols in the various drawings indicate like elements.
As shown in fig. 1, an embodiment of the present invention provides a data control method, including the following steps.
And S10, acquiring a plurality of pieces of data of the RGB sensor.
In an embodiment of the present invention, each of the plurality of data of the RGB sensor includes RGB data time and RGB data content.
And S20, sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence.
In the embodiment of the invention, when the capacity of the plurality of pieces of data of the RGB sensor is equal to or greater than a threshold capacity, the corresponding data in the plurality of pieces of data of the RGB sensor is deleted and stored correspondingly according to the time sequence. That is, according to the time sequence, the oldest stored data of the plurality of data of the RGB sensor is deleted, and the newest data of the plurality of data of the RGB sensor is stored. The earliest stored data, namely, the RGB data, is the earliest time. The latest modem is the time of the RGB data thereof.
In the present embodiment, the threshold capacity is 100k. And if the capacity of the plurality of pieces of stored data of the RGB sensor exceeds 100k, deleting the oldest stored data and then storing the newest data.
Step S30, determining whether the number of occurrences of first data is greater than a threshold number, where the first data is one of the plurality of pieces of data.
And S40, when the occurrence frequency of the first data is judged to be greater than a threshold frequency, storing the first data and generating a corresponding RGB data value.
In the embodiment of the present invention, the threshold number of times is 20 times. And if the occurrence frequency of the first data is more than 20 times, storing the first data, generating an RGB value corresponding to the RGB data content, and taking the RGB value as a preset data value.
And step S50, when the first data is detected again, updating the RGB data content in the first data into the RGB data value.
In the embodiment of the present invention, the RGB data value may be understood as an encoding of RGB data content. The RGB data content in the first data is updated to the RGB data value and then is output to the RGB data file, so that the transmission of data volume can be reduced, the reliability of real-time data transmission is ensured, the mobile terminal can quickly respond to the functions of adjusting brightness and the like based on the RGB sensor, and the efficiency of the mobile terminal is improved.
As shown in fig. 2, an embodiment of the present invention provides a data control apparatus, which includes an obtaining module 110, a caching module 120, a determining module 130, a storing module 140, and a replacing module 150.
The obtaining module 110 is used for obtaining a plurality of pieces of data of the RGB sensor.
In an embodiment of the present invention, each of the plurality of data of the RGB sensor includes an RGB data time and an RGB data content.
The buffer module 120 is connected to the obtaining module 110, and the buffer module 120 is configured to sequentially store a plurality of pieces of data of the RGB sensor according to a time sequence.
In an embodiment of the present invention, the apparatus further includes a capacity detection module connected to the cache module, where the capacity detection module is configured to correspondingly delete and store corresponding data in the plurality of pieces of data of the RGB sensors according to a time sequence when the capacity of the plurality of pieces of data of the stored RGB sensors is equal to or greater than a threshold capacity. That is, according to the time sequence, the oldest stored data among the plurality of data of the RGB sensor is deleted, and the newest data among the plurality of data of the RGB sensor is stored. The capacity detection module comprises a first submodule and a second submodule, the first submodule is used for deleting the oldest stored data in the plurality of data of the RGB sensor, and the second submodule is used for storing the newest data in the plurality of data of the RGB sensor.
In the present embodiment, the threshold capacity is 100k. If the capacity of the stored RGB sensor data exceeds 100k, the oldest data is deleted and the newest data is stored.
The determining module 130 is connected to the caching module 120, and the determining module 130 is configured to determine whether the number of occurrences of the first data is greater than a threshold number.
In the embodiment of the present invention, the threshold number of times is 20 times. And if the occurrence frequency of the first data is more than 20 times, storing the first data and generating an RGB numerical value corresponding to the RGB data content.
The storage module 140 is connected to the determining module 130, and the storage module 140 is configured to store the first data and generate a corresponding RGB data value when it is determined that the occurrence frequency of the first data is greater than a threshold frequency.
In the embodiment of the present invention, the threshold number of times is 20 times. And if the occurrence frequency of the first data is more than 20 times, storing the first data and generating an RGB numerical value corresponding to the RGB data content.
The replacing module 150 is respectively connected to the judging module 130 and the storing module 140, and the replacing module 150 is configured to update the RGB data content in the first data to the RGB data value when the first data is detected again.
In the embodiment of the present invention, the RGB data value may be understood as an encoding of RGB data content. The RGB data content in the first data is updated to the RGB data value and then is output to the RGB data file, so that the transmission of data volume can be reduced, the reliability of real-time data transmission is ensured, the mobile terminal can quickly respond to the functions of adjusting brightness and the like based on the RGB sensor, and the efficiency of the mobile terminal is improved.
Referring to fig. 3, an embodiment of the present invention further provides a terminal device 200, where the terminal device 200 may be a mobile phone, a tablet, a computer, or other devices. As shown in fig. 3, the terminal device 200 includes a processor 201 and a memory 202. The processor 201 is electrically connected to the memory 202.
The processor 201 is a control center of the terminal device 200, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or loading an application program stored in the memory 202 and calling data stored in the memory 202, thereby performing overall monitoring of the terminal device.
In this embodiment, the terminal device 200 is provided with a plurality of memory partitions, the plurality of memory partitions includes a system partition and a target partition, the processor 201 in the terminal device 200 loads instructions corresponding to processes of one or more application programs into the memory 202 according to the following steps, and the processor 201 runs the application programs stored in the memory 202, so as to implement various functions:
acquiring a plurality of pieces of data of the RGB sensor;
sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence;
judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the plurality of data;
when the occurrence frequency of the first data is judged to be greater than a threshold frequency, storing the first data and generating a corresponding RGB data value; and
when the first data is detected again, the RGB data content in the first data is updated to the RGB data value.
Fig. 4 shows a specific block diagram of a terminal device 300 according to an embodiment of the present invention, where the terminal device 300 may be used to implement the data control method provided in the foregoing embodiment. The terminal device 300 may be a mobile phone or a tablet.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performing interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuit 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), enhanced Data GSM Environment (EDGE), wideband Code Division Multiple Access (WCDMA), code Division Multiple Access (CDMA), time Division Multiple Access (TDMA), wireless Fidelity (Wi-Fi) (such as IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), internet telephony (VoIP), world Interoperability for Microwave, and other suitable protocols for instant messaging, including any other protocols not currently developed.
The memory 320 may be used to store software programs and modules, such as program instructions/modules corresponding to the data control method in the above-described embodiment, and the processor 380 executes various functional applications and data processing, i.e., functions for reducing data amount, by running the software programs and modules stored in the memory 320. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 320 may further include memory located remotely from processor 380, which may be connected to terminal device 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. Touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, stylus, or any other suitable object or attachment), and actuate the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 380, and can receive and execute commands sent by the processor 380. Additionally, the touch sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may include other input devices 332 in addition to the touch-sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphic user interfaces of the terminal apparatus 300, which may be configured of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch event thereon or thereabout, it may be passed to processor 380 for determining the type of touch event, and processor 380 may then provide a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 4, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The terminal device 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the terminal device 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of identifying the gesture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the terminal device 300, further description is omitted here.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and terminal device 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then sent to another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of peripheral headphones with the terminal device 300.
The terminal device 300 may assist the user in e-mail, web browsing, streaming media access, etc. through the transmission module 370 (e.g., a Wi-Fi module), which provides the user with wireless broadband internet access. Although fig. 4 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the terminal device 300 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 380 is a control center of the terminal device 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal device 300 and processes data by running or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby performing overall monitoring of the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
Terminal device 300 also includes a power supply 390 (e.g., a battery) for powering the various components, which in some embodiments may be logically coupled to processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 390 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown, the terminal device 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, and the like, which are not described in detail herein. Specifically, in this embodiment, the display unit of the terminal device is a touch screen display, the terminal device further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, where the one or more programs include instructions for:
acquiring a plurality of pieces of data of the RGB sensor;
sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence;
judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the plurality of data;
when the occurrence frequency of the first data is judged to be greater than a threshold frequency, storing the first data and generating a corresponding RGB data value; and
when the first data is detected again, the RGB data content in the first data is updated to the RGB data value.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by instructions controlling associated hardware, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, the present invention provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the data control methods provided by the embodiments of the present invention.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any data control method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any data control method provided in the embodiments of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again. The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
According to the embodiment of the invention, the data content in the first data with the occurrence frequency larger than the threshold frequency is updated to the preset data value corresponding to the first data, so that the transmission of the data volume is reduced, the reliability of real-time data transmission is ensured, the mobile terminal can quickly respond to the functions of adjusting brightness and the like based on the RGB sensor, and the efficiency of the mobile terminal is improved.
The data control method, the data control device, the storage medium and the terminal device provided by the embodiments of the present invention are described in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (9)

1. A data control method, comprising the steps of:
acquiring a plurality of pieces of data of the RGB sensor;
judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the plurality of data;
when the occurrence frequency of the first data is judged to be larger than a threshold value frequency, storing the first data and generating a corresponding RGB data value; and
when the first data is detected again, the RGB data content in the first data is updated to the RGB data value.
2. The data control method as claimed in claim 1, further comprising, after the step of acquiring the plurality of pieces of RGB sensor data: and sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence.
3. The data control method of claim 2, wherein when the capacity of the plurality of pieces of data stored in the RGB sensor is equal to or greater than a threshold capacity, corresponding ones of the plurality of pieces of data stored in the RGB sensor are deleted and stored according to a chronological order.
4. The data control method as claimed in claim 1, wherein the plurality of data of the RGB sensor each includes RGB data time and RGB data content.
5. A data control apparatus, comprising:
the acquisition module is used for acquiring a plurality of pieces of data of the RGB sensor;
the cache module is connected with the acquisition module and is used for sequentially storing a plurality of pieces of data of the RGB sensor according to the time sequence;
the judging module is connected with the cache module and is used for judging whether the occurrence frequency of first data is greater than a threshold frequency, wherein the first data is one of the data;
the storage module is connected with the judging module and used for storing the first data and generating a corresponding RGB data value when the occurrence frequency of the first data is judged to be greater than a threshold value frequency; and
and the replacing module is used for updating the RGB data content in the first data into the RGB data value when the first data is detected again.
6. The data control device as claimed in claim 5, further comprising a capacity detection module connected to the buffer module, wherein the capacity detection module is configured to delete and store corresponding data of the plurality of pieces of data of the RGB sensor according to a chronological order when the capacity of the plurality of pieces of data of the RGB sensor is equal to or greater than a threshold capacity.
7. The data control device as claimed in claim 5, wherein the plurality of data outputted from the RGB sensor each comprises RGB data time and RGB data content.
8. A storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the data control method of any of claims 1 to 4.
9. A terminal device comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the data control method of any one of claims 1 to 4.
CN201911200561.5A 2019-11-29 2019-11-29 Data control method, data control device, storage medium and terminal equipment Active CN111081198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911200561.5A CN111081198B (en) 2019-11-29 2019-11-29 Data control method, data control device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911200561.5A CN111081198B (en) 2019-11-29 2019-11-29 Data control method, data control device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN111081198A CN111081198A (en) 2020-04-28
CN111081198B true CN111081198B (en) 2022-12-06

Family

ID=70312100

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911200561.5A Active CN111081198B (en) 2019-11-29 2019-11-29 Data control method, data control device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN111081198B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114727360A (en) * 2020-12-22 2022-07-08 深圳Tcl新技术有限公司 Network connection equipment management method, device, terminal equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0896475A2 (en) * 1994-03-24 1999-02-10 Discovision Associates Start code detecting apparatus for video data stream
CN106231064A (en) * 2016-06-21 2016-12-14 努比亚技术有限公司 A kind of terminal and three primary colours sensor based on virtual unit drive reconstructing method
WO2017039914A1 (en) * 2015-09-02 2017-03-09 Qualcomm Incorporated Auto-calibrating light sensor data of a mobile device
CN109375979A (en) * 2018-10-22 2019-02-22 努比亚技术有限公司 Flow control methods, terminal and readable storage medium storing program for executing
CN109714476A (en) * 2018-12-19 2019-05-03 惠州Tcl移动通信有限公司 Data processing method, device, mobile terminal and storage medium
CN110032443A (en) * 2017-12-11 2019-07-19 三星电子株式会社 Processor, its task processing method and the framework for handling task
CN110113782A (en) * 2019-04-29 2019-08-09 惠州Tcl移动通信有限公司 Data transmission method, device and storage medium
CN110149552A (en) * 2019-05-08 2019-08-20 百度在线网络技术(北京)有限公司 A kind of processing method and terminal of video flowing frame data
CN110442310A (en) * 2019-08-06 2019-11-12 惠州Tcl移动通信有限公司 Application data processing method, device, storage medium and terminal device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5096847B2 (en) * 2007-09-10 2012-12-12 株式会社リコー ACCESS CONTROL DEVICE, ACCESS CONTROL METHOD, ACCESS CONTROL PROGRAM, RECORDING MEDIUM, STORAGE DEVICE, AND IMAGE PROCESSING DEVICE
CN108877737A (en) * 2018-06-12 2018-11-23 努比亚技术有限公司 Screen adjustment method, mobile terminal and computer readable storage medium
CN108920108B (en) * 2018-07-13 2022-02-01 深圳忆联信息系统有限公司 Cold data screening method and device, computer equipment and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0896475A2 (en) * 1994-03-24 1999-02-10 Discovision Associates Start code detecting apparatus for video data stream
WO2017039914A1 (en) * 2015-09-02 2017-03-09 Qualcomm Incorporated Auto-calibrating light sensor data of a mobile device
CN106231064A (en) * 2016-06-21 2016-12-14 努比亚技术有限公司 A kind of terminal and three primary colours sensor based on virtual unit drive reconstructing method
CN110032443A (en) * 2017-12-11 2019-07-19 三星电子株式会社 Processor, its task processing method and the framework for handling task
CN109375979A (en) * 2018-10-22 2019-02-22 努比亚技术有限公司 Flow control methods, terminal and readable storage medium storing program for executing
CN109714476A (en) * 2018-12-19 2019-05-03 惠州Tcl移动通信有限公司 Data processing method, device, mobile terminal and storage medium
CN110113782A (en) * 2019-04-29 2019-08-09 惠州Tcl移动通信有限公司 Data transmission method, device and storage medium
CN110149552A (en) * 2019-05-08 2019-08-20 百度在线网络技术(北京)有限公司 A kind of processing method and terminal of video flowing frame data
CN110442310A (en) * 2019-08-06 2019-11-12 惠州Tcl移动通信有限公司 Application data processing method, device, storage medium and terminal device

Also Published As

Publication number Publication date
CN111081198A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
CN109714476B (en) Data processing method and device, mobile terminal and storage medium
US10324134B2 (en) Method and device for ascertaining required charging time
CN108984066B (en) Application icon display method and mobile terminal
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN107734618B (en) Application program closing method and device, storage medium and electronic equipment
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106302101B (en) Message reminding method, terminal and server
CN111081198B (en) Data control method, data control device, storage medium and terminal equipment
CN111026457B (en) Hardware configuration method and device, storage medium and terminal equipment
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN112243259A (en) Network disconnection method, device, storage medium and mobile terminal
CN108269223B (en) Webpage graph drawing method and terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN107346347B (en) Webpage table display method and device
CN112199050A (en) Storage method, device, storage medium and terminal equipment
CN111107616A (en) Light sensor control method and device and terminal
CN105988801B (en) Method and device for displaying annotation information
CN106033358B (en) Batch installation method and device of application programs
CN111405649B (en) Information transmission method and device and mobile terminal
CN109656438B (en) Desktop wallpaper preview method and device, mobile terminal and storage medium
CN109660664B (en) Event processing method, device and storage medium
CN111026488B (en) Communication data saving method, device, terminal equipment and storage medium
CN112199245B (en) Mobile terminal screen detection method, system, storage medium and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant