Time code display method and apparatus, storage medium, and electronic device

CN122891684APending Publication Date: 2026-10-09HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611038849.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-13
Publication Date
2026-10-09

AI Technical Summary

Technical Problem

现有同步方案主要分为两类:一是采用专业时码发生器,通过有线或无线方式为各摄像机注入统一时间码,此类设备成本高昂且多数消费级设备不具备接入能力;二是录制参考音频信号并通过后期波形对齐,但该方式对齐精度受限于音频采样率、环境噪声及多设备录音起始偏移,难以满足帧级同步需求

Benefits of technology

[0042]本申请实施提供的一种时码显示方法、装置、存储介质及电子设备,该方法包括:响应于时码显示指令,在显示设备的画布中确定时间显示区、帧号显示区及同步信号区;获取当前时间;在所述当前时间与基准时刻之差达到预设帧间隔时,根据所述当前时间计算当前帧号;确定所述当前帧号在所述帧号显示区中对应的显示位置;在所述时间显示区内绘制所述当前时间的时间信息,并在所述帧号显示区的所述显示位置绘制所述当前帧号;当所述当前时间与所述基准时刻位于不同的时间单位内时,在所述同步信号区绘制视觉标记,以完成时码画面的显示。应用本申请实施例提供的方法,能够使每一帧画面具备帧级标识及显式的同步锚点,从而提升时间同步的精确性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122891684A_ABST
    Figure CN122891684A_ABST
Patent Text Reader

Abstract

The application provides a time code display method and device, a storage medium and an electronic device, and relates to the technical field of computers. The method comprises the following steps: in response to a time code display instruction, determining a time display area, a frame number display area and a synchronization signal area in a canvas of a display device; acquiring a current time; when the difference between the current time and a reference time reaches a preset frame interval, calculating a current frame number according to the current time; determining the display position of the current frame number in the frame number display area; drawing time information of the current time in the time display area and the current frame number at the display position of the frame number display area; and when the current time and the reference time are located in different time units, drawing a visual mark in the synchronization signal area to complete the display of a time code picture. Each frame of picture can have a frame-level identification and an explicit synchronization anchor point, thereby improving the accuracy of time synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a timecode display method, apparatus, storage medium and electronic device. Background Technology

[0002] In multi-camera video shooting scenarios, post-production requires precise time synchronization of footage from multiple camera devices. Existing synchronization solutions mainly fall into two categories: one is to use a professional timecode generator to inject a unified timecode into each camera via wired or wireless means. Such equipment is expensive, and most consumer-grade devices do not have the capability to access it; the other is to record a reference audio signal and align it with the waveform in post-production. However, the alignment accuracy of this method is limited by the audio sampling rate, environmental noise, and the starting offset of recording from multiple devices, making it difficult to meet frame-level synchronization requirements. Summary of the Invention

[0003] In view of this, this application provides a timecode display method, apparatus, storage medium, and electronic device, which enables each frame of the image to have a frame-level identifier and an explicit synchronization anchor point, thereby improving the accuracy of time synchronization. The specific solution is as follows:

[0004] A timecode display method, comprising:

[0005] In response to the time code display command, the time display area, frame number display area, and synchronization signal area are determined in the canvas of the display device;

[0006] Get the current time;

[0007] When the difference between the current time and the reference time reaches a preset frame interval, the current frame number is calculated based on the current time;

[0008] Determine the display position of the current frame number in the frame number display area;

[0009] The current time information is drawn in the time display area, and the current frame number is drawn at the display position in the frame number display area;

[0010] When the current time and the reference time are in different time units, visual markers are drawn in the synchronization signal area to complete the display of the timecode screen.

[0011] Optionally, in the above method, calculating the current frame number based on the current time includes:

[0012] Obtain the millisecond portion of the current time;

[0013] Divide the millisecond portion by the preset frame interval to obtain the frame number, where the preset frame interval is determined by the target frame rate.

[0014] The current frame number is calculated based on the frame sequence number.

