Image display method, device, electronic device and medium

By determining the position information of the target area in the handheld video acquisition device and translating the image display area, the problem of image jitter in small devices under large-scale jitter is solved, and the image is stable and the target tracking accuracy is achieved.

CN115695714BActive Publication Date: 2025-09-26XIAN UNIVIEW INFORMATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110875637.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2025-09-26
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

Existing anti-shake technology cannot effectively eliminate the image jitter of handheld video capture devices under large-scale shaking conditions, and small devices are not suitable for adding additional anti-shake devices.

Method used

By determining the position information of the target area in the image to be displayed in the image display area, and calculating the position information of the target area relative to the preset display point based on the preset display point information of the entire display area, the image display area is translated to eliminate image jitter.

Benefits of technology

It can eliminate image jitter without the need for additional jitter elimination devices, ensuring a stable image and improving video browsing effects and target tracking accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695714B_ABST
    Figure CN115695714B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an image display method, device, electronic device and medium. The method includes: determining first position information that a target area in an image to be displayed is located in an image display area; determining third position information of the target area relative to a preset display point based on the first position information and the second position information of the image display area relative to a preset display point in the overall display area; translating the image display area based on the third position information, and displaying the image to be displayed in the image display area. The technical solution of the present application overcomes the problem that the prior art requires additional configuration of a device to eliminate jitter and cannot eliminate the impact of large-scale jitter on image browsing, and solves the problem of the impact of image jitter on visual effects at the back end, ensuring the stability of the image, which is beneficial to accurately tracking the target in the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer vision technology, and in particular to an image display method, device, electronic device, and medium. Background Art

[0002] With the advancement of video security technology, video stream capture methods are no longer limited to cameras mounted on brackets or poles. A trend is emerging towards a wide range of capture devices, including handheld body cameras, brooch cameras, and AR glasses. Compared to fixed cameras, these devices are more susceptible to jitter during video capture, which can be significantly affected by human factors (such as the ups and downs of running). Watching this jittery video directly can cause the eye to constantly adjust focus and focal length due to the excessive jitter, making it difficult to see the image clearly, resulting in missing key information.

[0003] Traditional anti-shake technology is mostly based on physical improvements, eliminating slight physical shake by adding a balancing device to the video capture equipment. However, the problems with this method are: 1. It cannot eliminate the impact of large-scale shaking on video browsing; 2. Small video capture devices such as brooch cameras and AR glasses are not suitable for adding additional anti-shake devices. Summary of the Invention

[0004] The embodiments of the present application provide an image display method, device, electronic device, and medium, which eliminate the problem of image jitter when viewing displayed images, ensure the stability of the image, and improve the effect of video browsing.

[0005] In a first aspect, an embodiment of the present application provides an image display method, the method comprising:

[0006] Determine first position information of a target area in the image to be displayed being located in the image display area;

[0007] determining, based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, third position information of the target area relative to the preset display point;

[0008] The image display area is translated according to the third position information, and the image to be displayed is displayed in the image display area.

[0009] In a second aspect, an embodiment of the present application provides an image display device, the device comprising:

[0010] A first position information determining module, configured to determine first position information of a target area in an image to be displayed that is located in an image display area;

[0011] a third position information determining module, configured to determine third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area;

[0012] The display area translation module is configured to translate the image display area according to the third position information, and display the image to be displayed in the image display area.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the image display method as described in the embodiment of the present application when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the image display method as described in the embodiment of the present application.

[0015] The technical solution of this embodiment eliminates the jitter of the displayed image in the video by the following method: determining the first position information of the target area in the image to be displayed in the image display area; based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area, determining the third position information of the target area relative to the preset display point; based on the third position information, translating the image display area and displaying the image to be displayed in the image display area. The above technical solution eliminates the impact of image jitter on image viewing without the need for additional jitter elimination devices during image acquisition, ensuring the smoothness of the image. The solution is simple and low-cost, which is beneficial for accurately tracking targets in the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a flowchart of an image display method provided by an embodiment of the present application;

[0017] Figure 2 This is a schematic diagram of regional settings provided by an embodiment of the present application;

