CN111880670A - Data processing method and system for intelligent wearable equipment in mobile phone - Google Patents
Data processing method and system for intelligent wearable equipment in mobile phone Download PDFInfo
- Publication number
- CN111880670A CN111880670A CN202010740484.9A CN202010740484A CN111880670A CN 111880670 A CN111880670 A CN 111880670A CN 202010740484 A CN202010740484 A CN 202010740484A CN 111880670 A CN111880670 A CN 111880670A
- Authority
- CN
- China
- Prior art keywords
- vector
- oscillogram
- mobile phone
- alpha
- product result
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/32—User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application provides a data processing method of intelligent wearable equipment in a mobile phone, which comprises the following steps: the method comprises the steps that a mobile phone acquires a speed oscillogram acquired by intelligent wearable equipment, and the speed oscillogram is divided into w oscillogram intervals according to a set time region; the mobile phone samples each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and the plurality of speed values form an input vector according to a sampling sequence; the mobile phone determines a first identity of a target object, extracts a weight vector corresponding to the first identity, performs vector multiplication on the input vector and the weight vector to obtain a product result, and determines whether the oscillogram region belongs to a running state according to the product result; the mobile phone combines all the oscillogram regions belonging to the running state to obtain a combined oscillogram, and the step counting processing is carried out on the combined oscillogram to obtain the number of running steps. The technical scheme provided by the application has the advantage of accurate step counting.
Description
Technical Field
The application relates to the technical field of data, in particular to a data processing method and system of intelligent wearable equipment in a mobile phone.
Background
Intelligent wearable device is a general name for applying wearable technology to carry out intelligent design and develop wearable devices for daily wearing, such as glasses, gloves, watches, necklaces, bracelets, clothes, shoes and the like.
The intelligent watch belongs to the equipment commonly used of intelligence wearing equipment, and the most important function of intelligent watch is the meter step function promptly, but the accuracy of the meter step of current intelligent watch is not high, has influenced the accuracy of meter step.
Disclosure of Invention
The embodiment of the application discloses a data processing method of intelligent wearable equipment in a mobile phone, which can improve the accuracy of step counting and improve the user experience.
The embodiment of the application provides a data processing method of intelligent wearable equipment in a mobile phone in a first aspect, wherein the method comprises the following steps:
the method comprises the steps that a mobile phone acquires a speed oscillogram acquired by intelligent wearable equipment, and the speed oscillogram is divided into w oscillogram intervals according to a set time region;
the mobile phone samples each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and the plurality of speed values form an input vector according to a sampling sequence;
the mobile phone determines a first identity of a target object, extracts a weight vector corresponding to the first identity, performs vector multiplication on the input vector and the weight vector to obtain a product result, and determines whether the oscillogram region belongs to a running state according to the product result;
the mobile phone combines all the oscillogram regions belonging to the running state to obtain a combined oscillogram, and the step counting processing is carried out on the combined oscillogram to obtain the number of running steps.
In a second aspect, a terminal is provided, where the terminal includes:
the acquisition unit is used for acquiring a speed oscillogram acquired by the intelligent wearable equipment and dividing the speed oscillogram into w oscillogram intervals according to a set time region;
the processing unit is used for sampling each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and forming the plurality of speed values into an input vector according to a sampling sequence; determining a first identity of a target object, extracting a weight vector corresponding to the first identity, performing vector multiplication operation on the input vector and the weight vector to obtain a product result, and determining whether the waveform map region belongs to a running state according to the product result; and combining all the waveform map regions belonging to the running state to obtain a combined waveform map, and counting the steps of the combined waveform map to obtain the number of running steps.
A third aspect of embodiments of the present application provides a terminal comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of the first aspect.
A fourth aspect of embodiments of the present application discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method of the first aspect.
A fifth aspect of embodiments of the present application discloses a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
Drawings
The drawings used in the embodiments of the present application are described below.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data processing method of an intelligent wearable device in a mobile phone according to an embodiment of the present application;
FIG. 2a is a schematic diagram of an arrangement storage provided by an embodiment of the present application;
FIG. 2b is a diagram illustrating the dimensions of a convolution kernel provided by an embodiment of the present application;
fig. 2c is a schematic diagram of input data and a convolution kernel according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
The term "and/or" in this application is only one kind of association relationship describing the associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more. The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application. The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
A terminal in the embodiments of the present application may refer to various forms of UE, access terminal, subscriber unit, subscriber station, mobile station, MS (mobile station), remote station, remote terminal, mobile device, user terminal, terminal device (terminal equipment), wireless communication device, user agent, or user equipment. The terminal device may also be a cellular phone, a cordless phone, an SIP (session initiation protocol) phone, a WLL (wireless local loop) station, a PDA (personal digital assistant), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a future 5G network or a terminal device in a future evolved PLMN (public land mobile network, chinese), and the like, which are not limited in this embodiment.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal disclosed in an embodiment of the present application, the terminal 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, where the sensor 170 may include a camera, a distance sensor, a gravity sensor, and the like, the electronic device may include two transparent display screens, the transparent display screens are disposed on a back side and a front side of the electronic device, and part or all of components between the two transparent display screens may also be transparent, so that the electronic device may be a transparent electronic device in terms of visual effect, and if part of the components are transparent, the electronic device may be a hollow electronic device. Wherein:
the terminal 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may be a memory, such as a hard drive memory, a non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), a volatile memory (e.g., static or dynamic random access memory, etc.), etc., and the embodiments of the present application are not limited thereto. Processing circuitry in the storage and processing circuitry 110 may be used to control the operation of the terminal 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the terminal 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the terminal 100, to name a few, embodiments of the present application are not limited.
The terminal 100 may include an input-output circuit 150. The input-output circuit 150 may be used to enable the terminal 100 to input and output data, i.e., to allow the terminal 100 to receive data from external devices and also to allow the terminal 100 to output data from the terminal 100 to external devices. The input-output circuit 150 may further include a sensor 170. Sensor 170 vein identification module, can also include ambient light sensor, proximity sensor based on light and electric capacity, fingerprint identification module, touch sensor (for example, based on light touch sensor and/or capacitanc touch sensor, wherein, touch sensor can be touch-control display screen's partly, also can regard as a touch sensor structure independent utility), acceleration sensor, the camera, and other sensors etc. the camera can be leading camera or rear camera, the fingerprint identification module can integrate in the display screen below, be used for gathering the fingerprint image, the fingerprint identification module can be: optical fingerprint module, etc., and is not limited herein. The front camera can be arranged below the front display screen, and the rear camera can be arranged below the rear display screen. Of course, the front camera or the rear camera may not be integrated with the display screen, and certainly in practical applications, the front camera or the rear camera may also be a lifting structure.
Input-output circuit 150 may also include one or more display screens, and when multiple display screens are provided, such as 2 display screens, one display screen may be provided on the front of the electronic device and another display screen may be provided on the back of the electronic device, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, transparent display, organic light emitting diode display, electronic ink display, plasma display, and display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The terminal 100 can also include an audio component 140. Audio component 140 may be used to provide audio input and output functionality for terminal 100. The audio components 140 in the terminal 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 can be used to provide the terminal 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The terminal 100 may further include a battery, a power management circuit, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control operation of terminal 100 and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from terminal 100.
Referring to fig. 2, fig. 2 provides a data processing method of an intelligent wearable device in a mobile phone, which may be executed by the terminal shown in fig. 1, and the method shown in fig. 2 includes the following steps:
step S201, acquiring a speed oscillogram collected by intelligent wearable equipment by a mobile phone, and dividing the speed oscillogram into w oscillogram intervals according to a set time region;
step S202, the mobile phone samples each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and the plurality of speed values form an input vector according to a sampling sequence;
step S203, the mobile phone determines a first identity of the target object, extracts a weight vector corresponding to the first identity, performs vector multiplication on the input vector and the weight vector to obtain a product result, and determines whether the oscillogram region belongs to a running state according to the product result;
step S204, the mobile phone combines all the oscillogram regions belonging to the running state to obtain a combined oscillogram, and the step counting processing is carried out on the combined oscillogram to obtain the number of running steps.
According to the technical scheme, the mobile phone acquires a speed oscillogram acquired by intelligent wearable equipment, and divides the speed oscillogram into w oscillogram intervals according to a set time region; the mobile phone samples each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and the plurality of speed values form an input vector according to a sampling sequence; the mobile phone determines a first identity of a target object, extracts a weight vector corresponding to the first identity, performs vector multiplication on the input vector and the weight vector to obtain a product result, and determines whether the oscillogram region belongs to a running state according to the product result; and combining all the waveform map regions belonging to the running state to obtain a combined waveform map, and counting the steps of the combined waveform map to obtain the number of running steps. According to the technical scheme, whether the oscillogram interval is in the running state or not can be determined during step counting, and then the interval which does not belong to the running state is removed, so that the identification precision is improved, and the user experience is improved.
The determining, by the mobile phone, the first identity of the target object may specifically include:
e1, acquiring a target face image of a target image of the target object;
e2, verifying the target face image;
e3, when the target face image passes the verification, determining that the target object is a first identity corresponding to a preset face module.
In the specific implementation, a preset face template can be stored in the electronic device in advance, the original image of the target object can be obtained through the camera, and then the first identity of the target object can be determined when the target face image is successfully matched with the preset face template by the electronic device, otherwise, the first identity of the target object is not determined, so that the identity of the target object can be identified, whether the first identity is a reserved patient or not can be judged, and the fact that other people start telemedicine is avoided.
Further, in a possible example, in the step S202, the extracting the stored data for verification may include the following steps:
e21, performing region segmentation on the target face image to obtain a target face region, wherein the target face region is a region image only of a face;
e22, performing binarization processing on the target face area to obtain a binarized face image;
e23, dividing the binary face image into a plurality of regions, wherein the areas of the regions are the same and the area size is larger than a preset area value;
e24, extracting the characteristic points of the binary face image to obtain a plurality of characteristic points;
e25, determining the distribution density of the feature points corresponding to each of the plurality of areas according to the plurality of feature points to obtain a plurality of distribution densities of the feature points;
e26, determining a target mean square error according to the distribution densities of the plurality of feature points;
e27, determining a target quality evaluation value corresponding to the target mean square error according to a preset mapping relation between the mean square error and the quality evaluation value;
e28, when the target quality evaluation value is smaller than the preset quality evaluation value, performing image enhancement processing on the target face image, and matching the target face image subjected to the image enhancement processing with a preset face template to obtain a matching value;
e29, when the matching value is larger than a preset threshold value, determining that the target face image is verified.
In specific implementation, the preset threshold and the preset area value can be set by a user or default by a system, and the preset face template can be stored in the electronic device in advance. The electronic device may obtain a region segmentation of the target face image to obtain a target face region, where the target face region may be a region that does not include a background but only includes a face, that is, a region image of only a face. And then, can carry out binarization processing to target face region, obtain two quantification face image, so, can reduce the image complexity, divide two quantification face image into a plurality of regions, the area size of each region is equal, and is greater than preset area value. Further, feature point extraction may be performed on the binarized face image to obtain a plurality of feature points, and an algorithm of the feature extraction may be at least one of the following: scale Invariant Feature Transform (SIFT), SURF, pyramid, harris corner detection, etc., without limitation.
Further, the electronic device may determine, according to the plurality of feature points, a feature point distribution density corresponding to each of the plurality of regions to obtain a plurality of feature point distribution densities, and determine a target mean square error according to the plurality of feature point distribution densities, the electronic device may pre-store a mapping relationship between a preset mean square error and a quality evaluation value, and determine, according to the mapping relationship between the preset mean square error and the quality evaluation value, a target quality evaluation value corresponding to the target mean square error, where the smaller the mean square error is, the larger the quality evaluation value is, when the target quality evaluation value is greater than the preset quality evaluation value, directly match the target face image with a preset face template, and when a matching value therebetween is greater than a preset threshold, determine that the target face image is verified, and otherwise, determine that the target face image is verified.
Further, when the target quality evaluation value is smaller than the preset quality evaluation value, the terminal may perform image enhancement processing on the target face image, match the target face image after the image enhancement processing with the preset face template, and determine that the target face image passes verification if the matching value between the target face image and the preset face template is larger than a preset threshold value, otherwise, determine that the target face image fails verification.
The step of performing vector multiplication on the input vector and the weight vector to obtain a product result may specifically include:
the mobile phone determines the weight vector as an alpha vector, the maximum value of the number of the same element values in the alpha vector is arranged, the element value beta (beta is a non-zero value) corresponding to the maximum value in the alpha vector is arranged to the head position (such as the first element position) of the alpha' vector, generating a bitmap (bitmap, in the bitmap, if the element value in the α -th vector is β, the bitmap is 1, otherwise, the bitmap is 0, for example, 10,8,9,10 is the α -th vector, and β =10, the bitmap = 1001), arranging the bitmap to another position of the head of the α 'vector (for example, a second element position, if the position is insufficient, the second and third element positions are determined to be another position), arranging the element in the α -th vector, which is the same as the element value β, to a subsequent position of the α' vector (except for the head position) after deleting the element, and storing the α 'vectors in ascending order of the line values of the α' vectors; the mobile phone extracts an alpha ' vector and a row vector corresponding to the input data and the alpha ' vector, adds element values of which bitmap is 1 in the row vector, multiplies the element values with the head position to obtain a product result, multiplies elements at the residual position of the row vector and corresponding element values at the residual position of the alpha ' vector to obtain a product result, adds all the product results to obtain a vector product result, determines that the oscillogram interval belongs to a running state if the product result is greater than a running threshold value, and otherwise, determines that the oscillogram interval does not belong to the running state.
The technical scheme reduces the data volume of data storage and the number of multiplication operations, and takes an actual example as an example, for the element values in the vector, 32 bits are occupied, if 64 elements exist in the alpha-th vector, 64 bits are needed by a bitmap, and each bit corresponds to whether each of the 64 elements is beta or not, so that the data volume stored is small as long as more than 3 element values are the same in the 64 elements, and in actual application, the probability that the vectors in the same column in weight data are the same is higher, so that the storage volume can be reduced, the data storage overhead is reduced, the data processing efficiency is improved, and the user experience is improved.
The implementation method for determining the first identity of the target object may also be implemented by AI recognition, and the method may specifically include:
the mobile phone establishes input data according to the picture of the target object, inputs the input data into the face recognition model to execute n layers of convolution operation to obtain an nth layer of convolution operation result, inputs the nth layer of convolution operation result into the full-connection layer to execute full-connection operation to obtain a full-connection calculation result, calculates a difference value between the full-connection calculation result and a preset face template result, and if the difference value is smaller than a difference value threshold value, the UE determines that the identity of the target object is the identity of the preset face template.
In an optional scheme, the inputting the input data into the face recognition model to perform n-th layer of convolution operation to obtain an nth layer of convolution operation result specifically may include:
the mobile phone may be provided with an individual AI chip, where the AI chip is used to perform the authentication of the target object, and the AI chip includes: the AI chip acquires a matrix size CI CH of input data, if the convolution kernel size in n layers of convolution operation is 3X 3 convolution kernels, the distribution calculation processing circuit divides the CI CH into CI/x data blocks (assuming that CI is an integer of x) according to the CI direction, distributes the CI/x data blocks to the x calculation processing circuits in sequence, the x calculation processing circuits respectively execute the ith layer of convolution operation on the 1 data block received and distributed and the ith layer of convolution kernel to obtain the ith convolution result (namely, the ith convolution result is obtained by sequentially combining x result matrixes (CI/x-2) (CH-2) of the x calculation processing circuits), and sends the result of 2 columns at the edge of the ith convolution result (the result of the adjacent columns is 2 columns obtained by calculation of different calculation processing circuits) to the distribution processing circuit, the x calculation processing circuits execute convolution operation on the ith layer of convolution result and the (i + 1) th layer of convolution kernel to obtain an (i + 1) th layer of convolution result, the (i + 1) th layer of convolution result is sent to the distribution calculation circuit, the distribution calculation processing circuit executes the ith layer of convolution operation on the (CI/x-1) th combined data block and the ith layer of convolution kernel to obtain an ith combined result, the ith combined result and the edge 2 column result of the ith convolution result are spliced (the ith combined result is inserted into the middle of the edge 2 column according to the mathematical rule of the convolution operation) to obtain an (i + 1) th combined data block, the (i + 1) th combined data block and the (i + 1) th convolution kernel execute convolution operation to obtain an (i + 1) th combined result, the (i + 1) th combined result is inserted into the (i + 1) th layer of convolution result between the edge column (the results of the adjacent columns are calculated by different calculation processing circuits) to obtain an (i + 1) th layer of convolution result, and the AI chip executes the operation of the residual convolution layer (convolution kernel after the layer i + 1) according to the convolution result of the layer (i + 1) to obtain the convolution operation result of the layer n. The combined data block may be a 4 × CI matrix composed of 4 columns of data between 2 adjacent data blocks, for example, a 4 × CH matrix composed of the last 2 columns of the 1 st data block (the data block allocated to the 1 st calculation processing circuit) and the first 2 columns of data of the 2 nd data block (the data block allocated to the 2 nd calculation processing circuit).
The calculation of the above-mentioned remaining convolutional layers can also be referred to the calculation of the i-th layer and the (i + 1) -th layer, where i is an integer not less than 1 and not more than n, where n is the total number of convolutional layers of the AI model, i is the layer number of the convolutional layer, CI is the column value of the matrix, and CH is the row value of the matrix.
Referring to fig. 2c (each square in fig. 2c represents an element value), fig. 2c is a schematic diagram of a matrix size CI × CH of input data and a schematic diagram of a 3 × 3 convolution kernel. For a conventional distribution-computation structure, such as a master-slave structure, in the computation, each layer of convolution operation needs to return all the i-th layer of convolution results to the master structure, and then the i-th layer of convolution results is distributed to the slave structure to perform the i + 1-th layer of computation, but after the i-th layer of convolution operation is performed in the technical scheme of the application, only the results of adjacent 2 columns are sent to the distribution processing circuit, and the i + 1-th layer of convolution results is performed after the residual part of convolution results, so that the residual part of convolution results does not need to be returned to the distribution computation processing circuit, and the distribution computation processing circuit does not perform the convolution operation again, so that the distribution computation processing circuit can also reduce the distribution overhead, and further perform the convolution operation on the data of the combined part of data blocks to achieve the purpose of complete convolution operation.
The present application provides a terminal, wherein the terminal may have a structure as shown in fig. 1, and the obtaining unit may specifically be: a sensor 170, which may be a storage and processing circuit; the terminal includes:
the acquisition unit is used for acquiring a speed oscillogram acquired by the intelligent wearable equipment and dividing the speed oscillogram into w oscillogram intervals according to a set time region;
the processing unit is used for sampling each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and forming the plurality of speed values into an input vector according to a sampling sequence; determining a first identity of a target object, extracting a weight vector corresponding to the first identity, performing vector multiplication operation on the input vector and the weight vector to obtain a product result, and determining whether the waveform map region belongs to a running state according to the product result; and combining all the waveform map regions belonging to the running state to obtain a combined waveform map, and counting the steps of the combined waveform map to obtain the number of running steps.
Optionally, the processing unit is specifically configured to perform region segmentation on the target face image to obtain a target face region, where the target face region is a region image of a face only; carrying out binarization processing on the target face area to obtain a binarization face image; dividing the binaryzation face image into a plurality of regions, wherein the areas of the regions are the same and the area size is larger than a preset area value; extracting feature points of the binarized face image to obtain a plurality of feature points; determining the distribution density of the characteristic points corresponding to each of the plurality of areas according to the plurality of characteristic points to obtain a plurality of distribution densities of the characteristic points; determining a target mean square error according to the distribution densities of the plurality of feature points; determining a target quality evaluation value corresponding to the target mean square error according to a preset mapping relation between the mean square error and the quality evaluation value; when the target quality evaluation value is smaller than the preset quality evaluation value, performing image enhancement processing on the target face image, and matching the target face image subjected to the image enhancement processing with a preset face template to obtain a matching value; and when the matching value is larger than a preset threshold value, determining that the target face image is verified to be passed.
An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a network device, the method flow shown in fig. 2 is implemented.
An embodiment of the present application further provides a computer program product, and when the computer program product runs on a terminal, the method flow shown in fig. 2 is implemented.
Embodiments of the present application also provide a terminal including a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of the embodiment shown in fig. 2.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It will be appreciated that the electronic device, in order to carry out the functions described above, may comprise corresponding hardware structures and/or software templates for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no acts or templates referred to are necessarily required by the application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, 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 application.
Claims (4)
1. A data processing method of intelligent wearable equipment in a mobile phone is characterized by comprising the following steps:
the method comprises the steps that a mobile phone acquires a speed oscillogram acquired by intelligent wearable equipment, and the speed oscillogram is divided into w oscillogram intervals according to a set time region;
the mobile phone samples each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and the plurality of speed values form an input vector according to a sampling sequence;
the mobile phone determines a first identity of a target object, extracts a weight vector corresponding to the first identity, performs vector multiplication on the input vector and the weight vector to obtain a product result, and determines whether the oscillogram region belongs to a running state according to the product result;
the mobile phone combines all the oscillogram regions belonging to the running state to obtain a combined oscillogram, and the step counting processing is carried out on the combined oscillogram to obtain the number of running steps.
2. The method of claim 1, wherein the performing a vector multiplication operation on the input vector and the weight vector to obtain a product result specifically comprises:
the mobile phone determines the weight vector as an alpha vector, the number of the same element values in the alpha vector is the maximum, the element value beta corresponding to the maximum in the alpha vector is arranged to the head position of the alpha ' vector, the bitmap of the element value beta in the alpha vector is generated, the bitmap is arranged to the other position of the head of the alpha ' vector, the element which is the same as the element value beta in the alpha vector is deleted and then arranged to the subsequent position of the alpha ' vector, and the alpha ' vector is stored according to the ascending sequence of the line values of the alpha ' vector; the mobile phone extracts an alpha ' vector and a row vector corresponding to the input data and the alpha ' vector, adds element values of which bitmap is 1 in the row vector, multiplies the element values with the head position to obtain a product result, multiplies elements at the residual position of the row vector and corresponding element values at the residual position of the alpha ' vector to obtain a product result, adds all the product results to obtain a vector product result, determines that the oscillogram interval belongs to a running state if the product result is greater than a running threshold value, and otherwise, determines that the oscillogram interval does not belong to the running state.
3. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-2.
4. A terminal, characterized in that the terminal comprises:
the acquisition unit is used for acquiring a speed oscillogram acquired by the intelligent wearable equipment and dividing the speed oscillogram into w oscillogram intervals according to a set time region;
the processing unit is used for sampling each oscillogram interval according to a set sampling rate to obtain a plurality of speed values, and forming the plurality of speed values into an input vector according to a sampling sequence; determining a first identity of a target object, extracting a weight vector corresponding to the first identity, performing vector multiplication operation on the input vector and the weight vector to obtain a product result, and determining whether the waveform map region belongs to a running state according to the product result; and combining all the waveform map regions belonging to the running state to obtain a combined waveform map, and counting the steps of the combined waveform map to obtain the number of running steps.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010740484.9A CN111880670B (en) | 2020-07-28 | 2020-07-28 | Data processing method and system for intelligent wearable equipment in mobile phone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010740484.9A CN111880670B (en) | 2020-07-28 | 2020-07-28 | Data processing method and system for intelligent wearable equipment in mobile phone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111880670A true CN111880670A (en) | 2020-11-03 |
CN111880670B CN111880670B (en) | 2021-03-26 |
Family
ID=73201897
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010740484.9A Active CN111880670B (en) | 2020-07-28 | 2020-07-28 | Data processing method and system for intelligent wearable equipment in mobile phone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111880670B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112418996A (en) * | 2020-11-30 | 2021-02-26 | 珠海采筑电子商务有限公司 | Recommendation method and system for elevator suppliers |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104406604A (en) * | 2014-11-21 | 2015-03-11 | 中国科学院计算技术研究所 | Step counting method |
CN104990562A (en) * | 2015-06-29 | 2015-10-21 | 合肥工业大学 | Step counting method based on autocorrecting computing |
CN107393260A (en) * | 2017-07-31 | 2017-11-24 | 青岛真时科技有限公司 | A kind of sitting based reminding method, device and wrist type sitting reminiscences |
CN107588783A (en) * | 2016-07-08 | 2018-01-16 | 深圳达阵科技有限公司 | One kind meter step preprocess method, device and terminal |
CN107970590A (en) * | 2016-10-25 | 2018-05-01 | 四川理工学院 | A kind of running body-building data system and method based on Android platform |
CN109238299A (en) * | 2018-07-16 | 2019-01-18 | 努比亚技术有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
-
2020
- 2020-07-28 CN CN202010740484.9A patent/CN111880670B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104406604A (en) * | 2014-11-21 | 2015-03-11 | 中国科学院计算技术研究所 | Step counting method |
CN104990562A (en) * | 2015-06-29 | 2015-10-21 | 合肥工业大学 | Step counting method based on autocorrecting computing |
CN107588783A (en) * | 2016-07-08 | 2018-01-16 | 深圳达阵科技有限公司 | One kind meter step preprocess method, device and terminal |
CN107970590A (en) * | 2016-10-25 | 2018-05-01 | 四川理工学院 | A kind of running body-building data system and method based on Android platform |
CN107393260A (en) * | 2017-07-31 | 2017-11-24 | 青岛真时科技有限公司 | A kind of sitting based reminding method, device and wrist type sitting reminiscences |
CN109238299A (en) * | 2018-07-16 | 2019-01-18 | 努比亚技术有限公司 | A kind of step-recording method, wearable device and computer readable storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112418996A (en) * | 2020-11-30 | 2021-02-26 | 珠海采筑电子商务有限公司 | Recommendation method and system for elevator suppliers |
Also Published As
Publication number | Publication date |
---|---|
CN111880670B (en) | 2021-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109241859B (en) | Fingerprint identification method and related product | |
CN110020622B (en) | Fingerprint identification method and related product | |
CN107977674B (en) | Image processing method, image processing device, mobile terminal and computer readable storage medium | |
CN111881813B (en) | Data storage method and system of face recognition terminal | |
CN107944414B (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN110933312B (en) | Photographing control method and related product | |
CN112329926B (en) | Quality improvement method and system for intelligent robot | |
CN111984884A (en) | Non-contact data acquisition method and device for large database | |
CN107451454A (en) | Solve lock control method and Related product | |
CN110796147B (en) | Image segmentation method and related product | |
CN110245607A (en) | Eyeball tracking method and Related product | |
CN108763350A (en) | Text data processing method, device, storage medium and terminal | |
CN111599460A (en) | Telemedicine method and system | |
CN110210394B (en) | Vein image acquisition method and related product | |
CN110796673A (en) | Image segmentation method and related product | |
CN111880670B (en) | Data processing method and system for intelligent wearable equipment in mobile phone | |
CN111191606A (en) | Image processing method and related product | |
CN113282317A (en) | Optical fingerprint parameter upgrading method and related product | |
CN110796665B (en) | Image segmentation method and related product | |
CN110188659B (en) | Health detection method and related product | |
CN110244848B (en) | Reading control method and related equipment | |
CN110276190B (en) | Fingerprint identification method and related product | |
CN110264184B (en) | Payment control method and related product | |
CN109376701B (en) | Fingerprint identification method and related product | |
CN114943976B (en) | Model generation method and device, electronic equipment and storage medium |
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 |