WO2019072149A1 - 缩略图生成方法及装置、电子设备、存储介质 - Google Patents

缩略图生成方法及装置、电子设备、存储介质 Download PDF

Info

Publication number
WO2019072149A1
WO2019072149A1 PCT/CN2018/109362 CN2018109362W WO2019072149A1 WO 2019072149 A1 WO2019072149 A1 WO 2019072149A1 CN 2018109362 W CN2018109362 W CN 2018109362W WO 2019072149 A1 WO2019072149 A1 WO 2019072149A1
Authority
WO
WIPO (PCT)
Prior art keywords
thumbnail
target object
image
display area
generating
Prior art date
Application number
PCT/CN2018/109362
Other languages
English (en)
French (fr)
Inventor
陈翔
潘杰茂
陈挺
唐斌
Original Assignee
腾讯科技(深圳)有限公司
陈翔
潘杰茂
陈挺
唐斌
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 腾讯科技(深圳)有限公司, 陈翔, 潘杰茂, 陈挺, 唐斌 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2019072149A1 publication Critical patent/WO2019072149A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Definitions

  • the present disclosure relates to the field of computer technology, and in particular to a thumbnail generation method, a thumbnail generation device, and an electronic device.
  • the thumbnail may not display the head area of the character or only a part of the head area, so that other users need to click on the thumbnail to view the original image to know the facial information of the character, causing other users to be redundant. Operation and wasted time.
  • thumbnail generation method including:
  • the scaling is determined according to the size of the picture used to generate the thumbnail and the size of the thumbnail display area;
  • the first thumbnail image is cropped according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image, to obtain a second thumbnail image including the target object area.
  • thumbnail generating apparatus including:
  • a scaling determining module configured to determine a scaling according to a size of a picture used to generate the thumbnail and a size of the thumbnail display area
  • An image scaling module configured to scale the picture for generating a thumbnail according to the scaling, to obtain a first thumbnail whose size is larger than a size of the thumbnail display area;
  • a location determining module configured to determine location information of the target object region in the first thumbnail
  • An image cropping module configured to: cut a size of the thumbnail display area and position information of the target object area in the first thumbnail image to obtain the target object area Second thumbnail.
  • a storage medium having stored thereon a computer program, the computer program being executed by a processor to implement the thumbnail generation method of any of the above.
  • an electronic device including:
  • a memory for storing executable instructions of the processor
  • the processor is configured to perform the thumbnail generating method according to any one of the above items by executing the executable instruction.
  • a picture for generating a thumbnail is scaled to obtain a first thumbnail, and then according to the size of the thumbnail display area and the target object area in the first thumbnail.
  • the location information is cropped to the first thumbnail to obtain a second thumbnail containing the target object area.
  • the purpose of displaying the target object in the thumbnail image can be realized, and the problem that the core information is not displayed can be avoided; on the other hand, since the user who uploads the image in the thumbnail image expects the information that other users know, the effective one is improved.
  • Information transfer efficiency other users can save time by not having to click on the thumbnail to view the original image, and save time when other users avoid unnecessary operations; on the other hand, because thumbnails lacking core information are not generated, It can also increase user satisfaction with social applications.
  • FIG. 1 illustrates a schematic diagram of a picture for generating a thumbnail according to an exemplary embodiment of the present disclosure
  • FIG. 2 is a schematic diagram showing the display effect of some techniques for thumbnails of a picture for generating thumbnails shown in FIG. 1;
  • FIG. 3 schematically illustrates a flowchart of a thumbnail generating method according to an exemplary embodiment of the present disclosure
  • FIG. 4 illustrates a schematic diagram of a first thumbnail image according to an exemplary embodiment of the present disclosure
  • FIG. 5 illustrates a schematic diagram of a display effect for a thumbnail of a picture for generating a thumbnail shown in FIG. 1 according to an exemplary embodiment of the present disclosure
  • FIG. 6 is a flow chart schematically showing a specific implementation process of a thumbnail image generating method according to an exemplary embodiment of the present disclosure, taking a character image as an example;
  • FIG. 7 schematically illustrates an effect diagram of a social application according to an exemplary embodiment of the present disclosure
  • FIG. 8 schematically shows a block diagram of a thumbnail generating device according to an exemplary embodiment of the present disclosure
  • FIG. 9 illustrates a schematic diagram of a storage medium according to an exemplary embodiment of the present disclosure.
  • FIG. 10 schematically illustrates a block diagram of an electronic device in accordance with an exemplary embodiment of the present disclosure.
  • photos are usually initially displayed in the form of thumbnails, in which case the photos can be scaled by the server and cropped to form thumbnails.
  • the scale of the photo scaled is larger than the size of the display area of the thumbnail, there may be a problem that the core information in the photo cannot be displayed or displayed incompletely.
  • thumbnail cannot completely display the head area of a person in the image, which not only makes the information that the user desires to be conveyed cannot be conveyed, but also has a poor visual effect, and obviously cannot satisfy the expectation of the user uploading the photo.
  • the face of the person cannot be displayed by the thumbnail, and the person who sees the thumbnail cannot recognize who the person is, which may cause a problem of poor interaction of the social application.
  • the present disclosure provides a thumbnail generating method, a thumbnail generating device, and an electronic device.
  • FIG. 3 schematically illustrates a flowchart of a thumbnail generating method according to an exemplary embodiment of the present disclosure.
  • the thumbnail generation method may be performed by any terminal having an image processing function, such as, but not limited to, a server, a personal computer, a mobile device, and the like.
  • the thumbnail generating method may include the following steps:
  • the picture for generating a thumbnail is scaled according to the scaling, to obtain a first thumbnail whose size is larger than the size of the thumbnail display area;
  • the first thumbnail image is cropped according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image, to obtain a second thumbnail image including the target object area.
  • the purpose of displaying the target object within the thumbnail image can be achieved, avoiding the problem that the core information is not displayed; on the other hand, since the thumbnail image is displayed with the uploaded image The user expects the information that other users know, thus improving the effective information transmission efficiency. Other users can save the time while other users avoid unnecessary operations without having to click on the thumbnail to view the redundant operation of the original image. On the other hand, As it does not generate thumbnails that lack core information, it can also increase user satisfaction with social applications.
  • step S10 the scaling is determined according to the size of the picture for generating the thumbnail and the size of the thumbnail display area.
  • the picture for generating the thumbnail may be an image obtained by the user by means of a camera or a terminal integrated with the camera function, and in an exemplary embodiment of the present disclosure, the thumbnail for generating the thumbnail
  • the picture can be an image containing people.
  • the thumbnail generation method described in the present disclosure may also be applied to a process of processing a scene image, a game image, a cartoon image, an engineering image, etc., which is not particularly limited in the exemplary embodiment.
  • the picture for generating the thumbnail may also be a processed picture after being scaled, modified, edited, rendered, etc., and the present disclosure does not specifically limit the content of the picture for generating the thumbnail and the processed process.
  • the thumbnail display area can be the area in which the user displays thumbnails in the application.
  • the size of the thumbnail display area is known.
  • zooming refers to scaling; however, other manners may be performed according to the size of a picture for generating a thumbnail, the size of a thumbnail display area, etc., which also belong to the present disclosure. protected range.
  • the zoom ratio of the picture for generating the thumbnail can be determined according to the width or height of the thumbnail display area. For example:
  • the scaling is determined according to the width of the picture for generating the thumbnail and the width of the thumbnail display area. For example, if the width of the thumbnail display area is A and the height is B, and the width of the image used to generate the thumbnail is C and the height is D, it can be determined that the thumbnail is used for generating the thumbnail.
  • the scale of the thumbnail image is A/C, which in turn makes the width of the scaled picture for generating thumbnails equal to the width of the thumbnail display area.
  • the scaling is determined according to the height of the picture for generating the thumbnail and the height of the thumbnail display area. For example, if the width of the thumbnail display area is A and the height is B, and the width of the image used to generate the thumbnail is C and the height is D, it can be determined that the pair is used for generation.
  • the scale of the thumbnail image is B/D, which in turn allows the height of the scaled picture for generating the thumbnail to be equal to the height of the thumbnail display area.
  • step S20 the picture for generating a thumbnail is scaled according to the scaling, to obtain a first thumbnail whose size is larger than the size of the thumbnail display area.
  • thumbnail display area having a width larger than the height As an example, after the picture for generating the thumbnail is scaled according to the scaling ratio in the above exemplary embodiment, a width equal to the thumbnail display area is obtained.
  • the height of the first thumbnail may be greater than or not greater than the height of the thumbnail display area; for the case where the height of the first thumbnail is not greater than the height of the thumbnail display area, the first thumbnail may be completely included in the thumbnail display area.
  • the related processing can refer to the prior art, which is not further described in this disclosure. The present disclosure focuses on the case where the height of the first thumbnail is larger than the height of the thumbnail display area.
  • the height is equal to the shrinkage.
  • the thumbnail shows the first thumbnail of the height of the area.
  • the width of the first thumbnail may be greater than or not greater than the width of the thumbnail display area, and for the case where the width of the first thumbnail is not greater than the width of the thumbnail display area, the first thumbnail may be completely included in the thumbnail display area.
  • the related processing can refer to the prior art, which is not further described in this disclosure. The present disclosure focuses on the case where the width of the first thumbnail is larger than the width of the thumbnail display area.
  • the width of the first thumbnail may be greater than the width of the thumbnail display area and the first thumbnail.
  • the height is greater than the height of the thumbnail display area, which is also within the scope of the disclosure.
  • FIG. 4 is a schematic diagram showing the first thumbnail obtained by scaling the picture for generating a thumbnail shown in FIG. 1 based on the width of the thumbnail display area.
  • the first thumbnail image contains all the element information in FIG. 1 , only based on the width of the thumbnail display area 400 (shown schematically in the form of a dashed box). The image used to generate the thumbnail is scaled.
  • step S30 position information of the target object area in the first thumbnail is determined.
  • the target object area when the picture for generating the thumbnail is an image including a person, the target object area may be the head area of the person, however, it is easily understood that the target object area may also be a character except the head. Other parts outside the area.
  • the target object area in the thumbnail generation method described in the present disclosure may further include other information, for example, In the scene in which the plant is recorded, the target object area may also be an area containing flowers, and the like.
  • a user may upload a captured image or a pre-stored image to a server
  • the server may have an image recognition function, and may recognize that the target object region is used throughout the generation by the image recognition function.
  • the position and extent of the image in the thumbnail For example, a vertex (for example, an upper left corner vertex) of a picture for generating a thumbnail may be used as an origin and a coordinate system may be constructed with two edges of a picture for generating a thumbnail as an axis, whereby the target object area may be Characterized as a specific coordinate point (the center point of the target object area) and the width and height values of the area.
  • the position information of the target object area may be scaled according to the scaling ratio described in the above exemplary embodiment, and the position information of the target object in the first thumbnail image is determined.
  • the position information of the target object area in the first thumbnail image may also be directly determined by image recognition, which is also within the protection scope of the present disclosure.
  • the thumbnail image generating method of the exemplary embodiment of the present disclosure may further include the step of determining whether there is only one target object region in the picture for generating the thumbnail, and including in the picture for determining that the thumbnail is generated
  • the picture for generating thumbnails can be clipped by the method of generating thumbnails in the prior art.
  • the thumbnail generation method of the present disclosure may further include: when there are a plurality of regions to be the target object regions, the server may analyze different display effects to correspond to the best display effects.
  • the area is determined as the target object area, and in addition, the user can also designate one of the plurality of areas as the target object area. For example, if there are a plurality of characters in the picture for generating the thumbnail, the server may select a head area as the target object area while ensuring that the head area of the person is displayed as much as possible, and the user may also select a character.
  • the head area is the target object area. This is not particularly limited in the exemplary embodiment.
  • step S40 the first thumbnail image is cropped according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image, to obtain a second image including the target object area. Thumbnail.
  • a cropping frame (for representing a cropping region range) having the same size as the thumbnail display region may be applied to a cutting position of the first thumbnail image; the cutting position may be cropped A position may be included that overlaps the three sides of the first thumbnail with the three sides of the crop frame.
  • the cropping position may include a position at which the crop frame is aligned with the upper or lower end of the first thumbnail, in this case
  • the crop frame coverage area may be an upper end portion or a lower end portion of the first thumbnail
  • the cropping position may include a position at which the crop frame is aligned with the left end or the rear end of the second thumbnail, in which case the crop frame cover area may be the left end portion or the right end portion of the first thumbnail image, respectively.
  • the cropping position may include a position that coincides a center point of the first thumbnail with a center point of the crop frame. That is, in this case, the crop frame coverage area may be the middle portion of the first thumbnail.
  • the cutting position may be other than the above position, for example, any position between the above-mentioned centered position and the end position may be used as the cutting position, which is not in this exemplary embodiment. Make special restrictions.
  • the position of the crop frame application is adjusted according to the location and range of the target object area. It is easily understood that determining whether the target object area is within the crop frame coverage area refers to determining whether all of the target object area is within the crop frame coverage area.
  • a standard value may be preset, and when the ratio of the area of the target object area in the coverage area of the crop frame to the total area of the target object area reaches the standard value, the target may be considered as the target.
  • the object area is within the coverage area of the crop box.
  • the standard value can be set to 90%, 95%, 98%, and the like.
  • the second thumbnail may be cropped using the crop frame, and the second thumbnail is used as the generated thumbnail in the display page of the social application.
  • the second thumbnail image can be, for example, as shown in FIG.
  • the offset may be calculated according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail, and according to the The offset determines a position at which the first thumbnail is truncated, and the first thumbnail is intercepted from the intercepted position to obtain a second thumbnail including the target object region. For example:
  • the position of the target object region is represented by a coordinate system
  • the position of the center point of the target object region in the picture for generating the thumbnail may be expressed as (x, y)
  • the target object region The width is expressed as w and the height is expressed as h.
  • the position and range of the target object area are scaled according to the scaling determined in step S10, and the position and range of the target object area in the first thumbnail can be obtained.
  • the position of the center point of the target object area at this time may be represented as (x', y') at the position of the first thumbnail
  • the width of the target object area may be represented as w'
  • the height may be expressed as h'.
  • the width of the thumbnail display area can be expressed as a and the height as b.
  • the calculation of the leftward offset of the cropping position is taken as an example.
  • the offset can be expressed as: (x'-a) + (w'/2).
  • the upper offset of the crop position is calculated as an example, and the offset can be expressed as: (y'-b) + (h'/2).
  • the cropping position applied by the crop box can be offset according to the calculated offset.
  • the cropping position applied by the cropping frame can be shifted to the right by (x'-a)+(w'/2), thereby covering the area of the cropping frame.
  • the target object area can be displayed inside.
  • the cropping position applied by the cropping frame can be shifted downward (y'-b)+(h'/2) by the distance, thereby being in the thumbnail A target object area can be displayed in the display area.
  • the above-mentioned adjusted distance can be appropriately increased, which is also the concept of the present invention.
  • the target object area is within the second thumbnail; however, in order to make the target object area be located at the center position of the second thumbnail, the size of the thumbnail display area and the target object area may be determined according to In the position information in the first thumbnail, the offset is further fine-tuned to realize that the target object area is displayed centrally in the thumbnail display area.
  • the above offset effect may be implemented by configuring a margin attribute to adjust the cropping position applied by the crop box.
  • a margin attribute to adjust the cropping position applied by the crop box.
  • other means may be used to display the target object area in the coverage area of the crop frame, which are all within the protection scope of the present disclosure.
  • FIG. 2 can also be understood as the case where the target object area is not within the coverage area of the crop frame.
  • the cropping position of the cropping frame is offset, and then the second thumbnail image is obtained by using the cropping frame, and then the thumbnail image to be generated by the present disclosure can be obtained, for example, the thumbnail image is Figure 5 shows.
  • a thumbnail generation method of an exemplary embodiment of the present disclosure will be described below taking a person image as an example.
  • step S110 the user can upload a character image (for example, a selfie) to the server.
  • a character image for example, a selfie
  • the server may determine the position and extent of the head region in the person image.
  • the zoom ratio may be determined according to the size of the thumbnail display area and the size of the person image.
  • step S116 the character image is scaled in accordance with the scaling to obtain a first thumbnail of the character image.
  • the width of the zoomed person image can be made equal to the width of the thumbnail display area.
  • step S118 position information of the head region in the first thumbnail is determined; for example, the position and range of the head region in step S112 are scaled according to the above scaling, and the head region is determined to be at the first thumbnail. Location and range.
  • a cropping frame of the same size as the thumbnail display area may be applied to the default cropping position of the first thumbnail.
  • the default crop position may be a position where the center point of the thumbnail display area coincides with the center point of the first thumbnail.
  • an offset of the cropping position may be calculated according to the size of the thumbnail display area and the position information of the head region in the first thumbnail.
  • step S124 the first thumbnail is intercepted from the offset position after the offset to obtain a second thumbnail including the header area.
  • thumbnails can be generated for the person image shown in FIG. 1, and the generated thumbnails are as shown in FIG. 5.
  • the thumbnails generated by the exemplary thumbnail generating method of the present disclosure can fully display the head region, the image display effect is good, and the user's satisfaction with the social application is satisfied. Improved, and helps other users to understand the uploader's dynamics only through thumbnails.
  • FIG. 7 schematically shows an effect diagram of a social application of a thumbnail image generating method of an exemplary embodiment of the present disclosure.
  • the user can upload a plurality of thumbnails generated by the method of the present disclosure to achieve sharing status, collection information, advertisement promotion, and the like.
  • thumbnail generating device is further provided in the exemplary embodiment.
  • FIG. 8 schematically shows a block diagram of a thumbnail image generating device of an exemplary embodiment of the present disclosure.
  • a thumbnail image generating apparatus 1 may include a scaling ratio determining module 10, an image scaling module 20, a position determining module 30, and an image cropping module 40, wherein:
  • the scaling determining module 10 may be configured to determine a scaling according to a size of a picture for generating a thumbnail and a size of the thumbnail display area;
  • the image scaling module 20 is configured to scale the picture for generating a thumbnail according to the scaling ratio to obtain a first thumbnail whose size is larger than a size of the thumbnail display area;
  • the location determining module 30 is configured to determine location information of the target object region in the first thumbnail.
  • the image cropping module 40 is configured to: cut the first thumbnail image according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image, to obtain the target object The second thumbnail of the area.
  • the determining the scaling according to the size of the picture for generating the thumbnail and the size of the thumbnail display area includes:
  • the width of the thumbnail display area is greater than the height, determining the zoom ratio according to a width of the picture for generating a thumbnail and a width of the thumbnail display area;
  • the scaling the picture for generating a thumbnail according to the scaling ratio includes:
  • the picture for generating a thumbnail is scaled according to the scaling to obtain a first thumbnail having a width equal to the width of the thumbnail display area.
  • the determining the scaling according to the size of the picture for generating the thumbnail and the size of the thumbnail display area includes:
  • the width of the thumbnail display area is not greater than the height, determining the zoom ratio according to a height of the picture for generating a thumbnail and a height of the thumbnail display area;
  • the scaling the picture for generating a thumbnail according to the scaling ratio includes:
  • the picture for generating a thumbnail is scaled according to the scaling to obtain a first thumbnail having a height equal to the height of the thumbnail display area.
  • the determining location information of the target object area in the first thumbnail image includes:
  • the determining location information of the target object area in the first thumbnail image includes:
  • Position information of the target object area in the first thumbnail image is determined by image recognition.
  • the image cropping module 40 includes:
  • An offset calculation unit configured to calculate an offset according to a size of the thumbnail display area and position information of the target object area in the first thumbnail
  • a cutting position determining unit configured to determine a position for intercepting the first thumbnail image according to the offset amount
  • an image cropping unit configured to intercept the first thumbnail image from the intercepted position to obtain a second thumbnail image that includes the target object area.
  • the calculating the offset according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image includes:
  • the picture for generating a thumbnail is an image including a person, and the target object area is a head area of the person.
  • a computer readable storage medium having stored thereon a program product capable of implementing the above method of the present specification.
  • various aspects of the present disclosure may also be embodied in the form of a program product comprising program code for causing said program product to run on a terminal device The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of the present specification.
  • a program product 700 for implementing the above method which may employ a portable compact disk read only memory (CD-ROM) and includes program code, and may be at a terminal device, is illustrated in accordance with an embodiment of the present disclosure.
  • CD-ROM portable compact disk read only memory
  • the program product of the present disclosure is not limited thereto, and in this document, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
  • the program product can employ any combination of one or more readable media.
  • the readable medium can be a readable signal medium or a readable storage medium.
  • the readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • the computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
  • Program code embodied on a readable medium can be transmitted using any suitable medium, including but not limited to wireless, wireline, optical cable, RF, etc., or any suitable combination of the foregoing.
  • Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., including conventional procedural A programming language such as a "C" language or a similar programming language.
  • the program code can execute entirely on the user computing device, partially on the user device, as a stand-alone software package, partially on the remote computing device on the user computing device, or entirely on the remote computing device or server. Execute on.
  • the remote computing device can be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computing device (eg, provided using an Internet service) Businesses are connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • Businesses are connected via the Internet.
  • an electronic device capable of implementing the above method is also provided.
  • FIG. 10 An electronic device 800 in accordance with such an embodiment of the present disclosure is described below with reference to FIG. 10 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • electronic device 800 is embodied in the form of a general purpose computing device.
  • the components of the electronic device 800 may include, but are not limited to, the at least one processing unit 810, the at least one storage unit 820, the bus 830 connecting the different system components (including the storage unit 820 and the processing unit 810), and the display unit 840.
  • the storage unit stores program code, which can be executed by the processing unit 810, such that the processing unit 810 performs various exemplary embodiments according to the present disclosure described in the "Exemplary Method" section of the present specification.
  • the processing unit 810 may perform as shown in FIG.
  • step S10 determining a scaling according to a size of a picture for generating a thumbnail and a size of a thumbnail display area
  • step S20 according to the scaling ratio
  • the picture for generating a thumbnail is scaled to obtain a first thumbnail whose size is larger than the size of the thumbnail display area; and in step S30, position information of the target object area in the first thumbnail is determined; step S40 And the first thumbnail image is cut according to the size of the thumbnail display area and the position information of the target object area in the first thumbnail image, to obtain a second thumbnail image including the target object area.
  • the storage unit 820 can include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and/or a cache storage unit 8202, and can further include a read only storage unit (ROM) 8203.
  • RAM random access storage unit
  • ROM read only storage unit
  • the storage unit 820 can also include a program/utility 8204 having a set (at least one) of the program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more applications, other program modules, and program data, Implementations of the network environment may be included in each or some of these examples.
  • Bus 830 may be representative of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local area using any of a variety of bus structures. bus.
  • the electronic device 800 can also communicate with one or more external devices 900 (eg, a keyboard, pointing device, Bluetooth device, etc.), and can also communicate with one or more devices that enable the user to interact with the electronic device 800, and/or with Any device (eg, router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 850. Also, electronic device 800 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 via bus 830.
  • network adapter 860 communicates with other modules of electronic device 800 via bus 830.
  • the technical solution according to an embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network.
  • a non-volatile storage medium which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.
  • a number of instructions are included to cause a computing device (which may be a personal computer, server, terminal device, or network device, etc.) to perform a method in accordance with an embodiment of the present disclosure.
  • modules or units of equipment for action execution are mentioned in the detailed description above, such division is not mandatory. Indeed, in accordance with embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one of the modules or units described above may be further divided into multiple modules or units.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

本公开是关于一种缩略图生成方法及装置、电子设备,该方法包括:根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;确定目标对象区域在所述第一缩略图中的位置信息;根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。本公开可以实现在缩略图内显示目标对象。

Description

缩略图生成方法及装置、电子设备、存储介质
本申请要求申请日为2017年10月11日、申请号为201710939863.9、发明创造名称为《缩略图生成方法及装置、电子设备、存储介质》的发明专利申请的优先权。
技术领域
本公开涉及计算机技术领域,具体而言,涉及一种缩略图生成方法、缩略图生成装置和电子设备。
背景技术
随着相机的普及以及社交应用的发展,用户可以方便地使用相机记录下生活或工作中的瞬间,然后将照片上传至社交应用(例如,虚拟社区等其他虚拟平台),以便作为美好的回忆或与亲朋分享。
以社交应用为例,通常以缩略图组合展示的方式显示多张照片。在这种情况下,由于照片等比例缩放后的尺寸可能大于缩略图的显示区域,而缩略图的显示区域的尺寸是固定的,这就造成照片除缩略图的显示区域外的部分未被显示出的问题,此时,若未被显示出的部分包含有照片的核心信息,则这些核心信息将无法被其他用户看到。因此,可能出现核心信息在缩略图中未被显示的情况。另外,以人物照片为例,缩略图可能无法显示人物的头部区域或仅显示头部区域的一部分,导致其他用户需要点击缩略图进而查看原图才能获知人物的面部信息,造成其他用户多余的操作并浪费了时间。
鉴于此,需要一种缩略图生成方法、缩略图生成装置和电子设备。
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。
发明内容
本公开的目的在于提供一种缩略图生成方法、缩略图生成装置和电子设备,进而至少在一定程度上克服由于相关技术的限制和缺陷而导致的一个或者多个问题。
根据本公开的一个方面,提供一种缩略图生成方法,包括:
根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
确定目标对象区域在所述第一缩略图中的位置信息;
根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
根据本公开的一个方面,提供一种缩略图生成装置,包括:
缩放比例确定模块,用于根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
图像缩放模块,用于按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
位置确定模块,用于确定目标对象区域在所述第一缩略图中的位置信息;
图像裁取模块,用于根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
根据本公开的一个方面,提供一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意一项所述的缩略图生成方法。
根据本公开的一个方面,提供一种电子设备,包括:
处理器;以及
存储器,用于存储所述处理器的可执行指令;
其中,所述处理器配置为经由执行所述可执行指令来执行上述任意一项所述的缩略图生成方法。
在本公开的一些实施例所提供的技术方案中,首先对用于生成缩略图的图片进行缩放,得到第一缩略图,接着根据缩略图展示区域的尺寸以及目标对象区域在第一缩略图中的位置信息对第一缩略图进行裁取,得到包含目标对象区域的第二缩略图。一方面,可以实现在缩略图内显示目标对象的目的,避免了核心信息未被显示的问题;另一方面,由于缩略图内展示有上传图像的用户期望其他用户获知的信息,因此提高了有效信息传输效率,其他用户可以不需要进行点击缩略图进而查看原图的多余操作,在其他用户避免多余操作的同时也节省了时间;再一方面,由于不会生成缺少核心信息的缩略图,因此,还可以提高用户对社交应用的满意度。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在附图中:
图1示出了根据本公开的示例性实施方式的用于生成缩略图的图片的示意图;
图2示出了一些技术的针对图1所示用于生成缩略图的图片的缩略图的显示效果的示意图;
图3示意性示出了根据本公开的示例性实施方式的缩略图生成方法的流程图;
图4示出了根据本公开的示例性实施方式的第一缩略图的示意图;
图5示出了根据本公开的示例性实施方式的针对图1所示用于生成缩略图的图片的缩略图的显示效果的示意图;
图6示意性示出了以人物图像为例的根据本公开的示例性实施方式的缩略图生成方法的具体实现过程的流程图;
图7示意性示出了根据本公开的示例性实施方式的社交应用的效果图;
图8示意性示出了根据本公开的示例性实施方式的缩略图生成装置的方框图;
图9示出了根据本公开的示例性实施方式的存储介质的示意图;以及
图10示意性示出了根据本公开的示例性实施方式的电子设备的方框图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
随着社会的发展以及互联网的普及,人们可以将自己生活或工作中的点滴分享到社交应用,以向亲朋展示自己的动态并便于以后回忆。目前,由于数码相机以及集成数码相机的终端(手机、平板电脑等)的普及,人们可以随时且方便地进行拍照并将照片上传至社交应用中,例如,人们可以借助于联网的手机将自拍照上传至虚拟社区。
在社交应用中,照片通常以缩略图的方式进行初步显示,在这种情况下,可以借助于服务器将照片进行等比例缩放处理并进行裁剪以形成缩略图。然而,当照片等比例缩放后的尺寸大于缩略图的显示区域的尺寸时,可能出现照片中的核心信息无法显示或显示不全的问题。
以自拍照为例,当需要对图1所示的图像进行缩放处理时,现有一些技术直接对图像进行缩放并进行剪裁,可能形成如图2所示的缩略图。这种缩略图无法完整显示图像中人物的头部区域,不但使得用户期望被传达的信息无法传达,而且视觉效果差,显然不能满足用户上传照片的预期。另外,在一些情况下,通过缩略图无法显示人物的面部,导致观 看到此缩略图的他人无法识别该人物是何人,进而可能造成社交应用交互效果差的问题。
鉴于此,本公开提供了一种缩略图生成方法,缩略图生成装置和电子设备。
图3示意性示出了根据本公开的示例性实施方式的缩略图生成方法的流程图。在一示例性实施方式中,所述缩略图生成方法可由任意具有图像处理功能的终端来执行,例如包括但不限于服务器、个人计算机及移动设备等等。参考图3,所述缩略图生成方法可以包括以下步骤:
S10.根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
S20.按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
S30.确定目标对象区域在所述第一缩略图中的位置信息;
S40.根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
在本公开的示例性实施方式的缩略图生成方法中,可以实现在缩略图内显示目标对象的目的,避免了核心信息未被显示的问题;另一方面,由于缩略图内展示有上传图像的用户期望其他用户获知的信息,因此提高了有效信息传输效率,其他用户可以不需要进行点击缩略图进而查看原图的多余操作,在其他用户避免多余操作的同时也节省了时间;再一方面,由于不会生成缺少核心信息的缩略图,因此,还可以提高用户对社交应用的满意度。
接下来,将对本公开的示例性实施方式的缩略图生成方法的各步骤进行说明。
在步骤S10中,根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例。
本示例实施方式中,用于生成缩略图的图片可以是用户借助于相机或集成有相机功能的终端进行拍摄而得到的图像,在本公开的示例性实施方式中,该用于生成缩略图的图片可以是包含人物的图像。然而,应当理解的是,还可以将本公开所述的缩略图生成方法应用到景物图像、游戏图像、卡通图像、工程图像等的处理过程中,本示例性实施方式中对此不做特殊限定。另外,用于生成缩略图的图片还可以是经缩放、修改、编辑、渲染等处理后的图片,本公开对用于生成缩略图的图片的内容和经历过的处理过程不做特殊限定。
缩略图展示区域可以是应用中用户展示缩略图的区域。对于一确定的应用,缩略图展示区域的尺寸是已知的。
为了对用于生成缩略图的图片进行缩放生成第一缩略图,首先需要确定对用于生成缩略图的图片的缩放比例。在本公开的示例性实施方式中,缩放是指等比例缩放;但也可以根据用于生成缩略图的图片的尺寸、缩略图展示区域的尺寸等进行其他方式的缩放,这同样属于本公开的保护范围。另外,由于用于生成缩略图的图片是根据缩略图展示区域的尺寸进行缩放,也就是说,可以根据缩略图展示区域的宽或高确定用于生成缩略图的图片的缩放比例。举例而言:
若所述缩略图展示区域的宽度大于高度,则根据所述用于生成缩略图的图片的宽度与 所述缩略图展示区域的宽度确定所述缩放比例。以宽度大于高度的缩略图展示区域为例,若缩略图展示区域的宽度为A、高度为B,用于生成缩略图的图片的宽度为C、高度为D,则可以确定对用于生成缩略图的图片的缩放比例为A/C,进而可以使得缩放后的用于生成缩略图的图片的宽度等于缩略图展示区域的宽度。
若所述缩略图展示区域的宽度不大于高度,则根据所述用于生成缩略图的图片的高度与所述缩略图展示区域的高度确定所述缩放比例。以宽度不大于高度的缩略图展示区域为例,若缩略图展示区域的宽度为A、高度为B,用于生成缩略图的图片的宽度为C、高度为D,则可以确定对用于生成缩略图的图片的缩放比例为B/D,进而可以使得缩放后的用于生成缩略图的图片的高度等于缩略图展示区域的高度。
在步骤S20中,按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图。
以宽度大于高度的缩略图展示区域为例,按照上述示例性实施例中所述缩放比例对所述用于生成缩略图的图片进行等比例缩放后,将得到宽度等于所述缩略图展示区域的宽度的第一缩略图。第一缩略图的高度可以大于或不大于缩略图展示区域的高度;针对第一缩略图的高度不大于缩略图展示区域的高度的情况,第一缩略图可以完全包含在缩略图展示区域内,相关处理可以参考现有技术,本公开对此不作进一步的说明。本公开着重关注的是第一缩略图的高度大于缩略图展示区域的高度的情况。
同理,以宽度不大于高度的缩略图展示区域为例,按照上述示例性实施例中所述缩放比例对所述用于生成缩略图的图片进行等比例缩放后,将得到高度等于所述缩略图展示区域的高度的第一缩略图。第一缩略图的宽度可以大于或不大于缩略图展示区域的宽度,针对第一缩略图的宽度不大于缩略图展示区域的宽度的情况,第一缩略图可以完全包含在缩略图展示区域内,相关处理可以参考现有技术,本公开对此不作进一步的说明。本公开着重关注的是第一缩略图的宽度大于缩略图展示区域的宽度的情况。
此外,需要说明的是,在其他示例性实施例中,对用于生成缩略图的图片进行等比例缩放后,也可以是第一缩略图的宽度大于缩略图展示区域的宽度且第一缩略图高度大于缩略图展示区域的高度,这同样属于本公开的保护范围。
图4示出了以缩略图展示区域的宽为基准对图1所示用于生成缩略图的图片进行缩放后得到第一缩略图的示意图。从图4中可以看出,第一缩略图包含有图1中的所有要素信息,仅是以所述缩略图展示区域400(以虚线框的形式示意性示出)的宽为基准对图1的用于生成缩略图的图片进行等比例缩放。
在步骤S30中,确定目标对象区域在所述第一缩略图中的位置信息。
本示例实施方式中,在用于生成缩略图的图片为包含人物的图像时,目标对象区域可以是该人物的头部区域,然而,容易理解的是,目标对象区域还可以是人物除头部区域之外的其他部位。另外,虽然本公开以社交应用为例进行说明,着重关注在虚拟社交中容易识别的头部区域,但本公开所述的缩略图生成方法中的目标对象区域还可以包含其他信息, 例如,在对植物进行记录的场景中,目标对象区域还可以是包含花的区域等等。
在本公开的示例性实施方式中,用户可以将拍摄的图像或预先存储的图像上传至服务器,该服务器可以具有图像识别功能,并且可以通过图像识别功能识别出目标对象区域在整个用于生成缩略图的图片中的位置和范围。例如,可以以用于生成缩略图的图片的一个顶点(例如,左上角顶点)作为原点并以用于生成缩略图的图片的两个边缘为轴构建坐标系,由此,可以将目标对象区域表征为具体的坐标点(目标对象区域的中心点)以及区域的宽度值和高度值。接着,可以按照上述示例性实施例中所述的缩放比例对目标对象区域的位置信息进行等比例缩放,确定目标对象在第一缩略图中的位置信息。
在本公开的其他示例性实施例中,也可以直接采用图像识别确定所述目标对象区域在所述第一缩略图中的位置信息,这同样属于本公开的保护范围。
此外,本公开的示例性实施方式描述的用于生成缩略图的图片中仅存在一个目标对象区域。由此,本公开的示例性实施方式的缩略图生成方法还可以包括判断用于生成缩略图的图片中是否仅存在一个目标对象区域的步骤,并且在判断出用于生成缩略图的图片中包含多个目标对象区域时,可以采用现有技术中生成缩略图的方法对用于生成缩略图的图片进行剪裁。
然而,在其他示例性实施例中,本公开的缩略图生成方法也还可以包括:当存在多个区域待成为目标对象区域时,服务器可以分析不同的显示效果,以将最好的显示效果对应的区域确定为目标对象区域,另外,用户也可以指定所述多个区域中之一作为目标对象区域。例如,用于生成缩略图的图片中存在多个人物,服务器可以在确保尽可能多地显示人物头部区域的前提下选择一个头部区域作为目标对象区域,另外,用户也可以选择一个人物的头部区域作为目标对象区域。本示例性实施方式中对此不做特殊限定。
在步骤S40中,根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
根据本公开的一些实施例,可以将与所述缩略图展示区域的尺寸相同的裁剪框(用于表现裁剪区域范围)应用于所述第一缩略图的裁取位置进行裁取;裁取位置可以包括使第一缩略图的三边与裁剪框的三边重叠的位置。例如,在根据宽度大于高度的缩略图展示区域对用于生成缩略图的图片进行缩放的情况下,裁取位置可以包括使裁剪框与第一缩略图的上端或下端对齐的位置,在这种情况下,对应地,裁剪框覆盖区域可以是第一缩略图的上端部分或下端部分;再例如,在根据宽度不大于高度的缩略图展示区域对用于生成缩略图的图片进行缩放的情况下,裁取位置可以包括使裁剪框与第二缩略图的左端或后端对齐的位置,在这种情况下,对应地,裁剪框覆盖区域可以是第一缩略图的左端部分或右端部分。根据另外一些实施例,裁取位置可以包括使第一缩略图的中心点与裁剪框的中心点重合的位置。也就是说,在这种情况下,裁剪框覆盖区域可以是第一缩略图的中间部分。此外,裁取位置还可以是除上述位置之外的其他位置,例如,在上述居中的位置与处于端部位置之间的任意位置均可作为裁取位置,本示例性实施方式中对此不做特殊限定。
如果所述目标对象区域不在所述裁剪框覆盖区域内,则根据所述目标对象区域的位置和范围对所述裁剪框应用的位置进行调整。容易理解的是,判断目标对象区域是否在裁剪框覆盖区域内指的是判断目标对象区域的全部是否在裁剪框覆盖区域内。或者,在本公开的另一些实施例中,可以预设一标准值,当目标对象区域在裁剪框覆盖区域内的面积与目标对象区域的总面积的比值达到该标准值时,即可认为目标对象区域在裁剪框覆盖区域内。例如,可以将该标准值设为90%、95%、98%等。
在判断出目标对象区域在裁剪框覆盖区域的情况下,可以利用该裁剪框裁剪得到第二缩略图,并将第二缩略图作为生成的缩略图应用于社交应用的显示页面内。在这种情况下,第二缩略图可以例如图5所示。
在判断出目标对象区域不在裁剪框覆盖区域内时,可以根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息计算偏移量,再根据所述偏移量确定对所述第一缩略图进行截取的位置,进而从所述截取的位置对所述第一缩略图进行截取,得到包含所述目标对象区域的第二缩略图。举例而言:
在例如用坐标系表示目标对象区域的位置的情况下,在步骤S30中确定目标对象区域的中心点在用于生成缩略图的图片中的位置可以表示为(x,y),目标对象区域的宽度表示为w,高度表示为h。按照步骤S10中确定的缩放比例对上述目标对象区域的位置和范围进行缩放,可以得到目标对象区域在第一缩略图的位置和范围。例如,此时目标对象区域的中心点在第一缩略图的位置可以表示为(x’,y’),目标对象区域的宽度可以表示为w’,高度可以表示为h’。另外,可以将缩略图展示区域的宽度表示为a,高度表示为b。
以计算裁剪位置的向左偏移量为例进行说明,此时偏移量可以表示为:(x’-a)+(w’/2)。另外,以计算裁剪位置的向上偏移量为例进行说明,此时偏移量可以表示为:(y’-b)+(h’/2)。
接下来,可以根据计算出的偏移量对裁剪框应用的裁剪位置进行偏移。以目标对象区域在裁剪框覆盖区域的右侧为例进行说明,可以将裁剪框应用的裁剪位置向右平移(x’-a)+(w’/2)的距离,从而在裁剪框覆盖区域内可以显示有目标对象区域。另外,以目标对象区域在裁剪框覆盖区域的下侧为例进行说明,可以将裁剪框应用的裁剪位置向下平移(y’-b)+(h’/2)的距离,从而在缩略图展示区域内可以显示有目标对象区域。
另外,为了使缩略图美观起见,可以对上述调整的距离进行适度增大,这同样属于本发明的构思。例如,上述方案中,可以确保目标对象区域在第二缩略图内;但为了使目标对象区域可以位于第二缩略图的居中位置,可以根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息,对上述偏移量再进行微调,实现目标对象区域在所述缩略图展示区域居中显示。
根据本公开的一些实施例,可以通过配置margin(边缘)属性的方式来实现上述偏移效果,以对裁剪框应用的裁剪位置进行调整。但不限于此,还可以采用其他手段来使目标对象区域显示在裁剪框覆盖区域内,这些均属于本公开的保护范围。
此外,还可以将图2理解为所述目标对象区域不在所述裁剪框覆盖区域内的情况。此 时,通过步骤S40所述的方法,对裁剪框的裁剪位置进行偏移,接着利用该裁剪框裁剪得到第二缩略图,进而可以得到本公开所要生成的缩略图,例如,该缩略图如图5所示。
下面将以人物图像为例对本公开的示例性实施方式的缩略图生成方法进行说明。
参考图6,在步骤S110中,用户可以将人物图像(例如,自拍照)上传至服务器。
在步骤S112中,服务器可以确定头部区域在人物图像中的位置和范围。
在步骤S114中,可以根据缩略图展示区域的尺寸以及人物图像的尺寸确定缩放比例。
在步骤S116中,按照缩放比例对对人物图像进行缩放,以得到人物图像的第一缩略图。以宽度大于高度的缩略图展示区域为例,可以使缩放后人物图像的宽度等于缩略图展示区域的宽度。
在步骤S118中,确定头部区域在所述第一缩略图中的位置信息;例如,按照上述缩放比例对步骤S112中头部区域的位置和范围进行缩放,确定头部区域在第一缩略图中的位置和范围。
在步骤S120中,可以将与缩略图展示区域尺寸相同的裁剪框应用于第一缩略图的默认裁剪位置。例如,该默认裁取位置可以是缩略图展示区域的中心点与第一缩略图的中心点重合的位置。
在步骤S122中,可以根据所述缩略图展示区域的尺寸以及头部区域在第一缩略图中的位置信息计算裁取位置的偏移量。
在步骤S124中,从偏移后的截取位置对第一缩略图进行截取,得到包含头部区域的第二缩略图。
根据上述步骤S110至步骤S124所述的方法,可以针对图1所示的人物图像生成缩略图,生成的缩略图如图5所示。相比于一些技术生成的如图2所示的缩略图,利用本公开的示例性缩略图生成方法生成的缩略图可以完全显示出头部区域,图像显示效果好,用户对社交应用的满意度得到提升,并且有助于其他用户在仅通过缩略图的情况下就可以了解到上传者的动态。
图7示意性示出了本公开的示例性实施方式的缩略图生成方法的社交应用的效果图。用户可以分别上传多张采用本公开的方法生成的缩略图,以实现分享状态、收藏信息、广告推广等作用。
进一步的,本示例实施方式中还提供了一种缩略图生成装置。
图8示意性示出了本公开的示例性实施方式的缩略图生成装置的方框图。参考图8,根据本公开的示例性实施方式的缩略图生成装置1可以包括缩放比例确定模块10、图像缩放模块20、位置确定模块30和图像裁取模块40,其中:
缩放比例确定模块10,可以用于根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
图像缩放模块20,可以用于按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
位置确定模块30,可以用于确定目标对象区域在所述第一缩略图中的位置信息;
图像裁取模块40,可以用于根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
根据本公开的示例性实施例,所述根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例包括:
若所述缩略图展示区域的宽度大于高度,则根据所述用于生成缩略图的图片的宽度与所述缩略图展示区域的宽度确定所述缩放比例;
所述按照所述缩放比例对所述用于生成缩略图的图片进行缩放包括:
按照所述缩放比例对所述用于生成缩略图的图片进行等比例缩放,得到宽度等于所述缩略图展示区域的宽度的第一缩略图。
根据本公开的示例性实施例,所述根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例包括:
若所述缩略图展示区域的宽度不大于高度,则根据所述用于生成缩略图的图片的高度与所述缩略图展示区域的高度确定所述缩放比例;
所述按照所述缩放比例对所述用于生成缩略图的图片进行缩放包括:
按照所述缩放比例对所述用于生成缩略图的图片进行等比例缩放,得到高度等于所述缩略图展示区域的高度的第一缩略图。
根据本公开的示例性实施例,所述确定目标对象区域在所述第一缩略图中的位置信息包括:
采用图像识别确定所述目标对象区域在所述用于生成缩略图的图片中的位置信息;
按照所述缩放比例对所述目标对象区域的位置信息进行等比例缩放,确定所述目标对象在所述第一缩略图中的位置信息。
根据本公开的示例性实施例,所述确定目标对象区域在所述第一缩略图中的位置信息包括:
采用图像识别确定所述目标对象区域在所述第一缩略图中的位置信息。
根据本公开的示例性实施例,所述图像裁取模块40包括:
偏移量计算单元,用于根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息计算偏移量;
裁取位置确定单元,用于根据所述偏移量确定对所述第一缩略图进行截取的位置;
图像裁取单元,用于从所述截取的位置对所述第一缩略图进行截取,得到包含所述目标对象区域的第二缩略图。
根据本公开的示例性实施例,所述根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息计算偏移量包括:
根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置 信息确定所述目标对象区域在所述缩略图展示区域居中显示时的偏移量。
根据本公开的示例性实施例,所述用于生成缩略图的图片为包含人物的图像,所述目标对象区域为所述人物的头部区域。
由于本公开实施方式的程序运行性能分析装置的各个功能模块与上述方法实施方式中相同,因此在此不再赘述。
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。
参考图9所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品700,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言一诸如Java、C++等,还包括常规的过程式程序设计语言一诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特 网服务提供商来通过因特网连接)。
在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。
下面参照图10来描述根据本公开的这种实施方式的电子设备800。图10显示的电子设备800仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图10所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830、显示单元840。
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元810执行,使得所述处理单元810执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元810可以执行如图3中所示的:步骤S10,根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;步骤S20,按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;步骤S30,确定目标对象区域在所述第一缩略图中的位置信息;步骤S40,根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)8201和/或高速缓存存储单元8202,还可以进一步包括只读存储单元(ROM)8203。
存储单元820还可以包括具有一组(至少一个)程序模块8205的程序/实用工具8204,这样的程序模块8205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。
总线830可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。
电子设备800也可以与一个或多个外部设备900(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备800交互的设备通信,和/或与使得该电子设备800能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口850进行。并且,电子设备800还可以通过网络适配器860与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器860通过总线830与电子设备800的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备800使用其它硬 件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。

Claims (14)

  1. 一种缩略图生成方法,包括:
    终端根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
    所述终端按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
    所述终端确定目标对象区域在所述第一缩略图中的位置信息;
    所述终端根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
  2. 根据权利要求1所述的缩略图生成方法,其中,所述终端根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例包括:
    若所述缩略图展示区域的宽度大于高度,则所述终端根据所述用于生成缩略图的图片的宽度与所述缩略图展示区域的宽度确定所述缩放比例;
    若所述缩略图展示区域的宽度不大于高度,则所述终端根据所述用于生成缩略图的图片的高度与所述缩略图展示区域的高度确定所述缩放比例。
  3. 根据权利要求1或2所述的缩略图生成方法,其中,所述终端按照所述缩放比例对所述用于生成缩略图的图片进行缩放包括:
    所述终端按照所述缩放比例对所述用于生成缩略图的图片进行等比例缩放。
  4. 根据权利要求1所述的缩略图生成方法,其中,所述终端确定目标对象区域在所述第一缩略图中的位置信息包括:
    所述终端采用图像识别确定所述目标对象区域在所述用于生成缩略图的图片中的位置信息;
    所述终端按照所述缩放比例对所述目标对象区域的位置信息进行等比例缩放,确定所述目标对象在所述第一缩略图中的位置信息。
  5. 根据权利要求1所述的缩略图生成方法,其中,所述终端确定目标对象区域在所述第一缩略图中的位置信息包括:
    所述终端采用图像识别确定所述目标对象区域在所述第一缩略图中的位置信息。
  6. 根据权利要求4或5所述的缩略图生成方法,其中,所述终端根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图包括:
    所述终端根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息计算偏移量;
    所述终端根据所述偏移量确定对所述第一缩略图进行截取的位置;
    所述终端从所述截取的位置对所述第一缩略图进行截取,得到包含所述目标对象区域的第二缩略图。
  7. 根据权利要求6所述的缩略图生成方法,其中,所述终端根据所述缩略图展示区 域的尺寸以及目标对象区域在所述第一缩略图中的位置信息计算偏移量包括:
    所述终端根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息确定所述目标对象区域在所述缩略图展示区域居中显示时的偏移量。
  8. 一种缩略图生成装置,包括:
    缩放比例确定模块,用于根据用于生成缩略图的图片的尺寸和缩略图展示区域的尺寸确定缩放比例;
    图像缩放模块,用于按照所述缩放比例对所述用于生成缩略图的图片进行缩放,得到尺寸大于所述缩略图展示区域的尺寸的第一缩略图;
    位置确定模块,用于确定目标对象区域在所述第一缩略图中的位置信息;
    图像裁取模块,用于根据所述缩略图展示区域的尺寸以及目标对象区域在所述第一缩略图中的位置信息对所述第一缩略图进行裁取,得到包含所述目标对象区域的第二缩略图。
  9. 根据权利要求8所述的缩略图生成装置,其中,所述确定目标对象区域在所述第一缩略图中的位置信息包括:
    采用图像识别确定所述目标对象区域在所述用于生成缩略图的图片中的位置信息;
    按照所述缩放比例对所述目标对象区域的位置信息进行等比例缩放,确定所述目标对象在所述第一缩略图中的位置信息。
  10. 根据权利要求8所述的缩略图生成装置,其中,所述确定目标对象区域在所述第一缩略图中的位置信息包括:
    采用图像识别确定所述目标对象区域在所述第一缩略图中的位置信息。
  11. 根据权利要求9或10所述的缩略图生成装置,其中,所述图像裁取模块包括:
    偏移量计算单元,用于根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息计算偏移量;
    裁取位置确定单元,用于根据所述偏移量确定对所述第一缩略图进行截取的位置;
    图像裁取单元,用于从所述截取的位置对所述第一缩略图进行截取,得到包含所述目标对象区域的第二缩略图。
  12. 根据权利要求11所述的缩略图生成装置,其中,所述偏移量计算单元用于,根据所述缩略图展示区域的尺寸以及所述目标对象区域在所述第一缩略图中的位置信息,确定所述目标对象区域在所述缩略图展示区域居中显示时的偏移量。
  13. 一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的缩略图生成方法。
  14. 一种电子设备,包括:
    处理器;以及
    存储器,用于存储所述处理器的可执行指令;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1至7中任一项所述的缩略图生成方法。
PCT/CN2018/109362 2017-10-11 2018-10-08 缩略图生成方法及装置、电子设备、存储介质 WO2019072149A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710939863.9A CN109947972A (zh) 2017-10-11 2017-10-11 缩略图生成方法及装置、电子设备、存储介质
CN201710939863.9 2017-10-11

Publications (1)

Publication Number Publication Date
WO2019072149A1 true WO2019072149A1 (zh) 2019-04-18

Family

ID=66100378

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/109362 WO2019072149A1 (zh) 2017-10-11 2018-10-08 缩略图生成方法及装置、电子设备、存储介质

Country Status (2)

Country Link
CN (1) CN109947972A (zh)
WO (1) WO2019072149A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110321449A (zh) * 2019-06-28 2019-10-11 维沃移动通信有限公司 一种图片显示方法及终端
CN111738917A (zh) * 2019-06-06 2020-10-02 北京京东尚科信息技术有限公司 一种图片伸缩方法、装置、设备和存储介质
EP3964937A4 (en) * 2019-06-30 2022-11-09 Huawei Technologies Co., Ltd. USER PROFILE PHOTO GENERATION METHOD AND ELECTRONIC DEVICE

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110458911A (zh) * 2019-08-06 2019-11-15 网易无尾熊(杭州)科技有限公司 图像生成方法、装置、介质和电子设备
CN110660115A (zh) * 2019-08-20 2020-01-07 海南车智易通信息技术有限公司 一种广告图的生成方法、装置及系统
CN112445394B (zh) * 2019-08-30 2024-06-21 北京沃东天骏信息技术有限公司 一种截图方法和装置
CN110825282B (zh) * 2019-09-18 2024-01-05 五八有限公司 一种图片展示方法、装置、电子设备及存储介质
CN110852946A (zh) * 2019-10-30 2020-02-28 北京字节跳动网络技术有限公司 图片展示方法、装置和电子设备
CN111063001B (zh) * 2019-12-18 2023-11-10 北京金山安全软件有限公司 图片合成方法、装置、电子设备以及存储介质
CN111145093A (zh) * 2019-12-20 2020-05-12 北京五八信息技术有限公司 图像显示方法、装置、电子设备及存储介质
CN111159447A (zh) * 2019-12-27 2020-05-15 海南简族信息技术有限公司 一种图片展示方法、装置、设备及计算机可读存储介质
CN113835792B (zh) * 2020-06-23 2024-07-05 北京字节跳动网络技术有限公司 绘制页面元素的方法和装置
CN112199138A (zh) * 2020-09-01 2021-01-08 北京达佳互联信息技术有限公司 任务图片的展示方法、装置及服务器
CN112738629B (zh) * 2020-12-29 2023-03-10 北京达佳互联信息技术有限公司 视频展示方法、装置、电子设备和存储介质
CN112667220B (zh) * 2021-01-27 2023-07-07 北京字跳网络技术有限公司 一种动画生成方法、装置以及计算机存储介质
CN113760205A (zh) * 2021-01-28 2021-12-07 北京沃东天骏信息技术有限公司 一种图片的显示方法和装置
CN115033154A (zh) * 2021-02-23 2022-09-09 北京小米移动软件有限公司 缩略图生成方法、缩略图生成装置及存储介质
CN112927241A (zh) * 2021-03-08 2021-06-08 携程旅游网络技术(上海)有限公司 图片截取和缩略图生成方法、系统、设备及储存介质
CN113592872A (zh) * 2021-08-16 2021-11-02 北京字节跳动网络技术有限公司 一种图片展示的方法、装置以及计算机存储介质
CN113835812B (zh) * 2021-09-24 2024-04-30 深圳集智数字科技有限公司 聊天界面展示方法、装置、电子设备及存储介质
CN113889230A (zh) * 2021-09-29 2022-01-04 纳米维景(上海)医疗科技有限公司 应用于CT机的Dicom图像缩略图的加载方法、存储介质及终端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100266208A1 (en) * 2009-04-15 2010-10-21 Microsoft Corporation Automated Image Cropping to Include Particular Subjects
CN103824252A (zh) * 2014-02-10 2014-05-28 安徽科大讯飞信息科技股份有限公司 图片处理方法及系统
CN103903221A (zh) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 一种图片生成方法、装置和系统
CN104063844A (zh) * 2013-03-21 2014-09-24 腾讯科技(深圳)有限公司 一种缩略图生成方法及系统
CN104952027A (zh) * 2014-10-11 2015-09-30 腾讯科技(北京)有限公司 一种包含人脸信息的图片剪裁方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100266208A1 (en) * 2009-04-15 2010-10-21 Microsoft Corporation Automated Image Cropping to Include Particular Subjects
CN103903221A (zh) * 2012-12-24 2014-07-02 腾讯科技(深圳)有限公司 一种图片生成方法、装置和系统
CN104063844A (zh) * 2013-03-21 2014-09-24 腾讯科技(深圳)有限公司 一种缩略图生成方法及系统
CN103824252A (zh) * 2014-02-10 2014-05-28 安徽科大讯飞信息科技股份有限公司 图片处理方法及系统
CN104952027A (zh) * 2014-10-11 2015-09-30 腾讯科技(北京)有限公司 一种包含人脸信息的图片剪裁方法及装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738917A (zh) * 2019-06-06 2020-10-02 北京京东尚科信息技术有限公司 一种图片伸缩方法、装置、设备和存储介质
CN110321449A (zh) * 2019-06-28 2019-10-11 维沃移动通信有限公司 一种图片显示方法及终端
CN110321449B (zh) * 2019-06-28 2021-07-27 维沃移动通信有限公司 一种图片显示方法及终端
US12008215B2 (en) 2019-06-28 2024-06-11 Vivo Mobile Communication Co., Ltd. Image display method and terminal
EP3964937A4 (en) * 2019-06-30 2022-11-09 Huawei Technologies Co., Ltd. USER PROFILE PHOTO GENERATION METHOD AND ELECTRONIC DEVICE
US11914850B2 (en) 2019-06-30 2024-02-27 Huawei Technologies Co., Ltd. User profile picture generation method and electronic device

Also Published As

Publication number Publication date
CN109947972A (zh) 2019-06-28

Similar Documents

Publication Publication Date Title
WO2019072149A1 (zh) 缩略图生成方法及装置、电子设备、存储介质
EP3105921B1 (en) Photo composition and position guidance in an imaging device
US9478006B2 (en) Content aware cropping
WO2021238943A1 (zh) Gif图片生成方法、装置及电子设备
CN110100251B (zh) 用于处理文档的设备、方法和计算机可读存储介质
WO2020007241A1 (zh) 图像处理方法和装置、电子设备以及计算机可读存储介质
WO2018228330A1 (zh) 实现人脸清晰的对焦方法、装置和计算机设备
US20190050426A1 (en) Automatic grouping based handling of similar photos
US20220174237A1 (en) Video special effect generation method and terminal
WO2018166069A1 (zh) 拍照预览方法、图形用户界面及终端
WO2023207145A1 (zh) 截屏方法、装置、电子设备及计算机可读介质
WO2021115279A1 (zh) 图片显示方法及电子设备
US11190653B2 (en) Techniques for capturing an image within the context of a document
WO2019154258A1 (zh) 对象处理方法及装置
CN113660504B (zh) 消息展示方法、装置、电子设备以及存储介质
WO2022143060A1 (zh) 一种屏幕采集方法、终端及存储介质
WO2022077977A1 (zh) 视频转换方法及视频转换装置
CN112527172A (zh) 界面显示方法及装置、计算机可读存储介质、电子设备
US20170186207A1 (en) Information processing method and terminal, and computer storage medium
CN111757177B (zh) 视频裁剪方法及装置
WO2021169230A1 (zh) 病理切片图像的展示方法及装置、电子设备和存储介质
KR101922073B1 (ko) 이미지의 피사체 정보 시각화 방법 및 그 장치
WO2022061723A1 (zh) 一种图像处理方法、设备、终端及存储介质
WO2020224158A1 (zh) 编辑方法、计算机可读存储介质及终端
US20230289919A1 (en) Video stream refinement for dynamic scenes

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18865921

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18865921

Country of ref document: EP

Kind code of ref document: A1