[0018] Figure 3 This is a schematic diagram of determining location information provided by an embodiment of the present application;

[0019] Figure 4 is a flowchart of an image display method provided by another embodiment of the present application;

[0020] Figure 5 This is a schematic diagram of image display area settings provided by another embodiment of the present application;

[0021] Figure 6 This is a schematic diagram of image display area translation provided by another embodiment of the present application;

[0022] Figure 7 This is a schematic diagram of an enlarged region provided by another embodiment of the present application;

[0023] Figure 8 is a schematic diagram of an image display method provided by another embodiment of the present application;

[0024] Figure 9 is a flowchart of an image display method provided by another embodiment of the present application;

[0025] Figure 10 is a schematic diagram of a multi-target tracking display provided by another embodiment of the present application;

[0026] Figure 11 This is a structural block diagram of an image display device provided by an embodiment of the present application;

[0027] Figure 12 It is a structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0028] The present application will be described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the present application and are not intended to limit the present application. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions of the present application, not all of the components.

[0029] Figure 1 This is a flowchart of an image display method provided by an embodiment of the present application. This embodiment is applicable to scenarios where video jitter is eliminated. This method can be performed by an image display device provided by an embodiment of the present application. This device can be implemented using software and / or hardware and can be integrated into electronic devices.

[0030] like Figure 1 As shown, the image display method provided in the embodiment of the present application may include the following steps:

[0031] S110: Determine first position information of a target area in the image to be displayed being located in the image display area.

[0032] The image to be displayed refers to each frame of video image captured by a video capture device and to be played.

[0033] In the embodiment of the present application, the target area refers to the area in the video image where the target to be tracked is located. The image display area refers to the area used to display the video image screen during actual video playback. For example, Figure 2 This is a schematic diagram of the regional settings provided by an embodiment of the present application. Figure 2 As shown, the area enclosed by frame a is the entire display area. If the video is played on a television, the entire display area can be the entire screen display area of ​​the television. The area enclosed by frame b is the image display area. As will be understood, during actual playback, the video is displayed and played in the image display area. The area enclosed by frame c is the target area.

[0034] In an embodiment of the present application, the first position information refers to the position information of the target area relative to the image display area. The first position information can be expressed by the relative coordinates of the intersection of the diagonals of the target area in the image display area. For example, the coordinates are established with any point A in the image display area as the coordinate origin, and the coordinates (x, y) of the center point of the target area relative to the coordinate origin are calculated. Then, the first position information of the target area is A as the coordinate origin, and the coordinates of the center point are (x, y). The first position information can also be expressed by the relative coordinates of the four corner points of the target area in the image display area. For example, the coordinates are established with any point A in the image display area as the coordinate origin, and the coordinates of the four corner points of the target area relative to A are calculated to be (x1, y1), (x2, y2), (x3, y3) and (x4, y4). Then, the first position information of the target area is A as the coordinate origin, and the coordinates of the four corner points are (x1, y1), (x2, y2), (x3, y3) and (x4, y4). The first position information can also be expressed by the distance between the four sides of the target area and the four sides of the image display area, etc. It is understandable that the first position information corresponding to the same target area can be expressed in a variety of different ways.

[0035] It is understandable that due to the jitter of the picture, the position of the target area relative to the video image in each frame of the video image may be different, so for each frame of the video image, the first position information of the target area in the image display area must be determined so that the target area can be fixed in a certain position through subsequent movement.

[0036] S120: Determine third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area.

[0037] The preset display point is the position of the preset center point of the target area within the overall display area during actual video playback. It is understood that to eliminate the impact of image jitter on target tracking, this application translates the target area in each frame of video from its initial position to the preset display point to fix the viewing angle. The preset display point can be the center point of the overall display area or any other position within the overall display area.

[0038] In an embodiment of the present application, after determining a preset display point, the second position information of the image display area relative to the preset display point within the overall display area is calculated. In this embodiment, the image display area can be an area of ​​any size within the overall display area and can be configured according to user needs. The expression of the second position information corresponding to the image display area can be similar to the expression of the first position information. Similarly, the second position information corresponding to the image display area can be expressed in a variety of different ways.