[0015] Optionally, in the above method, determining the display position of the current frame number in the frame number display area includes:

[0016] Obtain the total number of candidate display positions set within the frame number display area;

[0017] The position index is obtained by performing a modulo operation between the current frame number and the total number;

[0018] The coordinates corresponding to the position index are selected from each of the candidate display positions as the display position.

[0019] Optionally, in the above method, drawing the current time information in the time display area and drawing the current frame number at the display position in the frame number display area includes:

[0020] Turn off the image smoothing function on the canvas;

[0021] Set the foreground and background colors of the canvas to two different monochrome colors;

[0022] Starting from a pixel with integer coordinates, the current time information is drawn in the time display area, and the current frame number is drawn at the display position in the frame number display area.

[0023] Optionally, after drawing visual markers in the synchronization signal area, the above method further includes:

[0024] Use the current time as the new reference time and return to the step of obtaining the current time.

[0025] Optionally, after drawing visual markers in the synchronization signal area, the above method further includes:

[0026] Acquire video footage obtained from capturing the timecode image;

[0027] Extract image frames containing the visual markers from the video material;

[0028] The tilt angle is calculated based on the position and orientation of the visual marker in the image frame, and the image frame is rotated and corrected according to the tilt angle.

[0029] A time code display device, comprising:

[0030] The first determining unit is used to determine the time display area, the frame number display area, and the synchronization signal area in the canvas of the display device in response to the time code display command.

[0031] The acquisition unit is used to obtain the current time;

[0032] The calculation unit is used to calculate the current frame number based on the current time when the difference between the current time and the reference time reaches a preset frame interval;

[0033] The second determining unit is used to determine the display position of the current frame number in the frame number display area;

[0034] The first drawing unit is used to draw the time information of the current time in the time display area and draw the current frame number at the display position in the frame number display area.

[0035] The second drawing unit is used to draw visual markers in the synchronization signal area when the current time and the reference time are in different time units, so as to complete the display of the timecode screen.

[0036] Optionally, in the aforementioned apparatus, the first drawing unit includes:

[0037] The first setting subunit is used to disable the image smoothing function of the canvas;

[0038] The second setting subunit is used to set the foreground color and background color of the canvas to two different monochrome colors respectively;

[0039] A drawing subunit is used to draw the time information of the current time in the time display area, starting from a pixel with an integer coordinate value, and to draw the current frame number at the display position in the frame number display area.

[0040] A storage medium comprising stored instructions, wherein, when the instructions are executed, the device in which the storage medium resides executes the timecode display method as described above.

[0041] An electronic device includes a memory and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors as described above for displaying timecodes.

[0042] This application provides a timecode display method, apparatus, storage medium, and electronic device. The method includes: responding to a timecode display command, determining a time display area, a frame number display area, and a synchronization signal area in a canvas of a display device; acquiring the current time; when the difference between the current time and a reference time reaches a preset frame interval, calculating the current frame number based on the current time; determining the display position of the current frame number in the frame number display area; drawing the time information of the current time in the time display area, and drawing the current frame number at the display position in the frame number display area; when the current time and the reference time are within different time units, drawing a visual mark in the synchronization signal area to complete the display of the timecode image. Applying the method provided in this application embodiment enables each frame to have a frame-level identifier and an explicit synchronization anchor point, thereby improving the accuracy of time synchronization. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0044] Figure 1 A flowchart of a timecode display method provided in this application;

[0045] Figure 2 A flowchart illustrating the process of drawing the current frame number at a display position in the frame number display area, as provided in this application;

[0046] Figure 3 A schematic diagram of the structure of a time code display device provided in this application;

[0047] Figure 4 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation

[0048] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0049] In this application, the terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0050] This application provides a timecode display method, which can be applied to electronic devices such as smartphones, tablets, smart wearable devices, etc. The method flowchart is shown below. Figure 1 As shown, it specifically includes:

