CN116320651A - Image display method and device and electronic equipment - Google Patents

Image display method and device and electronic equipment Download PDF

Info

Publication number
CN116320651A
CN116320651A CN202211097159.0A CN202211097159A CN116320651A CN 116320651 A CN116320651 A CN 116320651A CN 202211097159 A CN202211097159 A CN 202211097159A CN 116320651 A CN116320651 A CN 116320651A
Authority
CN
China
Prior art keywords
image
acquired image
original acquired
original
strategy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211097159.0A
Other languages
Chinese (zh)
Inventor
魏新勇
崔玉岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202211097159.0A priority Critical patent/CN116320651A/en
Publication of CN116320651A publication Critical patent/CN116320651A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/4223Cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the disclosure discloses an image display method, an image display device and electronic equipment, wherein the image display method comprises the following steps: acquiring an original acquisition image; determining a clipping strategy of the original acquired image; cutting the original acquired image according to the cutting strategy; the cut original acquired image is matched with the image display requirement of the application program; and displaying the clipped original acquired image in the application program. The image display method, the image display device and the electronic equipment can solve the problem of abnormal image display in the application program of the intelligent equipment, thereby improving the watching experience of users.

Description

Image display method and device and electronic equipment
Technical Field
The disclosure relates to the technical field of image processing, and in particular relates to an image display method, an image display device and electronic equipment.
Background
With the development of intelligent devices, the intelligent devices basically support external cameras and support application programs, and the application programs basically need to use the cameras. The display mode of the application program in the intelligent device comprises the mode that the application program is centrally displayed in the center of a display screen of the intelligent device, and the left and right are filled with black.
In the related art, in this case, if the external camera is turned on, there are two cases in which most of the smart devices do not support the image display, and the other is that the display image does not match the application program although the image display is supported, for example, the display image is inverted or flattened.
Disclosure of Invention
This disclosure is provided in part to introduce concepts in a simplified form that are further described below in the detailed description. This disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The embodiment of the disclosure provides an image display method, an image display device and electronic equipment, which can solve the problem of abnormal image display in an application program of intelligent equipment, thereby improving the viewing experience of a user.
In a first aspect, an embodiment of the present disclosure provides an image display method, including: acquiring an original acquisition image; determining a clipping strategy of the original acquired image; cutting the original acquired image according to the cutting strategy; the cut original acquired image is matched with the image display requirement of the application program; and displaying the clipped original acquired image in the application program.
In a possible implementation manner, the determining a cropping strategy of the original acquired image includes: and determining a preset clipping strategy as the clipping strategy of the original acquired image.
In one possible embodiment, the image display method further includes: and determining the preset cutting strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program.
In a possible implementation manner, the image display requirement of the application program includes a vertical screen display, and the determining the preset clipping strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program includes: if the acquisition mode is a centered acquisition mode, determining that the preset cutting strategy is centered cutting; if the acquisition mode is a left acquisition mode, determining that the preset cutting strategy is left cutting; if the acquisition mode is a right acquisition mode, determining that the preset cutting strategy is right cutting; under the centered acquisition mode, the position of a shooting object in the original acquired image is the middle; in the left side acquisition mode, the position of the shooting object in the original acquired image is left; and in the right acquisition mode, the position of the shooting object in the original acquired image is right.
In a possible implementation manner, the determining a cropping strategy of the original acquired image includes: detecting the position of a shooting object in the original acquired image; and determining a clipping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program.
In one possible implementation, the image display requirement of the application program includes a vertical screen display, and the determining the cropping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program includes: if the position of the shooting object in the original acquired image is the middle position, the cutting strategy of the original acquired image is centered cutting; if the position of the shooting object in the original acquired image is a left side position, the cutting strategy of the original acquired image is left side cutting; and if the position of the shooting object in the original acquired image is a right side position, the cutting strategy of the original acquired image is right side cutting.
In one possible implementation, the image display requirements include an image size; the displaying the clipped original acquired image in the application program comprises the following steps: and displaying the clipped original acquired image in the application program based on the image size.
In a second aspect, an embodiment of the present disclosure provides an image display apparatus including: the acquisition unit is used for acquiring an original acquired image; the determining unit is used for determining a clipping strategy of the original acquired image; the clipping unit is used for clipping the original acquired image according to the clipping strategy; the cut original acquired image is matched with the image display requirement of the application program; and the display unit is used for displaying the clipped original acquired image in the application program.
In a possible embodiment, the determining unit is specifically configured to determine a preset cropping strategy as the cropping strategy of the original acquired image.
In a possible implementation manner, the determining unit is further configured to determine the preset cropping strategy according to a capturing manner of the original captured image and an image display requirement of the application program.
In a possible embodiment, the determining unit is specifically configured to: if the acquisition mode is a centered acquisition mode, determining that the preset cutting strategy is centered cutting; if the acquisition mode is a left acquisition mode, determining that the preset cutting strategy is left cutting; if the acquisition mode is a right acquisition mode, determining that the preset cutting strategy is right cutting; under the centered acquisition mode, the position of a shooting object in the original acquired image is the middle; in the left side acquisition mode, the position of the shooting object in the original acquired image is left; and in the right acquisition mode, the position of the shooting object in the original acquired image is right.
In a possible embodiment, the determining unit is specifically further configured to: detecting the position of a shooting object in the original acquired image; and determining a clipping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program.
In a possible embodiment, the determining unit is specifically configured to: if the position of the shooting object in the original acquired image is the middle position, the cutting strategy of the original acquired image is centered cutting; if the position of the shooting object in the original acquired image is a left side position, the cutting strategy of the original acquired image is left side cutting; and if the position of the shooting object in the original acquired image is a right side position, the cutting strategy of the original acquired image is right side cutting.
In a possible embodiment, the display unit is specifically configured to: and displaying the clipped original acquired image in the application program based on the image size.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: one or more processors; and a storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the image display method as described in the first aspect.
In a fourth aspect, embodiments of the present disclosure provide a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the image display method according to the first aspect.
According to the image display method, the image display device and the electronic equipment, the original collected image is cut based on the cutting strategy by determining the cutting strategy of the original collected image, so that the cut original collected image is matched with the image display requirement of the application program. For example, the image display requirement of the application program is vertical screen display, and if the original image is directly displayed, a complete image may not be displayed, so that the content to be displayed is not displayed. At this time, the corresponding clipping policy may be to clip the required image portion separately, or clip the redundant portion, so that the clipped image may be displayed normally under the vertical screen display effect, and the user may view the image portion desired to be viewed. Therefore, the cut original acquired image can be normally displayed in the application program, the problem that the image is abnormally displayed in the application program is solved, and the viewing experience of a user is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of one embodiment of an image display method according to the present disclosure;
FIG. 2 is an exemplary diagram of one embodiment of an application display interface according to the present disclosure;
FIG. 3 is an exemplary diagram of one embodiment of an original acquired image according to the present disclosure;
FIG. 4 is an exemplary diagram of yet another embodiment of an original acquired image according to the present disclosure;
FIG. 5 is an exemplary diagram of yet another embodiment of an original acquired image according to the present disclosure;
fig. 6 is a schematic structural view of an embodiment of an image display device according to the present disclosure;
FIG. 7 is an exemplary system architecture to which an image display method of one embodiment of the present disclosure may be applied;
fig. 8 is a schematic diagram of a basic structure of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The technical scheme in the disclosure can be applied to terminal equipment, and the terminal equipment can be artificial intelligent terminal equipment, namely intelligent terminal equipment. The terminal device is, for example: smart televisions, smart phones, computers, etc. When applied to intelligent television, the effect is more remarkable.
In some embodiments, the terminal device is equipped with a camera, for example: smart phones and smart computers. In other embodiments, the terminal device itself is not provided with a camera, but the function of the camera can be realized by connecting the camera externally. External cameras such as: USB (Universal Serial Bus ) camera.
The terminal equipment is also provided with a plurality of application programs, and the application programs may have the use requirement of a camera in the running process.
Whether the camera is installed by itself or externally connected, the collected original image is not necessarily matched with the image display requirements of each application program. Therefore, for an application program using a camera, if the original image is not adapted to the own image display requirement, an image display abnormality may be caused.
For example, if the image display requirement of the application program is vertical screen display, it is understood that the application program is centrally displayed on the display screen of the terminal device, and two sides are in a black screen state. Then the image of the application is correspondingly centrally displayed on the display screen with the two sides in the black state. In this case, the width of the image is limited, and the portion exceeding the width in the original image cannot be displayed normally. If the position of the content that the user wants to view in the original image is just the portion, it may result in the user not being able to see the portion of the content.
Based on the above, the present disclosure proposes a technical solution for displaying an image, which cuts an original image to be displayed in an application program, so that the cut image can be normally displayed in the application program and meets the viewing requirement of a user, thereby improving the viewing experience of the user.
Referring to fig. 1, a flow of one embodiment of an image display method according to the present disclosure is shown. The image display method can be applied to a terminal device. The image display method as shown in fig. 1 includes the steps of:
step 101, acquiring an original acquired image.
In some embodiments, the terminal device acquires an image through a camera, and the image acquired by the camera is an original acquired image.
In some embodiments, the camera of the terminal device acquires an image in real time, and the original acquired image is an image acquired by the camera in real time.
In other embodiments, the image captured by the camera is stored as an original captured image, which is the stored image. For example, the collected images are stored in a buffer queue, and when the images need to be used, the images are acquired from the buffer queue.
In the present disclosure, step 101 may be performed when an application program has an image display requirement. Thus, as an alternative embodiment, the original captured image is captured when an image capture request or image display request is received from an application, or other request that characterizes the application's need to use the image.
Step 102, determining a clipping strategy of the original acquired image.
In the present disclosure, the image display requirements of different applications may be different. And the image display requirement of the application program depends on the display mode of the application program on the display screen of the terminal device.
For example, the application program is displayed in a full screen on the display screen of the terminal device, and it can be understood that the screen of the application program occupies the whole display screen, so that the original acquired image can be displayed in a full screen on the display screen, and at this time, the original acquired image does not need to be cut.
For another example, the application program is displayed on the display screen of the terminal device in a vertical screen manner, and the screen of the application program can only occupy a part of the display screen. For easy understanding, please refer to fig. 2, which is an exemplary diagram of an application program for displaying on a display screen in a vertical screen manner, it can be seen that the screen of the application program occupies only the middle portion of the entire display screen, and the two side portions are black screen portions.
As seen in fig. 2, if the original acquired image is originally adapted to the whole display screen, if the original acquired image is directly displayed in the application program, the image contents of the black screen portions on both sides cannot be displayed.
Therefore, in order to ensure the display effect of the image in the application program, a clipping strategy is configured for the application program. In the present disclosure, the cropping strategy may depend on two aspects, namely, the image display requirement of the application program and the acquisition mode of the original image.
In some embodiments, if the original image is acquired by a fixed image acquisition method, for example: the camera shoots at a fixed position, and the position of the shooting object is also fixed. In this embodiment, since the photographing position of the camera is fixed, the position of the photographing object is also fixed, and the resulting image situation can also be predicted, that is, the position of the photographing object in the image is known. Therefore, the cutting strategy of the image can be preset according to the shooting position of the camera and the position of the shooting object and the image display requirement of the application program.
In other embodiments, if the original image is not acquired by a fixed image acquisition method, for example: the camera adopts a dynamic shooting strategy, and a shooting object only needs to shoot at a position which can be shot by the camera. In this embodiment, since the image capturing mode is dynamic, the subject is also dynamic, and the resulting image situation cannot be predicted, i.e., the position of the subject in the image is not determined. Thus, the clipping strategy of the image needs to be determined according to the actual situation of the image and the image display requirement of the application program.
In the above embodiment, the subject may be a person, a static object, or a subject required by other application programs, which is not limited herein.
Thus, as a first alternative embodiment, step 102 comprises: and determining a preset clipping strategy as the clipping strategy of the original acquired image.
In this embodiment, the clipping policy of the original acquired image is preset according to the shooting position where the camera is located and the position of the shooting object in combination with the image display requirement of the application program, so that the preset clipping policy can be directly determined as the clipping policy of the original image. Different application programs may correspond to different preset clipping strategies.
As an optional implementation manner, the determining process of the preset clipping strategy includes: and determining a preset clipping strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program.
In some embodiments, the acquisition modes of the original image may include three modes: a centered acquisition mode, a left acquisition mode and a right acquisition mode.
The centered acquisition mode can be understood as that the camera acquires an image of a shooting object centered, for example: the shooting object stands at a position opposite to the camera to shoot. The left side acquisition mode can be understood as that the camera is located at the left side to acquire an image of a shooting object, for example: the subject is not facing the camera but is left of the center shooting position of the camera. The right side acquisition mode can be understood as that the camera is right to acquire an image of a shooting object, for example: the subject is not facing the camera but is right of the center shooting position of the camera.
Thus, please refer to fig. 3-5 in combination, which are exemplary diagrams of the original acquired image obtained by adopting three different image acquisition modes for the same shooting object. These three raw captured images are adapted to the landscape mode of the display screen but are not adapted to the portrait display of the application.
In fig. 3, in the centered acquisition mode, the position of the subject in the original acquired image is intermediate; in fig. 4, in the left-side acquisition mode, the position of the photographic subject in the original acquired image is left; in fig. 5, in the right-side acquisition mode, the position of the subject in the original acquired image is right.
Referring to fig. 2 in combination, if the original acquired images illustrated in fig. 3-5 need to be displayed better in the application, that is, the photographed object needs to be displayed completely in the application. Then the image illustrated in fig. 3 needs to be centered and the image illustrated in fig. 4 needs to be left-hand and the image illustrated in fig. 5 needs to be right-hand.
Thus, as an alternative embodiment, determining a preset cropping strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program includes: if the acquisition mode is a centered acquisition mode, determining a preset cutting strategy as centered cutting; if the acquisition mode is a left acquisition mode, determining a preset cutting strategy as left cutting; if the acquisition mode is a right acquisition mode, determining a preset cutting strategy as right cutting.
The centered cropping is understood to mean that both sides of the original acquisition image are cropped, leaving only the middle part containing the object. Left cropping can be understood as cropping out both the middle and right portions of the original acquired image, leaving only the left portion containing the subject. Right cropping is understood to be cropping out both the middle and left portions of the original acquired image, leaving only the right portion containing the subject.
As a second alternative embodiment, step 102 includes: detecting the position of a shooting object in an original acquired image; and determining a clipping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program.
In this embodiment, since a dynamic image acquisition strategy is adopted at the time of image acquisition, the position of the photographed object in the original acquired image is not known, it is necessary to detect it, and then a clipping strategy is determined based on the detection result.
In some embodiments, detecting the position of the photographed object in the original image may be accomplished by some object detection techniques, such as: face detection techniques, or other object detection techniques, such as: detection of a particular object in an image is achieved by a neural network model, which is not described in detail herein.
As an optional implementation manner, if the position of the shooting object in the original acquired image is an intermediate position, the clipping strategy of the original acquired image is centered clipping; if the position of the shooting object in the original acquired image is the left position, the cutting strategy of the original acquired image is left cutting; if the position of the shooting object in the original acquired image is the right position, the clipping strategy of the original acquired image is right clipping.
The three clipping strategies may be referred to the description of the first embodiment, and the description thereof will not be repeated here.
In the two embodiments, the related clipping strategies include three types, and the corresponding positions of the shooting objects in the original acquired images are also three types, and the image display requirement of the application program is vertical screen display.
However, in practical application, based on different positions of the shooting object in the original acquired image, in combination with other image display requirements of the application program, more clipping strategies may also be adopted, and the corresponding clipping strategy determining manner may refer to the above two embodiments, which does not constitute limitation of the embodiments of the disclosure.
And step 103, clipping the original acquired image according to a clipping strategy. The original acquired image after clipping is matched with the image display requirement of the application program.
In some embodiments, the size of the original acquired image is known, for example: the original acquisition image is a 1920×1080 landscape image. Based on the cropping strategy, the size of the cropped original acquired image can be determined, for example: the original acquired image after clipping is a 608×1080 vertical screen image.
Therefore, based on the determined size of the cut original acquired image, cutting can be performed on the basis of the original acquired image, and an image meeting the requirements is obtained.
For example, under the centered cropping strategy, a 608×1080 vertical screen image is cropped at a middle position of the original acquired image. Under the left clipping strategy, a 608×1080 vertical screen image is clipped at the left position of the original acquired image. Under the right clipping strategy, a 608×1080 vertical screen image is clipped at the right position of the original acquired image.
And 104, displaying the clipped original acquired image in the application program.
It will be appreciated that step 104 is actually displaying the cropped original image at the display location of the application on the display screen.
In some embodiments, the image display requirements may include image size in addition to the landscape display or portrait display described above, and the like. That is, although the cut original captured image is adapted to the display interface of the application program, it is not necessarily adapted to the display size of the display screen, and at this time, the adapted display may be realized by the image size.
Thus as an alternative embodiment, step 104 comprises: based on the image size, the cropped original acquired image is displayed in the application.
In some embodiments, the original acquired image after clipping is reduced or enlarged based on the image size, so that the image after the scaling process can achieve a better display effect.
In some embodiments, in addition to the cropping process, the image scaling process, and the like described above, the processing strategy of the image further includes: image format processing, image resolution processing, and the like are not limited herein.
According to the image display scheme provided by the embodiment of the disclosure, the original collected image is cut based on the cutting strategy by determining the cutting strategy of the original collected image, so that the cut original collected image is matched with the image display requirement of the application program. For example, the image display requirement of the application program is vertical screen display, and if the original image is directly displayed, a complete image may not be displayed, so that the content to be displayed is not displayed. At this time, the corresponding clipping policy may be to clip the required image portion separately, or clip the redundant portion, so that the clipped image may be displayed normally under the vertical screen display effect, and the user may view the image portion desired to be viewed. Therefore, the cut original acquired image can be normally displayed in the application program, the problem that the image is abnormally displayed in the application program is solved, and the viewing experience of a user is improved.
With further reference to fig. 6, as an implementation of the method shown in the foregoing figures, the present disclosure provides an embodiment of an image display apparatus, which corresponds to the embodiment of the image display method shown in fig. 1, and which is particularly applicable to various electronic devices.
As shown in fig. 6, the image display device of the present embodiment includes: an acquisition unit 601, configured to acquire an original acquired image; a determining unit 602, configured to determine a cropping strategy of the original acquired image; a cropping unit 603, configured to crop the original acquired image according to the cropping policy; the cut original acquired image is matched with the image display requirement of the application program; and the display unit 604 is used for displaying the clipped original acquired image in the application program.
In some embodiments, the determining unit 602 is specifically configured to determine a preset cropping policy as the cropping policy of the original acquired image.
In some embodiments, the determining unit 602 is further configured to determine the preset cropping policy according to a capturing manner of the original captured image and an image display requirement of the application program.
In some embodiments, the determining unit 602 is specifically configured to: if the acquisition mode is a centered acquisition mode, determining that the preset cutting strategy is centered cutting; if the acquisition mode is a left acquisition mode, determining that the preset cutting strategy is left cutting; if the acquisition mode is a right acquisition mode, determining that the preset cutting strategy is right cutting; under the centered acquisition mode, the position of a shooting object in the original acquired image is the middle; in the left side acquisition mode, the position of the shooting object in the original acquired image is left; and in the right acquisition mode, the position of the shooting object in the original acquired image is right.
In some embodiments, the determining unit 602 is specifically further configured to: detecting the position of a shooting object in the original acquired image; and determining a clipping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program.
In some embodiments, the determining unit 602 is specifically configured to: if the position of the shooting object in the original acquired image is the middle position, the cutting strategy of the original acquired image is centered cutting; if the position of the shooting object in the original acquired image is a left side position, the cutting strategy of the original acquired image is left side cutting; and if the position of the shooting object in the original acquired image is a right side position, the cutting strategy of the original acquired image is right side cutting.
In some embodiments, the display unit 604 is specifically configured to: and displaying the clipped original acquired image in the application program based on the image size.
Referring to fig. 7, fig. 7 illustrates an exemplary system architecture to which an image display method of an embodiment of the present disclosure may be applied.
As shown in fig. 7, the system architecture may include terminal devices 701, 702, 703, a network 704, and a server 707. Network 704 may be the medium used to provide communications links between terminal devices 701, 702, 703 and server 707. The network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
Terminal devices 701, 702, 703 may interact with a server 707 through a network 704 to receive or send messages and the like. Various client applications, such as a web browser application, a search class application, a news information class application, may be installed on the terminal devices 701, 702, 703. The client applications in the terminal devices 701, 702, 703 may receive the instruction of the user and perform the corresponding functions according to the instruction of the user, for example, adding the corresponding information to the information according to the instruction of the user.
The terminal devices 701, 702, 703 may be hardware or software. When the terminal devices 701, 702, 703 are hardware, they may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablet computers, electronic book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic video expert compression standard audio plane 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic video expert compression standard audio plane 4) players, laptop and desktop computers, and the like. When the terminal devices 701, 702, 703 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services) or as a single software or software module. The present invention is not particularly limited herein.
The server 707 may be a server that provides various services, for example, receives information acquisition requests sent by the terminal devices 701, 702, 703, and acquires presentation information corresponding to the information acquisition requests in various ways according to the information acquisition requests. And related data showing the information is transmitted to the terminal devices 701, 702, 703.
It should be noted that the image display method provided by the embodiment of the present disclosure may be performed by a terminal device, and accordingly, the image display apparatus may be provided in the terminal devices 701, 702, 703. Further, the image display method provided by the embodiment of the present disclosure may also be performed by the server 707, and accordingly, the image display apparatus may be provided in the server 707.
It should be understood that the number of terminal devices, networks and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to fig. 8, a schematic diagram of a configuration of an electronic device (e.g., a terminal device or server in fig. 7) suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, the electronic device may include a processing means (e.g., a central processor, a graphics processor, etc.) 801 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 shows an electronic device having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 801.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer-readable medium carries at least one program that, when executed by the electronic device, causes the electronic device to:
acquiring an original acquisition image; determining a clipping strategy of the original acquired image; cutting the original acquired image according to the cutting strategy; the cut original acquired image is matched with the image display requirement of the application program; and displaying the clipped original acquired image in the application program.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit is not limited to the unit itself in some cases, and the acquisition unit 601 may be described as "a unit that acquires an original acquired image", for example.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (10)