[0039] In an embodiment of the present application, the third position information is determined based on the first and second position information. The third position information can be determined by calculating the coordinates in the first and second position information, or the third position information can be calculated based on the relative distance information in the first and second position information.

[0040] In this embodiment, determining the third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area includes:

[0041] The sum of the horizontal coordinates in the first position information and the horizontal coordinates in the second position information is used as the horizontal coordinate in the third position information, and the sum of the vertical coordinates in the first position information and the vertical coordinates in the second position information is used as the vertical coordinate in the third position information to determine the third position information.

[0042] For example, Figure 3 This is a schematic diagram of determining location information provided by an embodiment of the present application. Figure 3 As shown, a is the overall display area, b is the image display area, and c is the target area; point C is the center point of the target area, point B is any point in the image display area, and point A is the preset display point. First, a coordinate system is established with B as the coordinate origin. Assuming that the coordinates of point C in coordinate system B are (4, 4), the first position information of the target area can be expressed as the position where B is the coordinate origin and the center point coordinates are (4, 4). Then a coordinate system is established with the preset display point A as the coordinate origin. Assuming that the coordinates of point B in coordinate system A are (5, 4). At this point, it can be seen that with A as the coordinate origin, the coordinates of point C are (9, 8), so the third position information of the target area relative to the preset display point can be expressed as the position where the preset display point A is the coordinate origin and the center point coordinates are (9, 8).

[0043] S130: According to the third position information, translate the image display area, and display the image to be displayed in the image display area.

[0044] The translation of the image display area is to translate the target area in each frame of the video image from the initial position to the preset display point. Since the target area is located in the image display area, the image display area will also be translated accordingly.

[0045] After the image display device translates the target area of ​​each frame of video image from the initial position to the preset display point, the image display device displays and plays the frame of video image in the image display area.

[0046] The technical solution of this embodiment achieves the elimination of jitter in the video through the following method: determining the first position information of the target area in the image to be displayed in the image display area; based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area, determining the third position information of the target area relative to the preset display point; based on the third position information, translating the image display area and displaying the image to be displayed in the image display area. The above technical solution eliminates the impact of image jitter on human vision without the need for additional jitter elimination devices during image acquisition, ensuring the smoothness of the image. The solution is simple and low-cost, which is beneficial for accurately tracking targets in the video.

[0047] Figure 4 This is a flowchart of an image display method provided by another embodiment of the present application. This embodiment is optimized based on the above embodiment.

[0048] like Figure 4 As shown, the image display method provided in the embodiment of the present application may include the following steps:

[0049] S210: Determine first position information of a target area in the image to be displayed being located in the image display area.

[0050] S220: Determine third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area.

[0051] In the embodiment of the present application, before determining the third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area, the method further includes:

[0052] The image display area is drawn in the overall display area; wherein the image display area is consistent with the area of ​​the overall display area reduced by four times, and the center point of the image display area coincides with the center point of the overall display area; the preset display point is the center point of the overall display area.

[0053] For example, Figure 5 As shown, Figure 5 This is a schematic diagram of the image display area setting provided by another embodiment of the present application. The area included in frame a is the overall display area, and the area included in frame b is the image display area. Under the technical solution of this embodiment, when starting the playback of a video stream, the video stream is first decoded and played at the most central position of the overall display area. The area ratio of the image display area to the overall display area is 1:4, avoiding poor display effects caused by too small scaling. The initial scaling ratio can be changed through settings according to user needs, but the default ratio of 1:4 ensures that the actual image display area will not be translated outside the overall display area.

[0054] S230: According to the third position information, translate the image display area, and display the image to be displayed in the image display area.

[0055] Figure 6 This is a schematic diagram of image display area translation provided by another embodiment of the present application. Figure 6 As shown, when drawing the image display area, the image display area is aligned with the area of ​​the overall display area reduced fourfold, and the center point of the image display area coincides with the center point of the overall display area. The center point of the overall display area is set as the preset display point. The image to the right of the arrow shows the image of the video frame after the target area is translated to the preset display point. As can be seen from the image, the target area is translated toward the lower left corner, and the image display area containing the target area is also translated toward the lower left corner.

