CN114741259A - Motion trajectory generation method, device, equipment and storage medium - Google Patents

Motion trajectory generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114741259A
CN114741259A CN202210367554.XA CN202210367554A CN114741259A CN 114741259 A CN114741259 A CN 114741259A CN 202210367554 A CN202210367554 A CN 202210367554A CN 114741259 A CN114741259 A CN 114741259A
Authority
CN
China
Prior art keywords
application software
longitude
target application
state
latitude
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.)
Pending
Application number
CN202210367554.XA
Other languages
Chinese (zh)
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.)
Shenzhen Ping An Smart Healthcare Technology Co ltd
Original Assignee
Ping An International Smart City Technology Co 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202210367554.XA priority Critical patent/CN114741259A/en
Publication of CN114741259A publication Critical patent/CN114741259A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Automation & Control Theory (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to artificial intelligence and provides a motion trail generation method, a motion trail generation device, motion trail generation equipment and a storage medium. The method includes the steps of identifying target application software, monitoring the running state of the target application software, counting the state duration of the running state which is in a closed state, executing self-starting processing on the target application software if the state duration is longer than or equal to preset duration, acquiring longitude and latitude coordinates where a user is located in real time, calculating the moving distance of the user according to the longitude and latitude coordinates, executing restarting processing on the target application software if the moving distance is longer than or equal to the preset distance, and accurately generating a motion track according to the longitude and latitude coordinates. Furthermore, the invention also relates to a blockchain technique, wherein the motion track can be stored in a blockchain.

Description

Motion trajectory generation method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a motion trail generation method, a motion trail generation device, motion trail generation equipment and a storage medium.
Background
Currently, the longitude and latitude coordinates of a user are mainly obtained by starting a positioning function of an application program, and then a motion track of the user is drawn according to the longitude and latitude coordinates. However, the inventor has recognized that after the application is temporarily closed by background or closed by an unintentional operation of the user, the longitude and latitude coordinates of the user cannot be located in time, so that the motion trail of the user cannot be accurately drawn.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a motion trajectory generation method, device, apparatus and storage medium, which can accurately generate a motion trajectory.
In one aspect, the present invention provides a motion trajectory generation method applied to an electronic device, where the motion trajectory generation method includes:
receiving a track generation request, and identifying target application software according to the track generation request;
monitoring the running state of the target application software;
if the running state is the closing state, counting the state duration of the running state which is the closing state;
if the state duration is greater than or equal to the preset duration, calling a self-starting algorithm to execute self-starting processing on the target application software, and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time;
calculating the moving distance of the user according to the longitude and latitude coordinates;
and if the moving distance is greater than or equal to a preset distance, calling a restart algorithm to execute restart processing on the target application software, and generating the motion track of the user according to the plurality of longitude and latitude coordinates.
According to a preferred embodiment of the present invention, the identifying the target application software according to the trajectory generation request includes:
acquiring all application software in the electronic equipment;
screening out application software containing the positioning algorithm from all the application software to serve as initial application software;
acquiring an operation log of the electronic equipment and acquiring the receiving time of the track generation request;
acquiring the downloading time of the initial application software based on the running log, and counting the historical starting time of the initial application software;
calculating the starting rate of the initial application software based on the receiving time, the downloading time and the historical starting duration;
and determining the initial application software with the largest starting ratio as the target application software.
According to a preferred embodiment of the invention, the starting ratio is calculated by the formula:
Figure BDA0003586526520000021
wherein y is the starting ratio, x is the historical starting time, t2Is the said receiving time, t1Which refers to the download time.
According to a preferred embodiment of the present invention, the monitoring the running state of the target application software includes:
extracting log information corresponding to the receiving time from the running log;
acquiring switch information corresponding to a software switch in the target application software from the log information;
if the switch information is starting, determining the running state as a starting state; or
And if the switch information is closed or the log information does not contain the switch information, determining the running state as a closed state.
According to a preferred embodiment of the present invention, the calculating the moving distance of the user according to the plurality of longitude and latitude coordinates includes:
for any two longitude and latitude coordinates, the any two longitude and latitude coordinates comprise a first longitude coordinate and a second longitude and latitude coordinate, the first longitude coordinate comprises a first longitude and a first latitude, and the second longitude and latitude coordinate comprises a second longitude and a second latitude;
calculating the moving distance according to the first longitude, the first latitude, the second longitude and the second latitude, wherein the calculating formula of the moving distance is as follows:
s=sin h1×sin h2×cos(f1-f2)+cos h1×cos h2
wherein s is the moving distance, h1Means thatThe first latitude, h2Is the second latitude, f1Is said first longitude, f2Refers to the second longitude.
According to the preferred embodiment of the present invention, the invoking the restart algorithm to execute the restart process on the target application software includes:
acquiring a software identifier of the target application software;
writing the software identification into a position corresponding to a starting object field in the restarting algorithm to obtain a restarting statement;
and running the restart statement to execute the restart processing of the target application software.
According to a preferred embodiment of the present invention, the generating the motion trail of the user according to the plurality of longitude and latitude coordinates includes:
acquiring a mapping relation between the longitude and latitude coordinates and a display screen in the electronic equipment;
converting the longitude and latitude coordinates based on the mapping relation to obtain a plurality of screen coordinates;
and drawing the plurality of screen coordinates to obtain the motion trail of the user.
On the other hand, the present invention further provides a motion trail generating device, which runs on an electronic device, and the motion trail generating device includes:
the identification unit is used for receiving a track generation request and identifying target application software according to the track generation request;
the monitoring unit is used for monitoring the running state of the target application software;
the counting unit is used for counting the state duration of the operating state as the closed state if the operating state is the closed state;
the calling unit is used for calling a self-starting algorithm to execute self-starting processing on the target application software and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of a user in real time if the state duration is greater than or equal to a preset duration;
the statistical unit is further used for calculating the moving distance of the user according to the longitude and latitude coordinates;
and the generating unit is used for calling a restart algorithm to execute restart processing on the target application software if the moving distance is greater than or equal to a preset distance, and generating the motion trail of the user according to the plurality of longitude and latitude coordinates.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the motion trajectory generation method.
In another aspect, the present invention further provides a computer-readable storage medium, in which computer-readable instructions are stored, and the computer-readable instructions are executed by a processor in an electronic device to implement the motion trajectory generation method.
According to the technical scheme, the running state of the target application software is monitored, the target application software can be automatically started by the aid of the automatic starting algorithm through comparison of state duration and preset duration when the running state is in a closed state, the duration of the target application software in the closed state can be prevented from reaching the preset duration, the moving distance of a user can be accurately quantized through the longitude and latitude coordinates, the target application software is restarted when the moving distance exceeds the preset distance, the target application software can be further ensured to be in a starting state, the longitude and latitude coordinates can be acquired in real time, and accuracy of the moving track can be improved.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the method for generating a motion trajectory according to the present invention.
Fig. 2 is a functional block diagram of a preferred embodiment of the motion trajectory generating device of the present invention.
Fig. 3 is a schematic structural diagram of an electronic device implementing a motion trajectory generation method according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart of a motion trajectory generation method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The motion trail generation method can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
The artificial intelligence infrastructure generally includes technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a robot technology, a biological recognition technology, a voice processing technology, a natural language processing technology, machine learning/deep learning and the like.
The motion trajectory generation method is applied to one or more electronic devices, which are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set or stored in advance, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any electronic product capable of performing human-computer interaction with a user, for example, a Personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an interactive Internet Protocol Television (IPTV), a smart wearable device, and the like.
The electronic device may include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which the electronic device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
And S10, receiving the track generation request, and identifying the target application software according to the track generation request.
In at least one embodiment of the present invention, the track generation request may be triggered and generated by a user carrying the electronic device.
The target application software is the application software which has a positioning function and has the largest starting ratio in the electronic equipment. For example, the target application software may be a sports software.
In at least one embodiment of the present invention, the electronic device identifying the target application software according to the trajectory generation request includes:
acquiring all application software in the electronic equipment;
screening out application software containing the positioning algorithm from all the application software to serve as initial application software;
acquiring an operation log of the electronic equipment and acquiring the receiving time of the track generation request;
acquiring the downloading time of the initial application software based on the running log, and counting the historical starting time of the initial application software;
calculating the starting rate of the initial application software based on the receiving time, the downloading time and the historical starting duration;
and determining the initial application software with the largest starting ratio as the target application software.
Wherein, the running log comprises the running information of all the application software. For example, the runtime log includes the runtime time point of the initial application software.
The reception time is a time point at which the trajectory generation request is received.
The initial application software can be quickly screened out through the positioning algorithm, and then the target application software can be accurately screened out through the analysis of the starting ratio, so that redundant occupation of background threads can be avoided.
Specifically, the calculation formula of the start-up ratio is:
Figure BDA0003586526520000051
wherein y is the starting ratio, x is the historical starting time, t2Is the said receiving time, t1Which refers to the download time.
With the above embodiment, the start-up ratio can be accurately determined.
And S11, monitoring the running state of the target application software.
In at least one embodiment of the present invention, the operational state includes an off state and an on state.
In at least one embodiment of the present invention, the monitoring, by the electronic device, the running state of the target application software includes:
extracting log information corresponding to the receiving time from the running log;
acquiring switch information corresponding to a software switch in the target application software from the log information;
if the switch information is starting, determining the running state as a starting state; or alternatively
And if the switch information is closed or the log information does not contain the switch information, determining the running state as a closed state.
Wherein the software switch is used for indicating the starting condition of the target application software.
By screening the log information corresponding to the receiving time, the analysis of the information at other times is avoided, and the accuracy of the running state is improved.
And S12, if the operation state is the closing state, counting the state duration of the operation state which is the closing state.
In at least one embodiment of the present invention, the state duration refers to an accumulated duration of the operation state being the off state.
And S13, if the state duration is greater than or equal to the preset duration, calling a self-starting algorithm to execute self-starting processing on the target application software, and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time.
In at least one embodiment of the present invention, the preset time period may be set according to actual requirements.
The self-starting algorithm is an algorithm capable of changing the application software from a closed state to a starting state.
The user refers to a user carrying the electronic device, that is, the user refers to a user who triggers generation of the trajectory generation request.
The longitude and latitude coordinates refer to the specific position where the user or the electronic equipment is located.
In at least one embodiment of the present invention, a manner in which the electronic device invokes the self-starting algorithm to perform the self-starting processing on the target application software is similar to a manner in which the electronic device invokes the restart algorithm to perform the restart processing on the target application software, and a specific manner is described below, which is not described in detail herein again.
In at least one embodiment of the present invention, the electronic device runs the positioning algorithm to obtain the longitude and latitude coordinates.
Through the embodiment, the longitude and latitude coordinates can be directly acquired.
And S14, calculating the moving distance of the user according to the longitude and latitude coordinates.
In at least one embodiment of the present invention, the movement distance refers to a distance generated by the user's specific movement.
In at least one embodiment of the present invention, the electronic device calculating the moving distance of the user according to a plurality of the longitude and latitude coordinates comprises:
for any two longitude and latitude coordinates, the any two longitude and latitude coordinates comprise a first longitude coordinate and a second longitude and latitude coordinate, the first longitude coordinate comprises a first longitude and a first latitude, and the second longitude and latitude coordinate comprises a second longitude and a second latitude;
calculating the moving distance according to the first longitude, the first latitude, the second longitude and the second latitude, wherein the calculating formula of the moving distance is as follows:
s=sin h1×sin h2×cos(f1-f2)+cos h1×cos h2
wherein s is the moving distance, h1Is the first latitude, h2Is the second latitude, f1Is said first longitude, f2Refers to the second longitude.
Through the embodiment, the distance between the first longitude and latitude coordinate and the second longitude and latitude coordinate can be quantitatively analyzed, so that the readability of the moving distance is improved.
And S15, if the moving distance is greater than or equal to a preset distance, calling a restart algorithm to execute restart processing on the target application software, and generating the motion trail of the user according to the plurality of longitude and latitude coordinates.
It is emphasized that, to further ensure the privacy and security of the motion trajectory, the motion trajectory may also be stored in a node of a blockchain.
In at least one embodiment of the present invention, the preset distance may be set according to actual requirements. It is understood that the unit of the preset distance is the same as the unit of the moving distance, for example, if the unit of the moving distance is radian, the unit of the preset distance is also radian; if the unit of the moving distance is meter, the unit of the preset distance is meter.
The motion track refers to an actual movement track of the user.
In at least one embodiment of the present invention, the electronic device invoking a restart algorithm to perform a restart process on the target application software includes:
acquiring a software identifier of the target application software;
writing the software identification into a position corresponding to a starting object field in the restarting algorithm to obtain a restarting statement;
and running the restart statement to execute the restart processing of the target application software.
Wherein the software identification is used for indicating the target application software.
And the restart statement can be accurately generated through the software identification and the position corresponding to the field of the start object in the restart algorithm, so that the restart processing of the target application software is accurately completed, and the target application software is ensured to be continuously in a start state.
In at least one embodiment of the present invention, the electronic device generating the motion trail of the user according to the plurality of longitude and latitude coordinates includes:
acquiring a mapping relation between the longitude and latitude coordinates and a display screen in the electronic equipment;
converting the longitude and latitude coordinates based on the mapping relation to obtain a plurality of screen coordinates;
and drawing the plurality of screen coordinates to obtain the motion trail of the user.
The mapping relationship may be obtained from a conversion coordinate table pre-stored in the electronic device.
The screen coordinates can be accurately generated through the mapping relation, and the accuracy of the motion track is improved.
According to the technical scheme, the running state of the target application software is monitored, the target application software can be automatically started by the aid of the automatic starting algorithm through comparison of state duration and preset duration when the running state is in a closed state, the duration of the target application software in the closed state can be prevented from reaching the preset duration, the moving distance of a user can be accurately quantized through the longitude and latitude coordinates, the target application software is restarted when the moving distance exceeds the preset distance, the target application software can be further ensured to be in a starting state, the longitude and latitude coordinates can be acquired in real time, and accuracy of the moving track can be improved.
Fig. 2 is a functional block diagram of a motion trail generation device according to a preferred embodiment of the present invention. The motion trail generation device 11 includes an identification unit 110, a monitoring unit 111, a statistical unit 112, a calling unit 113, and a generation unit 114. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments. The motion trail generation device 11 runs in an electronic device.
The recognition unit 110 receives the trajectory generation request and recognizes the target application software according to the trajectory generation request.
In at least one embodiment of the present invention, the track generation request may be triggered and generated by a user carrying the electronic device.
The target application software is the application software which has a positioning function and has the largest starting ratio in the electronic equipment. For example, the target application software may be a sports software.
In at least one embodiment of the present invention, the identifying unit 110 identifying the target application software according to the trajectory generation request includes:
acquiring all application software in the electronic equipment;
screening out application software containing the positioning algorithm from all the application software to serve as initial application software;
acquiring an operation log of the electronic equipment and acquiring the receiving time of the track generation request;
acquiring the downloading time of the initial application software based on the running log, and counting the historical starting time of the initial application software;
calculating the starting rate of the initial application software based on the receiving time, the downloading time and the historical starting time;
and determining the initial application software with the largest starting ratio as the target application software.
Wherein, the running log comprises the running information of all the application software. For example, the runtime log includes the runtime time point of the initial application software.
The reception time is a time point at which the trajectory generation request is received.
The initial application software can be quickly screened out through the positioning algorithm, and then the target application software can be accurately screened out through the analysis of the starting ratio, so that redundant occupation of background threads can be avoided.
Specifically, the calculation formula of the start ratio is:
Figure BDA0003586526520000081
wherein y is the starting ratio, x is the historical starting time, t2Is the said reception time, t1Which refers to the download time.
Through the embodiment, the starting ratio can be accurately determined.
The monitoring unit 111 monitors the running state of the target application software.
In at least one embodiment of the present invention, the operational state includes an off state and an on state.
In at least one embodiment of the present invention, the monitoring unit 111 monitors the running state of the target application software, including:
extracting log information corresponding to the receiving time from the running log;
acquiring switch information corresponding to a software switch in the target application software from the log information;
if the switch information is starting, determining the running state as a starting state; or
And if the switch information is closed or the log information does not contain the switch information, determining the running state as a closed state.
Wherein the software switch is used for indicating the starting condition of the target application software.
By screening the log information corresponding to the receiving time, the analysis of the information at other times is avoided, and the accuracy of the running state is improved.
If the operation state is the off state, the statistical unit 112 performs statistics on the state duration of the operation state being the off state.
In at least one embodiment of the present invention, the state duration refers to an accumulated duration of the operation state being the off state.
If the state duration is greater than or equal to the preset duration, the calling unit 113 calls a self-starting algorithm to execute self-starting processing on the target application software, and calls a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time.
In at least one embodiment of the present invention, the preset time period may be set according to actual requirements.
The self-starting algorithm is an algorithm capable of changing the application software from a closed state to a starting state.
The user refers to a user carrying the electronic device, that is, the user refers to a user who triggers generation of the track generation request.
The longitude and latitude coordinates refer to the specific position where the user or the electronic equipment is located.
In at least one embodiment of the present invention, a manner in which the invoking unit 113 invokes the self-starting algorithm to perform the self-starting processing on the target application software is similar to a manner in which the generating unit 114 invokes the restarting algorithm to perform the restarting processing on the target application software, and a specific manner is described below, which is not described in detail herein again.
In at least one embodiment of the present invention, the invoking unit 113 runs the positioning algorithm to obtain the longitude and latitude coordinates.
Through the embodiment, the longitude and latitude coordinates can be directly acquired.
The statistical unit 112 calculates the moving distance of the user according to the longitude and latitude coordinates.
In at least one embodiment of the present invention, the movement distance refers to a distance generated by the user's specific movement.
In at least one embodiment of the present invention, the calculating the moving distance of the user according to the longitude and latitude coordinates by the statistical unit 112 includes:
for any two longitude and latitude coordinates, the any two longitude and latitude coordinates comprise a first longitude coordinate and a second longitude and latitude coordinate, the first longitude coordinate comprises a first longitude and a first latitude, and the second longitude and latitude coordinate comprises a second longitude and a second latitude;
calculating the moving distance according to the first longitude, the first latitude, the second longitude and the second latitude, wherein the calculating formula of the moving distance is as follows:
s=sin h1×sin h2×cos(f1-f2)+cos h1×cos h2
wherein s is the moving distance, h1Is the first latitude, h2Is the second latitude, f1Is said first longitude, f2Refers to the second longitude.
Through the embodiment, the distance between the first longitude and latitude coordinate and the second longitude and latitude coordinate can be quantitatively analyzed, so that the readability of the moving distance is improved.
If the moving distance is greater than or equal to a preset distance, the generating unit 114 invokes a restart algorithm to execute restart processing on the target application software, and generates the motion trajectory of the user according to the plurality of longitude and latitude coordinates.
It is emphasized that, to further ensure the privacy and security of the motion trajectory, the motion trajectory may also be stored in a node of a blockchain.
In at least one embodiment of the present invention, the preset distance may be set according to actual requirements. It is understood that the unit of the preset distance is the same as the unit of the moving distance, for example, if the unit of the moving distance is radian, the unit of the preset distance is also radian; if the unit of the moving distance is meter, the unit of the preset distance is meter.
The motion track refers to an actual movement track of the user.
In at least one embodiment of the present invention, the generating unit 114 invoking the restart algorithm to execute the restart process on the target application software includes:
acquiring a software identifier of the target application software;
writing the software identification into a position corresponding to a starting object field in the restarting algorithm to obtain a restarting statement;
and running the restart statement to execute the restart processing of the target application software.
Wherein the software identification is used for indicating the target application software.
And the restart statement can be accurately generated through the software identification and the position corresponding to the field of the start object in the restart algorithm, so that the restart processing of the target application software is accurately completed, and the target application software is ensured to be continuously in a start state.
In at least one embodiment of the present invention, the generating unit 114 generates the motion trail of the user according to the plurality of longitude and latitude coordinates includes:
acquiring a mapping relation between the longitude and latitude coordinates and a display screen in the electronic equipment;
converting the longitude and latitude coordinates based on the mapping relation to obtain a plurality of screen coordinates;
and drawing the plurality of screen coordinates to obtain the motion trail of the user.
The mapping relationship may be obtained from a conversion coordinate table pre-stored in the electronic device.
The screen coordinates can be accurately generated through the mapping relation, and the accuracy of the motion track is improved.
According to the technical scheme, the running state of the target application software is monitored, the target application software can be automatically started by the aid of the automatic starting algorithm through comparison of state duration and preset duration when the running state is in a closed state, the duration of the target application software in the closed state can be prevented from reaching the preset duration, the moving distance of a user can be accurately quantized through the longitude and latitude coordinates, the target application software is restarted when the moving distance exceeds the preset distance, the target application software can be further ensured to be in a starting state, the longitude and latitude coordinates can be acquired in real time, and accuracy of the moving track can be improved.
Fig. 3 is a schematic structural diagram of an electronic device implementing a motion trajectory generation method according to a preferred embodiment of the present invention.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions, such as a motion trajectory generation program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by those skilled in the art that the schematic diagram is merely an example of the electronic device 1, and does not constitute a limitation of the electronic device 1, and may include more or less components than those shown, or combine some components, or different components, for example, the electronic device 1 may further include an input-output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer readable instructions may be partitioned into an identification unit 110, a listening unit 111, a statistics unit 112, a calling unit 113, and a generation unit 114.
The memory 12 may be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed motion track generation, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
With reference to fig. 1, the memory 12 in the electronic device 1 stores computer-readable instructions to implement a motion trajectory generation method, and the processor 13 can execute the computer-readable instructions to implement:
receiving a track generation request, and identifying target application software according to the track generation request;
monitoring the running state of the target application software;
if the running state is the closing state, counting the state duration of the running state which is the closing state;
if the state duration is greater than or equal to the preset duration, calling a self-starting algorithm to execute self-starting processing on the target application software, and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time;
calculating the moving distance of the user according to the longitude and latitude coordinates;
and if the moving distance is greater than or equal to a preset distance, calling a restart algorithm to execute restart processing on the target application software, and generating the motion track of the user according to the plurality of longitude and latitude coordinates.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
receiving a track generation request, and identifying target application software according to the track generation request;
monitoring the running state of the target application software;
if the running state is the closing state, counting the state duration of the running state which is the closing state;
if the state duration is greater than or equal to the preset duration, calling a self-starting algorithm to execute self-starting processing on the target application software, and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time;
calculating the moving distance of the user according to the longitude and latitude coordinates;
and if the moving distance is greater than or equal to a preset distance, calling a restart algorithm to execute restart processing on the target application software, and generating the motion track of the user according to the longitude and latitude coordinates.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention 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, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The plurality of units or devices may also be implemented by one unit or device through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the same, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A motion trail generation method is applied to electronic equipment and is characterized by comprising the following steps:
receiving a track generation request, and identifying target application software according to the track generation request;
monitoring the running state of the target application software;
if the running state is the closing state, counting the state duration of the running state which is the closing state;
if the state duration is greater than or equal to the preset duration, calling a self-starting algorithm to execute self-starting processing on the target application software, and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of the user in real time;
calculating the moving distance of the user according to the longitude and latitude coordinates;
and if the moving distance is greater than or equal to a preset distance, calling a restart algorithm to execute restart processing on the target application software, and generating the motion track of the user according to the plurality of longitude and latitude coordinates.
2. The motion trajectory generation method of claim 1, wherein the identifying the target application software according to the trajectory generation request comprises:
acquiring all application software in the electronic equipment;
screening out application software containing the positioning algorithm from all the application software to serve as initial application software;
acquiring an operation log of the electronic equipment and acquiring the receiving time of the track generation request;
acquiring the downloading time of the initial application software based on the running log, and counting the historical starting time of the initial application software;
calculating the starting rate of the initial application software based on the receiving time, the downloading time and the historical starting duration;
and determining the initial application software with the largest starting ratio as the target application software.
3. The motion trajectory generation method according to claim 2, wherein the activation ratio is calculated by a formula of:
Figure FDA0003586526510000011
wherein y is the starting ratio, x is the historical starting time, t2Is the said receiving time, t1Which refers to the download time.
4. The motion trail generation method according to claim 2, wherein said monitoring the running state of the target application software comprises:
extracting log information corresponding to the receiving time from the running log;
acquiring switch information corresponding to a software switch in the target application software from the log information;
if the switch information is starting, determining the running state as a starting state; or
And if the switch information is closed or the log information does not contain the switch information, determining the running state as a closed state.
5. The motion trail generation method according to claim 1, wherein said calculating a moving distance of the user from a plurality of the longitude and latitude coordinates comprises:
for any two longitude and latitude coordinates, the any two longitude and latitude coordinates comprise a first longitude coordinate and a second longitude and latitude coordinate, the first longitude coordinate comprises a first longitude and a first latitude, and the second longitude and latitude coordinate comprises a second longitude and a second latitude;
calculating the moving distance according to the first longitude, the first latitude, the second longitude and the second latitude, wherein the calculating formula of the moving distance is as follows:
s=sinh1×sinh2×cos(f1-f2)+cosh1×cosh2
wherein s is the moving distance, h1Is the first latitude, h2Is the second latitude, f1Is said first longitude, f2Refers to the second longitude.
6. The motion trajectory generation method of claim 1, wherein invoking the restart algorithm to perform a restart process on the target application software comprises:
acquiring a software identifier of the target application software;
writing the software identification into a position corresponding to a starting object field in the restarting algorithm to obtain a restarting statement;
and running the restart statement to execute the restart processing of the target application software.
7. The motion trail generation method according to claim 1, wherein the generating of the motion trail of the user according to the plurality of longitude and latitude coordinates comprises:
acquiring a mapping relation between the longitude and latitude coordinates and a display screen in the electronic equipment;
converting the longitude and latitude coordinates based on the mapping relation to obtain a plurality of screen coordinates;
and drawing the plurality of screen coordinates to obtain the motion trail of the user.
8. A motion trajectory generation apparatus that operates on an electronic device, the motion trajectory generation apparatus comprising:
the identification unit is used for receiving a track generation request and identifying target application software according to the track generation request;
the monitoring unit is used for monitoring the running state of the target application software;
the counting unit is used for counting the state duration of the operating state as the closed state if the operating state is the closed state;
the calling unit is used for calling a self-starting algorithm to execute self-starting processing on the target application software and calling a positioning algorithm of the target application software to acquire longitude and latitude coordinates of a user in real time if the state duration is greater than or equal to a preset duration;
the statistical unit is further used for calculating the moving distance of the user according to the longitude and latitude coordinates;
and the generating unit is used for calling a restarting algorithm to execute restarting processing on the target application software if the moving distance is greater than or equal to a preset distance, and generating the motion trail of the user according to the longitude and latitude coordinates.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the motion trajectory generation method of any one of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores therein computer-readable instructions which are executed by a processor in an electronic device to implement the motion trajectory generation method according to any one of claims 1 to 7.
CN202210367554.XA 2022-04-08 2022-04-08 Motion trajectory generation method, device, equipment and storage medium Pending CN114741259A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210367554.XA CN114741259A (en) 2022-04-08 2022-04-08 Motion trajectory generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210367554.XA CN114741259A (en) 2022-04-08 2022-04-08 Motion trajectory generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114741259A true CN114741259A (en) 2022-07-12

Family

ID=82278958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210367554.XA Pending CN114741259A (en) 2022-04-08 2022-04-08 Motion trajectory generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114741259A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657083A (en) * 2022-12-14 2023-01-31 深圳市微克科技有限公司 Method and system for measuring and recording motion trail of intelligent watch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115657083A (en) * 2022-12-14 2023-01-31 深圳市微克科技有限公司 Method and system for measuring and recording motion trail of intelligent watch

Similar Documents

Publication Publication Date Title
CN111949708B (en) Multi-task prediction method, device, equipment and medium based on time sequence feature extraction
CN113870395A (en) Animation video generation method, device, equipment and storage medium
CN115237802A (en) Artificial intelligence based simulation test method and related equipment
CN114035827A (en) Application program updating method, device, equipment and storage medium
CN112214588A (en) Multi-intention recognition method and device, electronic equipment and storage medium
CN114741259A (en) Motion trajectory generation method, device, equipment and storage medium
CN113536770B (en) Text analysis method, device and equipment based on artificial intelligence and storage medium
CN114418398A (en) Scene task development method, device, equipment and storage medium
CN114510487A (en) Data table merging method, device, equipment and storage medium
CN114116108A (en) Dynamic rendering method, device, equipment and storage medium
CN115037790B (en) Abnormal registration identification method, device, equipment and storage medium
CN111950707A (en) Behavior prediction method, apparatus, device and medium based on behavior co-occurrence network
CN116205723A (en) Artificial intelligence-based face tag risk detection method and related equipment
CN114996109A (en) User behavior identification method, device, equipment and storage medium
CN115168585A (en) Text theme recognition method, device and equipment and storage medium
CN115952201A (en) Data query method, device, system and storage medium
CN114490262A (en) Database monitoring method, device, equipment and storage medium
CN113886263A (en) System testing method, device, equipment and storage medium
CN112632098A (en) Dynamic generation method of structured query statement and related equipment
CN115169360A (en) User intention identification method based on artificial intelligence and related equipment
CN114238296A (en) Product index data display method, device, equipment and storage medium
CN113902302A (en) Data analysis method, device, equipment and storage medium based on artificial intelligence
CN113064802B (en) Operation track restoration method, device, equipment and storage medium
CN112559072B (en) Service function starting method and related equipment
CN115630724A (en) Disaster area prediction method, device, 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: Room 2601 (Unit 07), Qianhai Free Trade Building, No. 3048, Xinghai Avenue, Nanshan Street, Qianhai Shenzhen-Hong Kong Cooperation Zone, Shenzhen, Guangdong 518000

Applicant after: Shenzhen Ping An Smart Healthcare Technology Co.,Ltd.

Address before: 1-34 / F, Qianhai free trade building, 3048 Xinghai Avenue, Mawan, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong 518000

Applicant before: Ping An International Smart City Technology Co.,Ltd.