1. An image display method, comprising:
acquiring an original acquisition image;
determining a clipping strategy of the original acquired image;
cutting the original acquired image according to the cutting strategy; the cut original acquired image is matched with the image display requirement of the application program;
and displaying the clipped original acquired image in the application program.
2. The image display method according to claim 1, wherein the determining a cropping strategy of the original acquired image includes:
and determining a preset clipping strategy as the clipping strategy of the original acquired image.
3. The image display method according to claim 2, characterized in that the image display method further comprises:
and determining the preset cutting strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program.
4. The image display method according to claim 3, wherein the image display requirement of the application program includes a vertical screen display, and the determining the preset clipping strategy according to the acquisition mode of the original acquired image and the image display requirement of the application program includes:
if the acquisition mode is a centered acquisition mode, determining that the preset cutting strategy is centered cutting;
if the acquisition mode is a left acquisition mode, determining that the preset cutting strategy is left cutting;
if the acquisition mode is a right acquisition mode, determining that the preset cutting strategy is right cutting;
under the centered acquisition mode, the position of a shooting object in the original acquired image is the middle; in the left side acquisition mode, the position of the shooting object in the original acquired image is left; and in the right acquisition mode, the position of the shooting object in the original acquired image is right.
5. The image display method according to claim 1, wherein the determining a cropping strategy of the original acquired image includes:
detecting the position of a shooting object in the original acquired image;
And determining a clipping strategy of the original acquired image according to the position of the shooting object in the original acquired image and the image display requirement of the application program.
6. The image display method according to claim 5, wherein the image display requirement of the application program includes a vertical screen display, and the determining the cropping strategy of the original captured image according to the position of the photographic subject in the original captured image and the image display requirement of the application program includes:
if the position of the shooting object in the original acquired image is the middle position, the cutting strategy of the original acquired image is centered cutting;
if the position of the shooting object in the original acquired image is a left side position, the cutting strategy of the original acquired image is left side cutting;
and if the position of the shooting object in the original acquired image is a right side position, the cutting strategy of the original acquired image is right side cutting.
7. The image display method according to claim 1, wherein the image display requirement includes an image size; the displaying the clipped original acquired image in the application program comprises the following steps:
And displaying the clipped original acquired image in the application program based on the image size.
8. An image display device, comprising:
the acquisition unit is used for acquiring an original acquired image;
the determining unit is used for determining a clipping strategy of the original acquired image;
the clipping unit is used for clipping the original acquired image according to the clipping strategy; the cut original acquired image is matched with the image display requirement of the application program;
and the display unit is used for displaying the clipped original acquired image in the application program.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-7.
CN202211097159.0A 2022-09-08 2022-09-08 Image display method and device and electronic equipment Pending CN116320651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211097159.0A CN116320651A (en) 2022-09-08 2022-09-08 Image display method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211097159.0A CN116320651A (en) 2022-09-08 2022-09-08 Image display method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116320651A true CN116320651A (en) 2023-06-23