[0056] S240: Determine a translation area reached by the image display area during translation within a first preset time.

[0057] The first preset time can be set according to user needs. The translation area to which the image display area is translated refers to the area covered by the maximum translation when the image display area is translated up, down, left, or right due to video image jitter. After setting the first preset time, this embodiment records the amount of translation of the image display area within the first preset time, and calculates the translation area based on the translation amount.

[0058] Figure 7 This is a schematic diagram of an enlarged region provided by another embodiment of the present application. Figure 7As shown, p1, p2, and p3 are the translations of the image display area recorded within the first preset time. The area enclosed by frame m is the translation area covered by the image display area during the first preset time. Each time the image display area translates within the first preset time, the coordinates of the area reached by the image display area after translation within the overall display area are recorded. After the image display area translates multiple times within the first preset time, the coordinates of all areas reached by the image display area after translation within the overall display area are recorded. The entire area reached by the image display area, i.e., the translation area, is determined based on the coordinates of the smallest horizontal coordinate, the largest horizontal coordinate, the smallest vertical coordinate, and the largest vertical coordinate among all the areas.

[0059] S250: Enlarge the translation area according to the relative size of the translation area and the overall display area.

[0060] The translation region may be enlarged according to the size of the overall display region. For example, the horizontal side of the translation region may be enlarged to 90% of the horizontal length of the overall display region. Alternatively, the vertical side of the translation region may be enlarged to 90% of the vertical length of the overall display region. Alternatively, the region may be enlarged at any magnification factor, which is not limited in this embodiment.

[0061] S260: Enlarge the image display area according to the magnification factor of the translation area.

[0062] S270: If the enlarged translation region is not completely within the overall display region, translate the enlarged translation region and the enlarged image display region so that the enlarged translation region is completely within the overall display region.

[0063] For example, Figure 8 This is a schematic diagram of an image display method provided by another embodiment of the present application. Figure 8 As shown, the left side of the enlarged translation region extends beyond the overall display area. In this case, translation compensation is required after enlarging the translation region. After compensation, the enlarged translation region is completely within the overall display area. For example, the difference between the coordinates of the center point of the translation region and the coordinates of the center point of the overall display area can be determined and used as the translation compensation to translate the translation region so that the center point of the translation region is aligned with the center point of the overall display area, ensuring that the entire translation region is within the overall display area.

[0064] In the embodiment of the present application, after the magnification adjustment using the above method, the main viewing angle is no longer at the center point of the entire display area, but is still locked at a fixed position in the area, which does not affect the observation effect of the human eye, and the overall dynamic display effect is closer to the center position. This method not only solves the problem that the actual image display area accounts for too small a proportion of the overall display area, which is not conducive to observation, but also ensures that the image display area does not shift outside the entire display area. When the image suddenly shakes and causes the magnified image display area to shift outside the entire display area, the magnification factor is immediately reduced to enable full display, and the magnification factor is recalculated, and the above action is repeated.

[0065] In this embodiment, after translating the magnified translation area and the image display area, the method further includes:

[0066] translating a preset display point in the overall display area according to the magnified translation area and the translation distance of the image display area;

[0067] For a new image to be displayed, the steps of determining the third position information of the target area relative to the preset display point after translation based on the first position information and the second position information of the preset display point after translation of the image display area relative to the overall display area, and displaying the new image to be displayed are performed.

[0068] It can be understood that in order to address the problem that the enlarged translation area may exceed the overall display area, the enlarged translation area and the image display area are translated so that they are within the overall display area, which will cause the target area to deviate from the original preset display point. Therefore, the preset display point must be translated accordingly according to the translation distance of the enlarged translation area and the image display area.

[0069] In the embodiment of the present application, after the image display area is enlarged and translated, the first position information of the target area within the image display area changes. Simultaneously, due to the translation of the preset display point, the second position information of the image display area relative to the preset display point within the overall display area also changes. Therefore, after the translation area and the image display area are enlarged and translated, and the preset display point is translated, the image display device re-executes steps 210-230 for the new image to be displayed based on the translated preset display point.

