CN114063864A - Image display method, image display device, electronic equipment and computer readable storage medium - Google Patents

Image display method, image display device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114063864A
CN114063864A CN202111432269.3A CN202111432269A CN114063864A CN 114063864 A CN114063864 A CN 114063864A CN 202111432269 A CN202111432269 A CN 202111432269A CN 114063864 A CN114063864 A CN 114063864A
Authority
CN
China
Prior art keywords
screen
picture
information
target object
processed
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
CN202111432269.3A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN202111432269.3A priority Critical patent/CN114063864A/en
Publication of CN114063864A publication Critical patent/CN114063864A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1423Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display

Abstract

The embodiment of the application discloses an image display method, an image display device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: performing target object recognition on a preview picture to be processed displayed in a first screen to obtain a target object recognition result; when the target object recognition result meets a preset condition, determining the position information of the target object in the preview picture to be processed; according to the position information and the preset display condition, cutting the preview picture to be processed to obtain a cut picture; and displaying the cut picture on a second screen. The method comprises the steps of identifying a target object of a preview picture to be processed in a first screen, determining position information of the target object when a target object identification result meets a preset condition, cutting the preview picture to be processed according to the position information and a display condition to obtain a cut picture, and displaying the cut picture on a second screen to control the display content on the second screen.

Description

