CN111240184A - Method for determining clock error, terminal and computer storage medium - Google Patents

Method for determining clock error, terminal and computer storage medium Download PDF

Info

Publication number
CN111240184A
CN111240184A CN202010106501.3A CN202010106501A CN111240184A CN 111240184 A CN111240184 A CN 111240184A CN 202010106501 A CN202010106501 A CN 202010106501A CN 111240184 A CN111240184 A CN 111240184A
Authority
CN
China
Prior art keywords
pointer
determining
error
frame
video
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
Application number
CN202010106501.3A
Other languages
Chinese (zh)
Other versions
CN111240184B (en
Inventor
乐毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010106501.3A priority Critical patent/CN111240184B/en
Publication of CN111240184A publication Critical patent/CN111240184A/en
Application granted granted Critical
Publication of CN111240184B publication Critical patent/CN111240184B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G5/00Setting, i.e. correcting or changing, the time-indication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V2201/00Indexing scheme relating to image or video recognition or understanding
    • G06V2201/02Recognising information on displays, dials, clocks

Abstract

The application provides a method, a terminal and a computer storage medium for determining clock errors, relates to the technical field of terminals and aims to solve the technical problem that time consumption is long in an error measurement mode of clock products. The method comprises the following steps: receiving a first instruction of a user for opening a target application in a terminal; opening the target application in response to the first instruction; receiving a second instruction of setting a first duration by a user in an interface of a target application; calling a camera of a terminal to shoot a clock with a pointer to obtain a video with the duration at least being a first duration; determining a unit error of a pointer in a video within a first time length; determining the travel time error of the clock in a second time length according to the unit error, wherein the second time length is greater than the first time length; and outputting the travel time error of the clock in the second time length.

Description

Method for determining clock error, terminal and computer storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a method for determining a clock error, a terminal, and a computer storage medium.
Background
The real clock products have errors when running, the running errors are usually in units of +/-dozens of seconds/day, the errors are small, and the observation by consumers is inconvenient. For the travel time error of clock products, the travel time error can be obtained only after long-time measurement under the condition of a laboratory, and common consumers generally have no ability to determine the error of the clock products.
Disclosure of Invention
The application provides a clock error determination method, a terminal and a computer storage medium, which aim to solve the technical problem that the error measurement mode of clock products consumes a long time.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, the present application provides a method of determining a timepiece error, comprising: receiving a first instruction of a user for opening a target application in a terminal; the terminal receives a first instruction of opening the target application indicated by a user when receiving the operation of clicking the icon of the target application by the user; responding to the first instruction, opening a target application, wherein an interface of the target application can be displayed on a screen of the terminal; receiving a second instruction of setting a first time length by a user in an interface of the target application, wherein the first time length is a time length used as a reference for calculating a travel time error of the second time length, for example, the user can set the first time length to be 60 seconds so as to calculate a travel time error of 24 hours according to the travel time error of 60 seconds; the interface capable of receiving the first time length set by the user may be a first interface of the target application, the user may enter the first interface for setting the first time length by clicking one option icon in a home interface of the target application, and the user may set the first time length by inputting numbers, selecting one time length from a plurality of time length options, or sliding a virtual digital clock up and down on a touch screen, which is not specifically limited in the embodiment of the present application; calling a camera of a terminal to shoot a clock with a pointer to obtain a video with the duration at least being a first duration; the terminal is provided with a camera, for example, the terminal can be a mobile phone with the camera, the target application can apply for acquiring the authority of calling the camera to an operating system of the terminal in advance, after the authority of calling the camera is obtained, the target application can call the camera, a user can enable the camera to shoot a dial plate of a clock by placing the clock and the position of the camera, and the terminal and the clock are fixed during shooting of a video so that the relative position of the terminal and the clock is fixed; wherein, the clock that shoots is the clock with the hand; the duration of the video shooting is at least the first duration set by the user, for example, if the first duration set by the user is 60 seconds, the duration of the video shooting can be preset to be 60 seconds or 65 seconds, because the travel time of the clock can have errors, the travel time of the clock can be faster or slower than the actual 60 seconds, and in order to completely shoot the time of the first duration of the travel time of the clock, the duration is required to be shot for a period of time longer than the first duration set by the user; determining a unit error of a pointer in a video within a first time length, wherein the unit error is an error of unit time and can be calculated by dividing a clock travel time error within the first time length by the first time length; determining the travel time error of the clock in the second time length according to the unit error, and specifically obtaining the travel time error of the clock in the second time length by multiplying the unit error by the second time length, wherein the second time length is greater than the first time length; and outputting the travel time error of the clock in the second time length. According to the method and the device, the technical problem that time consumption is long in an error measurement mode of clock products can be solved, the error of the second time length is calculated by setting the first time length to be short, the error of the clock in the first time length is used, in addition, the operation mode of the clock error determination method is simplified through a video shooting mode, the applicability of the clock error determination method is improved, and except for a terminal provided with a camera, a user does not need to additionally use other equipment to cooperatively execute the method in the embodiment of the application.
In one possible design, determining a unit error of a pointer in a video within a first duration includes: the theoretical number of movements of the hand in the first time period is determined, for example, if the second hand is moved 6 times per second in steps, then in 60 seconds the theoretical number of movements the second hand needs to be moved is: 6 × 60 ═ 360 times; counting the moving times of the pointer in the video, specifically judging whether the pointer moves by using an image identification method, and counting if the pointer moves; determining the number of image frames occupied by the movement of the pointer by the theoretical movement times to obtain a first frame number, for example, the theoretical movement times is 360 times, respectively identifying each frame image, judging whether the pointer moves, if the image frame of the pointer moving at the 1 st time is determined to be the 5 th frame, and the image frame of the pointer moving at the 360 th time is identified to be the 1560 frame, the number of image frames occupied by the pointer moving at the 360 times (namely the first frame number) is 1560-5 frame 1555 frame; and determining the unit error according to the first frame number, wherein the image acquisition period of the video shot by the terminal is fixed, and the time intervals of every two adjacent images are the same, so that the first frame number can represent the time length used by the first time length of the travel time of the pointer actually, and the unit error can be calculated according to the actual travel time of the first time length of the travel time of the pointer. According to the method and the device, the first frame number used by the pointer to move the first time length in the video is determined through the moving times of the pointer, the unit error can be further determined according to the actual time length used by the pointer to move the first time length in the video, and the calculation accuracy of the unit error is improved.
In an alternative design, determining the unit error based on the first number of frames includes: obtaining a third duration according to the first frame number and the shooting frame rate of the video; the unit error is determined using the following equation: the unit error is (third duration-first duration)/first duration.
In another alternative design, determining the unit error based on the first number of frames includes: determining the number of image frames of a video in the first time period to obtain a second number of frames; the unit error is (first frame number-second frame number)/shooting frame rate of the video/first duration.
In an alternative design, counting the number of movements of the pointer in the video includes: identifying a pointer in each frame of image of the video; judging whether the positions of the pointers in every two adjacent images change or not; when the pointer is switched from a position change to a position invariance, the recording pointer moves once. The movement accuracy of the identification pointer is improved by switching the position change of the identification pointer to the position invariance to determine the movement of the pointer.
Similarly, in another alternative design, counting the number of movements of the pointer in the video includes: identifying a pointer in each frame of image of the video; judging whether the positions of the pointers in every two adjacent images change or not; when the position of the pointer is changed from the position invariance to the position change, the recording pointer moves once. Another way of identifying pointer movement is provided by switching the identification pointer from a position invariant to a position variant to determine pointer movement.
Optionally, identifying a pointer in each frame of image of the video includes: carrying out contour identification on each frame of image of the video to obtain a contour image of each frame of image; and matching in each frame of contour image by using the pointer identification template to obtain the pointer in each frame of contour image. Alternatively, in the case where the hands are set to be the second hand, if it is recognized in the image that there are three hands of the timepiece, the longest hand is determined to be the second hand. By identifying the pointer outline in the outline image, the image processing operation process for identifying the pointer can be simplified.
Optionally, the determining whether the position of the pointer in each two adjacent frames of images changes includes: acquiring the endpoint coordinates of the pointer and/or the inclination angle of the pointer in each frame of image; and judging whether the positions of the pointers in the two adjacent frames of images are changed or not according to whether the end point coordinates of the pointers in the two adjacent frames of images and/or the inclination angles of the pointers are changed or not. The end point coordinates of the pointer and/or the inclination angle of the pointer are judged through the end point coordinates of the pointer and/or the inclination angle of the pointer, and the accuracy of judging whether the position of the pointer changes can be improved.
In an alternative design, obtaining the endpoint coordinates of the pointer and/or the tilt angle of the pointer in each frame of image includes: identifying the outline of the clock in each frame of outline image; determining a reference position of the hands according to the contour of the timepiece and the contour of the hands; and determining the relative coordinates of the end points of the needles and/or the relative inclination angles of the needles in each frame of image according to the reference positions. The accuracy of determining the pointer reference position can be improved by using the clock contour as a pointer reference object.
In an alternative design, determining a theoretical number of movements of the pointer over the first time period includes: acquiring a fourth time length represented by one time of movement of the hand set by the user, for example, displaying in the interface of the target application, asking the user to input that the second hand moves several times per second, and inputting 6 by the user, which means that the second hand moves 6 times per second, that is, means that the second hand moves 1/6 seconds once per movement; and determining the theoretical moving times of the pointer in the first time length according to the fourth time length. The theoretical moving times of the pointer in the first time length are determined by setting the time length represented by the pointer moving once through the input of the user, and the accuracy of calculating the theoretical moving times is improved.
In an alternative design, the camera of the call terminal shoots a timepiece with a hand, comprising: the real-time picture shot by the camera is displayed, so that a user can see the real-time shot picture, and the user experience is improved.
In an alternative design, before determining the travel time error of the timepiece in the second time period based on the unit error, the method further includes: an input setting of a duration of the second duration is received. The user can choose to check the travel time error of the clock within a long time, and the user experience is improved.
In an alternative design, outputting a travel time error of the timepiece within the second time period includes: and displaying the travel time error of the clock in the second time length.
In an alternative design, the image capturing period of the video is shorter than the time length used for moving the watch hand once, for example, the shooting frame rate of the video is 960fps, that is, 960 images are shot every second, then the image capturing period of the video is 1/960 seconds, in the case where the watch hand is a second hand, the second hand moves 6 times a second, then the time length of the second hand moves once is 1/6 seconds, and the image capturing period of the video is shorter than the time length used for moving the watch hand once. The terminal can photograph by using a high-speed photographing technique so that the movement of the pointer can be captured by video.
In a second aspect, the present application provides a terminal, comprising: a touch screen, a communication module, one or more processors, one or more memories, and one or more computer programs; wherein a processor is coupled to the touch screen, the communication module and the memory, wherein the one or more computer programs are stored in the memory, and wherein the processor executes the one or more computer programs stored in the memory when the terminal is running, so as to enable the terminal to perform the method for determining a timepiece error as described in the first aspect.
In a third aspect, the present application provides a computer storage medium comprising computer instructions which, when run on a terminal, cause the terminal to perform the method of determining a timepiece error as described in the first aspect.
In a fourth aspect, the present application provides a computer program product for causing a terminal to perform the method according to the first aspect when the computer program product is run on the terminal.
It is understood that the terminal, the computer storage medium and the computer program product provided above are all used for executing the corresponding method provided above, and therefore, the beneficial effects achieved by the terminal, the computer storage medium and the computer program product may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic view of an application scenario of a method for determining a clock error according to an embodiment of the present application;
fig. 2 is a first interaction diagram of a method for determining a clock error according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a first method for determining a timepiece error according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a method for determining a clock error according to an embodiment of the present disclosure;
fig. 5 is a first schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for determining a clock error according to an embodiment of the present application;
fig. 7 is a second interaction diagram of a method for determining a clock error according to an embodiment of the present disclosure;
fig. 8 is a third schematic interactive diagram of a method for determining a clock error according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
Embodiments of the present embodiment will be described in detail below with reference to the accompanying drawings.
The method for determining the clock error can be executed by a terminal (such as a mobile phone) with a camera. As shown in fig. 1, an application scenario diagram of the method for determining a clock error according to the embodiment of the present application is shown, where a watch 200 may be photographed by a camera 101 configured in a mobile phone 100. The dial 204 of the watch 200 comprises three hands: a second hand 201, a minute hand 202 and an hour hand 203.
The user may open an application of the handset 100 and select a first duration in the interactive interface shown in fig. 2, for example, the user may select 30 seconds as shown in fig. 2. After the user sets the first time length, the mobile phone 100 shoots a video of 30 seconds or longer, the video shooting time length is preconfigured according to the timing time length, for example, the user selects 30 seconds, and configures to shoot a video of 32 seconds, so as to prevent the watch 200 from running inaccurately, if the actual time length of the watch 200 running for 30 seconds is longer than 30 seconds, the video of 30 seconds cannot completely shoot the watch 200 running for 30 seconds, and a shooting time length slightly longer than the first time length selected by the user needs to be preconfigured. After the video is captured for the first time period of the watch 200, the time error of the watch 200 within the second time period can be proportionally calculated according to the time error of the watch 200 within the first time period, for example, the time error of the watch 200 within one day can be calculated according to the time error of the watch 200 within 30 seconds.
In order to determine the travel time error of the watch 200 in the first time period, the mobile phone 100 may first determine a third time period actually used by the watch 200 in the first time period, and then determine a unit error of the watch 200 in the first time period according to the error of the first time period and the third time period. The specific method may be that, if it is determined that the pointer needs to move n times under the time t of the watch 200, the mobile phone 100 may identify the pointer corresponding to the watch 200 frame by frame in each frame of image of the video by using an image identification method, and determine whether the pointer moves, where a time length corresponding to a number of image frames occupied by the pointer moving n times is the time length t' actually used by the time t of the watch 200.
Taking the second hand as an example, the second hand may move many times within one second for different timepieces, and the number of times the second hand moves one second may be preset by the user, for example, as shown in fig. 2, the user inputs "6" as the number of times the second hand moves per second in an input box 301 provided in an application software interface of the mobile phone 100, so that the mobile phone 100 can directly determine the number of times n that the second hand needs to move when the second hand moves t seconds, which is m ═ t, according to the number of times m the second hand moves per second set by the user. With this method it is possible to determine the theoretical number of movements that the second hand 201 of the watch 200 needs to move during the first time period.
After the mobile phone 100 captures the video with the duration greater than or equal to the travel time set by the user, the second hand 201 in the video can be identified frame by frame, and the identification can be performed by using image identification. For example, each hand is identified in the image by using a pre-trained neural network model, and the longest hand is found as the second hand 201; or, performing contour recognition on each frame of image to obtain a contour image of each frame of image, wherein the contour image can express the contour of the object in the image, and further, matching can be performed in the contour image by using an image template of the watch hand, the watch hand in the contour image is found, and the longest watch hand is determined as the second hand 201. The above are merely exemplary embodiments and are not intended to limit the embodiments of the present application.
After identifying the second hand 201, determining whether the second hand 201 has moved in each two adjacent images, several exemplary methods of identifying whether the second hand 201 has moved in each two adjacent images are provided below:
(1) if the relative positions of the cellular phone 100 and the watch 200 are fixed, for example, the user can place both the cellular phone 100 and the watch 200 on a desk and make the camera 101 of the cellular phone 100 face the dial 204 of the watch 200, the position of the watch 200 in each frame of image in the video taken by the cellular phone 100 remains unchanged, and whether the second hand 201 moves can be determined according to whether the position of the second hand 201 in two adjacent frames of images changes.
(2) If the mobile phone 100 and the watch 200 are not fixed, for example, if the user holds the mobile phone 100 to shoot the watch 200, the position of the watch 200 in different frame images of the video may be changed, in this scenario, the method of the above-mentioned embodiment (1) is not applicable, in order to judge whether the second hand 201 moves, a non-moving reference object may be found in each frame image, and the reference position is determined, for example, as shown in fig. 3, for one frame image in the video, it may be determined whether the second hand 201 moves according to the distance h between the tip of the second hand 201 and the dial scale 206 closest to the right, or, according to whether the tilt angle α between the second hand 201 and the axis 207 formed by the scales of 6 and 12 o' clock, it may be determined whether the second hand 201 moves in two adjacent frames, or, according to some markers (such as the adjustment screws 205 shown in fig. 3) on the watch as the objects to which the second hand 201 moves, and the like, it may not be exemplified, and this embodiment may not extract the outlines of the original image, and may be convenient and may be processed more easily, and the image may be an image that is not extracted.
The program of the application software of the cellular phone 100 may include only the instruction to execute the above-described embodiment (1) to recognize the movement of the second hand 201, in which case the cellular phone 100 can accurately determine the error of the second hand only under the corresponding implementation condition (the relative position of the cellular phone 100 and the watch 200 is fixed). Alternatively, the application software of the mobile phone 100 may only include instructions for implementing the embodiment (2). Optionally, the application software of the mobile phone 100 may also include instructions for implementing the above embodiments (1) and (2), and determine which embodiment is currently selected according to a scene selected by the user in advance, for example, if the user selects "stable" from two scenes "stable" and "unstable" shown on the screen of the mobile phone 100, the application program of the mobile phone 100 executes the instructions of the embodiment (1) to identify, and if "unstable" is selected, the application program of the mobile phone 100 executes the instructions of the embodiment (2) to identify. The foregoing is merely exemplary and is not to be construed as limiting the embodiments of the present application.
If it is recognized that the position of the second hand 201 changes in the two adjacent images (for example, if the distance h and the inclination angle α are determined to be different in the two adjacent images, it is determined that the position of the second hand 201 changes), it indicates that the second hand 201 has moved between the two images, and if the position of the second hand 201 does not change in the two adjacent images, it indicates that the second hand 201 has not moved between the two images.
Since the frame rate of the mobile phone 100 can be much higher than the moving rate of the second hand 201 of the watch 200, if the mobile phone 100 uses the high-speed shooting technique to shoot the watch 200, the frame rate can reach 960fps, that is, 960 images can be shot every second, and the moving rate of the second hand 201 is only 1 time or several times per second, therefore, in the video shot by the mobile phone 100, each movement of the second hand 201 will experience multiple frames of images. Taking the frame rate of 960fps as an example for photographing the second hand 201 moving 6 times per second, the image frame for recording the time from each start of movement of the second hand 201 to the next start of movement is about 960/6-160 frames, that is, the 160 frames of images record the movement and the rest of the second hand in 1/6 seconds, in this case, if the positions of the second hand 201 of two adjacent images are changed, it cannot be determined at which moment in each movement of the second hand 201, because the positions of two adjacent images are changed during the movement of the second hand, and the positions of two adjacent images are not changed during the rest of the second hand, as shown in fig. 4. However, if the position of the second hand 201 is changed from the previous frame image to the next frame image and the position of the second hand 201 is not changed from the next frame image, it can be said that the second hand 201 stops moving in the previous frame image; similarly, if the position of the second hand 201 is unchanged from the previous frame image and the position of the second hand 201 is changed from the next frame image in a certain frame image, it indicates that the second hand 201 starts moving in this frame image.
In this manner, it can be determined whether the second hand 201 starts moving, and it is possible to record that the second hand 201 has moved once when it is determined that the second hand 201 starts moving. In one embodiment, the result of determining that the second hand 201 moves from two adjacent frames of images is recorded as 1, the result of determining that the second hand 201 does not move from two adjacent frames of images is recorded as 0, and the result of determining each two adjacent frames of images in the video is recorded as follows: … …,1,1,1,1,1,1,1,1,0,0,0,0, 1,1,1,1,1,1, … …, as shown in fig. 4, then, when the record changes from "0" to "1", it is determined that the second hand 201 has changed from stationary to moving, i.e., the second hand 201 starts moving, and it can be recorded that the second hand 201 has moved 1 time. Similarly, the person skilled in the art can also use the instant when the second hand 201 stops moving to trigger the recording of the movement of the second hand 201 according to the above exemplary description, and the description thereof is omitted here.
In the video, the time of the start image frame and the time of the end image frame when the second hand 201 continuously moves 180 times (the second hand 201 travels 30 seconds) are determined, and the actual time length t' (the third time length) used when the second hand 201 moves 180 times can be obtained by calculating the difference value. Alternatively, the total number of frames that the second hand 201 continuously moves 180 times may be multiplied by the frame rate of the video captured by the mobile phone 100, so that the third time length t' actually used when the second hand 201 moves n times may be obtained.
After the third time length t 'actually used by the second hand running time first time length t is obtained, the unit error of the first time length t of the running time of the watch 200 can be' calculated as: (t' -t)/t, and further, the error of the travel time for one day can be calculated according to the unit error as: (t' -t)/t 3600 and 24(s).
Alternatively, without calculating the third time duration t', the unit error of the first time duration t when the watch 200 travels may be calculated directly from the total number of frames N experienced by the second hand 201 continuously moving 180 times: (N-t × P)/P/t, where P is the shooting frame rate of the mobile phone 100, and further, the error (in seconds) of the watch 200 during the travel day can be determined according to the unit error of the first travel time duration t of the watch 200: (N-t P)/P/t 3600 s 24(s).
For example, the mobile phone 100 may be as shown in fig. 5, and the mobile phone may include a processor 110, a touch display screen 120, an internal memory 130, 1-N Subscriber Identity Module (SIM) card interfaces 140, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a telephone receiver 170B, a microphone 170C, an earphone interface 170D, 1-N cameras 101, an image acquisition module 192, a clock module 193, and keys 195.
It is to be understood that the illustrated structure of the embodiment of the present invention is not to be specifically limited to a mobile phone. In other embodiments of the present application, the handset may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 is configured to execute the steps of the method for determining a clock error provided in the embodiment of the present application. Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. For example, a program instruction for starting the camera to start shooting, a shooting frame rate of the camera, etc. may be stored in the memory inside the processor 110, thereby avoiding repeated accesses of the processor 110, reducing the waiting time of the processor 110, and improving the efficiency of the system. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory.
The memory 130 may be used to store variable data, such as a first time duration set by the user, an actual usage time duration (a second time duration) of the watch 200 when the watch travels for the first time duration calculated by the processor 110, and so on.
The touch display screen 120 is used for displaying images, videos and the like, and receiving touch operations of a user's finger, a stylus and the like. The mobile phone 100 may receive a user's setting by touching the display screen 120, display a photographed picture, and display a calculated travel time error. The touch display screen 120 may include a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the handset may include multiple display screens. The touch screen display 120 further includes a sensor for sensing a change in an electrical parameter caused by the medium, and the processor 110 can determine a location on the touch screen display 120 at which the medium is pointed based on the change in the electrical parameter.
The mobile phone 100 can realize a shooting function through modules such as the camera 101 and the image acquisition module 192. The image acquisition module 192 is configured to control the camera 101 to shoot according to the shooting frame rate or the shooting time indicated by the processor 110. The clock module 193 may be configured to time, and the image capturing module 192 may be configured to use the clock module 193 to time, and capture an image of the camera 101 every shooting period corresponding to the shooting frame rate, where the camera 101 is configured to capture a still image, and the video shot by the mobile phone 100 includes multiple frames of still images shot by the image capturing module 192 at the shooting frame rate. In some embodiments, the mobile phone 100 may include a plurality of cameras, and the camera 101 may be a front camera or a rear camera.
Memory 130 may be used to store one or more computer programs, including instructions. The processor 110 may cause the handset 100 to perform the method of determining a timepiece error provided in the embodiments of the present application by executing the above-described instructions stored in the memory 130. Specifically, the memory 130 may include a program storage area and a data storage area. Wherein the storage program area may store an operating system and one or more application programs (such as a photo album, a calibration watch, etc.). The storage data area may store data created during use of the mobile phone 100, such as a photo, a video, and some data used during execution of the method for confirming a clock error provided in the embodiment of the present application, such as the first time length, the third time length, the first frame number, the number of times the second hand 201 moves per second, the unit error of the watch 200, and the like.
The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, sound of a video is recorded and played, in some embodiments of the application, the audio module 170 may be used to obtain voice of a user indicating to start shooting the video, and the processor 110 may be used to analyze a voice instruction corresponding to the voice obtained by the audio module 170. The audio module 170 is configured to convert digital audio information into an analog audio signal for output, and also configured to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110. The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The handset can listen to music through the speaker 170A or listen to a hands-free conversation. The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the mobile phone receives a call or voice information, the receiver 170B can be close to the ear to receive voice. The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can input a voice signal to the microphone 170C by speaking the user's mouth near the microphone 170C. The handset may be provided with one or more microphones 170C. In other embodiments, the mobile phone may be provided with two microphones 170C to achieve the noise reduction function in addition to collecting the sound signal. In other embodiments, the mobile phone may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions. The headphone interface 170D is used to connect a wired headphone. The earphone interface 170D may be a USB interface, an open mobile platform (OMTP) standard interface of 3.5mm, or a CTIA (cellular telecommunications industry association) standard interface of the USA.
Certainly, the mobile phone provided in the embodiment of the present application may further include one or more devices, such as a key 195, a SIM card interface 140, an antenna, a 3G/4G/5G mobile communication module, a wireless fidelity communication module, a bluetooth module, and a battery module, which is not limited in this embodiment of the present application.
The method for determining the clock error provided by the embodiment of the application is explained in detail below with reference to the accompanying drawings.
As shown in fig. 6, a method for determining a clock error provided in an embodiment of the present application includes:
401. the user opens the application software installed in the handset 100 for calibrating the timepiece. For example, as shown in fig. 7, there is an icon of application software on the main interface of the mobile phone, and the application software may be named as "calibration watch" as an example.
402. The user enters the set measurement duration (first duration) t, and the number of seconds hand movements per second of the watch 200, as shown in fig. 2, for example, in the application software interface of the handset 100.
403. The mobile phone 100 calculates a theoretical movement number n of the second hand 201 within the time period t, m × t, based on the input measurement time period t and the number m of second hand movements per second of the watch 200.
404. The user faces the camera 101 of the handset 100 shown in fig. 5 towards the dial 204 of the watch 200, as shown in fig. 1 for example.
405. The mobile phone 100 starts to shoot a video with a duration q by using a high-speed shooting technology, wherein q is greater than or equal to a measurement duration t set by a user, optionally, the shooting time may be configured by default to be 5 seconds later than the delay time so as to provide the user with the time for placing the mobile phone 100 and the watch 200, or the shooting start time may be controlled by the user, for example, the user clicks a shooting button or sends a voice command for shooting.
406. The cell phone 100 recognizes the second hand 201 for each frame image in the video.
407. The cellular phone 100 compares whether the position of the second hand 201 changes every two adjacent images.
408. When the mobile phone 100 determines that the second hand 201 has changed from the position change to the position non-change, the second hand 201 is once moved.
409. The handset 100 determines the total number of frames N experienced by the second hand 201 moving N times.
410. The mobile phone 100 calculates the error of the watch 200 generated during the travel time for one day by the following formula: (N-t × P)/P (3600 × 24/t)(s), where P is the shooting frame rate of the mobile phone 100.
411. The cell phone 100 displays the day-to-day error of the watch 200 within the interface of the application software, as shown in fig. 8 for example.
It should be noted that, in the above steps 401 to 411 of the method for determining a clock error according to the embodiment of the present application, the order of some steps may be changed, the order of some steps may be interchanged, and it is not necessary to perform the steps in the above order or manner, and the above steps 401 to 411 are only used to exemplify one embodiment of the method for determining a clock error according to the embodiment of the present application, and those skilled in the art can understand that the steps may be set according to specific situations in a specific implementation process.
As shown in fig. 9, an embodiment of the present application discloses a terminal, including: a touch screen 901, the touch screen 901 comprising a touch sensor 906 and a display 907; one or more processors 902; a memory 903; a communication module 908; and one or more computer programs 904. The various devices described above may be connected by one or more communication buses 905. Wherein the one or more computer programs 904 are stored in the memory 903 and configured to be executed by the one or more processors 902, the one or more computer programs 904 comprising instructions operable to perform the steps performed by the terminal in the preferred embodiment:
step 1, receiving a first instruction of a user for opening a target application in a terminal;
step 2, responding to the first instruction, and opening the target application;
step 3, receiving a second instruction of setting a first time length by a user in an interface of the target application;
step 4, calling a camera of the terminal to shoot the clock with the pointer to obtain a video with the duration at least being a first duration;
step 5, determining the unit error of the pointer in the video within the first time length;
step 6, determining the travel time error of the clock in a second time length according to the unit error, wherein the second time length is greater than the first time length;
and 7, outputting the travel time error of the clock in the second time length.
For example, the processor 902 may specifically be the processor 110 shown in fig. 5, the memory 903 may specifically be the memory 130 shown in fig. 5, the touch screen 901 may specifically be the touch display screen 120 shown in fig. 5, the display screen 907 may specifically be a display screen included in the touch display screen 120 shown in fig. 5, and the touch sensor 906 may specifically be a touch sensor included in the touch display screen 120 shown in fig. 5, which is not limited in this embodiment of the present disclosure.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit 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, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A method for determining a timepiece error for a terminal, characterized in that the method comprises:
receiving a first instruction of a user for opening a target application in the terminal;
opening the target application in response to the first instruction;
receiving a second instruction of setting a first duration by a user in an interface of the target application;
calling a camera of the terminal to shoot a clock with a pointer to obtain a video with the duration at least as the first duration;
determining a unit error of the pointer in the video within the first time length;
determining the travel time error of the clock in a second time length according to the unit error, wherein the second time length is greater than the first time length;
and outputting the travel time error of the clock in the second time length.
2. The method of claim 1, wherein determining the unit error of the pointer in the video within the first duration comprises:
determining the theoretical moving times of the pointer in the first time length;
counting the number of times of movement of the pointer in the video;
determining the number of image frames occupied by the movement of the pointer by the theoretical movement times to obtain a first frame number;
and determining the unit error according to the first frame number.
3. The method of claim 2, wherein determining the unit error based on the first frame number comprises:
obtaining a third duration according to the first frame number and the shooting frame rate of the video;
the unit error is determined using the following equation:
the unit error is (the third duration-the first duration)/the first duration.
4. The method of claim 2, wherein determining the unit error based on the first frame number comprises:
determining the number of image frames of the video in the first duration to obtain a second number of frames;
the unit error is (the first frame number-the second frame number)/a shooting frame rate of the video/the first duration.
5. The method according to any one of claims 2-4, wherein said counting a number of movements of said pointer in said video comprises:
identifying the pointer in each frame of image of the video;
judging whether the positions of the pointers in every two adjacent images change or not;
and recording the movement of the pointer once under the condition that the pointer is switched from the position change to the position invariance.
6. The method according to any one of claims 2-4, wherein said counting a number of movements of said pointer in said video comprises:
identifying the pointer in each frame of image of the video;
judging whether the positions of the pointers in every two adjacent images change or not;
and recording the movement of the pointer once when the pointer is switched from the position invariance to the position change.
7. The method according to claim 5 or 6, wherein the identifying the pointer in each frame image of the video comprises:
carrying out contour identification on each frame of image of the video to obtain a contour image of each frame of image;
and matching in each frame of contour image by using the pointer identification template to obtain the pointer in each frame of contour image.
8. The method according to any one of claims 5-7, wherein determining whether the position of the pointer in each two adjacent images changes comprises:
acquiring the endpoint coordinates of the pointer and/or the inclination angle of the pointer in each frame of image;
and judging whether the position of the pointer in the two adjacent frames of images changes or not according to whether the endpoint coordinates of the pointer and/or the inclination angle of the pointer in the two adjacent frames of images change or not.
9. The method according to claim 8, wherein obtaining the endpoint coordinates of the pointer and/or the tilt angle of the pointer in each frame of image comprises:
identifying in each frame of profile image a profile of the timepiece;
determining a reference position of the hands according to the contour of the timepiece and the contour of the hands;
and determining the relative coordinates of the end points of the needles and/or the relative inclination angles of the needles in each frame of image according to the reference positions.
10. The method of claims 2-9, wherein said determining a theoretical number of movements of said pointer within said first duration comprises:
acquiring a fourth time length represented by one-time movement of the pointer set by the user;
and determining the theoretical moving times of the pointer in the first time length according to the fourth time length.
11. The method according to any one of claims 1 to 10, wherein said invoking of the camera of the terminal to shoot the timepiece with the hands comprises:
and displaying the real-time picture shot by the camera.
12. A method according to any one of claims 1 to 11, wherein before determining from the unit error the travel time error of the timepiece in the second time period, the method further comprises:
and receiving input time length setting of the second time length.
13. The method of any one of claims 1-12, wherein said outputting a travel time error of said timepiece over said second duration comprises:
and displaying the travel time error of the clock in the second time length.
14. The method according to any one of claims 1 to 13, wherein an image acquisition period of the video is less than a time period used for moving the pointer once.
15. A terminal, characterized in that the terminal comprises:
a touch screen comprising a touch sensor and a display screen;
a communication module;
one or more processors;
one or more memories;
and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprising instructions which, when executed by the terminal, cause the terminal to carry out the method of determining a timepiece error of any one of claims 1-14.
16. A computer storage medium, characterized in that it comprises computer instructions which, when run on a terminal, cause the terminal to carry out the method of determining a timepiece error of any one of claims 1-14.
17. A computer program product comprising instructions for causing a terminal to carry out the method for determining a timepiece error according to any one of claims 1 to 14, when the computer program product is run on the terminal.
CN202010106501.3A 2020-02-21 2020-02-21 Method for determining clock error, terminal and computer storage medium Active CN111240184B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010106501.3A CN111240184B (en) 2020-02-21 2020-02-21 Method for determining clock error, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010106501.3A CN111240184B (en) 2020-02-21 2020-02-21 Method for determining clock error, terminal and computer storage medium

Publications (2)

Publication Number Publication Date
CN111240184A true CN111240184A (en) 2020-06-05
CN111240184B CN111240184B (en) 2021-12-31

Family

ID=70870142

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010106501.3A Active CN111240184B (en) 2020-02-21 2020-02-21 Method for determining clock error, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN111240184B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112130443A (en) * 2020-09-29 2020-12-25 徐州市质量技术监督综合检验检测中心(徐州市标准化研究中心) Device suitable for calibrating day difference of quartz electronic stopwatch and experimental method

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270332A (en) * 1999-04-09 2000-10-18 卡西欧计算机株式会社 Electronic unit with timing function, time correcting method and recording media
US20060088296A1 (en) * 2004-10-22 2006-04-27 Lg Electronics Inc. Image processor and operating method thereof
CN101446801A (en) * 2007-11-30 2009-06-03 索尼株式会社 Image pickup apparatus and time correction method
CN102542552A (en) * 2010-12-21 2012-07-04 北京汉王智通科技有限公司 Frontlighting and backlighting judgment of video images and detection method of shooting time
CN103229112A (en) * 2010-11-26 2013-07-31 斯沃奇集团研究和开发有限公司 Method for measuring precision for mechanical watch
CN103547971A (en) * 2011-05-18 2014-01-29 西铁城控股株式会社 Electronic clock
CN104503220A (en) * 2014-11-18 2015-04-08 深圳市金立通信设备有限公司 Terminal, clock and clock calibration system
CN105446130A (en) * 2015-12-16 2016-03-30 深圳智能表芯科技有限公司 Pointer type intelligent clock automatic regular time service method and time service system
CN105955011A (en) * 2016-04-21 2016-09-21 深圳欧德蒙科技有限公司 Method and device for intelligently calibrating time
CN107562208A (en) * 2017-09-27 2018-01-09 上海展扬通信技术有限公司 The intelligent terminal control method and intelligent terminal control system of a kind of view-based access control model
JP2018037885A (en) * 2016-08-31 2018-03-08 株式会社メディアリンクス Time synchronization system
CN207638767U (en) * 2017-10-12 2018-07-20 北京工业职业技术学院 Image temporal calibration system
CN108519734A (en) * 2018-03-26 2018-09-11 广东乐芯智能科技有限公司 A kind of system of determining surface pointer position
CN108549845A (en) * 2018-03-26 2018-09-18 广东乐芯智能科技有限公司 A kind of method of determining surface pointer position
CN108682034A (en) * 2018-04-18 2018-10-19 广东乐芯智能科技有限公司 A kind of smartwatch entity pointer based on android system position method really
CN108900790A (en) * 2018-06-26 2018-11-27 努比亚技术有限公司 Method of video image processing, mobile terminal and computer readable storage medium
CN108933899A (en) * 2018-08-22 2018-12-04 Oppo广东移动通信有限公司 Panorama shooting method, device, terminal and computer readable storage medium
CN109521667A (en) * 2018-12-17 2019-03-26 鲁东大学 A kind of automatic prover time device and method
CN110086985A (en) * 2019-03-25 2019-08-02 华为技术有限公司 A kind of method for recording and electronic equipment of time-lapse photography

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1270332A (en) * 1999-04-09 2000-10-18 卡西欧计算机株式会社 Electronic unit with timing function, time correcting method and recording media
US20060088296A1 (en) * 2004-10-22 2006-04-27 Lg Electronics Inc. Image processor and operating method thereof
CN101446801A (en) * 2007-11-30 2009-06-03 索尼株式会社 Image pickup apparatus and time correction method
CN103229112A (en) * 2010-11-26 2013-07-31 斯沃奇集团研究和开发有限公司 Method for measuring precision for mechanical watch
CN102542552A (en) * 2010-12-21 2012-07-04 北京汉王智通科技有限公司 Frontlighting and backlighting judgment of video images and detection method of shooting time
CN103547971A (en) * 2011-05-18 2014-01-29 西铁城控股株式会社 Electronic clock
CN104503220A (en) * 2014-11-18 2015-04-08 深圳市金立通信设备有限公司 Terminal, clock and clock calibration system
CN105446130A (en) * 2015-12-16 2016-03-30 深圳智能表芯科技有限公司 Pointer type intelligent clock automatic regular time service method and time service system
CN105955011A (en) * 2016-04-21 2016-09-21 深圳欧德蒙科技有限公司 Method and device for intelligently calibrating time
JP2018037885A (en) * 2016-08-31 2018-03-08 株式会社メディアリンクス Time synchronization system
CN107562208A (en) * 2017-09-27 2018-01-09 上海展扬通信技术有限公司 The intelligent terminal control method and intelligent terminal control system of a kind of view-based access control model
CN207638767U (en) * 2017-10-12 2018-07-20 北京工业职业技术学院 Image temporal calibration system
CN108519734A (en) * 2018-03-26 2018-09-11 广东乐芯智能科技有限公司 A kind of system of determining surface pointer position
CN108549845A (en) * 2018-03-26 2018-09-18 广东乐芯智能科技有限公司 A kind of method of determining surface pointer position
CN108682034A (en) * 2018-04-18 2018-10-19 广东乐芯智能科技有限公司 A kind of smartwatch entity pointer based on android system position method really
CN108900790A (en) * 2018-06-26 2018-11-27 努比亚技术有限公司 Method of video image processing, mobile terminal and computer readable storage medium
CN108933899A (en) * 2018-08-22 2018-12-04 Oppo广东移动通信有限公司 Panorama shooting method, device, terminal and computer readable storage medium
CN109521667A (en) * 2018-12-17 2019-03-26 鲁东大学 A kind of automatic prover time device and method
CN110086985A (en) * 2019-03-25 2019-08-02 华为技术有限公司 A kind of method for recording and electronic equipment of time-lapse photography

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112130443A (en) * 2020-09-29 2020-12-25 徐州市质量技术监督综合检验检测中心(徐州市标准化研究中心) Device suitable for calibrating day difference of quartz electronic stopwatch and experimental method
CN112130443B (en) * 2020-09-29 2022-02-08 徐州市质量技术监督综合检验检测中心(徐州市标准化研究中心) Device suitable for calibrating day difference of quartz electronic stopwatch and experimental method

Also Published As

Publication number Publication date
CN111240184B (en) 2021-12-31

Similar Documents

Publication Publication Date Title
CN110740259B (en) Video processing method and electronic equipment
US9961393B2 (en) Method and device for playing multimedia file
CN106791893A (en) Net cast method and device
US10248855B2 (en) Method and apparatus for identifying gesture
CN111371949A (en) Application program switching method and device, storage medium and touch terminal
CN105704369B (en) A kind of information processing method and device, electronic equipment
CN110572716B (en) Multimedia data playing method, device and storage medium
CN107330868A (en) image processing method and device
US11222223B2 (en) Collecting fingerprints
CN109978996B (en) Method, device, terminal and storage medium for generating expression three-dimensional model
CN108965611B (en) Shooting interface switching method, device, equipment and storage medium
CN112738420B (en) Special effect implementation method, device, electronic equipment and storage medium
CN111445901A (en) Audio data acquisition method and device, electronic equipment and storage medium
CN112581358A (en) Training method of image processing model, image processing method and device
CN111240184B (en) Method for determining clock error, terminal and computer storage medium
CN108629814B (en) Camera adjusting method and device
CN107239758B (en) Method and device for positioning key points of human face
CN113642551A (en) Nail key point detection method and device, electronic equipment and storage medium
CN110473562B (en) Audio data processing method, device and system
CN116092147A (en) Video processing method, device, electronic equipment and storage medium
EP3200127B1 (en) Method and device for fingerprint recognition
CN116347060A (en) Camera performance evaluation method, device, readable storage medium and system
CN107995413B (en) Photographing control method and mobile terminal
CN111610924A (en) Data processing method and device based on color acquisition, touch pen and terminal equipment
CN110942426A (en) Image processing method and device, computer 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