[0070] The technical solution of this embodiment achieves the enlargement of the image display area by the following method: determining the translation area reached by the image display area during translation within a first preset time; enlarging the translation area based on the relative size of the translation area and the overall display area; enlarging the image display area based on the magnification factor of the translation area; if the enlarged translation area is not completely within the overall display area, then translating the enlarged translation area and the enlarged image display area so that the enlarged translation area is completely within the overall display area. The above technical solution not only enlarges the playback image but also ensures that the image does not exceed the screen range, thereby improving the user's video viewing experience and allowing for more accurate tracking of targets in the video image.

[0071] Figure 9 This is a flowchart of an image display method provided by another embodiment of the present application. This embodiment is optimized based on the above embodiment.

[0072] like Figure 9 As shown, the image display method provided in the embodiment of the present application may include the following steps:

[0073] S310: Perform feature detection on at least two frames of historical display images within a second preset time to determine feature information.

[0074] The second preset time refers to a period of time during the video playback duration, which can be set according to actual needs. For example, if a video duration is 10 minutes, the second preset time can be set to 2 minutes.

[0075] In the embodiment of the present application, the feature information may include the number of people or vehicles in the image, etc. The feature detection method may be Harris algorithm, FAST algorithm, etc., and the present embodiment does not limit the algorithm used for feature detection.

[0076] This embodiment uses a feature detection algorithm to detect feature information contained in at least two frames of historical display images contained in the second preset time.

[0077] S320: Match feature information in at least two frames of historical display images, and use consistent feature information as target feature information.

[0078] For example, for example, the feature information in the first frame of the historical display image is F1, F2, and F3, the feature information in the second frame of the historical display image is F2, F5, and F6, and the feature information in the third frame of the historical display image is F2, then after matching, the consistent feature information in the three frames of the historical display image is F2, then F2 is used as the target feature information, and the perspective of F2 is used as the fixed target in the subsequent process of eliminating jitter and fixing the perspective.

[0079] The above-mentioned target feature information is selected by the system, but the target feature information may not be the feature that the user actually wants to focus on, or even if it is the feature that the user actually wants to focus on at the beginning, as the shooting picture changes, the feature will become incorrect due to various scene factors. Therefore, this embodiment provides two revision modes: frame selection mode and scene analysis mode, which are used to determine the target feature information according to user needs.

[0080] In this embodiment, it is determined that the target area in the image to be displayed is located before the first position information in the image display area, and the method further includes:

[0081] determining a feature area according to a selection operation performed by a user on a historical display image or a historical display video;

[0082] Feature information in the feature area is determined as target feature information.

[0083] The selection operation refers to a user selecting an area in the played video stream where the feature information that the user wants to focus on is located by touching or writing with a pen.

[0084] In an embodiment of the present application, the image display device identifies feature information within the framed area according to the user's operation and the image detection algorithm, and uses the feature information as target feature information.

[0085] In this embodiment, the user can perform a selection operation in a static video picture, or can directly perform a selection operation in a shaking video picture being played.

[0086] In this embodiment, it is determined that the target area in the image to be displayed is located before the first position information in the image display area, and the method further includes:

[0087] Determine the target object according to the scene mode selected by the user;

[0088] Target object detection is performed on the historical display image, and feature information of the target object is determined as target feature information.

[0089] Among them, the scene mode can be a human body tracking mode, a face tracking mode, a vehicle tracking mode, etc.

[0090] In the embodiment of the present application, if the user selects the human body tracking mode, the target object is a human body in the video screen; if the user selects the vehicle tracking mode, the target object is a vehicle in the video screen.

[0091] In an embodiment of the present application, the image display device uses a correlation algorithm to detect a target object from a historical real-life image, and uses feature information of the target object as target feature information.

[0092] For example, taking the human body tracking mode as an example, when the user selects the human body tracking mode, the system analyzes the human body information in the picture according to the human body analysis algorithm, extracts human body feature data, and takes a snapshot. While displaying the video screen, the extracted human body image is also displayed to the user, and the user selects the human body target to be tracked and uses the target feature information as the target. After the user selects the human body to be tracked, the system saves the feature information of the human body. When each subsequent frame is decoded and displayed, the human body information in the picture is first analyzed. When a human body feature image with a high similarity is matched, the human body frame area appearing in the picture is used as the target area and the subsequent de-shaking step is performed.