Family

ID=86776738

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211097159.0A Pending CN116320651A (en) 2022-09-08 2022-09-08 Image display method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116320651A (en)

Similar Documents

Publication Publication Date Title
CN111399956B (en) Content display method and device applied to display equipment and electronic equipment
CN112256223B (en) Method and device for adjusting display fluency and electronic equipment
CN111258736B (en) Information processing method and device and electronic equipment
CN110728622B (en) Fisheye image processing method, device, electronic equipment and computer readable medium
CN111538448B (en) Image display method and device, terminal and storage medium
CN110852946A (en) Picture display method and device and electronic equipment
CN114938427B (en) Shooting method, device, equipment, storage medium and program product of media content
CN114416261B (en) Information display method, device, equipment and medium
CN112053286B (en) Image processing method, device, electronic equipment and readable medium
CN113721807B (en) Information display method and device, electronic equipment and storage medium
CN115379105B (en) Video shooting method, device, electronic equipment and storage medium
CN111259291B (en) View display method and device and electronic equipment
CN110809166B (en) Video data processing method and device and electronic equipment
CN112351221B (en) Image special effect processing method, device, electronic equipment and computer readable storage medium
US11871137B2 (en) Method and apparatus for converting picture into video, and device and storage medium
CN114125485B (en) Image processing method, device, equipment and medium
CN116320651A (en) Image display method and device and electronic equipment
CN113592734B (en) Image processing method and device and electronic equipment
CN112312224A (en) Information display method and device and electronic equipment
CN110825993A (en) Picture display method and device and electronic equipment
CN113014980B (en) Remote control method and device and electronic equipment
CN113283436B (en) Picture processing method and device and electronic equipment
CN112766285B (en) Image sample generation method and device and electronic equipment
EP4113446A1 (en) Sticker processing method and apparatus
CN112712570B (en) Image processing method, device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination