Image display method, device, electronic equipment, and program product

By acquiring the cropping area and cropping information of the original image, the target image is generated and displayed on the splicing screen, which solves the problem of discontinuous images on the splicing screen and achieves a smooth and continuous image display effect.

CN118827891BActive Publication Date: 2026-04-07GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing video wall displays suffer from discontinuity at image stitching points, resulting in poor display quality.

Method used

By obtaining the cropping region in the original image corresponding to the target splicing sub-screen, and obtaining cropping information, including cropping direction and number of pixels to be cropped, according to the scaling algorithm, the target image is generated and displayed on the target splicing sub-screen, ensuring that the image at the splicing point is smooth and continuous.

Benefits of technology

It effectively eliminates the seams in splicing screens, improves image display effects, and makes the splicing area smooth and continuous.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827891B_ABST
    Figure CN118827891B_ABST
Patent Text Reader

Abstract

The application provides an image display method and device, electronic equipment and program product, and relates to the technical field of image display. The method comprises the following steps: acquiring a cropped region corresponding to a target spliced sub-screen in an original image; if it is determined that the cropped region does not satisfy a preset condition, acquiring cropped information according to a scaling algorithm corresponding to the original image, wherein the preset condition comprises that an image processing point corresponding to the cropped region matches an image processing point of the original image, the image processing point comprises a starting point and an ending point, and the cropped information comprises a cropped direction and a pixel point cropped quantity; generating a target image by cropping the original image according to the cropped information and the image processing point corresponding to the cropped region; and displaying the target image on the target spliced sub-screen. The embodiment of the application can ensure that the image at the splicing position in the spliced screen is smooth and continuous, effectively eliminates the splicing seam, and improves the display effect of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image display technology, and more specifically, to an image display method, apparatus, electronic device, and program product. Background Technology

[0002] A video wall is a large screen formed by splicing together multiple sub-screens. When displaying an image, each sub-screen can display a portion of that image, and the images displayed on all the sub-screens are spliced ​​together to form the complete content of the image. Based on these characteristics, video walls can magnify and display high-definition video sources, thus providing users with a better visual experience in scenarios where multiple people are watching.

[0003] In video wall applications, the final output signal needs to be spliced ​​together. During splicing, a continuous effect is required at the splicing points, without any seams. The traditional method involves first cropping the original image, then scaling the cropped image to display the desired image on the splicing sub-screens. The complete image is then displayed by splicing together several sub-screens.

[0004] However, when scaling, the pixels around the interpolation point need to be interpolated. Since cropping has been performed first, only a portion of the pixel data related to the interpolation point can be obtained during scaling, resulting in discontinuities at the stitching points in the final displayed image. Summary of the Invention

[0005] This application provides an image display method, apparatus, electronic device, and program product, which can solve the problem of discontinuity at the splicing points of existing video wall displays. To achieve this objective, this application provides the following solutions.

[0006] According to one aspect of the embodiments of this application, an image display method is provided, including:

[0007] Obtain the cropping region in the original image that corresponds to the target stitched sub-screen;

[0008] If it is determined that the cropping area does not meet the preset conditions, then cropping information is obtained according to the scaling algorithm corresponding to the original image. The preset conditions include that the image processing point corresponding to the cropping area matches the image processing point of the original image. The image processing point includes a start point and an end point. The cropping information includes the cropping direction and the number of pixels to be cropped.

[0009] The original image is cropped according to the cropping information and the image processing points corresponding to the cropping area to generate the target image;

[0010] The target image is displayed on the target splicing sub-screen.

[0011] In one possible implementation, displaying the target image on the target splicing sub-screen includes:

[0012] Obtain the scaling ratio corresponding to the target image, and display the target image on the target splicing sub-screen according to the scaling ratio;

[0013] Determining the scaling ratio includes:

[0014] The display area of ​​the original image in the splicing screen is obtained, and the image size corresponding to the display area is determined as the size of the display image corresponding to the original image. The splicing screen includes a target splicing sub-screen.

[0015] The scaling ratio of the target image is determined based on the size of the displayed image and the size of the original image.

[0016] In one possible implementation, obtaining the cropping region in the original image corresponding to the target stitched sub-screen includes:

[0017] Obtain the display information of the target splicing sub-screen in the display area, the display information including at least one of the position, size, and scale of the image displayed by the target splicing sub-screen in the display area;

[0018] The cropping area corresponding to the target splicing sub-screen is determined based on the display information.

[0019] In one possible implementation, obtaining the cropping information based on the scaling algorithm corresponding to the original image includes:

[0020] Obtain the mismatched image processing points in the cropped area;

[0021] The cropping information is determined based on the type of the image processing point, the position of the image processing point in the original image, and the scaling algorithm.

[0022] In one possible implementation, determining the cropping information based on the type of the image processing point, the position of the image processing point in the original image, and the scaling algorithm includes:

[0023] The cropping direction is determined based on the type of the image processing point and the position of the image processing point in the original image.

[0024] The number of pixels to be clipped corresponding to the clipping direction is determined based on the correspondence between the scaling algorithm and the number of pixels to be clipped.

[0025] In one possible implementation, cropping the original image based on the cropping information and the image processing points corresponding to the cropping region to generate the target image includes:

[0026] The coordinates of the cropping position and the cropping width are determined based on the image processing points and the cropping information;

[0027] The target image is generated by cropping the original image based on the coordinates of the cropping position and the cropping width.

[0028] In one possible implementation, the method further includes:

[0029] If the cropping area is determined to meet the preset conditions, the original image is determined to be the target image, and the target image is displayed on the target splicing sub-screen.

[0030] According to one aspect of the embodiments of this application, an image display device is provided, the image display device comprising:

[0031] The cropping region acquisition module is used to acquire the cropping region in the original image that corresponds to the target stitching sub-screen;

[0032] The cropping information acquisition module is used to acquire cropping information according to the scaling algorithm corresponding to the original image when it is determined that the cropping area does not meet the preset conditions. The preset conditions include that the image processing points corresponding to the cropping area match the image processing points of the original image. The image processing points include a start point and an end point.

[0033] The target image acquisition module is used to crop the original image based on the cropping information and the image processing points corresponding to the cropping area to generate a target image;

[0034] An image display module is used to display the target image on the target splicing sub-screen, the splicing screen including the target splicing sub-screen.

[0035] According to one aspect of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, characterized in that the processor executes the computer program to implement the steps of the method described above.

[0036] According to one aspect of the embodiments of this application, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described above.

[0037] The beneficial effects of the technical solutions provided in this application are:

[0038] The image display method provided in this application obtains the cropping region in the original image corresponding to the target splicing sub-screen; if it is determined that the image processing points of the cropping region do not match the image processing points of the original image, then cropping information including the cropping direction and the number of pixel cropping points is obtained according to the scaling algorithm corresponding to the original image; the original image is cropped according to the cropping information and the image processing points corresponding to the cropping region to generate the target image; the target image is displayed on the target splicing sub-screen. In the embodiments of this application, when displaying an image through the target splicing sub-screen, the cropping information of the pixel points is obtained according to the scaling algorithm used, and the cropped image is adjusted based on the cropping information to obtain a target image including all pixel data related to interpolation. The embodiments of this application can ensure that the image at the splicing point in the splicing screen is smooth and continuous, effectively eliminate the splicing seam, and improve the display effect of the image. Attached Figure Description

[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.

[0040] Figure 1 A flowchart illustrating the image display method provided in this application embodiment;

[0041] Figure 2 This is a schematic diagram illustrating the acquisition of the cropping width in the image display method provided in the embodiments of this application;

[0042] Figure 3 This is a structural diagram of the image display device provided in the embodiments of this application;

[0043] Figure 4 This is a structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0044] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.

[0045] Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” indicates implementation as “A,” or implementation as “A,” or implementation as “A and B.”

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0047] The technical solutions of this application and their effects are described below through several exemplary embodiments. It should be noted that the following embodiments can be referenced, borrowed from, or combined with each other. Identical terms, similar features, and similar implementation steps in different embodiments will not be repeated.

[0048] The image display method, conveyor belt, and conveying device provided in this application are intended to solve at least one technical problem existing in the prior art.

[0049] This application provides an image display method, such as... Figure 1 As shown, this image display method can be used in the host computer of the video wall, the controller of the video wall, mobile phones, servers, and other devices that can acquire the original image and control the video wall to display the original image.

[0050] Optionally, the video wall includes multiple sub-screens, and each sub-screen displays a corresponding image based on the received signal.

[0051] Optionally, the image display method in this application embodiment includes:

[0052] S101: Obtain the cropping region in the original image that corresponds to the target splicing sub-screen.

[0053] Optionally, the original image can be obtained from a video signal transmitted from an input source for displaying images on the video wall. This video signal may further include the display area of ​​the original image on the video wall, the size of the image displayed on the video wall, the image display method, information about the sub-screens used to display the original image, and other information related to the display of the original image.

[0054] Optionally, obtaining the cropping region corresponding to the target splicing sub-screen in the original image includes: obtaining the display information of the target splicing sub-screen in the display area, the display information including at least one of the position, size, ratio, and display range of the image displayed by the target splicing sub-screen in the display area; and determining the cropping region corresponding to the target splicing sub-screen based on the display information.

[0055] Optionally, the display area of ​​the original image can be determined by the video signal or display instructions related to the video signal, or information about the splicing sub-screen used to display the original image can be obtained, and the display information of the target splicing sub-screen in the display area can be determined based on the display area or information.

[0056] Optionally, the display space of the splicing screen and the position information of the display space corresponding to each splicing sub-screen in the display space can be pre-stored. After obtaining the display area of ​​the original image in the splicing screen, the display information of the target splicing sub-screen can be obtained according to the position of the display area in the display space of the splicing screen and the position information of the display space corresponding to each splicing sub-screen in the display space.

[0057] Optionally, the original image is displayed in the display area, thereby enabling the correspondence between different positions in the display area and the positions in the original image. Based on this correspondence and the display information, the position of the image displayed in each splicing sub-screen in the original image is determined, and the area corresponding to that position is determined as the cropping area.

[0058] In one embodiment, after acquiring the original image via a video signal, a sub-screen displaying the original image can be obtained, and this sub-screen can be identified as the target sub-screen. The display area of ​​the original image on the sub-screen can be obtained according to the acquired display instructions, and the display information of the target sub-screen within that display area can be obtained. Based on this display information, a cropping area in the original image corresponding to the target sub-screen can be determined.

[0059] S102: If it is determined that the cropping area does not meet the preset conditions, then the cropping information is obtained according to the scaling algorithm corresponding to the original image.

[0060] Optionally, the preset conditions include matching the image processing points corresponding to the cropped area with the image processing points of the original image. The image processing points include a start point and an end point, and the cropping information includes the cropping direction and the number of pixels cropped. The preset conditions are used to determine whether the start and end points of the cropped area are the same as the start and end points of the original image.

[0061] Optionally, if the cropping area is determined to meet the preset conditions (i.e., the starting and ending points of the cropping area are the starting and ending points of the original image, and the original image is only displayed through the target splicing sub-screen without cropping), then the original image is determined to be the target image, and the target image is displayed on the target splicing sub-screen.

[0062] In one embodiment, a preset condition is used to determine whether the start and end points of the cropping region corresponding to the target splicing sub-screen are the start and end points of the original image. If they are the start and end points of the original image, the cropping region is determined to be used to display the entire original image, and cropping information is not required. If at least one of the start and end points of the cropping region is inconsistent with the original image, the preset condition is determined not to be met, and cropping information needs to be obtained.

[0063] Optionally, cropping information is obtained based on a scaling algorithm corresponding to the original image, including: obtaining mismatched image processing points in the cropping region; and determining cropping information based on the type of image processing points, the position of the image processing points in the original image, and the scaling algorithm.

[0064] Optionally, different scaling algorithms correspond to different numbers of pixel cropping points, and the cropping direction also varies depending on the type of image processing points.

[0065] Optionally, cropping information is determined based on the type of image processing point, the position of the image processing point in the original image, and the scaling algorithm, including: determining the cropping direction based on the type of image processing point and the position of the image processing point in the original image; and determining the number of pixels to be cropped corresponding to the cropping direction based on the correspondence between the scaling algorithm and the number of pixels to be cropped.

[0066] The cropping direction is the direction in which the image processing point moves away from the cropping area. This direction can be represented forward or backward depending on the position of the moved position relative to the cropping area. Forward means the moved position is on the left side of the cropping area, and backward means the moved position is on the right side of the cropping area. The number of pixels cropped is the number of pixels corresponding to the distance moved from the image processing point along the cropping direction. It is used to indicate the width of the area that is cropped more than the actual cropping area of ​​the original image.

[0067] Optionally, the number of pixels to be cropped for each scaling algorithm can be pre-stored. After obtaining the original image, the number of pixels to be cropped is determined based on the scaling algorithm corresponding to the original image and the pre-stored information.

[0068] In one embodiment, if the starting point of the cropping region is a point in the middle of the original image (the starting point of the cropping region does not match the starting point of the original image), then during cropping, x pixels need to be cropped forward from the starting point of the cropping region. Similarly, if the ending point of the cropping region is a point in the middle of the original image (the ending point of the cropping region does not match the ending point of the original image), then x pixels need to be cropped backward from the ending point of the cropping region. The specific value of x is related to the scaling algorithm used. If the scaling algorithm used is nearest-neighbor interpolation, then only the pixel values ​​of the four points surrounding the interpolation point are needed, and x is 1. If the scaling algorithm is bicubic interpolation, then the pixel values ​​of the 16 points surrounding the interpolation point are needed, and x is 2. And so on, the number of pixels to be cropped can be determined according to the scaling algorithm.

[0069] S103: Based on the cropping information and the image processing points corresponding to the cropping area, crop the original image to generate the target image.

[0070] Optionally, cropping the original image to generate the target image based on the cropping information and the image processing points corresponding to the cropping area includes: determining the coordinates of the cropping position and the cropping width based on the image processing points and the cropping information; and cropping the original image to generate the target image based on the coordinates of the cropping position and the cropping width.

[0071] Optionally, if the image processing point in the cropping region matches the corresponding image processing point in the original image, then the coordinates of that image processing point are determined as the coordinates of the cropping position. If the image processing point in the cropping region does not match the corresponding image processing point in the original image, then the image processing point is moved according to the cropping direction and the number of pixels to be cropped, and the coordinates of the moved image processing point are determined as the coordinates of the cropping position. The coordinates of this cropping position are then determined as the coordinates of the start and end points of the target image, and the cropping width is determined based on the coordinates of the start and end points of the target image.

[0072] In one embodiment, such as Figure 2 As shown, there are four splicing screens. The original image has a length of W and a width of H. The dashed box represents the display area, and the number of pixels to be cropped is x. If the coordinates of the top-left corner of the display area are (0, 0), then for screen 1, the horizontal cropping width is from 0 to W1+x, and the vertical cropping width is from 0 to H1+x; for screen 2, the horizontal cropping width is from W1-x to W1+W2+x, and the vertical cropping width is from 0 to H1+x; for screen 3, the horizontal cropping width is from 0 to W1+x, and the vertical cropping width is from H1-x to H1+H2+x; for screen 4, the horizontal cropping width is from W1-x to W1+W2+x, and the vertical cropping width is from H1-x to H1+H2+x. This can be understood as follows: during cropping, except for the entire edge of the image, x rows and x columns need to be cropped from the remaining areas.

[0073] S104: Display the target image on the target splicing sub-screen.

[0074] Optionally, displaying the target image on the target splicing sub-screen includes: obtaining the scaling ratio corresponding to the target image, and displaying the target image on the target splicing sub-screen according to the scaling ratio; determining the scaling ratio includes: obtaining the display area of ​​the original image in the splicing screen, determining the image size corresponding to the display area as the size of the display image corresponding to the original image, the splicing screen including the target splicing sub-screen; and determining the scaling ratio of the target image according to the size of the display image and the size of the original image.

[0075] Optionally, all sub-screens displaying the original image use the same scaling ratio for image scaling. This scaling ratio can be determined after acquiring the original image and its display area on the splicing screens, based on the size of the display area and the size of the original image. The size can be represented by the display area and the pixel values ​​of the original image in the length and width directions.

[0076] In one embodiment, the original image is determined based on the video signal from the signal source. The width and height (W and H) of the original image are divided by the width and height (w and h) of the display area to obtain the scaling ratios corresponding to the width and height. The scaling ratios are consistent for each splicing sub-screen; the difference lies in the starting and ending points of the scaling. After obtaining the target image, scaling is performed based on the starting and ending points of the target image, and the scaled target image is displayed on the target splicing sub-screen.

[0077] The image display method of this application obtains the cropping region in the original image corresponding to the target splicing sub-screen; if it is determined that the image processing points of the cropping region do not match the image processing points of the original image, then cropping information including the cropping direction and the number of pixel cropping points is obtained according to the scaling algorithm corresponding to the original image; the original image is cropped according to the cropping information and the image processing points corresponding to the cropping region to generate the target image; the target image is displayed on the target splicing sub-screen. In the embodiments of this application, when displaying an image through the target splicing sub-screen, the cropping information of the pixel points is obtained according to the scaling algorithm used, and the cropped image is adjusted based on the cropping information to obtain a target image including all pixel data related to interpolation. The embodiments of this application can ensure that the image at the splicing point in the splicing screen is smooth and continuous, effectively eliminate the splicing seam, and improve the display effect of the image.

[0078] According to one aspect of this application, an image display device is provided, such as... Figure 3As shown, the image display device includes: a cropping region acquisition module, a cropping information acquisition module, a target image acquisition module, and an image display module. The cropping region acquisition module is used to acquire the cropping region in the original image corresponding to the target splicing sub-screen. The cropping information acquisition module is used to acquire cropping information according to a scaling algorithm corresponding to the original image when the cropping region does not meet preset conditions. The preset conditions include that the image processing points corresponding to the cropping region match the image processing points of the original image, and the image processing points include a start point and an end point. The target image acquisition module is used to crop the original image to generate the target image based on the cropping information and the image processing points corresponding to the cropping region. The image display module is used to display the target image on the target splicing sub-screen, and the splicing screen includes the target splicing sub-screen.

[0079] Optionally, displaying the target image on the target splicing sub-screen includes: obtaining the scaling ratio corresponding to the target image, and displaying the target image on the target splicing sub-screen according to the scaling ratio; the determination of the scaling ratio includes: obtaining the display area of ​​the original image in the splicing screen, determining the image size corresponding to the display area as the size of the display image corresponding to the original image, the splicing screen including the target splicing sub-screen; and determining the scaling ratio of the target image according to the size of the display image and the size of the original image.

[0080] Optionally, obtaining the cropping region corresponding to the target splicing sub-screen in the original image includes: obtaining display information of the target splicing sub-screen in the display area, the display information including at least one of the position, size, and ratio of the image displayed by the target splicing sub-screen in the display area; and determining the cropping region corresponding to the target splicing sub-screen based on the display information.

[0081] Optionally, cropping information is obtained based on a scaling algorithm corresponding to the original image, including: obtaining mismatched image processing points in the cropping region; and determining cropping information based on the type of the image processing points, the position of the image processing points in the original image, and the scaling algorithm.

[0082] Optionally, cropping information is determined based on the type of image processing point, the position of the image processing point in the original image, and the scaling algorithm, including: determining the cropping direction based on the type of image processing point and the position of the image processing point in the original image; and determining the number of pixels to be cropped corresponding to the cropping direction based on the correspondence between the scaling algorithm and the number of pixels to be cropped.

[0083] Optionally, cropping the original image to generate a target image based on the cropping information and the image processing points corresponding to the cropping area includes: determining the coordinates of the cropping position and the cropping width based on the image processing points and the cropping information; and cropping the original image to generate the target image based on the coordinates of the cropping position and the cropping width.

[0084] Optionally, the image display device is further configured to determine the original image as the target image when the cropping area meets the preset conditions, and display the target image on the target splicing sub-screen.

[0085] In one alternative embodiment, an electronic device is provided, such as Figure 4 As shown, Figure 4 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of this application.

[0086] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), a FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.

[0087] Bus 4002 may include a pathway for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the figure, but this does not indicate that there is only one bus or one type of bus.

[0088] The memory 4003 may be ROM (Read-Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read-Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium capable of carrying or storing computer programs and capable of being read by a computer, without limitation herein.

[0089] The memory 4003 stores computer programs that execute embodiments of this application, and its execution is controlled by the processor 4001. The processor 4001 executes the computer programs stored in the memory 4003 to implement the steps shown in the foregoing method embodiments.

[0090] Among them, electronic devices can be any electronic product that can interact with an object, such as personal computers, tablets, smartphones, personal digital assistants (PDAs), game consoles, interactive network television (IPTV), smart wearable devices, etc.

[0091] The electronic device may also include network devices and / or object devices. The network devices include, but are not limited to, a single network server, a server group consisting of multiple network servers, or a cloud based on cloud computing consisting of a large number of hosts or network servers.

[0092] The networks in which the electronic devices are located include, but are not limited to, the Internet, wide area networks, metropolitan area networks, local area networks, and virtual private networks (VPNs).

[0093] This application provides a computer storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned method embodiments.

[0094] This application provides a computer program product, which includes a computer program that, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0095] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text.

[0096] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.

[0097] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.

Claims

1. An image display method, characterized in that, The method includes: Obtain the cropped area in the original image corresponding to the target splicing sub-screen. The cropped area is displayed in part or all of the target splicing sub-screen. The original image is obtained by a video signal transmitted from an input source. The video signal includes the display area of ​​the original image on the splicing screen, the size of the image displayed on the splicing screen, the image display mode, and information of the splicing sub-screen used to display the original image. The step of obtaining the cropping area corresponding to the target splicing sub-screen in the original image includes: obtaining the display information of the target splicing sub-screen in the display area, wherein the display information includes at least one of the position, size, ratio, and display range of the image displayed by the target splicing sub-screen in the display area; and determining the cropping area corresponding to the target splicing sub-screen based on the display information. If it is determined that the cropping area does not meet the preset conditions, then cropping information is obtained according to the scaling algorithm corresponding to the original image. The preset conditions include that the image processing point corresponding to the cropping area matches the image processing point of the original image. The image processing point includes a start point and an end point. The cropping information includes the cropping direction and the number of pixels to be cropped corresponding to the cropping direction. The cropping direction indicates the direction away from the cropping area along the image processing point. The number of pixels to be cropped indicates the number of pixels that move from the image processing point along the cropping direction. Different scaling algorithms correspond to different numbers of pixels to be cropped, and the cropping direction is also different for different types of image processing points. The original image is cropped according to the cropping information and the image processing points corresponding to the cropping area to generate a target image, wherein the pixel area of ​​the target image is greater than the pixel area of ​​the cropping area; The target image is displayed on the target splicing sub-screen; The step of obtaining cropping information based on the scaling algorithm corresponding to the original image includes: Obtain the mismatched image processing points in the cropped area; The cropping information is determined based on the type of the image processing point, the position of the image processing point in the original image, and the scaling algorithm. Displaying the target image on the target splicing sub-screen includes: Obtain the scaling ratio corresponding to the target image, and display the target image on the target splicing sub-screen according to the scaling ratio; Determining the scaling ratio includes: The display area of ​​the original image in the splicing screen is obtained, and the image size corresponding to the display area is determined as the size of the display image corresponding to the original image. The splicing screen includes a target splicing sub-screen. The target image scaling ratio is determined based on the size of the displayed image and the size of the original image, and all spliced ​​sub-screens displaying the original image use the same scaling ratio for image scaling.

2. The image display method according to claim 1, characterized in that, The step of obtaining the cropping region in the original image corresponding to the target stitched sub-screen includes: Obtain the display information of the target splicing sub-screen in the display area, the display information including at least one of the position, size, and scale of the image displayed by the target splicing sub-screen in the display area; The cropping area corresponding to the target splicing sub-screen is determined based on the display information.

3. The image display method according to claim 1, characterized in that, The step of determining cropping information based on the type of the image processing point, the position of the image processing point in the original image, and the scaling algorithm includes: The cropping direction is determined based on the type of the image processing point and the position of the image processing point in the original image. The number of pixels to be clipped corresponding to the clipping direction is determined based on the correspondence between the scaling algorithm and the number of pixels to be clipped.

4. The image display method according to claim 1, characterized in that, The step of cropping the original image and generating the target image based on the cropping information and the image processing points corresponding to the cropping region includes: The coordinates of the cropping position and the cropping width are determined based on the image processing points and the cropping information; The target image is generated by cropping the original image based on the coordinates of the cropping position and the cropping width.

5. The image display method according to claim 1, characterized in that, The method further includes: If the cropping area is determined to meet the preset conditions, the original image is determined to be the target image, and the target image is displayed on the target splicing sub-screen.

6. An image display device, characterized in that, The image display device includes: The cropping region acquisition module is used to acquire the cropping region in the original image that corresponds to the target stitching sub-screen; The step of obtaining the cropping area corresponding to the target splicing sub-screen in the original image includes: obtaining the display information of the target splicing sub-screen in the display area, wherein the display information includes at least one of the position, size, ratio, and display range of the image displayed by the target splicing sub-screen in the display area; and determining the cropping area corresponding to the target splicing sub-screen based on the display information. The cropping information acquisition module is used to acquire cropping information according to the scaling algorithm corresponding to the original image when it is determined that the cropping area does not meet the preset conditions. The preset conditions include that the image processing point corresponding to the cropping area matches the image processing point of the original image. The image processing point includes a start point and an end point. The cropping information includes a cropping direction and the number of pixels to be cropped corresponding to the cropping direction. The cropping direction indicates the direction away from the cropping area along the image processing point. The number of pixels to be cropped indicates the number of pixels that move from the image processing point along the cropping direction. Different scaling algorithms correspond to different numbers of pixels to be cropped, and different types of image processing points correspond to different cropping directions. The step of obtaining cropping information based on the scaling algorithm corresponding to the original image includes: Obtain the mismatched image processing points in the cropped area; The cropping information is determined based on the type of the image processing point, the position of the image processing point in the original image, and the scaling algorithm. Displaying the target image on the target splicing sub-screen includes: Obtain the scaling ratio corresponding to the target image, and display the target image on the target splicing sub-screen according to the scaling ratio; Determining the scaling ratio includes: The display area of ​​the original image in the splicing screen is obtained, and the image size corresponding to the display area is determined as the size of the display image corresponding to the original image. The splicing screen includes a target splicing sub-screen. The target image scaling ratio is determined based on the size of the displayed image and the size of the original image, and all spliced ​​sub-screens displaying the original image use the same scaling ratio for image scaling. The target image acquisition module is used to crop the original image according to the cropping information and the image processing points corresponding to the cropping area to generate a target image, wherein the pixel area of ​​the target image is greater than the pixel area of ​​the cropping area; An image display module is used to display the target image on the target splicing sub-screen, the splicing screen including the target splicing sub-screen.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-5.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Image processing method and device and laser television

    CN112118428A

  • Image processing method and device, electronic equipment and storage medium

    CN114820295A