[0093] S330: Use the area in the image to be displayed that corresponds to the feature information that matches the target feature information as the target area.

[0094] For example, if the target feature information is F2, and the image to be displayed is subjected to feature detection and contains feature information of F1, F2, F4, and F6, then the area where F2 is located in the image to be displayed is used as the target area.

[0095] S340: Determine first position information of the target area in the image to be displayed being located in the image display area.

[0096] S350: Determine third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area.

[0097] S360: According to the third position information, translate the image display area and display the image to be displayed in the image display area.

[0098] This embodiment also provides a display method for multi-target tracking. Figure 10 As shown, Figure 10This is a schematic diagram of a multi-target tracking display provided by another embodiment of the present application. When the user selects multiple targets from the screen to be tracked simultaneously, the image display area performs simulated split-screen processing according to the number of selected targets. The specific method of display is: 1. First, the corresponding algorithm parses the current video stream, counts the structured data and displays the frames for the multiple identified targets; 2. The user selects the target to be tracked and selects the corresponding frame; 3. The system saves the selected human feature information and assigns a number to each target. At the same time, according to the number of selected targets, the system splits the screen on the entire display area, and copies multiple copies of the original stream to display at a specific position on each split screen. The target number is the same as the split screen number; 4. When each frame is decoded and displayed, the algorithm first parses the video stream, matches the target with a highly similar feature value, and uses the target frame as the target area; 5. In each split screen, the step of eliminating jitter is performed on the target area.

[0099] The technical solution provided in this embodiment can provide users with multiple target tracking modes and target selection methods, so that users can determine the target they need to focus on according to actual needs, and fix the target's perspective as the main perspective to improve the user's viewing experience.

[0100] Figure 11 This is a structural block diagram of an image display device provided by an embodiment of the present application. The device can execute the image display method provided by any embodiment of the present application and has the corresponding functional modules and beneficial effects of the execution method. Figure 11 As shown, the device may include:

[0101] The first position information determining module 410 is configured to determine first position information indicating that a target area in the image to be displayed is located in the image display area.

[0102] The third position information determining module 420 is configured to determine the third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area.

[0103] The display area translation module 430 is configured to translate the image display area according to the third position information, and display the image to be displayed in the image display area.

[0104] In the embodiment of the present application, the third location information determining module 420 is specifically configured to:

[0105] The sum of the horizontal coordinates in the first position information and the horizontal coordinates in the second position information is used as the horizontal coordinate in the third position information, and the sum of the vertical coordinates in the first position information and the vertical coordinates in the second position information is used as the vertical coordinate in the third position information to determine the third position information.

[0106] In an embodiment of the present application, the device further includes:

[0107] An image display area drawing module is used to draw the image display area in the overall display area; wherein the image display area is consistent with the area of ​​the overall display area reduced by four times, and the center point of the image display area coincides with the center point of the overall display area; the preset display point is the center point of the overall display area.

[0108] In an embodiment of the present application, the device further includes:

[0109] The translation region determining module is configured to determine a translation region to which the image display region is translated within a first preset time.

[0110] The translation region magnifying module is configured to magnify the translation region according to the relative size of the translation region and the overall display region.

[0111] The image display area magnification module is used to magnify the image display area according to the magnification factor of the translation area.

[0112] The enlarged area translation module is used to translate the enlarged translation area and the enlarged image display area if the enlarged translation area is not completely within the overall display area, so that the enlarged translation area is completely within the overall display area.

[0113] In an embodiment of the present application, the device further includes:

[0114] The preset display point translation module is used to translate the preset display point in the entire display area according to the magnified translation area and the translation distance of the image display area.

[0115] The preset position display module is used to determine the third position information of the target area relative to the preset display point after translation based on the first position information and the second position information of the preset display point after translation of the image display area relative to the overall display area, and to display the new image to be displayed.

[0116] In an embodiment of the present application, the device further includes:

[0117] The feature information determination module is used to perform feature detection on at least two frames of historical display images within a second preset time to determine feature information.

[0118] The first target feature information determination module is used to match feature information in at least two frames of historical display images and use consistent feature information as target feature information.

[0119] In an embodiment of the present application, the device further includes:

[0120] The feature region determination module is used to determine the feature region according to the selection operation performed by the user on the historical display image or the historical display video.

[0121] The second target feature information determination module is configured to determine feature information in the feature area as target feature information.

[0122] In an embodiment of the present application, the device further includes:

[0123] The target object determination module is used to determine the target object according to the scene mode selected by the user.

[0124] The third target feature information determination module is configured to perform target object detection on the historical display image and determine feature information of the target object as target feature information.

[0125] In an embodiment of the present application, the device further includes:

[0126] The target region determination module is configured to determine, as the target region, a region in the image to be displayed that corresponds to feature information that matches the target feature information.

[0127] The above-mentioned product can execute the image display method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0128] Figure 12 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 12 A block diagram of an exemplary electronic device 512 suitable for implementing embodiments of the present application is shown. Figure 12 The electronic device 512 shown is merely an example and should not limit the functionality and scope of use of the embodiments of the present application.

[0129] like Figure 12 As shown, the electronic device 512 may include: one or more processors 516; and a memory 528 for storing one or more programs. When the one or more programs are executed by the one or more processors 516, the one or more processors 516 implement the image display method provided in the embodiment of the present application, including:

[0130] Determine first position information of a target area in the image to be displayed being located in the image display area;

[0131] determining, based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, third position information of the target area relative to the preset display point;

[0132] The image display area is translated according to the third position information, and the image to be displayed is displayed in the image display area.

[0133] Components of the electronic device 512 may include, but are not limited to, one or more processors 516 , a memory 528 , and a bus 518 that connects the various device components (including the memory 528 and the processor 516 ).

[0134] Bus 518 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, a processed ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0135] The electronic device 512 typically includes a variety of computer-readable storage media, which can be any available storage media that can be accessed by the electronic device 512, including volatile and non-volatile storage media, removable and non-removable storage media.

[0136] The memory 528 may include computer-readable storage media in the form of volatile memory, such as random access memory (RAM) 530 and / or cache memory 532. The electronic device 512 may further include other removable / non-removable, volatile / non-volatile computer storage media. By way of example only, the storage system 534 may be configured to read and write non-removable, non-volatile magnetic storage media (e.g., Figure 12 Not shown, often called a "hard drive"). Although Figure 12Not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium) may be provided. In these cases, each drive may be connected to the bus 518 via one or more data storage medium interfaces. The memory 528 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present application.

[0137] A program / utility 540 having a set (at least one) of program modules 542 may be stored, for example, in memory 528. Such program modules 542 include, but are not limited to, operating devices, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 542 generally implement the functions and / or methods of the embodiments described herein.

[0138] The electronic device 512 may also communicate with one or more external devices 514 and / or a display 524, and may also communicate with one or more devices that enable a user to interact with the electronic device 512, and / or any device that enables the electronic device 512 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed through an input / output (I / O) interface 522. Furthermore, the electronic device 512 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 520. Figure 12 As shown, the network adapter 520 communicates with other modules of the electronic device 512 via the bus 518. Figure 12 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 512, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.

[0139] The processor 516 executes various functional applications and data processing by running at least one of the other programs among the multiple programs stored in the memory 528, such as implementing an image display method provided in an embodiment of the present application.

[0140] A sixth embodiment of the present application provides a storage medium containing computer-executable instructions. When the computer-executable instructions are executed by a computer processor, the computer-executable instructions are used to perform an image display method, including:

[0141] Determine first position information of a target area in the image to be displayed being located in the image display area;

[0142] determining, based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, third position information of the target area relative to the preset display point;

[0143] The image display area is translated according to the third position information, and the image to be displayed is displayed in the image display area.

[0144] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable storage media. The computer-readable storage medium can be a computer-readable signal storage medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, apparatus or device, or any combination thereof. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In an embodiment of the present application, a computer-readable storage medium can be any tangible storage medium containing or storing a program, which can be used by an instruction execution device, device or device or used in combination with it.

