CN104205031A - Image zoom method and equipment - Google Patents
Image zoom method and equipment Download PDFInfo
- Publication number
- CN104205031A CN104205031A CN201480000605.9A CN201480000605A CN104205031A CN 104205031 A CN104205031 A CN 104205031A CN 201480000605 A CN201480000605 A CN 201480000605A CN 104205031 A CN104205031 A CN 104205031A
- Authority
- CN
- China
- Prior art keywords
- picture
- zoomed
- zooming
- acquiring
- face
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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/04845—Interaction 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/69—Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04806—Zoom, i.e. interaction techniques or interactors for controlling the zooming operation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
An embodiment of the invention provides an image zoom method and equipment. The method comprises a step of acquiring an instruction for carrying zoom operation on an image to be zoomed, a step of acquiring attribute information of the image to be zoomed and determing a zoomed point of the image to be zoomed according to the attribute information of the image to be zoomed, a step of zooming the image to be zoomed with the zoomed point as a zooming center. The image zoom method and equipment provided by the embodiment of the invention simplifies operation in the image zoom processing.
Description
Technical Field
The present invention relates to image processing technologies, and in particular, to an image scaling method and device.
Background
The picture scaling technique includes two techniques of picture enlargement and picture reduction. In daily applications, when a user browses a photo on user equipment, the photo is zoomed.
In the prior art, when user equipment includes a touch screen, a user determines a position to be zoomed, then quickly double-clicks a point at the position to be zoomed, and then the user equipment zooms a picture by taking the point as a center; or, the user performs a double-finger pinch operation at the position to be zoomed, and the user equipment performs zooming on the picture by taking the center point of the connecting line of the double-finger pinch at the screen drop point as the center. When the user equipment does not comprise a touch screen, after a user triggers a zooming operation through external equipment such as a key or a mouse, the user equipment zooms the picture by taking the center position of the picture as the center, and then the user moves the position of the picture so as to display the picture zooming point which is interested by the user on the screen of the user equipment.
However, in the prior art, the user equipment zooms the picture according to the landing point of the finger of the user on the screen, or zooms the picture according to the center position of the picture, and when the user obtains the interested picture zooming point, the operation is very cumbersome.
Disclosure of Invention
The embodiment of the invention provides a picture zooming method and picture zooming equipment, which are used for simplifying the operation of a user in the picture zooming processing process and improving the operation efficiency.
In a first aspect, the present invention provides a method for scaling an image, including:
acquiring an instruction for carrying out zooming operation on a picture to be zoomed;
acquiring attribute information of the picture to be zoomed, and determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
and zooming the picture to be zoomed by taking the zooming point as a zooming center.
With reference to the first aspect, in a first possible implementation manner of the first aspect, before the obtaining the attribute information of the picture to be zoomed, the method further includes:
when the picture to be zoomed is obtained by photographing, recording the focus position of the picture to be zoomed when the picture to be zoomed is photographed and focused, and taking the focus position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
With reference to the first aspect, in a second possible implementation manner of the first aspect, before the obtaining the attribute information of the picture to be zoomed, the method further includes:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the performing face recognition on the picture to be zoomed to obtain a position of a face in the picture to be zoomed includes:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
With reference to the first aspect, in a fourth possible implementation manner of the first aspect, before the obtaining the attribute information of the picture to be zoomed, the method further includes:
acquiring the picture type of the picture to be zoomed, determining a zooming area corresponding to the picture type according to a picture information table, and taking the zooming area as attribute information of the picture to be zoomed, wherein the picture information table stores the corresponding relation between the picture type and the zooming area;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, before the obtaining the picture type of the picture to be zoomed, the method further includes:
acquiring a zoom area of a standard picture determined by a user and a picture type of the standard picture, establishing a corresponding relation between the picture type and the zoom area, and storing the corresponding relation into the picture information table.
With reference to the first aspect and any one of the first to fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the obtaining an instruction, triggered by a user, to perform a zoom operation on a picture to be zoomed includes any one of the following:
acquiring an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed;
acquiring an instruction which is triggered by a user through voice and used for carrying out zooming operation on the picture to be zoomed;
and acquiring an instruction for zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
In a second aspect, the present invention provides a user equipment, comprising:
the instruction acquisition module is used for acquiring an instruction for carrying out zooming operation on the image to be zoomed;
the zooming point acquisition module is used for acquiring the attribute information of the picture to be zoomed and determining the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
and the zooming processing module is used for zooming the picture to be zoomed by taking the zooming point as a zooming center.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: the first attribute acquisition module is used for recording the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused before the zoom point acquisition module acquires the attribute information of the picture to be zoomed, and taking the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the zoom point acquisition module is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
With reference to the second aspect, in a second possible implementation manner of the second aspect, the method further includes: a second attribute obtaining module, configured to, before the attribute information of the to-be-zoomed picture is obtained by the zoom point obtaining module, perform face recognition on the to-be-zoomed picture when it is determined that the to-be-zoomed picture includes a face, obtain a position of the face in the to-be-zoomed picture, and use the position of the face in the to-be-zoomed picture as the attribute information of the to-be-zoomed picture;
the zoom point acquisition module is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the second attribute obtaining module is specifically configured to:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
With reference to the second aspect, in a fourth possible implementation manner of the second aspect, the method further includes: a third attribute obtaining module, configured to obtain a picture type of the picture to be zoomed before the zoom point obtaining module obtains the attribute information of the picture to be zoomed, determine, according to a picture information table, a zoom region corresponding to the picture type, and use the zoom region as the attribute information of the picture to be zoomed, where a correspondence between the picture type and the zoom region is stored in the picture information table;
the zoom point acquisition module is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the method further includes: and the relationship establishing module is used for acquiring a zooming area of the standard picture determined by a user and the picture type of the standard picture before the zooming point acquiring module acquires the picture type of the picture to be zoomed, establishing a corresponding relationship between the picture type and the zooming area, and storing the corresponding relationship into the picture information table.
With reference to the second aspect and any one of the first to fifth possible implementation manners of the second aspect, in a sixth possible implementation manner of the second aspect, the instruction obtaining module is specifically configured to implement any one of the following manners:
acquiring an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed;
acquiring an instruction which is triggered by a user through voice and used for carrying out zooming operation on the picture to be zoomed;
and acquiring an instruction for zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
In a third aspect, the present invention provides a user equipment, comprising:
the input device is used for acquiring an instruction for carrying out zooming operation on the picture to be zoomed;
and the processor is used for acquiring the attribute information of the picture to be zoomed, determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed, and zooming the picture to be zoomed by taking the zooming point as a zooming center.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the processor is further configured to, before the input device acquires the attribute information of the picture to be zoomed, record a focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused, and use the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the processor is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
With reference to the third aspect, in a second possible implementation manner of the third aspect, the processor is further configured to: before the input device acquires the attribute information of the picture to be zoomed, when the picture to be zoomed comprises a face, carrying out face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed;
the processor is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the processor is configured to, when it is determined that the picture to be zoomed includes a face, perform face recognition on the picture to be zoomed, and acquire a position of the face in the picture to be zoomed, specifically:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to, before the input device acquires the attribute information of the picture to be zoomed, acquire a picture type of the picture to be zoomed, determine a zoom region corresponding to the picture type according to a picture information table, and use the zoom region as the attribute information of the picture to be zoomed, where the picture information table stores a correspondence relationship between the picture type and the zoom region;
the processor is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the processor is further configured to, before the input device acquires the picture type of the picture to be zoomed, acquire a zoom region of a standard picture and the picture type of the standard picture, which are determined by a user, establish a correspondence between the picture type and the zoom region, and store the correspondence in the picture information table.
With reference to the third aspect and any one of the first to fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the obtaining, by the input device, an instruction for performing a zoom operation on a to-be-zoomed image, where the instruction is triggered by a user, specifically:
the input device acquires an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed; or,
the input device acquires an instruction of a user for carrying out zooming operation on the picture to be zoomed, wherein the instruction is triggered by voice; or,
the input device acquires an instruction of zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
According to the image zooming method and the image zooming device, the instruction for zooming the image to be zoomed, which is triggered by the user, is obtained; acquiring attribute information of the picture to be zoomed, and determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed; and zooming the picture to be zoomed by taking the zooming point as a zooming center, wherein the user does not need to determine the zooming center, but the user equipment determines the zooming center which is interested by the user, and then the user equipment performs zooming, so that the operation of the user in the picture zooming process is simplified, and the operation efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flowchart illustrating a first embodiment of a method for scaling an image according to the present invention;
FIG. 2 is a flowchart illustrating a second embodiment of a method for scaling an image according to the present invention;
FIG. 3 is a flowchart illustrating a third embodiment of a method for scaling an image according to the present invention;
FIG. 4 is a diagram illustrating a first embodiment of a face recognition result according to the present invention;
FIG. 5 is a diagram of a second embodiment of a face recognition result of the present invention;
FIG. 6 is a diagram of a third embodiment of a face recognition result of the present invention;
FIG. 7 is a flowchart illustrating a fourth method for scaling an image according to the present invention;
fig. 8 is a schematic structural diagram of a ue according to a first embodiment of the present invention;
fig. 9 is a schematic structural diagram of a second ue embodiment according to the present invention;
fig. 10 is a schematic structural diagram of a third ue embodiment according to the present invention;
fig. 11 is a schematic structural diagram of a fourth ue according to the present invention;
fig. 12 is a schematic structural diagram of a fifth embodiment of a ue in the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, 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.
Fig. 1 is a flowchart of a first embodiment of a method for scaling an image according to the present invention. The execution subject of this embodiment is a user device, which may be implemented by any software and/or hardware. The user equipment may specifically be a mobile phone, a video camera, a computer, or other user equipment capable of performing picture processing, and may also be an execution subject of this embodiment. For the specific implementation manner of the user equipment in this embodiment, details of this embodiment are not repeated here. As shown in fig. 1, the method of this embodiment may include:
step 101, obtaining an instruction for carrying out zooming operation on a picture to be zoomed;
102, acquiring attribute information of the picture to be zoomed, and determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
and 103, zooming the picture to be zoomed by taking the zooming point as a zooming center.
In a specific implementation process, a user may perform scaling processing on a picture stored in a user device, and those skilled in the art can understand that the picture may be a picture downloaded by the user from the internet or a picture taken by the user device. The source of the picture is not limited in this embodiment.
Specifically, in step 101, the user equipment performs scaling processing on the picture only after acquiring an instruction that the user equipment performs scaling operation on the picture to be scaled.
In a specific implementation process, the user equipment obtains an instruction for performing scaling operation on a picture to be scaled, which is triggered by a user, and includes the following possible implementation manners.
According to a possible implementation manner, an instruction for zooming the picture to be zoomed, which is triggered by a user by touching any position of the picture to be zoomed, is obtained.
Specifically, when the user equipment includes a touch screen, and the user needs to perform a zoom operation on the picture to be zoomed, after the user opens the picture to be zoomed, the user may trigger an instruction for performing the zoom operation on the picture to be zoomed by touching any position of the picture to be zoomed.
In a specific implementation process, the touch screen is provided with two capacitive sensors, namely a mutual capacitance and a self-capacitance. And the mutual capacitance is used for realizing multi-point touch detection. Self-capacitance can produce a stronger signal than mutual capacitance to detect more distant finger sensing, but multi-point detection is not possible due to an effect called "ghosting". The mutual capacitance is used for completing normal touch sensing, including multi-point touch. Therefore, according to different functions of the sensor capacitance on the touch screen, the user touches the picture to be zoomed displayed on the touch screen, wherein the picture to be zoomed includes two conditions of touch control and floating touch control. For touch control, multi-touch detection by mutual capacitance is mainly used. For hover touch, a finger hovering above is detected primarily by self-capacitance.
Those skilled in the art can understand that the above description is only an illustrative example of how to implement the contact touch and the floating touch, and the implementation manner of implementing the contact touch and the floating touch is not particularly limited in this embodiment.
In another possible implementation manner, an instruction for performing a zoom operation on the picture to be zoomed, which is triggered by a voice of a user, is obtained.
Specifically, when the user equipment includes a microphone, and the user needs to perform a zoom operation on the picture to be zoomed, after the user opens the picture to be zoomed, the user may trigger an instruction to zoom the picture to be zoomed by voice, for example, "picture zoom" or the like. When a sound sensitive sensor on user equipment senses voice of a user or an earphone on the user equipment receives a signal of 'picture zooming', the semantic meaning of the voice is identified, and if the semantic meaning is picture zooming, an instruction triggered by the user to zoom the picture to be zoomed is obtained.
In another possible implementation manner, an instruction for performing a zoom operation on the picture to be zoomed, which is triggered by pressing a preset key by a user, is obtained.
Specifically, when a user needs to perform zooming operation on a picture to be zoomed, the user presses a preset key, and when a pressure sensor on user equipment senses that the user presses the preset key, an instruction triggered by the user to zoom the picture to be zoomed is acquired. Those skilled in the art can understand that, in this embodiment, the user equipment may include a touch screen, may not include the touch screen, may include a microphone, or may not include the microphone, as long as the user equipment includes a function key, and any function key set on the user equipment may be used as the preset key.
Those skilled in the art can understand that the present embodiment is not limited to the foregoing possible implementation manners, and may also be other possible implementation manners, for example, the user equipment may further obtain, through a photosensitive sensor, a gas sensor, a temperature-sensitive sensor, and the like, an instruction, which is triggered by the user and corresponds to the sensor, for performing a zoom operation on the to-be-zoomed image.
In step 102, the user equipment acquires attribute information of a picture to be zoomed. The attribute information of the picture to be zoomed refers to the attribute and information of the picture to be zoomed. For example, the focus position when photographing is focused, the position of the human face in the picture to be zoomed, the size of the picture, and the like can be used.
And determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed. For example, the focus position at the time of focusing of photographing of a picture to be zoomed is taken as a zoom point.
In step 103, the user equipment performs scaling processing on the picture to be scaled by using the scaling point determined in step 102 as a scaling center of the picture to be scaled.
According to the image zooming method provided by the embodiment of the invention, the instruction for zooming the image to be zoomed, which is triggered by a user, is obtained; acquiring attribute information of the picture to be zoomed, and determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed; and zooming the picture to be zoomed by taking the zooming point as a zooming center, wherein the user does not need to determine the zooming center, but the user equipment determines the zooming center which is interested by the user, and then the user equipment performs zooming, so that the operation of the user in the picture zooming process is simplified, and the operation efficiency is improved.
The following describes in detail the image scaling method according to the embodiment of the present invention by using several specific embodiments, and specifically refer to fig. 2 to 4.
Fig. 2 is a flowchart of a second embodiment of a method for scaling an image according to the present invention. As shown in fig. 2, the method for scaling an image provided by this embodiment includes:
step 201, when the picture to be zoomed is obtained by photographing, recording the focus position of the picture to be zoomed when the picture is photographed and focused, and taking the focus position of the picture to be zoomed when the picture is photographed and focused as the attribute information of the picture to be zoomed;
step 202, obtaining an instruction for performing zooming operation on the picture to be zoomed;
step 203, acquiring a focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed;
and step 204, taking the zooming point as a zooming center, and zooming the picture to be zoomed.
In this embodiment, step 202 is similar to step 101, and step 204 is similar to step 103, which are not described herein again.
In this embodiment, in step 201, when the picture to be zoomed is obtained by taking a picture, and the user equipment takes a picture to obtain the picture to be zoomed, the focus position when the picture is focused is recorded, and the focus position is used as the attribute information of the picture to be zoomed. Those skilled in the art will understand that the attribute information of the picture to be zoomed includes information of various pictures to be zoomed, and here, the focus position is only used as one attribute information of the picture to be zoomed.
In step 203, the user equipment acquires the attribute information, acquires the focal position of the photographing focus from the attribute information, and takes the focal position of the photographing focus as the zoom point of the picture to be zoomed.
Those skilled in the art can understand that, in the embodiment, the to-be-zoomed picture obtained by photographing may be stored in the user equipment together with the to-be-zoomed picture by taking the focus position as the attribute information of the to-be-zoomed picture in advance. When the user needs to zoom the picture to be zoomed, the attribute information can be directly used without being acquired again, i.e. the process is directly started from step 202.
According to the image zooming method provided by the embodiment of the invention, when the image to be zoomed is obtained by photographing, the focus position during photographing focusing is recorded, and the focus position during photographing focusing is used as the attribute information of the image to be zoomed; acquiring an instruction for carrying out zooming operation on a picture to be zoomed, which is triggered by a user; acquiring the focal position of the photographing focus, and taking the focal position of the photographing focus as a zooming point of the picture to be zoomed; and zooming the picture to be zoomed by taking the zooming point as a zooming center. Because the picture to be zoomed obtained by photographing only has one focus, when the user zooms the picture, the picture to be zoomed is zoomed by taking the focus position as a zooming point and taking the zooming point as a zooming center, so that the focus of the user is better focused, and the operation of the user is simplified.
Fig. 3 is a flowchart of a third embodiment of a method for scaling an image according to the present invention. As shown in fig. 3, the method for scaling an image according to this embodiment includes:
step 301, when it is determined that the picture to be zoomed includes a face, performing face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and using the position of the face in the picture to be zoomed as attribute information of the picture to be zoomed;
step 302, obtaining an instruction for performing zooming operation on the picture to be zoomed;
step 303, obtaining the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed;
and step 304, taking the zooming point as a zooming center, and zooming the picture to be zoomed.
In this embodiment, step 302 is similar to step 101, and step 304 is similar to step 103, which are not described herein again.
The picture to be zoomed in the present embodiment may be a photographic work of a subject person or a picture of a subject person. The following embodiment describes a specific implementation process in detail.
In step 301, a picture to be zoomed is identified through a face identification technology, whether the picture to be zoomed includes a face is determined, if the picture to be zoomed includes the face, the position of the face in the picture to be zoomed is obtained, and the position of the face in the picture to be zoomed is used as attribute information of the picture to be zoomed. The face recognition method related to the face recognition technology in this embodiment may specifically be a face recognition method of geometric features, a face recognition method of a neural network, a face recognition method of elastic image matching, a face recognition method of a support vector machine, or the like. For a specific face recognition method, details of this embodiment are not repeated here.
Further, step 301 may be specifically divided into the following two possible implementation manners according to the number of faces in the picture to be zoomed.
In a first possible implementation manner, it is determined that the picture to be zoomed includes a face, and the face recognition is performed on the picture to be zoomed to obtain the number of faces in the picture to be zoomed; and when the number of the human faces is 1, acquiring the position of the human face in the picture to be zoomed, and taking the position of the human face in the picture to be zoomed as the attribute information of the picture to be zoomed.
Specifically, when the number of faces is 1, as shown in fig. 4, fig. 4 is a schematic diagram of a first embodiment of the face recognition result of the present invention, and in fig. 4, the position enclosed by the black line frame is the recognition result of the face. In fig. 4, one face is included. The center position of the black line frame is the position of the face in the picture to be zoomed, and then the position of the face in the picture to be zoomed is used as the attribute information of the picture to be zoomed.
In a second possible implementation manner, when the number of faces is multiple, the two possible situations are divided into two, specifically as follows:
one possible scenario is: determining that the picture to be zoomed comprises a face, and carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed; when the number of the faces is more than 1, determining the face corresponding to the largest area in the faces, acquiring the position of the face corresponding to the largest area in the picture to be zoomed, and then taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed.
Specifically, when the number of faces is multiple, as shown in fig. 5, fig. 5 is a schematic diagram of a second embodiment of the face recognition result of the present invention, and in fig. 5, the position enclosed by the black line frame is the recognition result of the face. In fig. 5, 3 faces are included. At this time, the size of the area of the 3 faces is obtained, the area of the face located at the top is the largest, at this time, the position of the face in the picture to be zoomed is obtained, and then the position of the face in the picture to be zoomed is used as the attribute information of the picture to be zoomed.
Another possible scenario is: determining that the picture to be zoomed comprises a face, and carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed; and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
Specifically, the preset region in this embodiment may be a preset central region, a preset upper region, a preset lower region, a preset left region, a preset right region, and the like, and the specific region represented by the preset region is not particularly limited herein. Taking a specific example as an example, when the number of faces is multiple, as shown in fig. 6, fig. 6 is a schematic diagram of a third embodiment of the face recognition result of the present invention, and in fig. 6, the position enclosed by the black line frame is the recognition result of the face. In fig. 6, a total of 5 faces are identified. Counting from left to right, if the third face is located in the preset central area, the position of the third face in the picture to be zoomed is obtained, and then the position of the face in the picture to be zoomed is used as the attribute information of the picture to be zoomed.
Those skilled in the art can understand that the attribute information of the picture to be zoomed includes information of various pictures to be zoomed, and in the above embodiments, only the position of the face in the picture to be zoomed is taken as one attribute information of the picture to be zoomed.
Further, in the specific implementation process, step 301 and step 302 have no strict timing relationship. The position of the face in the picture to be zoomed can be used as the attribute information of the picture to be zoomed in advance, and the position of the face in the picture to be zoomed can be obtained and used as the attribute information after the instruction for zooming the picture to be zoomed, which is triggered by the user, is obtained.
In step 303, the user equipment acquires the attribute information of the picture to be zoomed, acquires the position of the face in the picture to be zoomed from the attribute information of the picture to be zoomed, and takes the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
The embodiment of the invention carries out face recognition on the picture to be zoomed to obtain the position of the face in the picture to be zoomed, and the position of the face in the picture to be zoomed is taken as the attribute information of the picture to be zoomed; acquiring an instruction for carrying out zooming operation on a picture to be zoomed, which is triggered by a user; acquiring attribute information of the picture to be zoomed, acquiring the position of the face in the picture to be zoomed from the attribute information of the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed; and zooming the picture to be zoomed by taking the zooming point as a zooming center. When the user zooms the photo, the face position is used as a zooming point, the zooming point is used as a zooming center, and the picture to be zoomed is zoomed, so that the focus of the user is better focused, and the operation of the user is simplified.
FIG. 7 is a flowchart illustrating a fourth method for scaling an image according to the present invention. As shown in fig. 7, the method for scaling an image according to this embodiment includes:
step 701, obtaining a zoom area of a standard picture and a picture type of the standard picture determined by a user, establishing a corresponding relation between the picture type and the zoom area, and storing the corresponding relation into the picture information table;
step 702, acquiring the picture type of the picture to be zoomed, determining a zooming area corresponding to the picture type according to a picture information table, and taking the zooming area as attribute information of the picture to be zoomed;
step 703, obtaining an instruction for performing a zoom operation on the picture to be zoomed;
step 704, obtaining the zooming area, determining a central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed;
step 705, taking the zoom point as a zoom center, and performing zoom processing on the picture to be zoomed.
In this embodiment, step 703 is similar to step 101, and step 705 is similar to step 103, which are not described herein again.
In step 701, a picture information table is first established, and those skilled in the art can understand that the picture information table may be established by the user equipment in this embodiment, or may be pre-established by other user equipment and pre-stored in the user equipment in this embodiment. The picture information table mainly has the function of determining the zooming area according to the historical behavior rule of the user.
In a specific implementation process, user equipment acquires a zoom region of a standard picture determined by a user and a picture type of the standard picture, establishes a corresponding relationship between the picture type and the zoom region, and stores the corresponding relationship into a picture information table, namely the picture information table is used for storing the corresponding relationship between the picture type and the zoom region.
Wherein the standard picture is a picture of which the user equipment has determined the zoom area. The zooming area of the picture to be zoomed determined by the user in the past can be collected and used as the zooming area of the standard picture. Or, providing a plurality of standard images for a plurality of users, determining the zooming area of each standard image by the plurality of users, then collecting information, integrating, establishing the corresponding relation between the picture type and the zooming area, and storing the corresponding relation into the picture information table. The picture type can be various landscape pictures, various human pictures or various animal pictures, etc. For example, when the picture type is a landscape picture, since the landscape picture involves many scenes, the zoom area may be a central area of the landscape picture or an area where a main scene of the landscape picture is located; when the picture type is a figure picture, the zooming area can be the middle upper area of the picture because the human face is positioned at the middle upper part of the picture; when the picture type is an animal picture, the corresponding zoom areas of different animals are different, when the animal is a bird, the zoom area can be the middle upper area of the picture, and when the animal is a land animal, the zoom area can be the middle lower area of the picture. The embodiment is not particularly limited herein with respect to the correspondence between the picture type and the zoom area.
In step 702, a picture type of the picture to be zoomed is obtained, a zooming area corresponding to the picture type is determined in the picture information table, and the zooming area is used as attribute information of the picture to be zoomed.
Specifically, the corresponding relationship between the picture type of the standard picture and the zooming area is stored in the picture information table, when the zooming point of the picture to be zoomed is obtained, the picture type of the picture to be zoomed is obtained first, then the picture type of the picture to be zoomed is matched with the picture type of the standard picture in the picture information table, and when the picture type of the picture to be zoomed is consistent with the picture type of the standard picture in the picture information table, the zooming area corresponding to the picture type of the standard picture in the picture information table is used as the zooming area of the picture to be zoomed and is used as the attribute information of the picture to be zoomed.
For example, after the picture to be zoomed is acquired, the picture type of the picture to be zoomed is determined to be a landscape picture through an image recognition technology, the picture type of the picture to be zoomed is matched with the picture type of the standard picture in the picture information table, when the picture type of the standard picture is the landscape picture, the matching is successful, a zooming area corresponding to the standard picture in the picture information table is used as a zooming area of the picture to be zoomed, and the zooming area is used as attribute information of the picture to be zoomed.
For another example, after the picture to be zoomed is obtained, the picture type of the picture to be zoomed is determined to be a bird picture in an animal picture through an image recognition technology, the bird picture is matched with the picture type of the standard picture in the picture information table, when the picture type of the standard picture is the bird picture, the matching is successful, the zooming area corresponding to the standard picture in the picture information table is used as the zooming area of the picture to be zoomed, and the zooming area is used as the attribute information of the picture to be zoomed.
For other specific embodiments, the description of the present embodiment is omitted here. As will be understood by those skilled in the art, the attribute information of the picture to be zoomed includes information of various pictures to be zoomed, and in the above embodiments, only the zoom area is used as one attribute information of the picture to be zoomed.
Further, in the specific implementation process, the step 702 and the step 703 have no strict timing relationship. The zooming region can be used as attribute information of the picture to be zoomed in advance, or after an instruction triggered by a user for zooming the picture to be zoomed is obtained, the picture type of the picture to be zoomed is obtained, the zooming region corresponding to the picture type is determined in the picture information table, and the zooming region is used as the attribute information of the picture to be zoomed.
In step 704, the user equipment obtains attribute information of the picture to be zoomed, obtains a zooming region from the attribute information of the picture to be zoomed, determines a center point of the zooming region, and takes the center point of the zooming region as a zooming point of the picture to be zoomed.
According to the image zooming method provided by the embodiment of the invention, the zooming area of the standard image determined by a user and the image type of the standard image are obtained, the corresponding relation between the image type and the zooming area is established, and the corresponding relation is stored in the image information table; acquiring the picture type of the picture to be zoomed, determining a zooming area corresponding to the picture type in a picture information table, and taking the zooming area as attribute information of the picture to be zoomed; acquiring an instruction for carrying out zooming operation on a picture to be zoomed, which is triggered by a user; acquiring attribute information of the picture to be zoomed, acquiring the zooming area from the attribute information of the picture to be zoomed, determining a central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed; and zooming the picture to be zoomed by taking the zooming point as a zooming center. When the user zooms the photo, the zooming point is determined according to the historical behavior activity of the user, and the picture to be zoomed is zoomed by taking the zooming point as a zooming center, so that the focus of the user is better focused, and the operation of the user is simplified.
Fig. 8 is a schematic structural diagram of a ue according to a first embodiment of the present invention. As shown in fig. 8, the user equipment 80 provided in the embodiment of the present invention includes: an instruction acquisition module 801, a zoom point acquisition module 802, and a zoom processing module 803.
An instruction obtaining module 801, configured to obtain an instruction for performing a scaling operation on a picture to be scaled;
a zooming point obtaining module 802, configured to obtain attribute information of the picture to be zoomed, and determine a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
a scaling module 803, configured to perform scaling processing on the to-be-scaled picture with the scaling point as a scaling center.
The user equipment provided by the embodiment of the present invention may be configured to execute the technical solution of the method embodiment, and the technical effect and the technical principle are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a second ue embodiment of the present invention. As shown in fig. 9, this embodiment further includes, on the basis of the embodiment in fig. 8: a first attribute obtaining module 804, configured to record a focal position of the to-be-zoomed picture when the to-be-zoomed picture is photographed and focused before the zoom point obtaining module obtains the attribute information of the to-be-zoomed picture, and use the focal position of the to-be-zoomed picture when the to-be-zoomed picture is photographed and focused as the attribute information of the to-be-zoomed picture;
the zoom point obtaining module 802 is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
The user equipment provided by the embodiment of the present invention may be configured to execute the technical solution of the method embodiment, and the technical effect and the technical principle are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a third ue embodiment of the present invention. As shown in fig. 10, this embodiment further includes, on the basis of the embodiment in fig. 8: a second attribute obtaining module 805, configured to, before the attribute information of the to-be-zoomed picture is obtained by the zoom point obtaining module, perform face recognition on the to-be-zoomed picture when it is determined that the to-be-zoomed picture includes a face, obtain a position of the face in the to-be-zoomed picture, and use the position of the face in the to-be-zoomed picture as the attribute information of the to-be-zoomed picture;
the zoom point obtaining module 802 is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
Optionally, the second attribute obtaining module 805 is specifically configured to:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
The user equipment provided by the embodiment of the present invention may be configured to execute the technical solution of the method embodiment, and the technical effect and the technical principle are similar, which are not described herein again.
Fig. 11 is a schematic structural diagram of a fourth ue in accordance with the present invention. As shown in fig. 11, this embodiment further includes, on the basis of the embodiment in fig. 8: a third attribute obtaining module 806, configured to, before the zoom point obtaining module obtains the attribute information of the picture to be zoomed, obtain a picture type of the picture to be zoomed, determine, according to a picture information table, a zoom region corresponding to the picture type, and use the zoom region as the attribute information of the picture to be zoomed, where a correspondence between the picture type and the zoom region is stored in the picture information table;
the zoom point obtaining module 802 is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
Optionally, the method further comprises: a relationship establishing module 807, configured to, before the zoom point obtaining module obtains the picture type of the picture to be zoomed, obtain a zoom region of a standard picture and the picture type of the standard picture determined by a user, establish a corresponding relationship between the picture type and the zoom region, and store the corresponding relationship in the picture information table.
The user equipment provided by the embodiment of the present invention may be configured to execute the technical solution of the method embodiment, and the technical effect and the technical principle are similar, which are not described herein again.
Optionally, on the basis of the embodiments in fig. 8 to fig. 11, the instruction obtaining module 801 is specifically configured to implement any one of the following manners:
acquiring an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed;
acquiring an instruction which is triggered by a user through voice and used for carrying out zooming operation on the picture to be zoomed;
and acquiring an instruction for zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
Fig. 12 is a schematic structural diagram of a fifth embodiment of a ue in the present invention. As shown in fig. 12, the user equipment 90 provided by the embodiment of the present invention includes an input device 901 and a processor 902.
An input device 901, configured to obtain an instruction for performing a zoom operation on a to-be-zoomed picture;
the processor 902 is configured to obtain attribute information of the picture to be zoomed, determine a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed, and zoom the picture to be zoomed by using the zooming point as a zooming center.
Optionally, the processor 902 is further configured to, before the input device 901 acquires the attribute information of the picture to be zoomed, record a focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused, and use the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the processor 902 is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
Optionally, the processor 902 is further configured to: before the input device 901 acquires the attribute information of the picture to be zoomed, when the picture to be zoomed comprises a face, performing face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed;
the processor 902 is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
Optionally, the processor 902 is configured to, when it is determined that the picture to be zoomed includes a face, perform face recognition on the picture to be zoomed, and acquire a position of the face in the picture to be zoomed, specifically:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
Optionally, the processor 902 is further configured to, before the input device 901 obtains the attribute information of the picture to be zoomed, obtain a picture type of the picture to be zoomed, determine a zoom region corresponding to the picture type according to a picture information table, and use the zoom region as the attribute information of the picture to be zoomed, where the picture information table stores a correspondence between the picture type and the zoom region;
the processor 902 is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
Optionally, the processor 902 is further configured to, before the input device 901 acquires the picture type of the picture to be zoomed, acquire a zoom region of a standard picture determined by a user and the picture type of the standard picture, establish a corresponding relationship between the picture type and the zoom region, and store the corresponding relationship in the picture information table.
Optionally, the input device 901 obtains an instruction for performing a zoom operation on a to-be-zoomed image triggered by a user, specifically:
the input device 901 obtains an instruction for zooming the picture to be zoomed, which is triggered by a user by touching any position of the picture to be zoomed; or,
the input device 901 obtains an instruction of a user for performing zooming operation on the picture to be zoomed, which is triggered by voice; or,
the input device 901 obtains an instruction for performing a zoom operation on the picture to be zoomed, which is triggered by pressing a preset key by a user.
The user equipment provided by the embodiment of the present invention may be configured to execute the technical solution of the method embodiment, and the technical effect and the technical principle are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (21)
1. A picture scaling method, comprising:
acquiring an instruction for carrying out zooming operation on a picture to be zoomed;
acquiring attribute information of the picture to be zoomed, and determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
and zooming the picture to be zoomed by taking the zooming point as a zooming center.
2. The method according to claim 1, wherein before the obtaining the attribute information of the picture to be zoomed, the method further comprises:
when the picture to be zoomed is obtained by photographing, recording the focus position of the picture to be zoomed when the picture to be zoomed is photographed and focused, and taking the focus position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
3. The method according to claim 1, wherein before the obtaining the attribute information of the picture to be zoomed, the method further comprises:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
4. The method according to claim 3, wherein the performing face recognition on the picture to be zoomed to obtain the position of the face in the picture to be zoomed comprises:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
5. The method according to claim 1, wherein before the obtaining the attribute information of the picture to be zoomed, the method further comprises:
acquiring the picture type of the picture to be zoomed, determining a zooming area corresponding to the picture type according to a picture information table, and taking the zooming area as attribute information of the picture to be zoomed, wherein the picture information table stores the corresponding relation between the picture type and the zooming area;
the obtaining of the attribute information of the picture to be zoomed and the determining of the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed include:
and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
6. The method according to claim 5, wherein before the obtaining the picture type of the picture to be zoomed, further comprising:
acquiring a zoom area of a standard picture determined by a user and a picture type of the standard picture, establishing a corresponding relation between the picture type and the zoom area, and storing the corresponding relation into the picture information table.
7. The method according to any one of claims 1 to 6, wherein the obtaining of the instruction for performing the zoom operation on the picture to be zoomed, which is triggered by the user, includes any one of the following:
acquiring an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed;
acquiring an instruction which is triggered by a user through voice and used for carrying out zooming operation on the picture to be zoomed;
and acquiring an instruction for zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
8. A user device, comprising:
the instruction acquisition module is used for acquiring an instruction for carrying out zooming operation on the image to be zoomed;
the zooming point acquisition module is used for acquiring the attribute information of the picture to be zoomed and determining the zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed;
and the zooming processing module is used for zooming the picture to be zoomed by taking the zooming point as a zooming center.
9. The user equipment of claim 8, further comprising: the first attribute acquisition module is used for recording the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused before the zoom point acquisition module acquires the attribute information of the picture to be zoomed, and taking the focal position of the picture to be zoomed when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
the zoom point acquisition module is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
10. The user equipment of claim 8, further comprising: a second attribute obtaining module, configured to, before the attribute information of the to-be-zoomed picture is obtained by the zoom point obtaining module, perform face recognition on the to-be-zoomed picture when it is determined that the to-be-zoomed picture includes a face, obtain a position of the face in the to-be-zoomed picture, and use the position of the face in the to-be-zoomed picture as the attribute information of the to-be-zoomed picture;
the zoom point acquisition module is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
11. The ue of claim 10, wherein the second attribute obtaining module is specifically configured to:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
12. The user equipment of claim 8, further comprising: a third attribute obtaining module, configured to obtain a picture type of the picture to be zoomed before the zoom point obtaining module obtains the attribute information of the picture to be zoomed, determine, according to a picture information table, a zoom region corresponding to the picture type, and use the zoom region as the attribute information of the picture to be zoomed, where a correspondence between the picture type and the zoom region is stored in the picture information table;
the zoom point acquisition module is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
13. The user equipment of claim 12, further comprising: and the relationship establishing module is used for acquiring a zooming area of the standard picture determined by a user and the picture type of the standard picture before the zooming point acquiring module acquires the picture type of the picture to be zoomed, establishing a corresponding relationship between the picture type and the zooming area, and storing the corresponding relationship into the picture information table.
14. The ue of any one of claims 8 to 13, wherein the instruction obtaining module is specifically configured to implement any one of the following manners:
acquiring an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed;
acquiring an instruction which is triggered by a user through voice and used for carrying out zooming operation on the picture to be zoomed;
and acquiring an instruction for zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
15. A user device, comprising:
the input device is used for acquiring an instruction for carrying out zooming operation on the picture to be zoomed;
and the processor is used for acquiring the attribute information of the picture to be zoomed, determining a zooming point of the picture to be zoomed according to the attribute information of the picture to be zoomed, and zooming the picture to be zoomed by taking the zooming point as a zooming center.
16. The user equipment according to claim 15, wherein the processor is further configured to, when the input device obtains the attribute information of the picture to be zoomed by taking a picture, record a focal position of the picture to be zoomed when the picture to be zoomed is focused by taking a picture, and use the focal position of the picture to be zoomed when the picture to be zoomed is focused by taking a picture as the attribute information of the picture to be zoomed;
the processor is specifically configured to: and acquiring the focal position of the picture to be zoomed when the picture is photographed and focused, and taking the focal position of the picture to be zoomed when the picture is photographed and focused as a zooming point of the picture to be zoomed.
17. The user equipment of claim 15, wherein the processor is further configured to: before the input device acquires the attribute information of the picture to be zoomed, when the picture to be zoomed comprises a face, carrying out face recognition on the picture to be zoomed, acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed;
the processor is specifically configured to: and acquiring the position of the face in the picture to be zoomed, and taking the position of the face in the picture to be zoomed as a zooming point of the picture to be zoomed.
18. The user equipment according to claim 17, wherein the processor is configured to, when it is determined that the picture to be zoomed includes a face, perform face recognition on the picture to be zoomed, and acquire a position of the face in the picture to be zoomed, specifically:
when the picture to be zoomed comprises the face, carrying out face recognition on the picture to be zoomed to obtain the number of the faces in the picture to be zoomed;
when the number of the human faces is more than 1, acquiring the area of each human face in the picture to be zoomed, determining the human face corresponding to the maximum area, and acquiring the position of the human face corresponding to the maximum area in the picture to be zoomed; or,
and when the number of the human faces is more than 1, acquiring the position of the human face in a preset area in the picture to be zoomed in and out.
19. The UE of claim 15, wherein the processor is further configured to, before the input device acquires the attribute information of the picture to be zoomed, acquire a picture type of the picture to be zoomed, determine a zoom region corresponding to the picture type according to a picture information table, and use the zoom region as the attribute information of the picture to be zoomed, where the picture information table stores a correspondence relationship between picture types and zoom regions;
the processor is specifically configured to: and acquiring the zooming area, determining the central point of the zooming area, and taking the central point of the zooming area as a zooming point of the picture to be zoomed.
20. The user equipment according to claim 19, wherein the processor is further configured to, before the input device acquires the picture type of the picture to be zoomed, acquire a zoom area of a standard picture determined by a user and the picture type of the standard picture, establish a correspondence between the picture type and the zoom area, and store the correspondence in the picture information table.
21. The user equipment according to any one of claims 15 to 20, wherein the input device obtains a command for performing a zoom operation on the picture to be zoomed, the command being triggered by a user, and specifically comprises:
the input device acquires an instruction which is triggered by a user through touching any position of the picture to be zoomed and used for zooming the picture to be zoomed; or,
the input device acquires an instruction of a user for carrying out zooming operation on the picture to be zoomed, wherein the instruction is triggered by voice; or,
the input device acquires an instruction of zooming the picture to be zoomed, which is triggered by pressing a preset key by a user.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2014/072466 WO2015123888A1 (en) | 2014-02-24 | 2014-02-24 | Image zoom method and device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN104205031A true CN104205031A (en) | 2014-12-10 |
Family
ID=52088177
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201480000605.9A Pending CN104205031A (en) | 2014-02-24 | 2014-02-24 | Image zoom method and equipment |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN104205031A (en) |
| WO (1) | WO2015123888A1 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106406702A (en) * | 2016-09-19 | 2017-02-15 | 天脉聚源(北京)传媒科技有限公司 | An image display method and device |
| CN106780363A (en) * | 2016-11-21 | 2017-05-31 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
| CN107368253A (en) * | 2017-07-06 | 2017-11-21 | 努比亚技术有限公司 | Picture Zoom display method, mobile terminal and storage medium |
| CN109446890A (en) * | 2018-09-11 | 2019-03-08 | 浙江大有集团有限公司 | Collective-owned enterprise's encased column base site operation personnel's face identification device |
| CN110764764A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Webpage-side image fixing and stretching method and device, computer equipment and storage medium |
| CN111556248A (en) * | 2020-05-09 | 2020-08-18 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005012674A (en) * | 2003-06-20 | 2005-01-13 | Canon Inc | Image display method, program for executing the same, and image display apparatus |
| JP2006295242A (en) * | 2005-04-05 | 2006-10-26 | Olympus Imaging Corp | Digital camera |
| CN101783129B (en) * | 2009-01-04 | 2012-12-05 | 虹软(杭州)科技有限公司 | Image scaling device and image scaling method |
| JP5101544B2 (en) * | 2009-02-13 | 2012-12-19 | 富士通株式会社 | Imaging device, imaging method, imaging program, and portable terminal device |
| CN101751901B (en) * | 2009-12-18 | 2014-09-24 | 康佳集团股份有限公司 | Method and device for playing dynamic electronic album |
| US8504941B2 (en) * | 2011-10-31 | 2013-08-06 | Utc Fire & Security Corporation | Digital image magnification user interface |
-
2014
- 2014-02-24 WO PCT/CN2014/072466 patent/WO2015123888A1/en active Application Filing
- 2014-02-24 CN CN201480000605.9A patent/CN104205031A/en active Pending
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106406702A (en) * | 2016-09-19 | 2017-02-15 | 天脉聚源(北京)传媒科技有限公司 | An image display method and device |
| CN106406702B (en) * | 2016-09-19 | 2019-09-13 | 天脉聚源(北京)传媒科技有限公司 | A kind of image display method and device |
| CN106780363A (en) * | 2016-11-21 | 2017-05-31 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
| CN106780363B (en) * | 2016-11-21 | 2019-07-23 | 北京金山安全软件有限公司 | Picture processing method and device and electronic equipment |
| CN107368253A (en) * | 2017-07-06 | 2017-11-21 | 努比亚技术有限公司 | Picture Zoom display method, mobile terminal and storage medium |
| CN107368253B (en) * | 2017-07-06 | 2020-12-29 | 努比亚技术有限公司 | Picture zooming display method, mobile terminal and storage medium |
| CN109446890A (en) * | 2018-09-11 | 2019-03-08 | 浙江大有集团有限公司 | Collective-owned enterprise's encased column base site operation personnel's face identification device |
| CN110764764A (en) * | 2019-09-16 | 2020-02-07 | 平安科技(深圳)有限公司 | Webpage-side image fixing and stretching method and device, computer equipment and storage medium |
| CN110764764B (en) * | 2019-09-16 | 2024-03-01 | 平安科技(深圳)有限公司 | Webpage end image fixed stretching method and device, computer equipment and storage medium |
| CN111556248A (en) * | 2020-05-09 | 2020-08-18 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
| CN111556248B (en) * | 2020-05-09 | 2021-09-03 | Tcl移动通信科技(宁波)有限公司 | Shooting method, shooting device, storage medium and mobile terminal |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2015123888A1 (en) | 2015-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8879803B2 (en) | Method, apparatus, and computer program product for image clustering | |
| CN103729128B (en) | A kind of method and device of picture pick-up device conversion focal length | |
| KR102165818B1 (en) | Method, apparatus and recovering medium for controlling user interface using a input image | |
| KR101660576B1 (en) | Facilitating image capture and image review by visually impaired users | |
| CN104205031A (en) | Image zoom method and equipment | |
| CN110717452B (en) | Image recognition method, device, terminal and computer readable storage medium | |
| EP3518522B1 (en) | Image capturing method and device | |
| EP2712176B1 (en) | Method and apparatus for photography | |
| CN103019537A (en) | Image preview method and device | |
| CN107426493A (en) | A kind of image pickup method and terminal for blurring background | |
| CN105430269B (en) | A kind of photographic method and device applied to mobile terminal | |
| CN110427108A (en) | Photographic method and Related product based on eyeball tracking | |
| WO2017219515A1 (en) | Method for photographing focusing and electronic device | |
| US9148537B1 (en) | Facial cues as commands | |
| EP3046317A1 (en) | Method and apparatus for capturing images | |
| CN104469144B (en) | Photographic method and electronic equipment | |
| KR20140134844A (en) | Method and device for photographing based on objects | |
| CN109040604A (en) | Image processing method, device, storage medium and mobile terminal | |
| CN107395874A (en) | Display interface control method, device, storage medium and terminal | |
| US9756238B2 (en) | Image capturing apparatus for performing authentication of a photographer and organizing image data for each photographer and control method thereof | |
| CN104866163B (en) | Image display method, device and electronic equipment | |
| CN106325500A (en) | Information framing method and device | |
| CN104571858B (en) | A kind of terminal | |
| KR20130104483A (en) | Method and device for photographing by dividing objects | |
| KR102289497B1 (en) | Method, apparatus and recovering medium for controlling user interface using a input image |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20141210 |