Image display method, image display device, electronic equipment and computer readable storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an image display method, an image display device, electronic equipment and a computer-readable storage medium.
Background
With the rapid development of computer technology, a scheme of dual-screen display appears on a mobile terminal, that is, a first screen on the front side and a second screen on the back side, and a user can observe image content of the first screen through the second screen, for example, in a photographing scene, the user can see imaging information of the first screen through the second screen, so as to help improve the photographing quality of an image.
However, because the second screen is smaller than the first screen in general, the second screen often can only display part of the information in the first screen to ensure the display definition, and due to the movement of a target object such as a portrait, the second screen is prone to have inaccurate display content and is not in line with the user's expectation.
Disclosure of Invention
The embodiment of the application provides an image display method, an image display device, an electronic device and a computer readable storage medium, which can realize control of second screen display content, so that the second screen display content meets the user expectation.
In a first aspect, an embodiment of the present application provides an image display method, including:
performing target object recognition on a preview picture to be processed displayed in a first screen to obtain a target object recognition result;
when the target object recognition result meets a preset condition, determining the position information of the target object in the preview picture to be processed;
according to the position information and preset display conditions, cutting the preview picture to be processed to obtain a cut picture;
and displaying the cut picture on a second screen.
In a second aspect, an embodiment of the present application further provides an image display apparatus, including:
the identification module is used for identifying a target object of the preview picture to be processed displayed in the first screen to obtain a target object identification result;
the determining module is used for determining the position information of the target object in the preview picture to be processed when the target object identification result meets a preset condition;
the cutting module is used for cutting the preview picture to be processed according to the position information and preset display conditions to obtain a cut picture;
and the display module is used for displaying the cut picture on a second screen.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps in the image display method when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps in the image display method described above.
According to the method and the device for controlling the display content on the second screen, the target object recognition is carried out on the to-be-processed preview picture in the first screen, when the target object recognition result meets the preset condition, the position information of the target object is determined, the to-be-processed preview picture is cut according to the position information and the display condition, the cut picture is obtained, and the cut picture is displayed on the second screen, so that the control on the display content on the second screen is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene schematic diagram of an image display method provided in an embodiment of the present application;
FIG. 2 is a schematic flowchart of an image display method according to an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of an image display method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an image display device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides an image display method, an image display device, electronic equipment and a computer readable storage medium. Specifically, the embodiment of the application provides an image display device suitable for an electronic device, wherein the electronic device can be a terminal device or a server. The terminal device may be a terminal with a dual-screen display device, such as a dual-screen mobile phone or a dual-screen camera. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the server may be directly or indirectly connected through wired or wireless communication.
In the embodiment of the present application, the terminal device may execute the image display method alone, or the server may execute the image display method alone, or the terminal device and the server execute the image display method together, please refer to fig. 1, taking the example that the terminal device executes the image display method alone, the specific execution process is as follows:
the terminal device 10 receives an image loading instruction, loads a to-be-processed preview picture into the first screen 11, then performs target object recognition on the to-be-processed preview picture to obtain a target object recognition result, wherein when the target object recognition result meets a preset condition, position information of a target object in the to-be-processed preview picture is determined, the to-be-processed preview picture is cut according to the position information and a preset display condition to obtain a cut picture, and then the cut picture is loaded and displayed on the second screen 12.
In the embodiment of the application, the first screen and the second screen are a main screen and an auxiliary screen of a terminal device, for example, a double-screen mobile phone or a double-screen camera device in the market, and through the design of the main screen and the auxiliary screen, users located at front and back positions of the terminal device can see visual images with the same theme through the main screen and the auxiliary screen respectively, for example, when the double-screen mobile phone is used for taking a picture, a photographed target can view an imaging effect according to the auxiliary screen, and then can adjust a photographing action according to display contents of the auxiliary screen.
Because the position of the secondary screen is opposite to that of the primary screen, and the settable space of the secondary screen is limited, the window of the secondary screen is generally smaller than that of the primary screen, and based on this, the content displayed on the secondary screen often cannot meet the requirements of users, for example, the imaging may be smaller, or the displayed image is an edge area (i.e., a non-target area) of the image of the primary screen, so the use experience of the secondary screen is poorer.
According to the method and the device for controlling the display content on the second screen, the target object recognition is carried out on the to-be-processed preview picture in the first screen, when the target object recognition result meets the preset condition, the position information of the target object is determined, the to-be-processed preview picture is cut according to the position information and the display condition, the cut picture is obtained, and the cut picture is displayed on the second screen, so that the control on the display content on the second screen is achieved.
The following are detailed below. It should be noted that the description sequence of the following embodiments is not intended to limit the priority sequence of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flow chart of an image display method according to an embodiment of the present disclosure. The specific flow of the image display method can be as follows:
101. and carrying out target object recognition on the preview picture to be processed displayed in the first screen to obtain a target object recognition result.
The preview picture to be processed is a preview content picture formed by scene content in the first screen, for example, a content picture corresponding to a visual scene before a camera lens generates a picture in a fixed focus.
Whether a target object to be displayed is contained in the preview picture to be processed can be determined by identifying the target object of the preview picture to be processed in the first screen, wherein in the embodiment of the application, the target object includes a target character, a target object and the like, namely target content which a user desires to display on the second screen.
In this embodiment of the present application, the first screen may be a main screen of a dual-screen device, and the second screen may be an auxiliary screen of the dual-screen device, where the dual-screen device includes a dual-screen mobile phone or a dual-screen camera. The display theme of the main screen is consistent with that of the auxiliary screen by intercepting and displaying the display content in the main screen on the auxiliary screen.
In the embodiment of the application, the identification of the target object can be realized in an image identification mode, and the target object in the preview picture to be processed is identified.
102. And when the target object recognition result meets a preset condition, determining the position information of the target object in the preview picture to be processed.
In the embodiment of the application, the preset condition includes that a target object is identified in the identification result, and the position information of the target object in the preview picture to be processed is determined, so that the subsequent image is conveniently cropped, and a cropped picture containing the target object is obtained.
In this embodiment of the present application, the position information of the target object in the preview screen to be processed may be determined according to the coordinate information of the target object in the preview screen to be processed, that is, optionally, in some embodiments, the step "determining the position information of the target object in the preview screen to be processed" includes:
determining an image area of the target object in the preview picture to be processed;
acquiring area coordinate information of the image area;
and determining the area coordinate information as the position information of the target object in the preview picture to be processed.
In the embodiment of the present application, an image area of the target object in the preview screen to be processed may be determined first, and then the position information of the target object in the preview screen to be processed may be determined by determining the area coordinate information of the image area. Wherein, the image area of the target object can be determined by means of binarization.
103. And cutting the preview picture to be processed according to the position information and preset display conditions to obtain a cut picture.
In the embodiment of the application, the cut picture corresponds to a picture formed in a partial area of the preview picture to be processed, the picture is cut according to the position information of the target object, so that the content of the cut picture can contain the target object, the display accuracy of the second screen image is improved, and the picture is cut according to the preset display condition, so that the cut picture can meet the preset requirement, and the display expectation of a user is favorably met.
In this embodiment of the present application, the preset display condition includes a width display condition, for example, a width ratio of the target object in the second screen may be cut according to a requirement of the width ratio, that is, optionally, in some embodiments, the step "cutting the preview picture to be processed according to the position information and the preset display condition to obtain a cut picture" includes:
determining the original width information of the target object in the preview picture to be processed according to the position information;
determining target cutting width information according to the width display condition and the original width information;
and cutting the preview picture to be processed according to the target cutting width information to obtain a cut picture.
The original width information of the target object in the preview picture to be processed can be determined according to the position information, the width information of the target area can be determined according to the original width information and the width display condition (width ratio), and the image can be cut according to the width information to obtain a cut picture.
For example, in the embodiment of the present application, the width and height (size) of the first screen, i.e., the to-be-processed preview screen, is (X, Y), where X > Y, and the width and height (size) of the second screen is (Sx, Sy), where Sx > Sy, the width and height (size) of the target object is W and H, and when the width ratio requirement is 2/3, the width of the target clipping area is 3/2W. 2/3 is not the only limitation to the display condition of the target object in the present application, and can be flexibly adjusted according to the actual needs to improve the display effect of the target object in the second screen, or to meet the specific needs of the user.
In this embodiment of the present application, in order to improve the display effect of the clipped picture in the second screen, the height information of the clipped picture may be determined according to the resolution of the second screen, that is, optionally, in some embodiments, the step "clipping the preview picture to be processed according to the target clipping width information to obtain the clipped picture" includes:
determining a second screen aspect ratio of the second screen, wherein the second screen aspect ratio is a ratio of a width of the second screen to a height of the second screen;
determining target cutting height information according to the second screen width-height ratio and the target cutting width information;
and cutting the preview picture to be processed according to the target cutting width information and the target cutting height information to obtain a cut picture.
The aspect ratio of the second screen, that is, the resolution of the second screen, can enable the cut picture to be smoothly displayed or filled on the second screen by controlling the ratio of the width to the height of the cut image, thereby improving the image display effect. By the determination of the cropping width information described above, the actual height of the cropped image can be determined.
For example, the height of the clipped screen may be determined according to the feature that the aspect ratio of the clipped screen is consistent with the aspect ratio of the second screen, and the height of the target clipping region may be determined to be 3/2 × W (Sy/Sx) according to the width of the target clipping region being 3/2W, so that the width and height of the target clipping region, that is, the width and height of the target clipping border (that is, the width and height of the clipped screen) may be determined.
And the image is cut according to the target cutting width information and the target cutting height information, so that the accuracy of the cut picture can be improved.
In this embodiment of the present application, a specific position of the target cropping frame may be determined according to a center of the target cropping frame, that is, optionally, in some embodiments, the step "cropping the preview picture to be processed according to the target cropping width information and the target cropping height information to obtain a cropped picture" includes:
determining the central coordinate information of the target object according to the position information;
determining target cutting coordinate information according to the center coordinate information, the target cutting width information and the target cutting height information;
and cutting the preview picture to be processed according to the target cutting coordinate information to obtain a cut picture.
The center coordinates of the target object can be used as the center coordinates of the target clipping frame, a clipped picture of the target object in the center of the clipping image can be obtained, and the display effect of the target object in the second screen is improved.
In the embodiment of the present application, the position information of the target cropping frame may be further determined according to the position information of the target object, for example, on the premise that the position information of the target cropping frame is (Px and Py) in the upper left corner of the image area corresponding to the target object, and the cropping position of the target cropping frame in the upper left corner is determined to be (Px-W/4, Py- (3/2 × W (Sy/Sx) -h)/2) according to the width information and the height information of the target cropping frame, and then, according to the width information and the height information of the target cropping frame, the coordinate information of the entire target cropping frame may be determined.
104. And displaying the cut picture on a second screen.
The cut picture is displayed on the second screen, so that a user can view the display content on the first screen through the second screen, wherein the cut picture is determined by cutting according to the position information of the target object and the display condition of the target object on the second screen, and therefore the cut picture is displayed on the second screen, and the accuracy of the display content on the second screen can be improved.
In this embodiment of the present application, when the cut picture is displayed on the second screen, the width and height of the cut picture may be adjusted according to the actual width information and the actual height information of the second screen, so as to improve the display effect of the image on the second screen, that is, optionally, in some embodiments, the step "displaying the cut picture on the second screen" includes:
determining actual width information and actual height information of the second screen;
performing secondary cutting on the cut picture according to the actual width information and the actual height information to obtain a cut picture again;
and displaying the picture after the second cutting on the second screen.
And adjusting the cut picture again according to the actual width and the actual height of the second screen, so that the display effect of the image on the second screen can be improved.
For example, after one side of the cut picture exceeds the border of the second screen, the image may be cut again according to the border, or after any side of the cut picture exceeds the border of the second screen, the image may be cut again according to the border of the second screen.
Before the cut picture is displayed on the second screen, angle conversion adjustment may be performed on the image, so that the display of the cut picture conforms to the viewing angle of the user, that is, optionally, in some embodiments, the step of "displaying the cut picture on the second screen" includes:
carrying out angle transformation on the cut picture to obtain a target image after angle transformation;
and displaying the target image on a second screen.
And the display of the image on the second screen is made to accord with the viewing angle of the user through the transformation of the image angle.
Wherein after the step of displaying the target image on the second screen, the method further comprises:
and displaying moving azimuth information on the second screen according to a preset composition strategy to prompt the target object to move according to the moving azimuth information.
In the embodiment of the application, the mobile azimuth information is generated after the scene corresponding to the preview picture to be processed is intelligently composed based on the prefabricated composition strategy, and the mobile azimuth information is displayed on the second screen, so that the shot object can be conveniently moved and adjusted according to the mobile azimuth information, and the imaging effect is improved.
In the embodiment of the application, the prefabricated composition strategy comprises an intelligent composition strategy, and the imaging effect of the target object in the second screen can be improved by adjusting the moving direction of the user through the intelligent composition strategy, namely the imaging effect of the target object in the first screen is improved, so that the user can be helped to shoot high-quality photos conveniently.
The intelligent composition selects a better shooting angle in the shooting scene by identifying the actual shooting scene, and constructs an actual composition scene with a higher picture effect so as to help improve the imaging quality of the image.
In the embodiment of the application, in the composition process, the intelligent composition can also prompt a color signal to feed back the current intelligent composition state, for example, green represents information such as completely conforming to the composition, yellow represents information such as basically conforming to the composition, and red represents information such as nonconforming to the composition.
Specifically, please refer to fig. 3, where fig. 3 is a detailed flowchart of image display in the embodiment of the present application, which is as follows:
111. acquiring a preview picture to be processed displayed on a first screen;
112. carrying out target object identification on the preview picture to be processed to obtain a target object identification result;
113. when the target object recognition result meets the preset condition, executing step 114;
114. determining the position information of the target object in the preview picture to be processed;
115. cutting the preview picture to be processed according to the position information and the preset display condition to obtain a cut picture;
116. displaying the cut picture on a second screen;
117. and providing target object movement information based on the intelligent composition to prompt the target object to move according to the movement information so as to obtain imaging with better target object imaging effect.
The to-be-processed preview image on the first screen is cut, and the cut image obtained after cutting is displayed on the second screen, so that the first screen and the second screen can display image information of the same theme, users on the front side and the back side of the terminal can observe content image information of the same theme, and convenience in viewing the image information is improved. For example, when utilizing the double screen cell-phone to shoot, the formation of image information can be looked at through the second screen to the object of shooing, and then can adjust formation of image according to expectation imaging effect, is convenient for promote imaging effect, and convenient focus is shot and is generated the image that expects.
In the process of adjusting the imaging information of the second screen, the position, the action and other information of the target object are adjusted, so that the purpose of adjusting the imaging information of the target object in the first screen is achieved, and the composition effect is improved.
According to the method and the device for controlling the display content on the second screen, the target object recognition is carried out on the to-be-processed preview picture in the first screen, when the target object recognition result meets the preset condition, the position information of the target object is determined, the to-be-processed preview picture is cut according to the position information and the display condition, the cut picture is obtained, and the cut picture is displayed on the second screen, so that the control on the display content on the second screen is achieved.
In order to better implement the image display method of the present application, the present application also provides an image display device based on the image display method. The terms are the same as those in the image display method described above, and details of implementation can be referred to the description in the method embodiment.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an image display device provided in the present application, wherein the image display device may include:
the recognition module 201 is configured to perform target object recognition on the to-be-processed preview picture displayed in the first screen to obtain a target object recognition result.
A determining module 202, configured to determine, when the target object identification result meets a preset condition, position information of the target object in the to-be-processed preview screen.
Among other things, in some embodiments of the present application, the determining module 202 includes:
the area determining unit is used for determining the image area of the target object in the preview picture to be processed;
a coordinate determination unit for acquiring region coordinate information of the image region;
and the position determining unit is used for determining the area coordinate information as the position information of the target object in the preview picture to be processed.
And the cutting module 203 is configured to cut the preview picture to be processed according to the position information and a preset display condition, so as to obtain a cut picture.
Among others, in some embodiments of the present application, the cropping module 203 includes:
a first determining unit, configured to determine, according to the position information, original width information of the target object in the preview screen to be processed;
the second determining unit is used for determining target cutting width information according to the width display condition and the original width information;
and the cutting unit is used for cutting the preview picture to be processed according to the target cutting width information to obtain a cut picture.
Wherein, in some embodiments of the present application, the clipping unit includes:
a first determining subunit configured to determine a second screen aspect ratio of the second screen, where the second screen aspect ratio is a ratio of a width of the second screen to a height of the second screen;
the second determining subunit is used for determining target cutting height information according to the second screen width-height ratio and the target cutting width information;
and the cutting subunit is used for cutting the preview picture to be processed according to the target cutting width information and the target cutting height information to obtain a cut picture.
In some embodiments of the present application, the clipping subunit is specifically configured to:
determining the central coordinate information of the target object according to the position information;
determining target cutting coordinate information according to the center coordinate information, the target cutting width information and the target cutting height information;
and cutting the preview picture to be processed according to the target cutting coordinate information to obtain a cut picture.
And the display module 204 is configured to display the cut picture on a second screen.
Among other things, in some embodiments of the present application, the display module 204 includes:
a third determining unit for determining actual width information and actual height information of the second screen;
the secondary collecting and pressing unit is used for secondarily cutting the cut picture according to the actual width information and the actual height information to obtain a secondary cut picture;
and the first display unit is used for displaying the picture after the second cutting on the second screen.
Among other things, in some embodiments of the present application, the display module 204 includes:
the transformation unit is used for carrying out angle transformation on the cut picture to obtain a target image after angle transformation;
a second display unit for displaying the target image on a second screen.
After the target image is displayed on the second screen, the method further includes:
and the display unit is used for displaying moving direction information on the second screen according to a preset composition strategy so as to prompt the target object to move according to the moving direction information.
In the embodiment of the application, the recognition module 201 recognizes a target object in the to-be-processed preview image of the first screen to obtain a target object recognition result, the determination module 202 determines the position information of the target object in the to-be-processed preview image under the condition that the target object recognition result meets a preset condition, the clipping module 203 clips the to-be-processed preview image according to the position information of the target object in the to-be-processed preview image and an expected display condition to obtain a clipped image, and finally, the display module 204 displays the clipped image in the second screen.
The method and the device for displaying the target object on the second screen have the advantages that the target object is identified on the to-be-processed preview picture in the first screen, when the target object identification result meets the preset condition, the position information of the target object is determined, the to-be-processed preview picture is cut according to the position information and the display condition, the cut picture is obtained, the cut picture is displayed on the second screen, the control over the display content on the second screen is achieved, the display content of the second screen is enabled to be consistent with that of the first screen, and the display effect of the target object in the second screen is improved.
In addition, the present application also provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device related to the present application, specifically:
the electronic device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the whole electronic device by various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, and preferably, the power supply 403 is logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are realized through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The electronic device may further include an input unit 404, and the input unit 404 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the electronic device may further include a display unit and the like, which are not described in detail herein. Specifically, in this embodiment, the processor 401 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402, thereby implementing the steps in any image display method provided by the present application.
According to the method and the device, the target object recognition is carried out on the to-be-processed preview picture in the first screen, when the target object recognition result meets the preset condition, the position information of the target object is determined, the to-be-processed preview picture is cut according to the position information and the display condition, the cut picture is obtained, and the cut picture is displayed on the second screen, so that the control of the display content on the second screen is realized, the display content of the second screen is kept consistent with that of the first screen, and the display effect of the target object in the second screen is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium having stored thereon a computer program, which can be loaded by a processor to perform the steps of any of the image display methods provided herein.
Wherein the computer-readable storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the computer-readable storage medium can execute the steps in any image display method provided by the present application, the beneficial effects that can be achieved by any image display method provided by the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The foregoing detailed description has provided a method, an apparatus, an electronic device, and a storage medium for displaying an image, and the principles and embodiments of the present invention have been described herein with reference to specific examples, which are provided only to help understand the method and the core concept of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. An image display method, comprising:
performing target object recognition on a preview picture to be processed displayed in a first screen to obtain a target object recognition result;
when the target object recognition result meets a preset condition, determining the position information of the target object in the preview picture to be processed;
according to the position information and preset display conditions, cutting the preview picture to be processed to obtain a cut picture;
and displaying the cut picture on a second screen.
2. The method according to claim 1, wherein the preset display condition includes a width display condition of the target object on the second screen, and the cropping the to-be-processed preview picture according to the position information and the preset display condition to obtain a cropped picture includes:
determining the original width information of the target object in the preview picture to be processed according to the position information;
determining target cutting width information according to the width display condition and the original width information;
and cutting the preview picture to be processed according to the target cutting width information to obtain a cut picture.
3. The method according to claim 2, wherein the cropping the preview picture to be processed according to the target cropping width information to obtain a cropped picture comprises:
determining a second screen aspect ratio of the second screen, wherein the second screen aspect ratio is a ratio of a width of the second screen to a height of the second screen;
determining target cutting height information according to the second screen width-height ratio and the target cutting width information;
and cutting the preview picture to be processed according to the target cutting width information and the target cutting height information to obtain a cut picture.
4. The method according to claim 3, wherein the cropping the to-be-processed preview picture according to the target cropping width information and the target cropping height information to obtain a cropped picture, comprises:
determining the central coordinate information of the target object according to the position information;
determining target cutting coordinate information according to the center coordinate information, the target cutting width information and the target cutting height information;
and cutting the preview picture to be processed according to the target cutting coordinate information to obtain a cut picture.
5. The method of claim 1, wherein the displaying the cropped picture on a second screen comprises:
determining actual width information and actual height information of the second screen;
performing secondary cutting on the cut picture according to the actual width information and the actual height information to obtain a cut picture again;
and displaying the picture after the second cutting on the second screen.
6. The method of claim 1, wherein the displaying the cropped picture on a second screen comprises:
carrying out angle transformation on the cut picture to obtain a target image after angle transformation;
displaying the target image on the second screen;
after the displaying the target image on the second screen, the method further includes:
and displaying moving azimuth information on the second screen according to a preset composition strategy to prompt the target object to move according to the moving azimuth information.
7. The method according to any one of claims 1 to 6, wherein the determining the position information of the target object in the preview screen to be processed comprises:
determining an image area of the target object in the preview picture to be processed;
acquiring area coordinate information of the image area;
and determining the area coordinate information as the position information of the target object in the preview picture to be processed.
8. An image display apparatus, comprising:
the identification module is used for identifying a target object of the preview picture to be processed displayed in the first screen to obtain a target object identification result;
the determining module is used for determining the position information of the target object in the preview picture to be processed when the target object identification result meets a preset condition;
the cutting module is used for cutting the preview picture to be processed according to the position information and preset display conditions to obtain a cut picture;
and the display module is used for displaying the cut picture on a second screen.
9. An electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the image display method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the image display method according to any one of claims 1 to 7.
CN202111432269.3A 2021-11-29 2021-11-29 Image display method, image display device, electronic equipment and computer readable storage medium Pending CN114063864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111432269.3A CN114063864A (en) 2021-11-29 2021-11-29 Image display method, image display device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111432269.3A CN114063864A (en) 2021-11-29 2021-11-29 Image display method, image display device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114063864A true CN114063864A (en) 2022-02-18

Family

ID=80277290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111432269.3A Pending CN114063864A (en) 2021-11-29 2021-11-29 Image display method, image display device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114063864A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014010474A (en) * 2012-06-27 2014-01-20 Canon Inc Operation terminal and control method thereof, and program
CN108881721A (en) * 2018-07-05 2018-11-23 维沃移动通信有限公司 A kind of display methods and terminal
CN110493454A (en) * 2019-07-11 2019-11-22 维沃移动通信(杭州)有限公司 A kind of image pickup method and terminal device
CN110941383A (en) * 2019-10-11 2020-03-31 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN111311489A (en) * 2020-01-17 2020-06-19 维沃移动通信有限公司 Image clipping method and electronic equipment
WO2020238312A1 (en) * 2019-05-31 2020-12-03 中兴通讯股份有限公司 Photographing method and apparatus, storage medium and electronic device
WO2021023059A1 (en) * 2019-08-07 2021-02-11 华为技术有限公司 Photographing method and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014010474A (en) * 2012-06-27 2014-01-20 Canon Inc Operation terminal and control method thereof, and program
CN108881721A (en) * 2018-07-05 2018-11-23 维沃移动通信有限公司 A kind of display methods and terminal
WO2020238312A1 (en) * 2019-05-31 2020-12-03 中兴通讯股份有限公司 Photographing method and apparatus, storage medium and electronic device
CN110493454A (en) * 2019-07-11 2019-11-22 维沃移动通信(杭州)有限公司 A kind of image pickup method and terminal device
WO2021023059A1 (en) * 2019-08-07 2021-02-11 华为技术有限公司 Photographing method and mobile terminal
CN110941383A (en) * 2019-10-11 2020-03-31 广州视源电子科技股份有限公司 Double-screen display method, device, equipment and storage medium
CN111311489A (en) * 2020-01-17 2020-06-19 维沃移动通信有限公司 Image clipping method and electronic equipment