[0145] A computer-readable signal storage medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal storage medium may also be any computer-readable storage medium other than a computer-readable storage medium that can transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution device, apparatus, or component.

[0146] The program code embodied on the computer-readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0147] The computer program code for performing the operations of the present application can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or device. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0148] Note that the above are only preferred embodiments of the present application and the technical principles employed. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present application. The scope of the present application is determined by the scope of the appended claims.

Claims

1. An image display method, characterized in that: Applicable to scenarios where video jitter issues are eliminated, the method includes: Determine first position information of a target area in the image to be displayed being located in the image display area; determining, based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, third position information of the target area relative to the preset display point; According to the third position information, the image display area is translated and the image to be displayed is displayed in the image display area; The method further comprises: determining a translation area reached by the image display area during translation within a first preset time; enlarging the translation area according to the relative sizes of the translation area and the overall display area; Enlarging the image display area according to the magnification factor of the translation area; If the enlarged translation region is not completely within the overall display region, the enlarged translation region and the enlarged image display region are translated so that the enlarged translation region is completely within the overall display region.

2. The method according to claim 1, characterized in that Determining, based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, third position information of the target area relative to the preset display point includes: The sum of the horizontal coordinates in the first position information and the horizontal coordinates in the second position information is used as the horizontal coordinate in the third position information, and the sum of the vertical coordinates in the first position information and the vertical coordinates in the second position information is used as the vertical coordinate in the third position information to determine the third position information.

3. The method according to claim 1, characterized in that Before determining the third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the entire display area, the method further includes: The image display area is drawn in the overall display area; wherein the image display area is consistent with the area of ​​the overall display area reduced by four times, and the center point of the image display area coincides with the center point of the overall display area; the preset display point is the center point of the overall display area.

4. The method according to claim 1, wherein After translating the magnified translation area and the image display area, the method further includes: translating a preset display point in the overall display area according to the magnified translation area and the translation distance of the image display area; For a new image to be displayed, the steps of determining the third position information of the target area relative to the preset display point after translation based on the first position information and the second position information of the preset display point after translation of the image display area relative to the overall display area, and displaying the new image to be displayed are performed.

5. The method according to claim 1, wherein Determining that the target area in the image to be displayed is located before the first position information in the image display area, the method further includes: Performing feature detection on at least two frames of historical display images within a second preset time to determine feature information; Match feature information in at least two frames of historical display images, and use consistent feature information as target feature information.

6. The method according to claim 1, characterized in that Determining that the target area in the image to be displayed is located before the first position information in the image display area, the method further includes: determining a feature area according to a selection operation performed by a user on a historical display image or a historical display video; Feature information in the feature area is determined as target feature information.

7. The method according to claim 1, characterized in that Determining that the target area in the image to be displayed is located before the first position information in the image display area, the method further includes: Determine the target object according to the scene mode selected by the user; Target object detection is performed on the historical display image, and feature information of the target object is determined as target feature information.

8. The method according to claim 6 or 7, characterized in that Determining that the target area in the image to be displayed is located before the first position information in the image display area, the method further includes: The area in the image to be displayed that corresponds to the feature information that matches the target feature information is used as the target area.

9. An image display device, characterized in that: Applicable to scenarios where video jitter problems are eliminated, the device includes: A first position information determining module, configured to determine first position information of a target area in an image to be displayed that is located in an image display area; a third position information determining module, configured to determine third position information of the target area relative to the preset display point based on the first position information and the second position information of the image display area relative to the preset display point in the overall display area; A display area translation module, configured to translate the image display area according to the third position information, and display the image to be displayed in the image display area; The device further comprises: A translation region determining module, configured to determine a translation region to which the image display region is translated within a first preset time; a translation region magnification module, configured to magnify the translation region according to the relative size of the translation region and the overall display region; An image display area magnification module, configured to magnify the image display area according to a magnification factor of the translation area; The enlarged area translation module is used to translate the enlarged translation area and the enlarged image display area if the enlarged translation area is not completely within the overall display area, so that the enlarged translation area is completely within the overall display area.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein: When the processor executes the computer program, the image display method according to any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the image display method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Object display method and device

    CN112000218A