[0051] S101: In response to the time code display command, determine the time display area, frame number display area and synchronization signal area in the canvas of the display device.

[0052] In this embodiment, the timecode display instruction refers to an instruction triggered by user interaction or system event. The timecode display instruction can be used to instruct the generation of a visual timecode screen.

[0053] Optionally, the display device can be a terminal device with graphics rendering capabilities, such as a computer monitor, tablet screen, or mobile phone screen. The canvas refers to a rectangular surface on the display device that can be drawn pixel-by-pixel by a program, such as the Canvas element based on the HTML5 standard.

[0054] Specifically, the time display area, frame number display area, and synchronization signal area are three pre-defined, non-overlapping sub-areas within the canvas. The time display area is used to subsequently display the hours, minutes, and seconds; the frame number display area is used to display the frame sequence number; and the synchronization signal area is used to display the second boundary marker. The position coordinates, width, height, and internal font style of each area can be configured to fixed values.

[0055] For example, determining the time display area, frame number display area, and synchronization signal area includes: configuring the total width and height of the canvas; dividing the canvas vertically into three consecutive areas—upper, middle, and bottom—as the time display area, frame number display area, and synchronization signal area, respectively; setting the integer pixel coordinates and size of the upper left corner vertex for each area, and specifying a uniform-width sans-serif font and font size. It is understood that the boundaries of each area do not overlap, and all characters drawn within each area use a pure foreground color and a pure background color. The integer pixel coordinates can be pixel-aligned coordinates, i.e., pixel points with integer coordinate values.

[0056] S102: Get the current time.

[0057] In this embodiment, the current time can be a time value read from the system clock. This time value can be expressed as the number of milliseconds that have elapsed since a certain reference epoch (e.g., 00:00 on January 1, 1970), or it can be expressed as time data including year, month, day, hour, minute, second, and millisecond.

[0058] In practice, in a web environment, a timestamp can be obtained by calling a time acquisition interface (such as performance.now), which is in milliseconds and has sub-millisecond precision; or an integer value in milliseconds can be obtained by using a regular time acquisition method (such as Date.now).

[0059] S103: When the difference between the current time and the reference time reaches a preset frame interval, calculate the current frame number based on the current time.

[0060] In this embodiment, the reference time can be used to determine whether a new frame of timecode should be generated. The initial value of the reference time can be initially set to 0 or set to the current time of the first acquisition. The preset frame interval is a time length threshold determined by the desired timecode frame rate. For example, if the target frame rate is 25 frames per second, the preset frame interval is 40 milliseconds (i.e., 1000 milliseconds divided by 25). The difference between the current time and the reference time refers to the absolute difference between the two on the time axis.

[0061] Optionally, when the difference reaches or exceeds the preset frame interval, it indicates that sufficient time has elapsed since the last frame generation, and the current frame needs to be generated. At this point, the current frame number is calculated based on the current time. The current frame number refers to the position sequence number of the frame within its respective second. For example, in a configuration of 25 frames per second, the frame number ranges from 00 to 24. One calculation method is as follows: extract the millisecond portion of the current time (range 0 to 999); divide the millisecond portion by the preset frame interval to obtain the quotient; round the quotient down to the nearest integer, and the resulting integer is the current frame number.

[0062] Understandably, if the difference between the current time and the reference time is less than the preset frame interval, the subsequent drawing operations of this frame are skipped to avoid generating timecode images that exceed the expected frame rate, thereby preventing timecode drift.

[0063] S104: Determine the display position of the current frame number in the frame number display area.

[0064] In this embodiment, multiple candidate display positions are pre-set within the frame number display area, each with different coordinates on the canvas. The number of candidate display positions can be set as needed, for example, three, located on the left, center, and right sides of the frame number display area, respectively. Determining the display positions allows the frame number of each frame to appear in different positions, thus creating position rotation between consecutive frames. This can reduce display ghosting or image blurring caused by prolonged static periods.

[0065] For example, the specific method for determining the display position includes: obtaining the total number of multiple candidate display positions; performing a modulo operation between the current frame number and the total number to obtain a remainder as a position index; and selecting the coordinates corresponding to the position index from the multiple candidate display positions. For example, if the total number is equal to 3 and the current frame number is 0, 1, 2, 3, 4, ..., then the modulo result is 0, 1, 2, 0, 1, ..., corresponding to positions cycling between the left, middle, right, left, and middle positions. Optionally, the modulo operation can also be based on a global frame counter.

[0066] S105: Draw the time information of the current time in the time display area, and draw the current frame number at the display position in the frame number display area.

[0067] In this embodiment, time information refers to the hour, minute, and second values ​​extracted from the current time, converted into a string according to a preset format. The drawing operation uses the graphics drawing interface provided by the canvas to render the characters onto the specified area.

[0068] To improve the accuracy of OCR recognition, the image smoothing function of the canvas can be turned off during drawing to eliminate edge blurring caused by subpixel gradients; characters are drawn using a solid color foreground on a solid color background to create high contrast; and the drawing coordinates of characters use integer pixel values ​​to avoid subpixel rendering blurring caused by decimal coordinates.

[0069] In practice, before drawing, the canvas's image smoothing property is disabled, the foreground color is set to pure white, and the background color is set to pure black. Integer pixel coordinates are used to locate the starting point of the time display area and the starting point of the display position in the frame number display area. Then, a text drawing command is invoked to output characters. It can be understood that the drawing position in the time display area remains fixed each time, while the drawing position in the frame number display area dynamically changes according to the determined display position.

[0070] S106: When the current time and the reference time are in different time units, draw visual markers in the synchronization signal area to complete the display of the timecode screen.

[0071] Optionally, when the current time is in a different second than the reference time, it can be determined that the current time and the reference time are in different time units.

[0072] In this embodiment, the current time in seconds refers to the integer part of the current time converted to seconds. The reference time in seconds refers to the reference time also converted to an integer part of seconds. By comparing whether the two are the same, it can be determined whether the current frame belongs to the start frame of a completely new second.

[0073] Optionally, if the two differ, it indicates that the current frame is the first frame within the current second. In this case, a visual marker is drawn within a pre-defined synchronization signal area. Optionally, this visual marker can be a rectangular bar. The visual marker can be drawn across the entire width of the canvas or occupy only the central area of ​​the synchronization signal area. The visual marker uses a color with high contrast to the background color, such as white. This visual marker serves as an explicit visual anchor point, allowing the OCR recognition program to accurately determine the second boundary, thereby eliminating accumulated timecode errors caused by frame rate drift or recognition errors.

[0074] Optionally, the visual markers can be drawn after or before the time information and frame number are drawn; that is, they can be completed within the same frame. Once drawn, the timecode frame for the current frame is generated. After drawing the visual markers, the reference time can be updated to the current time for comparison in the next frame. If the current time and the reference time are within one second, no visual markers are drawn, and the timecode frame contains the time information and frame number characters. At this point, the rendering of a complete timecode frame is finished.

[0075] In one embodiment provided in this application, based on the above-described scheme, optionally, the step of calculating the current frame number according to the current time includes:

[0076] Obtain the millisecond portion of the current time;

[0077] Divide the millisecond portion by the preset frame interval to obtain the frame number, where the preset frame interval is determined by the target frame rate.

[0078] The current frame number is calculated based on the frame sequence number.

[0079] In this embodiment, the frame number refers to the quotient of the millisecond portion and the preset frame interval. One way to calculate the current frame number based on the frame number is to perform a floor operation on the frame number, and the resulting integer value is the current frame number. Since the ratio of the maximum value of the millisecond portion to the preset frame interval determines the range of frame number values, and this range is naturally consistent with the total number of frames per second, no additional modulo operation is required.

[0080] Optionally, if a global frame counter is used, the frame number can also be obtained by taking the modulo of the frame counter value.

[0081] In one embodiment provided in this application, based on the above-described scheme, optionally, determining the display position of the current frame number in the frame number display area includes:

[0082] Obtain the total number of candidate display positions set within the frame number display area;

[0083] The position index is obtained by performing a modulo operation between the current frame number and the total number;

[0084] The coordinates corresponding to the position index are selected from each of the candidate display positions as the display position.

[0085] In this embodiment, the total number of candidate display positions refers to the number of fixed positions pre-configured in the frame number display area for rotating frame numbers, such as three. The result of the modulo operation is the remainder obtained by dividing the current frame number by the total number, and this remainder is used as a position index to uniquely identify a candidate position.

[0086] For example, when the total number is 3, the current frame numbers 0, 1, 2, 3, and 4 correspond to remainders 0, 1, 2, 0, and 1 respectively, and so on, thus selecting the coordinates of the left, middle, right, left, and middle as the display positions in sequence. In this way, the frame numbers are cyclically rotated among the candidate positions in a fixed order between different frames, which not only maintains the stability of the area positioning but also provides positional differences for adjacent frames.

[0087] In one embodiment provided in this application, based on the above-described scheme, optionally, the process of drawing the current time information in the time display area and drawing the current frame number at the display position in the frame number display area is as follows: Figure 2 As shown, it includes:

[0088] S201: Disable the image smoothing function of the canvas.

[0089] In this embodiment, the image smoothing function refers to the mechanism by which the canvas performs anti-aliasing processing on the edges when rendering graphics or text. When this function is turned off, the character edges present sharp pixel steps without subpixel gradients, which is beneficial for binarization processing in the OCR recognition process.

[0090] S202: Set the foreground and background colors of the canvas to two different monochrome colors respectively.

[0091] In this embodiment, two different monochrome colors can be combined as a pure foreground color and a pure background color. For example, pure white characters can be drawn on a pure black background to create high contrast. Integer pixel coordinates refer to the fact that the horizontal and vertical coordinates of the drawing starting point are both integer values, avoiding sub-pixel rendering blur caused by decimal coordinates.

[0092] S203: Using pixels with integer coordinates as starting points, draw the current time information in the time display area, and draw the current frame number at the display position in the frame number display area.

[0093] In this embodiment, by combining the above drawing conditions, each character in the generated timecode image has a clear and complete stroke outline, thereby improving the accuracy and stability of OCR recognition. It is understood that the starting coordinates of the time display area are fixed for each drawing, while the starting coordinates of the frame number display area dynamically change according to the display position determined in the aforementioned embodiment.

[0094] In one embodiment provided in this application, based on the above-described scheme, optionally, after drawing visual markers in the synchronization signal area, the method further includes:

[0095] Use the current time as the new reference time and return to the step of obtaining the current time.

[0096] In this embodiment, using the current time as the new reference time means updating the reference time variable with the current time value used for drawing this frame. This update operation is used to ensure that the interval determination for the next frame is based on the latest frame generation time. Returning to the step of obtaining the current time means that the control flow jumps to step S102 to prepare for generating the next frame of timecode. Through the above operations, after each frame is drawn, the reference time is refreshed, and then the next round of time acquisition and interval determination begins, thereby ensuring that the timecode image is continuously output at a preset frame rate. It is understood that the specific implementation of returning to the execution can rely on the browser's frame refresh callback (such as requestAnimationFrame) or timer loop, but this embodiment does not limit the specific loop driving method.

[0097] In one embodiment provided in this application, based on the above-described scheme, optionally, after drawing visual markers in the synchronization signal area, the method further includes:

[0098] Acquire video footage obtained from capturing the timecode image;

[0099] Extract image frames containing the visual markers from the video material;

[0100] The tilt angle is calculated based on the position and orientation of the visual marker in the image frame, and the image frame is rotated and corrected according to the tilt angle.

[0101] In this embodiment, video material refers to a video file obtained by capturing continuously played timecode images on a display device using a camera device. Optionally, one frame is extracted every preset number of frames, or a keyframe near the start of each second is selected. The position and orientation of the visual marker in the image frame reflect the geometric distortion of the camera device relative to the display device screen during shooting, where the orientation specifically refers to the angle between the long side of the visual marker and the horizontal axis of the image.

[0102] Optionally, the tilt angle can be calculated by performing edge detection on the extracted image frame, obtaining the coordinates of the four vertices of the visual marker, fitting the long side line, and calculating the angle between the line and the horizontal direction.

[0103] In this embodiment, rotation correction involves rotating the entire image frame in the reverse direction according to the calculated tilt angle, restoring the visual markers to a horizontal state, thereby correcting the image tilt caused by hand-held shooting or the device's placement angle. In the corrected image frame, the positions of the time display area, frame number display area, and synchronization signal area are basically consistent with the layout in the original canvas, facilitating accurate positioning of each area in subsequent OCR recognition processes.

[0104] Understandably, if no visual markers are detected in the video footage, the tilt correction step can be skipped or other reference objects can be used for correction.

[0105] This application provides a timecode display method, which involves fixing a time display area, a frame number display area, and a synchronization signal area on the canvas of a display device, and initializing a global frame counter and a reference time; acquiring the current time, and calculating the current frame number based on the current time when the difference between the current time and the reference time reaches a preset frame interval; determining the display position of the current frame number among multiple candidate display positions in the frame number display area, wherein the display position is determined alternately based on the value of the global frame counter or the modulo result of the current frame number and the total number of candidate positions; disabling canvas image smoothing, using a single color for both the foreground and background colors and starting from integer pixel coordinates, drawing the time information of the current time in the time display area, and drawing the current frame number at the specified display position in the frame number display area; when the second of the current time is different from the second of the reference time, drawing a visual marker in the synchronization signal area as a second boundary anchor point, and updating the reference time to the current time; and combining a high-precision time acquisition interface and a frame refresh callback mechanism to achieve high-precision timing compensation to lock the target frame rate. The timecode generated by this method has both a unique frame-level identifier and an explicit synchronization mark, enabling any camera device to obtain accurate timecodes through OCR recognition after shooting, thus achieving multi-camera frame-level synchronization with zero hardware cost.

[0106] This application also provides a time code display device, the structural schematic diagram of which is shown below. Figure 3 As shown, it includes:

[0107] The first determining unit 301 is used to determine the time display area, the frame number display area and the synchronization signal area in the canvas of the display device in response to the time code display command.

[0108] Acquisition unit 302 is used to acquire the current time;

[0109] The calculation unit 303 is used to calculate the current frame number based on the current time when the difference between the current time and the reference time reaches a preset frame interval;

[0110] The second determining unit 304 is used to determine the display position of the current frame number in the frame number display area;

[0111] The first drawing unit 305 is used to draw the time information of the current time in the time display area and draw the current frame number at the display position in the frame number display area.

[0112] The second drawing unit 306 is used to draw visual markers in the synchronization signal area when the current time and the reference time are in different time units, so as to complete the display of the timecode screen.

[0113] In one embodiment provided in this application, based on the above-described solution, optionally, the first drawing unit includes:

[0114] The first setting subunit is used to disable the image smoothing function of the canvas;

[0115] The second setting subunit is used to set the foreground color and background color of the canvas to two different monochrome colors respectively;

[0116] A drawing subunit is used to draw the time information of the current time in the time display area, starting from a pixel with an integer coordinate value, and to draw the current frame number at the display position in the frame number display area.

[0117] The specific principles and execution processes of each unit and module in the timecode display device disclosed in the above-described embodiments of this application are the same as those of the timecode display method disclosed in the above-described embodiments of this application. Please refer to the corresponding parts of the timecode display method provided in the above-described embodiments of this application, and they will not be repeated here.

[0118] This application embodiment also provides a storage medium, which includes stored instructions, wherein the instructions, when executed, control the device where the storage medium is located to execute the above-described timecode display method.

[0119] This application also provides an electronic device, the structural schematic diagram of which is shown below. Figure 4As shown, it specifically includes a memory 401 and one or more instructions 402, wherein one or more instructions 402 are stored in the memory 401 and are configured to be executed by one or more processors 403 to execute the above-mentioned timecode display method.

[0120] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For apparatus embodiments, since they are basically similar to method embodiments, the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0121] Finally, it should be noted that in this paper, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.

[0122] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0123] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0124] The present application has been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present application. Therefore, the content of this specification should not be construed as a limitation of the present application.

Claims

1. A timecode display method, characterized in that, include: In response to the time code display command, the time display area, frame number display area, and synchronization signal area are determined in the canvas of the display device; Get the current time; When the difference between the current time and the reference time reaches a preset frame interval, the current frame number is calculated based on the current time; Determine the display position of the current frame number in the frame number display area; The current time information is drawn in the time display area, and the current frame number is drawn at the display position in the frame number display area; When the current time and the reference time are in different time units, visual markers are drawn in the synchronization signal area to complete the display of the timecode screen.

2. The method according to claim 1, characterized in that, The step of calculating the current frame number based on the current time includes: Obtain the millisecond portion of the current time; Divide the millisecond portion by the preset frame interval to obtain the frame number, where the preset frame interval is determined by the target frame rate. The current frame number is calculated based on the frame sequence number.

3. The method according to claim 1, characterized in that, Determining the display position of the current frame number in the frame number display area includes: Obtain the total number of candidate display positions set within the frame number display area; The position index is obtained by performing a modulo operation between the current frame number and the total number; The coordinates corresponding to the position index are selected from each of the candidate display positions as the display position.

4. The method according to claim 1, characterized in that, The step of drawing the current time information in the time display area and drawing the current frame number at the display position in the frame number display area includes: Turn off the image smoothing function on the canvas; Set the foreground and background colors of the canvas to two different monochrome colors; Starting from a pixel with integer coordinates, the current time information is drawn in the time display area, and the current frame number is drawn at the display position in the frame number display area.

5. The method according to claim 1, characterized in that, After drawing visual markers in the synchronization signal area, the process further includes: Use the current time as the new reference time and return to the step of obtaining the current time.

6. The method according to claim 1, characterized in that, After drawing visual markers in the synchronization signal area, the process further includes: Acquire video footage obtained from capturing the timecode image; Extract image frames containing the visual markers from the video material; The tilt angle is calculated based on the position and orientation of the visual marker in the image frame, and the image frame is rotated and corrected according to the tilt angle.

7. A time code display device, characterized in that, include: The first determining unit is used to determine the time display area, the frame number display area, and the synchronization signal area in the canvas of the display device in response to the time code display command. The acquisition unit is used to obtain the current time; The calculation unit is used to calculate the current frame number based on the current time when the difference between the current time and the reference time reaches a preset frame interval; The second determining unit is used to determine the display position of the current frame number in the frame number display area; The first drawing unit is used to draw the time information of the current time in the time display area and draw the current frame number at the display position in the frame number display area. The second drawing unit is used to draw visual markers in the synchronization signal area when the current time and the reference time are in different time units, so as to complete the display of the timecode screen.

8. The apparatus according to claim 7, characterized in that, The first drawing unit includes: The first setting subunit is used to disable the image smoothing function of the canvas; The second setting subunit is used to set the foreground color and background color of the canvas to two different monochrome colors respectively; A drawing subunit is used to draw the time information of the current time in the time display area, starting from a pixel with an integer coordinate value, and to draw the current frame number at the display position in the frame number display area.

9. A storage medium, characterized in that, The storage medium includes stored instructions, wherein when the instructions are executed, the device containing the storage medium is controlled to perform the timecode display method as described in any one of claims 1 to 6.

10. An electronic device, characterized in that, It includes a memory, and one or more instructions, wherein one or more instructions are stored in the memory and configured to be executed by one or more processors as described in any one of claims 1 to 6.