Similar Documents

Publication Publication Date Title
CN109688321B (en) Electronic equipment, image display method thereof and device with storage function
CN110798627B (en) Shooting method, shooting device, storage medium and terminal
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
US20230094362A1 (en) Image processing method and apparatus, and computer-readable storage medium
WO2019062571A1 (en) Dynamic image synthesis method and device, terminal and storage medium
CN111314606B (en) Photographing method and device, electronic equipment and storage medium
CN117479000A (en) Video recording method and related device
WO2018219274A1 (en) Method and apparatus for denoising processing, storage medium and terminal
CN107563960A (en) A kind of processing method, storage medium and the mobile terminal of self-timer picture
WO2023109389A1 (en) Image fusion method and apparatus, and computer device and computer-readable storage medium
CN114063864A (en) Image display method, image display device, electronic equipment and computer readable storage medium
CN115134532A (en) Image processing method, image processing device, storage medium and electronic equipment
CN112383708B (en) Shooting method and device, electronic equipment and readable storage medium
CN111654623B (en) Photographing method and device and electronic equipment
CN112446848A (en) Image processing method and device and electronic equipment
CN113873160B (en) Image processing method, device, electronic equipment and computer storage medium
CN113489901B (en) Shooting method and device thereof
CN113766090B (en) Image processing method, terminal and storage medium
US11776141B1 (en) Hybrid image registration techniques
CN113938597B (en) Face recognition method, device, computer equipment and storage medium
CN117408898A (en) Image processing method, device, equipment and storage medium
CN113141461A (en) Shooting method and device and electronic equipment
CN117132453A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN117412012A (en) Image processing method and device and computer equipment
CN117440178A (en) Video processing method, video processing device, electronic equipment and computer storage medium

Legal Events

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