WO2015123888A1 - Image zoom method and device - Google Patents

Image zoom method and device Download PDF

Info

Publication number
WO2015123888A1
WO2015123888A1 PCT/CN2014/072466 CN2014072466W WO2015123888A1 WO 2015123888 A1 WO2015123888 A1 WO 2015123888A1 CN 2014072466 W CN2014072466 W CN 2014072466W WO 2015123888 A1 WO2015123888 A1 WO 2015123888A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
zoomed
scaled
zoom
image
Prior art date
Application number
PCT/CN2014/072466
Other languages
French (fr)
Chinese (zh)
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 华为终端有限公司
Priority to PCT/CN2014/072466 priority Critical patent/WO2015123888A1/en
Priority to CN201480000605.9A priority patent/CN104205031A/en
Publication of WO2015123888A1 publication Critical patent/WO2015123888A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction 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/0488Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/69Control of means for changing angle of the field of view, e.g. optical zoom objectives or electronic zooming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Definitions

  • the embodiments of the present invention relate to a picture processing technology, and in particular, to a picture zooming method and device. Background technique
  • Image scaling technology includes two techniques: image enlargement and image reduction. In everyday applications, when a user views a photo on a user device, the image is scaled.
  • the user equipment when the user equipment includes a touch screen, the user determines the location that needs to be zoomed, and then quickly double-clicks a point in the position where the zoom is needed, and then the user equipment zooms the image centering on the point; or, the user needs the
  • the zoom position is performed by the two-finger pinch operation, and the user device zooms the picture centering on the center point of the line where the screen is dropped by the two fingers.
  • the user equipment does not include the touch screen, after the user triggers the zoom operation by an external device such as a button or a mouse, the user device zooms the image centering on the center position of the image, and then the user moves the image position to make the user device The image zoom point that the user is interested in is displayed on the screen.
  • the user equipment scales the picture according to the user's finger at the falling point of the screen, or performs scaling processing according to the center position of the picture, and the operation is very cumbersome when the user acquires the zoom point of the picture of interest.
  • the embodiment of the invention provides a picture zooming method and device, so as to simplify the operation of the user in the picture zoom processing process and improve the control efficiency.
  • the present invention provides a picture scaling method, including:
  • the zooming process is performed on the to-be-scaled picture by using the zoom point as a zoom center.
  • the method before the acquiring the attribute information of the to-be-scaled picture, the method further includes: When the picture to be zoomed is acquired, the focus position of the picture to be zoomed is recorded, and the focus position when the picture to be zoomed is focused is used as the attribute information of the picture to be zoomed;
  • Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture including:
  • the method before the acquiring the attribute information of the to-be-scaled picture, the method further includes:
  • the face to be zoomed includes a face
  • the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the face is in the Position of the picture to be scaled as attribute information of the picture to be scaled;
  • Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture including:
  • the performing a face recognition on the to-be-scaled picture, obtaining a face in the to-be-scaled picture includes:
  • the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
  • the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
  • the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
  • the method before the acquiring the attribute information of the to-be-scaled picture, the method further includes:
  • Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture including:
  • the method before the acquiring the image type of the to-be-scaled picture, the method further includes:
  • the acquiring a user-triggered zoom-out image to perform a zoom operation Instructions including any of the following:
  • the present invention provides a user equipment, including:
  • An instruction acquisition module configured to acquire an instruction for performing a scaling operation on the image to be scaled
  • a zoom point acquisition module configured to acquire attribute information of the to-be-scaled picture, and determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture;
  • a scaling processing module configured to perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • the method further includes: a first attribute acquiring module, configured to obtain a photo before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture When the picture to be zoomed is recorded, a focus position when the picture to be zoomed is photographed is recorded, and a focus position when the picture to be zoomed is focused is used as attribute information of the picture to be zoomed;
  • the zoom point acquisition module is specifically configured to: acquire a focus when the to-be-scaled picture is photographed and focused Position, the focus position when the photograph is focused as a zoom point of the to-be-scaled picture.
  • the method further includes: a second attribute obtaining module, configured to determine, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture
  • a second attribute obtaining module configured to determine, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture
  • the zoom point acquisition module is specifically configured to: acquire a position of the face in the to-be-scaled picture, and use the position of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
  • the second attribute obtaining module is specifically configured to:
  • the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
  • the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
  • the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
  • the method further includes: a third attribute acquiring module, configured to acquire, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture Determining a picture type of the zoomed picture, determining a zoom area corresponding to the picture type according to the picture information table, using the zoom area as attribute information of the picture to be zoomed, where the picture type is stored in the picture information table The corresponding relationship of the zoom areas;
  • the zoom point acquisition module is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
  • the method further includes: a relationship establishing module, configured to acquire, by the zoom point acquiring module, the to-be-scaled picture Before the picture type, obtaining a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table .
  • a relationship establishing module configured to acquire, by the zoom point acquiring module, the to-be-scaled picture Before the picture type, obtaining a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table .
  • the instruction acquiring module is specifically configured to implement any one of the following manners:
  • the present invention provides a user equipment, including:
  • An input device configured to acquire an instruction for performing a scaling operation on the zoomed image
  • a processor configured to acquire the attribute information of the to-be-scaled picture, determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture, and use the zoom point as a zoom center, and the to-be-scaled picture Perform scaling processing.
  • the processor is further configured to: after the input device acquires the attribute information of the to-be-scaled picture, take a photo to obtain the to-be-scaled picture Recording, a focus position when the picture to be zoomed is in focus, and a focus position when the picture to be zoomed is focused as the attribute information of the picture to be zoomed;
  • the processor is specifically configured to: obtain a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom point of the picture to be zoomed.
  • the processor is further configured to: before determining, by the input device, the attribute information of the to-be-scaled picture, determining the to-be-scaled picture
  • the processor is further configured to: before determining, by the input device, the attribute information of the to-be-scaled picture, determining the to-be-scaled picture
  • the processor is specifically configured to: acquire a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
  • the processor is configured to: when determining that the human face is included in the to-be-scaled picture, Zooming the image to perform face recognition, and obtaining a position of the face in the to-be-scaled picture in the picture to be zoomed, specifically:
  • the face to be zoomed is subjected to face recognition, Obtaining a number of faces in the picture to be scaled;
  • the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
  • the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
  • the processor is further configured to: before the input device acquires the attribute information of the to-be-scaled picture, acquire the to-be-scaled picture a picture type, the zoom area corresponding to the picture type is determined according to the picture information table, and the zoom area is used as the attribute information of the to-be-scaled picture, where the correspondence between the picture type and the zoom area is stored in the picture information table ;
  • the processor is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
  • the processor is further configured to: before the input device acquires a picture type of the to-be-scaled picture And acquiring a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
  • the input device acquires a user-triggered picture to be scaled
  • the instruction of the zoom operation is specifically:
  • the input device acquires an instruction that the user performs a zoom operation on the zoomed image to be triggered by touching an arbitrary position of the to-be-scaled picture;
  • the input device acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by voice; or
  • the input device acquires an instruction to zoom the image to be zoomed by the user by pressing a preset button.
  • the image scaling method and device provided by the embodiment of the present invention obtain an instruction for performing a scaling operation on a picture to be scaled by a user; acquiring attribute information of the picture to be scaled, and determining the to-be-waited according to attribute information of the picture to be scaled Scale the zoom point of the image; scale the zoom point Center, the zooming process is performed on the to-be-scaled picture, the user does not need to determine the zoom center, but the user equipment determines the zoom center that the user is interested in, and the user equipment performs the scaling process, which simplifies the operation of the user in the image zooming process. Improve handling efficiency.
  • Embodiment 1 is a flowchart of Embodiment 1 of a picture zooming method according to the present invention
  • Embodiment 2 is a flowchart of Embodiment 2 of a picture zooming method according to the present invention
  • Embodiment 3 is a flowchart of Embodiment 3 of a picture zooming method according to the present invention.
  • Embodiment 1 of a face recognition result according to the present invention
  • FIG. 5 is a schematic diagram of Embodiment 2 of a face recognition result according to the present invention.
  • Embodiment 3 of a face recognition result according to the present invention.
  • FIG. 7 is a flowchart of Embodiment 4 of a picture zooming method according to the present invention.
  • Embodiment 8 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention.
  • Embodiment 9 is a schematic structural diagram of Embodiment 2 of a user equipment according to the present invention.
  • Embodiment 3 of a user equipment according to the present invention is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention.
  • Embodiment 4 of a user equipment according to the present invention.
  • FIG. 12 is a schematic structural diagram of Embodiment 5 of a user equipment according to the present invention. detailed description
  • FIG. 1 is a flowchart of Embodiment 1 of a picture zooming method according to the present invention.
  • the execution subject of this embodiment is a user equipment, and the user equipment can be implemented by any software and/or hardware.
  • the user equipment can be specifically For a mobile phone, a video camera, a camera, a computer, etc., other user equipments that can perform picture processing can also be used as an execution subject of the present embodiment.
  • the specific implementation manner of the user equipment in this embodiment is not described herein again.
  • the method in this embodiment may include:
  • Step 101 Acquire an instruction for performing a scaling operation on the zoomed image
  • Step 102 Obtain attribute information of the to-be-scaled picture, and determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture;
  • Step 103 Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • the user may perform a scaling process on the image stored on the user equipment.
  • the picture may be a picture downloaded by the user from the Internet, or may be obtained by the user taking a picture through the user equipment. For the source of the picture, this embodiment does not specifically limit it.
  • step 101 the user equipment performs the scaling process only after acquiring the instruction that the user equipment performs the scaling operation on the picture to be scaled.
  • the user equipment acquires a user-triggered instruction for performing a scaling operation on the image to be scaled, including the following possible implementation manners.
  • an instruction for zooming the picture to be zoomed by the user by touching any position of the picture to be zoomed is obtained.
  • the user equipment when the user equipment needs to perform a zoom operation on the zoomed picture when the user equipment includes the touch screen, after the user opens the image to be zoomed, the user can trigger an instruction to perform the zoom operation on the zoomed picture by touching any position of the picture to be zoomed.
  • mutual capacitance for multi-touch detection.
  • Self-capacitance can produce a stronger signal than mutual capacitance, detecting farther finger sensing, but due to a "ghosting" effect, multi-point detection is not possible.
  • Mutual capacitance is used to complete normal touch sensing, including multi-touch. Therefore, according to the different functions of the sensor capacitance on the touch screen, the user can touch the image to be zoomed displayed on the touch screen, including contact touch and hover touch.
  • touch touch it is mainly realized by multi-touch detection of mutual capacitance.
  • hovering touch the finger that is hovering above is mainly detected by self-capacitance.
  • touch and hovering touch is not particularly limited in this embodiment.
  • Another possible implementation manner is to obtain an instruction that the user triggers a zoom operation on the to-be-scaled picture by voice.
  • the user equipment needs to perform a zoom operation on the zoomed picture when the user equipment includes the microphone
  • the user may trigger an instruction to zoom the picture by using a voice, such as “picture zoom”.
  • a voice such as “picture zoom”.
  • the acoustic sensor on the user device senses that the user's voice or the earpiece on the user equipment receives the signal of the "picture zoom”
  • the semantics of the voice is recognized, and if the semantic is a picture zoom, the user triggers An instruction to scale a scaled picture.
  • an instruction for zooming the zoomed-out picture triggered by the user by pressing a preset button is obtained.
  • the user equipment may include a touch screen or may not include a touch screen, and may or may not include a microphone.
  • the user equipment may be set. Any function key is used as a preset button.
  • the user equipment may also obtain a user trigger by using a photo sensor, a gas sensor, a temperature sensor, or the like. An instruction corresponding to the sensor to perform a scaling operation on the scaled picture.
  • the user equipment acquires attribute information of the picture to be scaled.
  • the attribute information of the image to be zoomed refers to the attribute and information of the picture to be scaled. For example, it may be a focus position when a photograph is focused, a position of a face to be scaled, a size of a picture, and the like.
  • the zoom point of the picture to be zoomed is determined.
  • the focus position when the photograph of the picture to be zoomed is focused is used as the zoom point.
  • step 103 the user equipment performs a scaling process on the zoomed picture as the zoom center of the picture to be zoomed with the zoom point determined in step 102.
  • the image zooming method provided by the embodiment of the present invention obtains an instruction for performing a zoom operation by a user-triggered image to be scaled; acquiring attribute information of the to-be-scaled image, and determining the to-be-scaled image according to the attribute information of the to-be-scaled picture Zooming point; using the zoom point as a zoom center, performing scaling processing on the to-be-scaled picture, the user does not need to determine the zoom center, but the user equipment determines the zoom center that the user is interested in, and then the user equipment performs scaling processing. It simplifies the user's operation in the image scaling process and improves the control efficiency.
  • the image scaling method provided by the embodiment of the present invention is described in detail below with reference to FIG. 2 to FIG. 4 .
  • FIG. 2 is a flowchart of Embodiment 2 of a picture zooming method according to the present invention. As shown in FIG. 2, the image scaling method provided in this embodiment includes:
  • Step 201 When taking a picture to obtain the to-be-scaled picture, record a focus position when the picture to be zoomed is in focus, and use a focus position when the picture to be zoomed is focused as the attribute information of the to-be-scaled picture;
  • Step 202 Obtain an instruction for performing a scaling operation on the to-be-scaled picture.
  • Step 203 Obtain a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom point of the picture to be zoomed;
  • Step 204 Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • step 202 is similar to step 101
  • step 204 is similar to step 103, and details are not described herein again.
  • step 201 when the picture to be zoomed is acquired by the photographing mode, when the user equipment takes a picture to obtain a picture to be zoomed, the focus position of the photo focus is recorded, and the focus position is used as an attribute of the picture to be zoomed.
  • the attribute information of the picture to be scaled includes information of various pictures to be scaled, and here, only the focus position is regarded as an attribute information of the picture to be zoomed.
  • step 203 the user equipment acquires the attribute information, obtains the focus position when the photograph is focused from the attribute information, and uses the focus position when the photograph is focused as the zoom point of the to-be-scaled picture.
  • the image to be zoomed by taking a picture can be used as the attribute information of the picture to be zoomed in advance, and saved in the user equipment together with the picture to be zoomed.
  • the attribute information can be directly used, and does not need to be acquired again, that is, directly from step 202.
  • the focus position when the photographing is focused is recorded, and the focus position when the photographing is focused is used as the attribute information of the to-be-scaled image;
  • An instruction to perform a zoom operation on the zoomed image obtaining a focus position when the photograph is focused, and using a focus position when the photograph is focused as a zoom point of the to-be-scaled image; using the zoom point as a zoom center,
  • the zoomed image is described for scaling processing.
  • the image to be zoomed by the camera has only one focus, when the user zooms the photo,
  • the focus position is used as the zoom point, and the zoom point is used as the zoom center, and the zoomed image is scaled, which not only better focuses on the user's attention, but also simplifies the user's operation.
  • FIG. 3 is a flowchart of Embodiment 3 of a picture zooming method according to the present invention. As shown in FIG. 3, the image zooming method provided in this embodiment includes:
  • Step 301 Perform a face recognition on the to-be-scaled picture when the face to be zoomed is included in the picture to be zoomed, and obtain a position of the face in the picture to be zoomed in the picture to be zoomed, and the face is The location of the to-be-scaled picture is used as attribute information of the to-be-scaled picture;
  • Step 302 Acquire an instruction for performing a scaling operation on the to-be-scaled picture.
  • Step 303 Obtain a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture;
  • Step 304 Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • step 302 is similar to step 101
  • step 304 is similar to step 103, and details are not described herein again.
  • the picture to be zoomed in this embodiment may be a photographic work of an artificial subject, or a picture of a person.
  • the following embodiment details the specific implementation process.
  • the face recognition technology is used to identify the zoomed image, and the face to be zoomed is included in the image to be zoomed. If the face to be zoomed includes a face, the face in the image to be zoomed is obtained. The position of the picture, the location of the face in the picture to be zoomed as the 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 based on geometric features, a face recognition method based on neural network, a face recognition method based on elasticity map matching, and a face recognition method based on support vector machine. Method, etc. For a specific face recognition method, this embodiment will not be described herein.
  • step 301 can be specifically divided into the following two possible implementation manners.
  • determining that the to-be-scaled picture includes a human face performing face recognition on the to-be-scaled picture, and acquiring a number of faces in the to-be-scaled picture; when the number of faces is 1
  • the position of the face to be zoomed in the picture to be zoomed is obtained, and the position of the face to be zoomed is used as the attribute information of the picture to be zoomed.
  • FIG. 4 is a schematic diagram of Embodiment 1 of the face recognition result of the present invention.
  • the position framed by the black wire frame is the face recognition. result.
  • a face is included.
  • the center position of the black wire frame is the position of the face to be zoomed 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.
  • the second possible implementation method when there are multiple faces, is divided into two possible situations, as follows:
  • a possible situation is: determining that a face to be zoomed includes a face, performing face recognition on the zoomed image, and obtaining a number of faces in the image to be zoomed; when the number of faces is greater than one, determining a plurality of faces a face corresponding to the largest area, obtaining a position of the face corresponding to the maximum area in the picture to be zoomed at the position of the picture to be zoomed, and then using the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed .
  • FIG. 5 is a schematic diagram of Embodiment 2 of the face recognition result of the present invention.
  • the position of the black wire frame is a face. Identify the results.
  • it includes 3 faces. At this time, the size of the face of the three faces is obtained, and the area of the face at the top is the largest. At this time, the face of the face is obtained at the position of the image to be zoomed, and then the face is taken as the position of the image to be zoomed. Scale the attribute information of the image.
  • determining that a face to be zoomed includes a face, performing face recognition on the zoomed image, and obtaining a number of faces in the image to be zoomed; when the number of the faces is greater than one, obtaining the location
  • the face of the zoomed picture located in the preset area is in the position of the picture to be zoomed.
  • the preset area in this embodiment may be a preset central area, a preset upper area, a preset lower area, a preset left area, a preset right area, and the like, and a specific area represented by the preset area.
  • This embodiment is not particularly limited herein. Taking a specific example as an example, when the number of faces is plural, as shown in FIG. 6, FIG. 6 is a schematic diagram of Embodiment 3 of the face recognition result of the present invention. In FIG. 6, the black wire frame is framed. The position is the recognition result of the face. In Figure 6, a total of 5 faces were identified.
  • the third person's face is located in the preset center area, and the position of the third person's face in the picture to be zoomed is obtained, and then the position of the face in the picture to be zoomed is taken as the attribute information of the picture to be zoomed.
  • the attribute information of the picture to be scaled includes information of various pictures to be scaled.
  • only the position of the face to be zoomed is used as an attribute information of the picture to be zoomed.
  • steps 301 and 302 have no strict timing. Department.
  • the position of the face to be zoomed may be used as the attribute information of the picture to be zoomed in advance, or after the instruction of the zoom operation of the picture to be zoomed by the user is acquired, the position of the face to be zoomed is obtained, and is used as an attribute. information.
  • step 303 the user equipment acquires the attribute information of the to-be-scaled picture, and obtains the location of the face in the to-be-scaled picture from the attribute information of the to-be-scaled picture, and the face is in the to-be-scaled
  • the position of the picture serves as the zoom point of the picture to be scaled.
  • the face of the image to be zoomed is obtained in the position of the image to be zoomed, and the position of the face in the image to be zoomed is used as the Obtaining the attribute information of the picture to be scaled; acquiring an instruction of the zoom operation of the picture to be scaled by the user; acquiring the attribute information of the picture to be scaled, and obtaining the face from the attribute information of the picture to be zoomed
  • the position of the picture is zoomed, and the position of the face to be zoomed is used as a zoom point of the picture to be zoomed; and the zoomed point is used as a zoom center, and the picture to be zoomed is scaled.
  • the face position is used as the zoom point
  • the zoom point is used as the zoom center
  • the zoomed picture is scaled, which not only better focuses on the user's attention, but also simplifies the user's operation.
  • FIG. 7 is a flowchart of Embodiment 4 of a picture zooming method according to the present invention. As shown in FIG. 7, the image zooming method provided in this embodiment includes:
  • Step 701 Obtain a zoom area of a standard picture determined by a user and a picture type of the standard picture, establish a correspondence between the picture type and the zoom area, and save the corresponding relationship to the picture information table.
  • Step 702 Obtain a picture type of the picture to be scaled, determine a zoom area corresponding to the picture type according to the picture information table, and use the zoom area as attribute information of the picture to be zoomed;
  • Step 703 Acquire an instruction for performing a scaling operation on the to-be-scaled picture.
  • Step 704 Obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture;
  • Step 705 Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • step 703 is similar to step 101
  • step 705 is similar to step 103, and details are not described herein again.
  • a picture information table is first established, which can be understood by those skilled in the art.
  • the information table may be established by the user equipment in this embodiment, or may be pre-established by other user equipments, and is pre-existing in the user equipment of this embodiment.
  • the main function of the picture information table is to determine the zoom area according to the historical behavior of the user.
  • the user equipment acquires a zoom area of the standard picture determined by the user and a picture type of the standard picture, establish a correspondence between the picture type and the zoom area, and save the corresponding relationship to the In the picture information table, the picture information table is used to store the correspondence between the picture type and the zoom area.
  • the standard picture is a picture in which the user equipment has determined the zoom area.
  • the zoom area of the image to be scaled determined by the user can be collected as the zoom area of the standard picture. Or, providing a plurality of standard images to a plurality of users, determining, by a plurality of users, a zoom area of each standard image, then collecting information, performing integration, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
  • the picture type can be a variety of landscape pictures, various character pictures or various animal pictures.
  • the zoom area may be the center area of the landscape picture, or may be the area where the main scene of the landscape picture is located;
  • the zoom area may be the upper middle area of the picture;
  • the picture type is an animal picture, the different zoom areas of different animals are different.
  • the zoom area may be the upper middle area of the picture, and when the animal is a land animal, the zoom area may be the lower middle area of the picture.
  • the embodiment is not particularly limited herein.
  • step 702 a picture type of the picture to be scaled is obtained, and a zoom area corresponding to the picture type is determined in the picture information table, and the zoom area is used as attribute information of the picture to be zoomed.
  • the picture information table stores the correspondence between the picture type of the standard picture and the zoom area.
  • the zoom point of the picture to be zoomed first obtain the picture type of the picture to be zoomed, and then the picture type and picture of the picture to be zoomed
  • the picture type of the standard picture in the information table is matched.
  • the zoom area corresponding to the picture type of the standard picture in the picture information table is to be scaled. The zoom area of the picture, and as the attribute information of the picture to be scaled.
  • the image type of the image to be zoomed is determined by the image recognition technology to be a landscape image, and the image type of the standard image in the image information table is matched. If the picture type of the quasi-picture is a landscape picture, the matching is successful, and the zoom area corresponding to the standard picture in the picture information table is used as the zoom area of the picture to be zoomed, and the zoom area is used as the attribute information of the picture to be zoomed.
  • the image recognition type determines that the picture type of the picture to be zoomed is a bird picture in the animal picture, and matches the picture type of the standard picture in the picture information table, when the picture type of the standard picture When the picture is a bird, the matching is successful, and the zoom area corresponding to the standard picture in the picture information table is used as the zoom area of the picture to be zoomed, and the zoom area is used as the attribute information of the picture to be zoomed.
  • the embodiment is not described herein again. It can be understood by those skilled in the art that the attribute information of the picture to be scaled includes information of various pictures to be scaled. In the above embodiments, only the zoom area is used as an attribute information of the picture to be scaled.
  • step 702 and step 703 do not have strict timing relationships.
  • the zoom area may be used as the attribute information of the picture to be zoomed in advance, or the picture type of the picture to be zoomed may be acquired after obtaining the instruction of the zoom operation of the picture to be scaled by the user, and the picture type corresponding to the picture type is determined in the picture information table.
  • the zoom area is used as the attribute information of the picture to be zoomed.
  • step 704 the user equipment acquires the attribute information of the picture to be zoomed, obtains the zoom area from the attribute information of the picture to be zoomed, determines the center point of the zoom area, and uses the center point of the zoom area as the zoom point of the to-be-scaled picture. .
  • the image scaling method provided by the embodiment of the present invention establishes a correspondence between the picture type and the zoom area by acquiring a zoom area of a standard picture determined by a user and a picture type of the standard picture, and saves the corresponding relationship.
  • Obtaining a picture type of the picture to be scaled determining a zoom area corresponding to the picture type in the picture information table, using the zoom area as attribute information of the picture to be zoomed; a user-triggered instruction to perform a scaling operation on the zoomed image; acquiring attribute information of the to-be-scaled picture, obtaining the zoomed area from the attribute information of the to-be-scaled picture, determining a center point of the zoomed area, The center point of the zoom area is used as a zoom point of the picture to be zoomed; and the zoom point is used as a zoom center, and the picture to be zoomed is scaled.
  • FIG. 8 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention.
  • the user equipment 80 provided by the embodiment of the present invention includes: an instruction acquisition module 801, a zoom point acquisition module 802, and a scaling processing module 803.
  • An instruction acquisition module 801 configured to acquire an instruction to perform a scaling operation on the image to be scaled;
  • a zoom point acquisition module 802 configured to acquire attribute information of the to-be-scaled picture, and determine the to-be-scaled according to the attribute information of the to-be-scaled picture The zoom point of the image;
  • the scaling processing module 803 is configured to perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
  • the user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
  • FIG. 9 is a schematic structural diagram of Embodiment 2 of a user equipment according to the present invention.
  • the present embodiment further includes: a first attribute obtaining module 804, configured to: before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, according to the embodiment of FIG.
  • a first attribute obtaining module 804 configured to: before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, according to the embodiment of FIG.
  • the zoom point acquisition module 802 is specifically configured to: obtain a focus position when the picture to be zoomed is in focus, and use a focus position when the photograph is focused as a zoom point of the picture to be zoomed.
  • the user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention.
  • the present embodiment further includes: a second attribute obtaining module 805, configured to: before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture,
  • the face to be zoomed includes a face
  • the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the face is to be zoomed
  • the position of the picture is used as attribute information of the picture to be scaled;
  • the zoom point acquisition module 802 is specifically configured to: obtain a position of the face in the picture to be zoomed, and use the position of the face in the picture to be zoomed as a zoom point of the picture to be zoomed.
  • the second attribute obtaining module 805 is specifically configured to:
  • the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
  • the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
  • the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
  • the user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
  • FIG. 11 is a schematic structural diagram of Embodiment 4 of a user equipment according to the present invention.
  • the present embodiment further includes: a third attribute obtaining module 806, configured to acquire, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, on the basis of the embodiment of FIG. Determining a picture type of the zoomed picture, determining a zoom area corresponding to the picture type according to the picture information table, using the zoom area as attribute information of the picture to be zoomed, where the picture type is stored in the picture information table The corresponding relationship of the zoom areas;
  • the zoom point acquisition module 802 is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
  • the method further includes: a relationship establishing module 807, configured to acquire, before the zoom point acquisition module acquires the picture type of the to-be-scaled picture, a zoom area of the standard picture determined by the user and a picture type of the standard picture, Establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
  • a relationship establishing module 807 configured to acquire, before the zoom point acquisition module acquires the picture type of the to-be-scaled picture, a zoom area of the standard picture determined by the user and a picture type of the standard picture, Establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
  • the user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
  • the instruction obtaining module 801 is specifically configured to implement any one of the following manners:
  • FIG. 12 is a schematic structural diagram of Embodiment 5 of a user equipment according to the present invention.
  • the user equipment 90 provided by the embodiment of the present invention includes an input device 901 and a processor 902.
  • the input device 901 is configured to: acquire an instruction for performing a scaling operation on the image to be scaled;
  • the processor 902 is configured to acquire attribute information of the to-be-scaled picture, and determine, according to the attribute information of the to-be-scaled picture, a scaling of the to-be-scaled picture Pointing, using the zoom point as a zoom center, performing scaling processing on the to-be-scaled picture.
  • the processor 902 is further configured to: when the input device 901 acquires the attribute information of the to-be-scaled picture, when capturing the picture to be zoomed, the focus of the picture to be zoomed is recorded a position, where a focus position when the picture to be zoomed is focused is used as attribute information of the picture to be zoomed;
  • the processor 902 is specifically configured to: acquire a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom point of the picture to be zoomed.
  • the processor 902 is further configured to: before determining, by the input device 901, the attribute information of the to-be-scaled picture, when determining that the to-be-scaled picture includes a human face, performing the to-be-scaled picture a face recognition, where a location of the face to be zoomed in the picture to be zoomed is obtained, and a location of the face in the to-be-scaled picture is used as attribute information of the picture to be zoomed;
  • the processor 902 is specifically configured to: acquire a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
  • the processor 902 is configured to perform face recognition on the to-be-scaled picture when determining that the to-be-scaled picture includes a human face, and obtain a face in the to-be-scaled picture to be zoomed in The location of the image, specifically:
  • the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
  • the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
  • the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
  • the processor 902 is further configured to: before the input device 901 acquires the attribute information of the to-be-scaled picture, acquire a picture type of the to-be-scaled picture, and determine, according to the picture information table, the picture type Corresponding zooming area, the zooming area is used as attribute information of the to-be-scaled picture, where the picture information table stores a corresponding relationship between the picture type and the zooming area;
  • the processor 902 is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
  • the processor 902 is further configured to: before the input device 901 acquires the picture type of the to-be-scaled picture, acquire a zoom area of the standard picture determined by the user, and a picture type of the standard picture, Corresponding relationship between the picture type and the zoom area, and saving the correspondence to the picture information table.
  • the input device 901 acquires an instruction that is triggered by a user to perform a scaling operation on the image to be scaled, specifically:
  • the input device 901 acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by touching an arbitrary position of the to-be-scaled picture; or
  • the input device 901 acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by voice; or
  • the input device 901 acquires an instruction for the user to zoom the image to be zoomed by pressing the preset button.
  • the user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
  • the aforementioned program can be stored in a computer readable storage medium.
  • the program when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

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)
  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

An image zoom method and device. The method comprises: obtaining an instruction for perform a zoom operation on a to-be-zoomed image; obtaining attribute information of the to-be-zoomed image, and determining a zoom point of the to-be-zoomed image according to the attribute information of the to-be-zoomed image; and performing zooming processing of the to-be-zoomed image by using the zoom point as a zoom center. The image zoom method and device provided in embodiments of the present invention simplify operations of a user in image zoom processing.

Description

图片缩放方法及设备  Image zoom method and device
技术领域 Technical field
本发明实施例涉及图片处理技术, 尤其涉及一种图片缩放方法及设备。 背景技术  The embodiments of the present invention relate to a picture processing technology, and in particular, to a picture zooming method and device. Background technique
图片缩放技术包括图片放大和图片缩小两种技术。 在日常应用中, 用户 在用户设备上浏览照片时, 会对图片进行缩放处理。  Image scaling technology includes two techniques: image enlargement and image reduction. In everyday applications, when a user views a photo on a user device, the image is scaled.
现有技术中, 当用户设备包括触摸屏时, 用户确定需要缩放的位置, 再 快速在该需要缩放的位置双击一个点, 然后用户设备以该点为中心进行图片 的缩放; 或者, 用户在该需要缩放的位置进行双指捏合操作, 用户设备会以 双指捏合在屏幕落点的连线的中心点为中心进行图片的缩放。 当用户设备不 包括触摸屏时, 在用户通过按键或鼠标等外部设备触发了缩放操作之后, 用 户设备会以图片的中心位置为中心进行图片的缩放, 然后用户再移动图片位 置, 以使用户设备的屏幕上显示用户感兴趣的图片缩放点。  In the prior art, when the user equipment includes a touch screen, the user determines the location that needs to be zoomed, and then quickly double-clicks a point in the position where the zoom is needed, and then the user equipment zooms the image centering on the point; or, the user needs the The zoom position is performed by the two-finger pinch operation, and the user device zooms the picture centering on the center point of the line where the screen is dropped by the two fingers. When the user equipment does not include the touch screen, after the user triggers the zoom operation by an external device such as a button or a mouse, the user device zooms the image centering on the center position of the image, and then the user moves the image position to make the user device The image zoom point that the user is interested in is displayed on the screen.
然而, 现有技术中, 用户设备根据用户的手指在屏幕的落点对图片进行 缩放, 或者根据图片的中心位置进行缩放处理, 在用户获取感兴趣的图片缩 放点时, 操作非常繁琐。 发明内容  However, in the prior art, the user equipment scales the picture according to the user's finger at the falling point of the screen, or performs scaling processing according to the center position of the picture, and the operation is very cumbersome when the user acquires the zoom point of the picture of interest. Summary of the invention
本发明实施例提供一种图片缩放方法及设备, 以简化用户在图片缩放处 理过程的操作, 提高操控效率。  The embodiment of the invention provides a picture zooming method and device, so as to simplify the operation of the user in the picture zoom processing process and improve the control efficiency.
第一方面, 本发明提供一种图片缩放方法, 包括:  In a first aspect, the present invention provides a picture scaling method, including:
获取对待缩放图片进行缩放操作的指令;  Obtaining an instruction to perform a scaling operation on the scaled picture;
获取所述待缩放图片的属性信息, 根据所述待缩放图片的属性信息, 确 定所述待缩放图片的缩放点;  Obtaining the attribute information of the to-be-scaled picture, and determining a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture;
以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。  The zooming process is performed on the to-be-scaled picture by using the zoom point as a zoom center.
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述获取所述 待缩放图片的属性信息之前, 还包括: 拍照获取所述待缩放图片时, 记录所述待缩放图片拍照聚焦时的焦点位 置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待缩放图片的属性信 息; With reference to the first aspect, in a first possible implementation manner of the foregoing aspect, before the acquiring the attribute information of the to-be-scaled picture, the method further includes: When the picture to be zoomed is acquired, the focus position of the picture to be zoomed is recorded, and the focus position when the picture to be zoomed is focused is used as the attribute information of the picture to be zoomed;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括:  Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture, including:
获取所述待缩放图片拍照聚焦时的焦点位置, 将所述拍照聚焦时的焦点 位置作为所述待缩放图片的缩放点。  Obtaining a focus position when the picture to be zoomed is in focus, and using a focus position when the photograph is focused as a zoom point of the picture to be zoomed.
结合第一方面, 在第一方面的第二种可能的实现方式中, 所述获取所述 待缩放图片的属性信息之前, 还包括:  With reference to the first aspect, in a second possible implementation manner of the foregoing aspect, before the acquiring the attribute information of the to-be-scaled picture, the method further includes:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述人脸在所述待 缩放图片的位置作为所述待缩放图片的属性信息;  When it is determined that the face to be zoomed includes a face, the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the face is in the Position of the picture to be scaled as attribute information of the picture to be scaled;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括:  Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture, including:
获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片 的位置作为所述待缩放图片的缩放点。  Obtaining a position of the face in the picture to be zoomed, and using the position of the face in the picture to be zoomed as a zoom point of the picture to be zoomed.
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的实 现方式中, 所述对所述待缩放图片进行人脸识别, 获取所述待缩放图片中人 脸在所述待缩放图片的位置, 包括:  In conjunction with the second possible implementation of the first aspect, in a third possible implementation manner of the first aspect, the performing a face recognition on the to-be-scaled picture, obtaining a face in the to-be-scaled picture The location of the picture to be zoomed includes:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数;  When determining that the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者,  When the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。  When the number of the faces is greater than 1, the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
结合第一方面, 在第一方面的第四种可能的实现方式中, 所述获取所述 待缩放图片的属性信息之前, 还包括:  With reference to the first aspect, in a fourth possible implementation manner of the foregoing aspect, before the acquiring the attribute information of the to-be-scaled picture, the method further includes:
获取所述待缩放图片的图片类型, 根据图片信息表确定与所述图片类型 对应的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中存储图片类型与缩放区域的对应关系; Obtaining a picture type of the picture to be scaled, determining a zoom area corresponding to the picture type according to the picture information table, and using the zoom area as attribute information of the picture to be zoomed, where Corresponding relationship between the picture type and the zoom area is stored in the picture information table;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括:  Determining the attribute information of the to-be-scaled picture, and determining the zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture, including:
获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩放区域的中 心点作为所述待缩放图片的缩放点。  Obtaining the zoom area, determining a center point of the zoom area, and using a center point of the zoom area as a zoom point of the picture to be zoomed.
结合第一方面的第四种可能的实现方式, 在第一方面的第五种可能的实 现方式中, 所述获取所述待缩放图片的图片类型之前, 还包括:  In conjunction with the fourth possible implementation of the first aspect, in a fifth possible implementation manner of the foregoing aspect, before the acquiring the image type of the to-be-scaled picture, the method further includes:
获取用户确定的标准图片的缩放区域和所述标准图片的图片类型, 建立 所述图片类型和所述缩放区域的对应关系, 并将所述对应关系保存到所述图 片信息表中。  Obtaining a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
结合第一方面、 第一方面的第一种至第五种任一种可能的实现方式, 在 第一方面的第六种可能的实现方式中, 所述获取用户触发的对待缩放图片进 行缩放操作的指令, 包括如下中的任一:  With reference to the first aspect, the first to the fifth possible implementation manners of the first aspect, in a sixth possible implementation manner of the first aspect, the acquiring a user-triggered zoom-out image to perform a zoom operation Instructions, including any of the following:
获取用户通过触碰所述待缩放图片的任意位置触发的对所述待所缩放图 片进行缩放操作的指令;  Obtaining an instruction for the user to zoom the image to be zoomed by triggering the arbitrary position of the to-be-scaled picture;
获取用户通过语音触发的对所述待所缩放图片进行缩放操作的指令; 获取用户通过按压预设按键触发的对所述待所缩放图片进行缩放操作的 指令。  Obtaining, by the voice, an instruction for performing a scaling operation on the to-be-scaled picture triggered by a voice; acquiring an instruction that the user performs a scaling operation on the to-be-scaled picture triggered by pressing a preset button.
第二方面, 本发明提供一种用户设备, 包括:  In a second aspect, the present invention provides a user equipment, including:
指令获取模块, 用于获取对待缩放图片进行缩放操作的指令;  An instruction acquisition module, configured to acquire an instruction for performing a scaling operation on the image to be scaled;
缩放点获取模块, 用于获取所述待缩放图片的属性信息, 根据所述待缩 放图片的属性信息, 确定所述待缩放图片的缩放点;  a zoom point acquisition module, configured to acquire attribute information of the to-be-scaled picture, and determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture;
缩放处理模块, 用于以所述缩放点为缩放中心, 对所述待缩放图片进行 缩放处理。  And a scaling processing module, configured to perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
结合第二方面, 在第二方面的第一种可能的实现方式中, 还包括: 第一 属性获取模块, 用于在所述缩放点获取模块获取所述待缩放图片的属性信息 之前, 拍照获取所述待缩放图片时, 记录所述待缩放图片拍照聚焦时的焦点 位置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待缩放图片的属性 信息;  With reference to the second aspect, in a first possible implementation manner of the second aspect, the method further includes: a first attribute acquiring module, configured to obtain a photo before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture When the picture to be zoomed is recorded, a focus position when the picture to be zoomed is photographed is recorded, and a focus position when the picture to be zoomed is focused is used as attribute information of the picture to be zoomed;
所述缩放点获取模块具体用于: 获取所述待缩放图片拍照聚焦时的焦点 位置, 将所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。 The zoom point acquisition module is specifically configured to: acquire a focus when the to-be-scaled picture is photographed and focused Position, the focus position when the photograph is focused as a zoom point of the to-be-scaled picture.
结合第二方面, 在第二方面的第二种可能的实现方式中, 还包括: 第二 属性获取模块, 用于在所述缩放点获取模块获取所述待缩放图片的属性信息 之前, 在确定所述待缩放图片中包括人脸时, 对所述待缩放图片进行人脸识 别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述人脸在所 述待缩放图片的位置作为所述待缩放图片的属性信息;  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 determine, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture When the face to be zoomed includes a face, the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the face is to be zoomed The position of the picture is used as attribute information of the picture to be scaled;
所述缩放点获取模块具体用于:获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。  The zoom point acquisition module is specifically configured to: acquire a position of the face in the to-be-scaled picture, and use the position of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的实 现方式中, 所述第二属性获取模块具体用于:  With reference to the second possible implementation of the second aspect, in a third possible implementation manner of the second aspect, the second attribute obtaining module is specifically configured to:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数;  When determining that the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者,  When the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。  When the number of the faces is greater than 1, the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
结合第二方面, 在第二方面的第四种可能的实现方式中, 还包括: 第三 属性获取模块, 用于在所述缩放点获取模块获取所述待缩放图片的属性信息 之前, 获取所述待缩放图片的图片类型, 根据图片信息表确定与所述图片类 型对应的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中存储图片类型与缩放区域的对应关系;  With reference to the second aspect, in a fourth possible implementation of the second aspect, the method further includes: a third attribute acquiring module, configured to acquire, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture Determining a picture type of the zoomed picture, determining a zoom area corresponding to the picture type according to the picture information table, using the zoom area as attribute information of the picture to be zoomed, where the picture type is stored in the picture information table The corresponding relationship of the zoom areas;
所述缩放点获取模块具体用于: 获取所述缩放区域, 确定所述缩放区域 的中心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。  The zoom point acquisition module is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
结合第二方面的第四种可能的实现方式, 在第二方面的第五种可能的实 现方式中, 还包括: 关系建立模块, 用于在所述缩放点获取模块获取所述待 缩放图片的图片类型之前, 获取用户确定的标准图片的缩放区域和所述标准 图片的图片类型, 建立所述图片类型和所述缩放区域的对应关系, 并将所述 对应关系保存到所述图片信息表中。  In conjunction with the fourth possible implementation of the second aspect, in a fifth possible implementation of the second aspect, the method further includes: a relationship establishing module, configured to acquire, by the zoom point acquiring module, the to-be-scaled picture Before the picture type, obtaining a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table .
结合第二方面、 第二方面的第一种至第五种任一种可能的实现方式, 在 第二方面的第六种可能的实现方式中, 所述指令获取模块, 具体用于实现如 下方式中的任一: Combining the second aspect, the first to the fifth possible implementation manner of the second aspect, In a sixth possible implementation manner of the second aspect, the instruction acquiring module is specifically configured to implement any one of the following manners:
获取用户通过触碰所述待缩放图片的任意位置触发的对所述待所缩放图 片进行缩放操作的指令;  Obtaining an instruction for the user to zoom the image to be zoomed by triggering the arbitrary position of the to-be-scaled picture;
获取用户通过语音触发的对所述待所缩放图片进行缩放操作的指令; 获取用户通过按压预设按键触发的对所述待所缩放图片进行缩放操作的 指令。  Obtaining, by the voice, an instruction for performing a scaling operation on the to-be-scaled picture triggered by a voice; acquiring an instruction that the user performs a scaling operation on the to-be-scaled picture triggered by pressing a preset button.
第三方面, 本发明提供一种用户设备, 包括:  In a third aspect, the present invention provides a user equipment, including:
输入装置, 用于获取对待缩放图片进行缩放操作的指令;  An input device, configured to acquire an instruction for performing a scaling operation on the zoomed image;
处理器, 用于获取所述待缩放图片的属性信息, 根据所述待缩放图片的 属性信息, 确定所述待缩放图片的缩放点, 以所述缩放点为缩放中心, 对所 述待缩放图片进行缩放处理。  a processor, configured to acquire the attribute information of the to-be-scaled picture, determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture, and use the zoom point as a zoom center, and the to-be-scaled picture Perform scaling processing.
结合第三方面, 在第三方面的第一种可能的实现方式中, 所述处理器还 用于, 在所述输入装置获取所述待缩放图片的属性信息之前, 拍照获取所述 待缩放图片时, 记录所述待缩放图片拍照聚焦时的焦点位置, 将所述待缩放 图片拍照聚焦时的焦点位置作为所述待缩放图片的属性信息;  With reference to the third aspect, in a first possible implementation manner of the third aspect, the processor is further configured to: after the input device acquires the attribute information of the to-be-scaled picture, take a photo to obtain the to-be-scaled picture Recording, a focus position when the picture to be zoomed is in focus, and a focus position when the picture to be zoomed is focused as the attribute information of the picture to be zoomed;
所述处理器具体用于: 获取所述待缩放图片拍照聚焦时的焦点位置, 将 所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。  The processor is specifically configured to: obtain a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom 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 determining, by the input device, the attribute information of the to-be-scaled picture, determining the to-be-scaled picture When a face is included in the face, the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the position of the face in the image to be zoomed is taken as Describe the attribute information of the zoomed picture;
所述处理器具体用于: 获取所述人脸在所述待缩放图片的位置, 将所述 人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。  The processor is specifically configured to: acquire a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能的实 现方式中, 所述处理器用于, 在确定所述待缩放图片中包括人脸时, 对所述 待缩放图片进行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的 位置, 具体为:  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 determining that the human face is included in the to-be-scaled picture, Zooming the image to perform face recognition, and obtaining a position of the face in the to-be-scaled picture in the picture to be zoomed, specifically:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; When it is determined that the face to be zoomed includes a face, the face to be zoomed is subjected to face recognition, Obtaining a number of faces in the picture to be scaled;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者,  When the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。  When the number of the faces is greater than 1, the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
结合第三方面, 在第三方面的第四种可能的实现方式中, 所述处理器还 用于, 在所述输入装置获取所述待缩放图片的属性信息之前, 获取所述待缩 放图片的图片类型, 根据图片信息表确定与所述图片类型对应的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中 存储图片类型与缩放区域的对应关系;  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 to-be-scaled picture, acquire the to-be-scaled picture a picture type, the zoom area corresponding to the picture type is determined according to the picture information table, and the zoom area is used as the attribute information of the to-be-scaled picture, where the correspondence between the picture type and the zoom area is stored in the picture information table ;
所述处理器具体用于: 获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。  The processor is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
结合第三方面的第四种可能的实现方式, 在第三方面的第五种可能的实 现方式中, 所述处理器还用于, 在所述输入装置获取所述待缩放图片的图片 类型之前,获取用户确定的标准图片的缩放区域和所述标准图片的图片类型, 建立所述图片类型和所述缩放区域的对应关系, 并将所述对应关系保存到所 述图片信息表中。  In conjunction with the fourth possible implementation 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 a picture type of the to-be-scaled picture And acquiring a zoom area of the standard picture determined by the user and a picture type of the standard picture, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
结合第三方面、 第三方面的第一种至第五种任一种可能的实现方式, 在 第三方面的第六种可能的实现方式中, 所述输入装置获取用户触发的对待缩 放图片进行缩放操作的指令, 具体为:  With reference to the third aspect, the first to the fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the input device acquires a user-triggered picture to be scaled The instruction of the zoom operation is specifically:
所述输入装置获取用户通过触碰所述待缩放图片的任意位置触发的对所 述待所缩放图片进行缩放操作的指令; 或者,  The input device acquires an instruction that the user performs a zoom operation on the zoomed image to be triggered by touching an arbitrary position of the to-be-scaled picture; or
所述输入装置获取用户通过语音触发的对所述待所缩放图片进行缩放操 作的指令; 或者,  The input device acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by voice; or
所述输入装置获取用户通过按压预设按键触发的对所述待所缩放图片进 行缩放操作的指令。  The input device acquires an instruction to zoom the image to be zoomed by the user by pressing a preset button.
本发明实施例提供的图片缩放方法及设备, 通过获取用户触发的对待缩 放图片进行缩放操作的指令; 获取所述待缩放图片的属性信息, 根据所述待 缩放图片的属性信息, 确定所述待缩放图片的缩放点; 以所述缩放点为缩放 中心, 对所述待缩放图片进行缩放处理, 用户不需要确定缩放中心, 而是由 用户设备确定用户感兴趣的缩放中心, 进而用户设备进行缩放处理, 简化了 用户在图片缩放处理过程的操作, 提高了操控效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 The image scaling method and device provided by the embodiment of the present invention obtain an instruction for performing a scaling operation on a picture to be scaled by a user; acquiring attribute information of the picture to be scaled, and determining the to-be-waited according to attribute information of the picture to be scaled Scale the zoom point of the image; scale the zoom point Center, the zooming process is performed on the to-be-scaled picture, the user does not need to determine the zoom center, but the user equipment determines the zoom center that the user is interested in, and the user equipment performs the scaling process, which simplifies the operation of the user in the image zooming process. Improve handling efficiency. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings to be used in the embodiments or the description of the prior art will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and other drawings may be obtained from those skilled in the art without departing from the drawings.
图 1为本发明图片缩放方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a picture zooming method according to the present invention;
图 2为本发明图片缩放方法实施例二的流程图;  2 is a flowchart of Embodiment 2 of a picture zooming method according to the present invention;
图 3为本发明图片缩放方法实施例三的流程图;  3 is a flowchart of Embodiment 3 of a picture zooming method according to the present invention;
图 4为本发明人脸识别结果实施例一的示意图;  4 is a schematic diagram of Embodiment 1 of a face recognition result according to the present invention;
图 5为本发明人脸识别结果实施例二的示意图;  FIG. 5 is a schematic diagram of Embodiment 2 of a face recognition result according to the present invention; FIG.
图 6为本发明人脸识别结果实施例三的示意图;  6 is a schematic diagram of Embodiment 3 of a face recognition result according to the present invention;
图 7为本发明图片缩放方法实施例四的流程图;  7 is a flowchart of Embodiment 4 of a picture zooming method according to the present invention;
图 8为本发明用户设备实施例一的结构示意图;  8 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention;
图 9为本发明用户设备实施例二的结构示意图;  9 is a schematic structural diagram of Embodiment 2 of a user equipment according to the present invention;
图 10为本发明用户设备实施例三的结构示意图;  10 is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention;
图 11为本发明用户设备实施例四的结构示意图;  11 is a schematic structural diagram of Embodiment 4 of a user equipment according to the present invention;
图 12为本发明用户设备实施例五的结构示意图。 具体实施方式  FIG. 12 is a schematic structural diagram of Embodiment 5 of a user equipment according to the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. 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 obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明图片缩放方法实施例一的流程图。 本实施例的执行主体为 用户设备, 该用户设备可由任意的软件和 /或硬件实现。 该用户设备具体可以 为手机、 摄像机、 照相机、 电脑等, 其它可以进行图片处理的用户设备, 也 可以作为本实施例的执行主体。 对于本实施例的用户设备的具体实现方式, 本实施例此处不再赘述。 如图 1所示, 本实施例的方法可以包括: FIG. 1 is a flowchart of Embodiment 1 of a picture zooming method according to the present invention. The execution subject of this embodiment is a user equipment, and the user equipment can be implemented by any software and/or hardware. The user equipment can be specifically For a mobile phone, a video camera, a camera, a computer, etc., other user equipments that can perform picture processing can also be used as an execution subject of the present embodiment. The specific implementation manner of the user equipment in this embodiment is not described herein again. As shown in FIG. 1, the method in this embodiment may include:
步骤 101、 获取对待缩放图片进行缩放操作的指令;  Step 101: Acquire an instruction for performing a scaling operation on the zoomed image;
步骤 102、 获取所述待缩放图片的属性信息, 根据所述待缩放图片的属 性信息, 确定所述待缩放图片的缩放点;  Step 102: Obtain attribute information of the to-be-scaled picture, and determine a zoom point of the to-be-scaled picture according to the attribute information of the to-be-scaled picture;
步骤 103、 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 在具体实现过程中, 用户可对用户设备上存储的图片进行缩放处理, 本 领域技术人员可以理解, 该图片可以为用户从网上下载的图片, 也可以为用 户通过用户设备拍照获取的。对于图片的来源, 本实施例此处不做具体限制。  Step 103: Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center. In a specific implementation process, the user may perform a scaling process on the image stored on the user equipment. A person skilled in the art may understand that the picture may be a picture downloaded by the user from the Internet, or may be obtained by the user taking a picture through the user equipment. For the source of the picture, this embodiment does not specifically limit it.
具体地, 在步骤 101中, 用户设备只有在获取到用户设备对待缩放图片 进行缩放操作的指令之后, 才对图片进行缩放处理。  Specifically, in step 101, the user equipment performs the scaling process only after acquiring the instruction that the user equipment performs the scaling operation on the picture to be scaled.
在具体实现过程中, 用户设备获取用户触发的对待缩放图片进行缩放操 作的指令, 包括以下可能的实现方式。  In a specific implementation process, the user equipment acquires a user-triggered instruction for performing a scaling operation on the image to be scaled, including the following possible implementation manners.
一种可能的实现方式, 获取用户通过触碰所述待缩放图片的任意位置触 发的对所述待所缩放图片进行缩放操作的指令。  In one possible implementation, an instruction for zooming the picture to be zoomed by the user by touching any position of the picture to be zoomed is obtained.
具体地, 当用户设备包括触摸屏时, 用户需要对待缩放图片进行缩放操 作时, 用户在打开待缩放图片之后, 用户可通过触碰待缩放图片的任意位置 触发对待缩放图片进行缩放操作的指令。  Specifically, when the user equipment needs to perform a zoom operation on the zoomed picture when the user equipment includes the touch screen, after the user opens the image to be zoomed, the user can trigger an instruction to perform the zoom operation on the zoomed picture by touching any position of the picture to be zoomed.
在具体实现过程中, 触摸屏上有两种电容式传感器, 互电容和自电容。 互电容, 用于实现多点触摸检测。 自电容能够产生比互电容强大的信号, 检 测更远的手指感应, 但由于一种被成为"鬼影 (ghosting)"的效应, 无法进行多 点检测。 互电容用于完成正常的触碰感应, 包括多点触控。 因此, 根据触摸 屏上传感器电容的不同作用, 用户触碰触摸屏上显示的待缩放图片包括接触 触控和悬浮触控两种情况。 对于接触触控, 主要通过互电容的多点触摸检测 实现。 对于悬浮触控, 主要通过自电容检测悬停在上方的手指。  In the specific implementation process, there are two kinds of capacitive sensors, mutual capacitance and self capacitance on the touch screen. Mutual capacitance for multi-touch detection. Self-capacitance can produce a stronger signal than mutual capacitance, detecting farther finger sensing, but due to a "ghosting" effect, multi-point detection is not possible. Mutual capacitance is used to complete normal touch sensing, including multi-touch. Therefore, according to the different functions of the sensor capacitance on the touch screen, the user can touch the image to be zoomed displayed on the touch screen, including contact touch and hover touch. For touch touch, it is mainly realized by multi-touch detection of mutual capacitance. For hovering touch, the finger that is hovering above is mainly detected by self-capacitance.
本领域技术人员可以理解, 上述仅是示意性的说明如何实现接触触控和 悬浮触控, 本实施例对实现接触触控和悬浮触控的实现方式, 不做特别限制。  It is to be understood by those skilled in the art that the above description is merely illustrative of how to implement touch and hovering touch. The implementation of the touch and hover touch is not particularly limited in this embodiment.
另一种可能的实现方式, 获取用户通过语音触发的对所述待所缩放图片 进行缩放操作的指令。 具体地, 当用户设备包括话筒时, 用户需要对待缩放图片进行缩放操作 时, 用户在打开待缩放图片之后, 可以通过语音, 例如"图片缩放"等触发对 待缩放图片进行缩放的指令。 当用户设备上的声敏传感器感知到用户的语音 或用户设备上的听筒接收到该"图片缩放"的信号时, 对该语音的语义进行识 别, 若语义为图片缩放, 则获取到用户触发的对待缩放图片进行缩放的指令。 Another possible implementation manner is to obtain an instruction that the user triggers a zoom operation on the to-be-scaled picture by voice. Specifically, when the user equipment needs to perform a zoom operation on the zoomed picture when the user equipment includes the microphone, after the user opens the picture to be zoomed, the user may trigger an instruction to zoom the picture by using a voice, such as “picture zoom”. When the acoustic sensor on the user device senses that the user's voice or the earpiece on the user equipment receives the signal of the "picture zoom", the semantics of the voice is recognized, and if the semantic is a picture zoom, the user triggers An instruction to scale a scaled picture.
再一种可能的实现方式, 获取用户通过按压预设按键触发的对所述待所 缩放图片进行缩放操作的指令。  In another possible implementation, an instruction for zooming the zoomed-out picture triggered by the user by pressing a preset button is obtained.
具体地, 用户需要对待缩放图片进行缩放操作时, 用户按压预设按键, 当用户设备设备上的压力传感器感知到用户按压预设按键时, 获取到用户触 发的对待缩放图片进行缩放的指令。 本领域技术人员可以理解, 在本实施例 中, 用户设备可以包括触摸屏, 也可以不包括触摸屏, 可以包括话筒也可以 不包括话筒, 只要该用户设备包括功能按键即可, 可以将用户设备上设置的 任意功能键作为预设按键。  Specifically, when the user needs to perform a zoom operation on the zoomed image, the user presses the preset button, and when the pressure sensor on the user equipment device senses that the user presses the preset button, the user triggers an instruction to zoom the image to be zoomed. It can be understood by those skilled in the art that in this embodiment, the user equipment may include a touch screen or may not include a touch screen, and may or may not include a microphone. As long as the user equipment includes a function button, the user equipment may be set. Any function key is used as a preset button.
本领域技术人员可以理解, 本实施例并不限于上述可能的实现方式, 还 可以为其它可能的实现方式, 例如, 用户设备还可通过光敏传感器、 气敏传 感器、 温敏传感器等, 获取用户触发的与传感器对应的对待所缩放图片进行 缩放操作的指令。  A person skilled in the art can understand that the embodiment is not limited to the foregoing possible implementation manners, and may be other possible implementation manners. For example, the user equipment may also obtain a user trigger by using a photo sensor, a gas sensor, a temperature sensor, or the like. An instruction corresponding to the sensor to perform a scaling operation on the scaled picture.
在步骤 102中, 用户设备获取待缩放图片的属性信息。 其中, 待缩放图 片的属性信息是指待缩放图片本身具有的属性和信息。 例如, 可以为拍照聚 焦时的焦点位置、 人脸在待缩放图片的位置、 图片的大小等。  In step 102, the user equipment acquires attribute information of the picture to be scaled. The attribute information of the image to be zoomed refers to the attribute and information of the picture to be scaled. For example, it may be a focus position when a photograph is focused, a position of a face to be scaled, a size of a picture, and the like.
再根据待缩放图片的属性信息, 确定待缩放图片的缩放点。 例如, 将待 缩放图片的拍照聚焦时的焦点位置作为缩放点。  Then, according to the attribute information of the picture to be zoomed, the zoom point of the picture to be zoomed is determined. For example, the focus position when the photograph of the picture to be zoomed is focused is used as the zoom point.
在步骤 103中, 用户设备以步骤 102中确定的缩放点, 作为待缩放图片 的缩放中心, 对待缩放图片进行缩放处理。  In step 103, the user equipment performs a scaling process on the zoomed picture as the zoom center of the picture to be zoomed with the zoom point determined in step 102.
本发明实施例提供的图片缩放方法, 通过获取用户触发的对待缩放图片 进行缩放操作的指令; 获取所述待缩放图片的属性信息, 根据所述待缩放图 片的属性信息, 确定所述待缩放图片的缩放点; 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理, 用户不需要确定缩放中心, 而是由用户设 备确定用户感兴趣的缩放中心, 进而用户设备进行缩放处理, 简化了用户在 图片缩放处理过程的操作, 提高了操控效率。 下面采用几个具体的实施例, 对本发明实施例提供的图片缩放方法进行 详细说明, 具体可参照图 2至图 4。 The image zooming method provided by the embodiment of the present invention obtains an instruction for performing a zoom operation by a user-triggered image to be scaled; acquiring attribute information of the to-be-scaled image, and determining the to-be-scaled image according to the attribute information of the to-be-scaled picture Zooming point; using the zoom point as a zoom center, performing scaling processing on the to-be-scaled picture, the user does not need to determine the zoom center, but the user equipment determines the zoom center that the user is interested in, and then the user equipment performs scaling processing. It simplifies the user's operation in the image scaling process and improves the control efficiency. The image scaling method provided by the embodiment of the present invention is described in detail below with reference to FIG. 2 to FIG. 4 .
图 2为本发明图片缩放方法实施例二的流程图。 如图 2所示, 本实施例 提供的图片缩放方法, 包括:  FIG. 2 is a flowchart of Embodiment 2 of a picture zooming method according to the present invention. As shown in FIG. 2, the image scaling method provided in this embodiment includes:
步骤 201、 拍照获取所述待缩放图片时, 记录所述待缩放图片拍照聚焦 时的焦点位置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待缩放图 片的属性信息;  Step 201: When taking a picture to obtain the to-be-scaled picture, record a focus position when the picture to be zoomed is in focus, and use a focus position when the picture to be zoomed is focused as the attribute information of the to-be-scaled picture;
步骤 202、 获取对所述待缩放图片进行缩放操作的指令;  Step 202: Obtain an instruction for performing a scaling operation on the to-be-scaled picture.
步骤 203、 获取所述待缩放图片拍照聚焦时的焦点位置, 将所述拍照聚 焦时的焦点位置作为所述待缩放图片的缩放点;  Step 203: Obtain a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom point of the picture to be zoomed;
步骤 204、 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 在本实施例中, 步骤 202与步骤 101类似, 步骤 204与步骤 103类似, 本实施例此处不再赘述。  Step 204: Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center. In this embodiment, step 202 is similar to step 101, and step 204 is similar to step 103, and details are not described herein again.
在本实施例中, 步骤 201中, 当该待缩放图片为通过拍照方式获取时, 用户设备在拍照获取待缩放图片时, 记录拍照聚焦时的焦点位置, 并将焦点 位置作为待缩放图片的属性信息。 本领域技术人员可以理解, 待缩放图片的 属性信息包括各种待缩放图片的信息, 此处, 只是将焦点位置作为待缩放图 片的一种属性信息。  In this embodiment, in step 201, when the picture to be zoomed is acquired by the photographing mode, when the user equipment takes a picture to obtain a picture to be zoomed, the focus position of the photo focus is recorded, and the focus position is used as an attribute of the picture to be zoomed. information. Those skilled in the art can understand that the attribute information of the picture to be scaled includes information of various pictures to be scaled, and here, only the focus position is regarded as an attribute information of the picture to be zoomed.
在步骤 203中, 用户设备获取属性信息, 从属性信息中获取拍照聚焦时 的焦点位置, 将拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。  In step 203, the user equipment acquires the attribute information, obtains the focus position when the photograph is focused from the attribute information, and uses the focus position when the photograph is focused as the zoom point of the to-be-scaled picture.
本领域技术人员可以理解, 在本实施例中, 通过拍照获取的待缩放图片, 都可以预先将焦点位置作为待缩放图片的属性信息, 与待缩放照片一起保存 在用户设备中。 在用户需要对待缩放图片进行缩放处理时, 可直接使用该属 性信息, 不需要再次获取, 即直接从步骤 202开始执行。  It can be understood by those skilled in the art that in this embodiment, the image to be zoomed by taking a picture can be used as the attribute information of the picture to be zoomed in advance, and saved in the user equipment together with the picture to be zoomed. When the user needs to perform scaling processing on the zoomed picture, the attribute information can be directly used, and does not need to be acquired again, that is, directly from step 202.
本发明实施例提供的图片缩放方法, 通过拍照获取所述待缩放图片时, 记录拍照聚焦时的焦点位置, 将所述拍照聚焦时的焦点位置作为所述待缩放 图片的属性信息; 获取用户触发的对待缩放图片进行缩放操作的指令; 获取 所述拍照聚焦时的焦点位置, 将所述拍照聚焦时的焦点位置作为所述待缩放 图片的缩放点; 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 由于拍照获取的待缩放图片只会有一个焦点, 所以当用户在缩放照片时, 以 焦点位置作为缩放点, 以该缩放点作为缩放中心, 对待缩放图片进行缩放, 不仅更好的聚焦用户的关注点, 还简化了用户的操作。 In the image zooming method provided by the embodiment of the present invention, when the image to be zoomed is acquired by photographing, the focus position when the photographing is focused is recorded, and the focus position when the photographing is focused is used as the attribute information of the to-be-scaled image; An instruction to perform a zoom operation on the zoomed image; obtaining a focus position when the photograph is focused, and using a focus position when the photograph is focused as a zoom point of the to-be-scaled image; using the zoom point as a zoom center, The zoomed image is described for scaling processing. Since the image to be zoomed by the camera has only one focus, when the user zooms the photo, The focus position is used as the zoom point, and the zoom point is used as the zoom center, and the zoomed image is scaled, which not only better focuses on the user's attention, but also simplifies the user's operation.
图 3为本发明图片缩放方法实施例三的流程图。 如图 3所示, 本实施例 提供的图片缩放方法, 包括:  FIG. 3 is a flowchart of Embodiment 3 of a picture zooming method according to the present invention. As shown in FIG. 3, the image zooming method provided in this embodiment includes:
步骤 301、 在确定所述待缩放图片中包括人脸时, 对所述待缩放图片进 行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述 人脸在所述待缩放图片的位置作为所述待缩放图片的属性信息;  Step 301: Perform a face recognition on the to-be-scaled picture when the face to be zoomed is included in the picture to be zoomed, and obtain a position of the face in the picture to be zoomed in the picture to be zoomed, and the face is The location of the to-be-scaled picture is used as attribute information of the to-be-scaled picture;
步骤 302、 获取对所述待缩放图片进行缩放操作的指令;  Step 302: Acquire an instruction for performing a scaling operation on the to-be-scaled picture.
步骤 303、 获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述 待缩放图片的位置作为所述待缩放图片的缩放点;  Step 303: Obtain a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture;
步骤 304、 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 在本实施例中, 步骤 302与步骤 101类似, 步骤 304与步骤 103类似, 本实施例此处不再赘述。  Step 304: Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center. In this embodiment, step 302 is similar to step 101, and step 304 is similar to step 103, and details are not described herein again.
本实施例中的待缩放图片可以是以人为被拍摄对象的摄影作品, 或者是 以人为主体的图片。 下面本实施例对具体实现过程进行详细说明。  The picture to be zoomed in this embodiment may be a photographic work of an artificial subject, or a picture of a person. The following embodiment details the specific implementation process.
在步骤 301中, 通过人脸识别技术对待缩放图片进行识别, 确定待缩放 图片中是否包括人脸, 若待缩放图片中包括人脸, 则获取所述待缩放图片中 人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所 述待缩放图片的属性信息。 本实施例中的人脸识别技术涉及的人脸识别方法 具体可以为几何特征的人脸识别方法、 神经网络的人脸识别方法、 弹性图匹 配的人脸识别方法、 支持向量机的人脸识别方法等。 对于具体的人脸识别方 法, 本实施例此处不再赘述。  In step 301, the face recognition technology is used to identify the zoomed image, and the face to be zoomed is included in the image to be zoomed. If the face to be zoomed includes a face, the face in the image to be zoomed is obtained. The position of the picture, the location of the face in the picture to be zoomed as the 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 based on geometric features, a face recognition method based on neural network, a face recognition method based on elasticity map matching, and a face recognition method based on support vector machine. Method, etc. For a specific face recognition method, this embodiment will not be described herein.
进一步地, 根据待缩放图片中人脸个数的多少, 步骤 301具体可以分为 以下两种可能的实现方式。  Further, according to the number of faces in the picture to be zoomed, step 301 can be specifically divided into the following two possible implementation manners.
第一种可能的实现方式, 确定所述待缩放图片中包括人脸, 对所述待缩 放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; 当人脸个数为 1 时, 获取待缩放图片中人脸在待缩放图片的位置, 将人脸在待缩放图片的位 置作为待缩放图片的属性信息。  a first possible implementation manner, determining that the to-be-scaled picture includes a human face, performing face recognition on the to-be-scaled picture, and acquiring a number of faces in the to-be-scaled picture; when the number of faces is 1 The position of the face to be zoomed in the picture to be zoomed is obtained, and the position of the face to be zoomed is used as the attribute information of the picture to be zoomed.
具体地, 当人脸个数为 1时, 如图 4所示, 图 4为本发明人脸识别结果 实施例一的示意图, 在图 4中, 黑色线框所框住的位置为人脸的识别结果。 在图 4中, 包括一个人脸。 其中, 黑色线框的中心位置为待缩放图片中人脸 在待缩放图片的位置, 然后将人脸在待缩放图片的位置作为待缩放图片的属 性信息。 Specifically, when the number of faces is 1, as shown in FIG. 4, FIG. 4 is a schematic diagram of Embodiment 1 of the face recognition result of the present invention. In FIG. 4, the position framed by the black wire frame is the face recognition. result. In Figure 4, a face is included. The center position of the black wire frame is the position of the face to be zoomed 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.
第二种可能的实现方式, 当人脸个数为多个时, 又分为两种可能的情况, 具体如下:  The second possible implementation method, when there are multiple faces, is divided into two possible situations, as follows:
一种可能的情况为: 确定待缩放图片中包括人脸, 对待缩放图片进行人 脸识别, 获取待缩放图片中的人脸个数; 当人脸个数大于 1个时, 确定多个 人脸中最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人 脸在所述待缩放图片的位置, 然后, 将该人脸在待缩放图片的位置作为待缩 放图片的属性信息。  A possible situation is: determining that a face to be zoomed includes a face, performing face recognition on the zoomed image, and obtaining a number of faces in the image to be zoomed; when the number of faces is greater than one, determining a plurality of faces a face corresponding to the largest area, obtaining a position of the face corresponding to the maximum area in the picture to be zoomed at the position of the picture to be zoomed, and then using the position of the face in the picture to be zoomed as the attribute information of the picture to be zoomed .
具体地, 当人脸个数为多个时, 如图 5所示, 图 5为本发明人脸识别结 果实施例二的示意图, 在图 5中, 黑色线框所框住的位置为人脸的识别结果。 在图 5中, 包括 3个人脸。 此时, 获取 3个人脸的面积大小, 则位于最上方 的人脸的面积最大, 此时, 获取该人脸在待缩放图片的位置, 然后, 将该人 脸在待缩放图片的位置作为待缩放图片的属性信息。  Specifically, when the number of faces is plural, as shown in FIG. 5, FIG. 5 is a schematic diagram of Embodiment 2 of the face recognition result of the present invention. In FIG. 5, the position of the black wire frame is a face. Identify the results. In Figure 5, it includes 3 faces. At this time, the size of the face of the three faces is obtained, and the area of the face at the top is the largest. At this time, the face of the face is obtained at the position of the image to be zoomed, and then the face is taken as the position of the image to be zoomed. Scale the attribute information of the image.
另一种可能的情况为: 确定待缩放图片中包括人脸, 对待缩放图片进行 人脸识别, 获取待缩放图片中的人脸个数; 在所述人脸个数大于 1个时, 获 取所述待缩放图片中位于预设区域的人脸在所述待缩放图片的位置。  Another possible situation is: determining that a face to be zoomed includes a face, performing face recognition on the zoomed image, and obtaining a number of faces in the image to be zoomed; when the number of the faces is greater than one, obtaining the location The face of the zoomed picture located in the preset area is in the position of the picture to be zoomed.
具体地, 本实施例中的预设区域可以为预设中心区域, 预设上部区域, 预设下部区域, 预设左部区域, 预设右部区域等, 对于预设区域所代表的具 体区域, 本实施例此处不作特别限制。 以一个具体的例子为例, 当人脸个数 为多个时, 如图 6所示, 图 6为本发明人脸识别结果实施例三的示意图, 在 图 6中, 黑色线框所框住的位置为人脸的识别结果。 在图 6中, 共识别出 5 个人脸。 从左至右数, 第三个人脸位于预设中心区域, 则获取第三个人脸在 待缩放图片的位置, 然后, 将该人脸在待缩放图片的位置作为待缩放图片的 属性信息。  Specifically, the preset area in this embodiment may be a preset central area, a preset upper area, a preset lower area, a preset left area, a preset right area, and the like, and a specific area represented by the preset area. This embodiment is not particularly limited herein. Taking a specific example as an example, when the number of faces is plural, as shown in FIG. 6, FIG. 6 is a schematic diagram of Embodiment 3 of the face recognition result of the present invention. In FIG. 6, the black wire frame is framed. The position is the recognition result of the face. In Figure 6, a total of 5 faces were identified. From left to right, the third person's face is located in the preset center area, and the position of the third person's face in the picture to be zoomed is obtained, and then the position of the face in the picture to be zoomed is taken as the attribute information of the picture to be zoomed.
本领域技术人员可以理解, 待缩放图片的属性信息包括各种待缩放图片 的信息, 在上述各实施例中, 只是将人脸在待缩放图片的位置作为待缩放图 片的一种属性信息。  It can be understood by those skilled in the art that the attribute information of the picture to be scaled includes information of various pictures to be scaled. In the above embodiments, only the position of the face to be zoomed is used as an attribute information of the picture to be zoomed.
进一步地, 在具体实现过程中, 步骤 301与步骤 302没有严格的时序关 系。 可以预先将人脸在待缩放图片的位置作为待缩放图片的属性信息, 也可 以在获取到用户触发的对待缩放图片进行缩放操作的指令之后, 获取人脸在 待缩放图片的位置, 并作为属性信息。 Further, in the specific implementation process, steps 301 and 302 have no strict timing. Department. The position of the face to be zoomed may be used as the attribute information of the picture to be zoomed in advance, or after the instruction of the zoom operation of the picture to be zoomed by the user is acquired, the position of the face to be zoomed is obtained, and is used as an attribute. information.
在步骤 303中, 用户设备获取所述待缩放图片的属性信息, 从所述待缩 放图片的属性信息中, 获取人脸在所述待缩放图片的位置, 将所述人脸在所 述待缩放图片的位置作为所述待缩放图片的缩放点。  In step 303, the user equipment acquires the attribute information of the to-be-scaled picture, and obtains the location of the face in the to-be-scaled picture from the attribute information of the to-be-scaled picture, and the face is in the to-be-scaled The position of the picture serves as the zoom point of the picture to be scaled.
本发明实施例通过对所述待缩放图片进行人脸识别, 获取所述待缩放图 片中人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作 为所述待缩放图片的属性信息; 获取用户触发的对待缩放图片进行缩放操作 的指令; 获取所述待缩放图片的属性信息, 从所述待缩放图片的属性信息中, 获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位 置作为所述待缩放图片的缩放点; 以所述缩放点为缩放中心, 对所述待缩放 图片进行缩放处理。 当用户在缩放照片时, 以人脸位置作为缩放点, 以该缩 放点作为缩放中心, 对待缩放图片进行缩放, 不仅更好的聚焦用户的关注点, 还简化了用户的操作。  In the embodiment of the present invention, the face of the image to be zoomed is obtained in the position of the image to be zoomed, and the position of the face in the image to be zoomed is used as the Obtaining the attribute information of the picture to be scaled; acquiring an instruction of the zoom operation of the picture to be scaled by the user; acquiring the attribute information of the picture to be scaled, and obtaining the face from the attribute information of the picture to be zoomed The position of the picture is zoomed, and the position of the face to be zoomed is used as a zoom point of the picture to be zoomed; and the zoomed point is used as a zoom center, and the picture to be zoomed is scaled. When the user zooms the photo, the face position is used as the zoom point, and the zoom point is used as the zoom center, and the zoomed picture is scaled, which not only better focuses on the user's attention, but also simplifies the user's operation.
图 7为本发明图片缩放方法实施例四的流程图。 如图 7所示, 本实施例 提供的图片缩放方法, 包括:  FIG. 7 is a flowchart of Embodiment 4 of a picture zooming method according to the present invention. As shown in FIG. 7, the image zooming method provided in this embodiment includes:
步骤 701、 获取用户确定的标准图片的缩放区域和所述标准图片的图片 类型, 建立所述图片类型和所述缩放区域的对应关系, 并将所述对应关系保 存到所述图片信息表中;  Step 701: Obtain a zoom area of a standard picture determined by a user and a picture type of the standard picture, establish a correspondence between the picture type and the zoom area, and save the corresponding relationship to the picture information table.
步骤 702、 获取所述待缩放图片的图片类型, 根据图片信息表确定与所 述图片类型对应的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信 息;  Step 702: Obtain a picture type of the picture to be scaled, determine a zoom area corresponding to the picture type according to the picture information table, and use the zoom area as attribute information of the picture to be zoomed;
步骤 703、 获取对所述待缩放图片进行缩放操作的指令;  Step 703: Acquire an instruction for performing a scaling operation on the to-be-scaled picture.
步骤 704、 获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩 放区域的中心点作为所述待缩放图片的缩放点;  Step 704: Obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture;
步骤 705、 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 在本实施例中, 步骤 703与步骤 101类似, 步骤 705与步骤 103类似, 本实施例此处不再赘述。  Step 705: Perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center. In this embodiment, step 703 is similar to step 101, and step 705 is similar to step 103, and details are not described herein again.
在步骤 701中, 首先建立图片信息表, 本领域技术人员可以理解, 图片 信息表可以由本实施例中的用户设备建立, 也可以由其它用户设备预先建立 好, 预存在本实施例的用户设备中。 图片信息表主要作用在于根据用户的历 史行为规律, 确定缩放区域。 In step 701, a picture information table is first established, which can be understood by those skilled in the art. The information table may be established by the user equipment in this embodiment, or may be pre-established by other user equipments, and is pre-existing in the user equipment of this embodiment. The main function of the picture information table is to determine the zoom area according to the historical behavior of the user.
在具体实现过程中, 用户设备获取用户确定的标准图片的缩放区域和所 述标准图片的图片类型, 建立所述图片类型和所述缩放区域的对应关系, 并 将所述对应关系保存到所述图片信息表中, 即图片信息表用于存储图片类型 和缩放区域的对应关系。  In a specific implementation process, the user equipment acquires a zoom area of the standard picture determined by the user and a picture type of the standard picture, establish a correspondence between the picture type and the zoom area, and save the corresponding relationship to the In the picture information table, the picture information table is used to store the correspondence between the picture type and the zoom area.
其中, 标准图片为用户设备已经确定了缩放区域的图片。 可以采集以往 用户确定的待缩放图片的缩放区域, 作为标准图片的缩放区域。 或者, 向多 个用户提供多个标准图像, 由多个用户确定各标准图像的缩放区域, 然后采 集信息, 进行整合, 建立图片类型和缩放区域的对应关系, 并将对应关系保 存到图片信息表中。 图片类型具体可以为各种风景图片, 各种人物图片或者 各种动物图片等。 例如, 当图片类型为风景图片时, 由于风景图片所涉及的 场景较多, 因此, 缩放区域可以为所述风景图片的中心区域, 也可以为所述 风景图片的主要场景所在的区域; 当图片类型为人物图片时, 由于人脸多位 于图像的中上部, 因此, 缩放区域可以为图片的中上部区域; 当图片类型为 动物图片时, 不同的动物, 其对应的缩放区域也是不同的, 当该动物为飞禽 时, 缩放区域可以为图片的中上部区域, 当该动物为陆地动物时, 缩放区域 可以为图片的中下部区域。 对于图片类型和缩放区域的对应关系, 本实施例 此处不作特别限制。  The standard picture is a picture in which the user equipment has determined the zoom area. The zoom area of the image to be scaled determined by the user can be collected as the zoom area of the standard picture. Or, providing a plurality of standard images to a plurality of users, determining, by a plurality of users, a zoom area of each standard image, then collecting information, performing integration, establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table. in. The picture type can be a variety of landscape pictures, various character pictures or various animal pictures. For example, when the picture type is a landscape picture, since the scene picture involves more scenes, the zoom area may be the center area of the landscape picture, or may be the area where the main scene of the landscape picture is located; When the type is a character picture, since the face is mostly located in the upper middle part of the image, the zoom area may be the upper middle area of the picture; when the picture type is an animal picture, the different zoom areas of different animals are different. When the animal is a bird, the zoom area may be the upper middle area of the picture, and when the animal is a land animal, the zoom area may be the lower middle area of the picture. For the correspondence between the picture type and the zoom area, the embodiment is not particularly limited herein.
在步骤 702中, 获取待缩放图片的图片类型, 在图片信息表中确定与图 片类型对应的缩放区域, 将缩放区域作为待缩放图片的属性信息。  In step 702, a picture type of the picture to be scaled is obtained, and a zoom area corresponding to the picture type is determined in the picture information table, and the zoom area is used as attribute information of the picture to be zoomed.
具体地, 图片信息表中存储了标准图片的图片类型与缩放区域的对应关 系, 在获取待缩放图片的缩放点时, 先获取待缩放图片的图片类型, 然后将 待缩放图片的图片类型与图片信息表中的标准图片的图片类型进行匹配, 当 待缩放图片的图片类型与图片信息表中的标准图片的图片类型一致时, 将图 片信息表中标准图片的图片类型对应的缩放区域作为待缩放图片的缩放区 域, 并作为待缩放图片的属性信息。  Specifically, the picture information table stores the correspondence between the picture type of the standard picture and the zoom area. When acquiring the zoom point of the picture to be zoomed, first obtain the picture type of the picture to be zoomed, and then the picture type and picture of the picture to be zoomed The picture type of the standard picture in the information table is matched. When the picture type of the picture to be scaled is consistent with the picture type of the standard picture in the picture information table, the zoom area corresponding to the picture type of the standard picture in the picture information table is to be scaled. The zoom area of the picture, and as the attribute information of the picture to be scaled.
例如, 在获取到待缩放图片后, 通过图像识别技术确定待缩放图片的图 片类型为风景图片, 与图片信息表中的标准图片的图片类型进行匹配, 当标 准图片的图片类型为风景图片时, 则匹配成功, 将图片信息表中该标准图片 对应的缩放区域作为该待缩放图片的缩放区域, 并将该缩放区域作为待缩放 图片的属性信息。 For example, after the image to be zoomed is acquired, the image type of the image to be zoomed is determined by the image recognition technology to be a landscape image, and the image type of the standard image in the image information table is matched. If the picture type of the quasi-picture is a landscape picture, the matching is successful, and the zoom area corresponding to the standard picture in the picture information table is used as the zoom area of the picture to be zoomed, and the zoom area is used as the attribute information of the picture to be zoomed.
再例如, 在获取到待缩放图片后, 通过图像识别技术确定待缩放图片的 图片类型为动物图片中的飞禽图片, 与图片信息表中的标准图片的图片类型 进行匹配, 当标准图片的图片类型为飞禽图片时, 则匹配成功, 将图片信息 表中该标准图片对应的缩放区域作为该待缩放图片的缩放区域, 并将该缩放 区域作为待缩放图片的属性信息。  For example, after acquiring the image to be zoomed, the image recognition type determines that the picture type of the picture to be zoomed is a bird picture in the animal picture, and matches the picture type of the standard picture in the picture information table, when the picture type of the standard picture When the picture is a bird, the matching is successful, and the zoom area corresponding to the standard picture in the picture information table is used as the zoom area of the picture to be zoomed, and the zoom area is used as the attribute information of the picture to be zoomed.
对于其它的具体实施例, 本实施例此处不再赘述。 本领域技术人员可以 理解, 待缩放图片的属性信息包括各种待缩放图片的信息, 在上述各实施例 中, 只是将缩放区域作为待缩放图片的一种属性信息。  For other specific embodiments, the embodiment is not described herein again. It can be understood by those skilled in the art that the attribute information of the picture to be scaled includes information of various pictures to be scaled. In the above embodiments, only the zoom area is used as an attribute information of the picture to be scaled.
进一步地, 在具体实现过程中, 步骤 702与步骤 703没有严格的时序关 系。 可以预先将缩放区域作为待缩放图片的属性信息, 也可以在获取到用户 触发的对待缩放图片进行缩放操作的指令之后,获取待缩放图片的图片类型, 在图片信息表中确定与图片类型对应的缩放区域, 将缩放区域作为待缩放图 片的属性信息。  Further, in a specific implementation process, step 702 and step 703 do not have strict timing relationships. The zoom area may be used as the attribute information of the picture to be zoomed in advance, or the picture type of the picture to be zoomed may be acquired after obtaining the instruction of the zoom operation of the picture to be scaled by the user, and the picture type corresponding to the picture type is determined in the picture information table. The zoom area is used as the attribute information of the picture to be zoomed.
在步骤 704中, 用户设备获取待缩放图片的属性信息, 从待缩放图片的 属性信息中, 获取缩放区域, 确定缩放区域的中心点, 将缩放区域的中心点 作为所述待缩放图片的缩放点。  In step 704, the user equipment acquires the attribute information of the picture to be zoomed, obtains the zoom area from the attribute information of the picture to be zoomed, determines the center point of the zoom area, and uses the center point of the zoom area as the zoom point of the to-be-scaled picture. .
本发明实施例提供的图片缩放方法, 通过获取用户确定的标准图片的缩 放区域和所述标准图片的图片类型, 建立所述图片类型和所述缩放区域的对 应关系, 并将所述对应关系保存到所述图片信息表中; 获取所述待缩放图片 的图片类型, 在图片信息表中确定与所述图片类型对应的缩放区域, 将所述 缩放区域作为所述待缩放图片的属性信息; 获取用户触发的对待缩放图片进 行缩放操作的指令; 获取所述待缩放图片的属性信息, 从所述待缩放图片的 属性信息中, 获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩放 区域的中心点作为所述待缩放图片的缩放点; 以所述缩放点为缩放中心, 对 所述待缩放图片进行缩放处理。 当用户在缩放照片时, 根据用户的历史行为 活动确定缩放点, 以该缩放点作为缩放中心, 对待缩放图片进行缩放, 不仅 更好的聚焦用户的关注点, 还简化了用户的操作。 图 8为本发明用户设备实施例一的结构示意图。 如图 8所示, 本发明实 施例提供的用户设备 80, 包括: 指令获取模块 801, 缩放点获取模块 802, 缩放处理模块 803。 The image scaling method provided by the embodiment of the present invention establishes a correspondence between the picture type and the zoom area by acquiring a zoom area of a standard picture determined by a user and a picture type of the standard picture, and saves the corresponding relationship. Obtaining a picture type of the picture to be scaled, determining a zoom area corresponding to the picture type in the picture information table, using the zoom area as attribute information of the picture to be zoomed; a user-triggered instruction to perform a scaling operation on the zoomed image; acquiring attribute information of the to-be-scaled picture, obtaining the zoomed area from the attribute information of the to-be-scaled picture, determining a center point of the zoomed area, The center point of the zoom area is used as a zoom point of the picture to be zoomed; and the zoom point is used as a zoom center, and the picture to be zoomed is scaled. When the user zooms the photo, the zoom point is determined according to the user's historical behavior activity, and the zoom point is used as the zoom center, and the zoomed image is scaled, which not only better focuses on the user's attention, but also simplifies the user's operation. FIG. 8 is a schematic structural diagram of Embodiment 1 of a user equipment according to the present invention. As shown in FIG. 8, the user equipment 80 provided by the embodiment of the present invention includes: an instruction acquisition module 801, a zoom point acquisition module 802, and a scaling processing module 803.
指令获取模块 801, 用于获取对待缩放图片进行缩放操作的指令; 缩放点获取模块 802, 用于获取所述待缩放图片的属性信息, 根据所述 待缩放图片的属性信息, 确定所述待缩放图片的缩放点;  An instruction acquisition module 801, configured to acquire an instruction to perform a scaling operation on the image to be scaled; a zoom point acquisition module 802, configured to acquire attribute information of the to-be-scaled picture, and determine the to-be-scaled according to the attribute information of the to-be-scaled picture The zoom point of the image;
缩放处理模块 803, 用于以所述缩放点为缩放中心, 对所述待缩放图片 进行缩放处理。  The scaling processing module 803 is configured to perform scaling processing on the to-be-scaled picture by using the zoom point as a zoom center.
本发明实施例提供的用户设备,可用于执行上述方法实施例的技术方案, 其技术效果和技术原理类似, 本实施例此处不再赘述。  The user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
图 9为本发明用户设备实施例二的结构示意图。 如图 9所示, 本实施例 在图 8实施例的基础上, 还包括: 第一属性获取模块 804, 用于在所述缩放 点获取模块获取所述待缩放图片的属性信息之前, 拍照获取所述待缩放图片 时, 记录所述待缩放图片拍照聚焦时的焦点位置, 将所述待缩放图片拍照聚 焦时的焦点位置作为所述待缩放图片的属性信息;  FIG. 9 is a schematic structural diagram of Embodiment 2 of a user equipment according to the present invention. As shown in FIG. 9 , the present embodiment further includes: a first attribute obtaining module 804, configured to: before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, according to the embodiment of FIG. When the picture to be zoomed is recorded, a focus position when the picture to be zoomed is photographed is recorded, and a focus position when the picture to be zoomed is focused is used as attribute information of the picture to be zoomed;
所述缩放点获取模块 802具体用于: 获取所述待缩放图片拍照聚焦时的 焦点位置, 将所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。  The zoom point acquisition module 802 is specifically configured to: obtain a focus position when the picture to be zoomed is in focus, and use a focus position when the photograph is focused as a zoom point of the picture to be zoomed.
本发明实施例提供的用户设备,可用于执行上述方法实施例的技术方案, 其技术效果和技术原理类似, 本实施例此处不再赘述。  The user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
图 10为本发明用户设备实施例三的结构示意图。 如图 10所示, 本实施 例在图 8实施例的基础上, 还包括: 第二属性获取模块 805, 用于在所述缩 放点获取模块获取所述待缩放图片的属性信息之前, 在确定所述待缩放图片 中包括人脸时, 对所述待缩放图片进行人脸识别, 获取所述待缩放图片中人 脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所述 待缩放图片的属性信息;  FIG. 10 is a schematic structural diagram of Embodiment 3 of a user equipment according to the present invention. As shown in FIG. 10, the present embodiment further includes: a second attribute obtaining module 805, configured to: before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, When the face to be zoomed includes a face, the face to be zoomed is subjected to face recognition, and the face of the image to be zoomed is obtained at the position of the image to be zoomed, and the face is to be zoomed The position of the picture is used as attribute information of the picture to be scaled;
所述缩放点获取模块 802具体用于: 获取所述人脸在所述待缩放图片的 位置, 将所述人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。  The zoom point acquisition module 802 is specifically configured to: obtain a position of the face in the picture to be zoomed, and use the position of the face in the picture to be zoomed as a zoom point of the picture to be zoomed.
可选地, 所述第二属性获取模块 805具体用于:  Optionally, the second attribute obtaining module 805 is specifically configured to:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; 在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者, When determining that the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture; When the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。  When the number of the faces is greater than 1, the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
本发明实施例提供的用户设备,可用于执行上述方法实施例的技术方案, 其技术效果和技术原理类似, 本实施例此处不再赘述。  The user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
图 11为本发明用户设备实施例四的结构示意图。 如图 11所示, 本实施 例在图 8实施例的基础上, 还包括: 第三属性获取模块 806, 用于在所述缩 放点获取模块获取所述待缩放图片的属性信息之前, 获取所述待缩放图片的 图片类型, 根据图片信息表确定与所述图片类型对应的缩放区域, 将所述缩 放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中存储图片 类型与缩放区域的对应关系;  FIG. 11 is a schematic structural diagram of Embodiment 4 of a user equipment according to the present invention. As shown in FIG. 11 , the present embodiment further includes: a third attribute obtaining module 806, configured to acquire, before the zoom point acquiring module acquires the attribute information of the to-be-scaled picture, on the basis of the embodiment of FIG. Determining a picture type of the zoomed picture, determining a zoom area corresponding to the picture type according to the picture information table, using the zoom area as attribute information of the picture to be zoomed, where the picture type is stored in the picture information table The corresponding relationship of the zoom areas;
所述缩放点获取模块 802具体用于: 获取所述缩放区域, 确定所述缩放 区域的中心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。  The zoom point acquisition module 802 is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
可选地, 还包括: 关系建立模块 807, 用于在所述缩放点获取模块获取 所述待缩放图片的图片类型之前, 获取用户确定的标准图片的缩放区域和所 述标准图片的图片类型, 建立所述图片类型和所述缩放区域的对应关系, 并 将所述对应关系保存到所述图片信息表中。  Optionally, the method further includes: a relationship establishing module 807, configured to acquire, before the zoom point acquisition module acquires the picture type of the to-be-scaled picture, a zoom area of the standard picture determined by the user and a picture type of the standard picture, Establishing a correspondence between the picture type and the zoom area, and saving the correspondence to the picture information table.
本发明实施例提供的用户设备,可用于执行上述方法实施例的技术方案, 其技术效果和技术原理类似, 本实施例此处不再赘述。  The user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
可选地, 在图 8至图 11实施例的基础上, 所述指令获取模块 801, 具体 用于实现如下方式中的任一:  Optionally, on the basis of the embodiment of FIG. 8 to FIG. 11 , the instruction obtaining module 801 is specifically configured to implement any one of the following manners:
获取用户通过触碰所述待缩放图片的任意位置触发的对所述待所缩放图 片进行缩放操作的指令;  Obtaining an instruction for the user to zoom the image to be zoomed by triggering the arbitrary position of the to-be-scaled picture;
获取用户通过语音触发的对所述待所缩放图片进行缩放操作的指令; 获取用户通过按压预设按键触发的对所述待所缩放图片进行缩放操作的 指令。  Obtaining, by the voice, an instruction for performing a scaling operation on the to-be-scaled picture triggered by a voice; acquiring an instruction that the user performs a scaling operation on the to-be-scaled picture triggered by pressing a preset button.
图 12为本发明用户设备实施例五的结构示意图。 如图 12所示, 本发明 实施例提供的用户设备 90包括, 输入装置 901和处理器 902。 输入装置 901, 用于获取对待缩放图片进行缩放操作的指令; 处理器 902, 用于获取所述待缩放图片的属性信息, 根据所述待缩放图 片的属性信息, 确定所述待缩放图片的缩放点, 以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 FIG. 12 is a schematic structural diagram of Embodiment 5 of a user equipment according to 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. The input device 901 is configured to: acquire an instruction for performing a scaling operation on the image to be scaled; the processor 902 is configured to acquire attribute information of the to-be-scaled picture, and determine, according to the attribute information of the to-be-scaled picture, a scaling of the to-be-scaled picture Pointing, using the zoom point as a zoom center, performing scaling processing on the to-be-scaled picture.
可选地, 所述处理器 902还用于, 在所述输入装置 901获取所述待缩放 图片的属性信息之前, 拍照获取所述待缩放图片时, 记录所述待缩放图片拍 照聚焦时的焦点位置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待 缩放图片的属性信息;  Optionally, the processor 902 is further configured to: when the input device 901 acquires the attribute information of the to-be-scaled picture, when capturing the picture to be zoomed, the focus of the picture to be zoomed is recorded a position, where a focus position when the picture to be zoomed is focused is used as attribute information of the picture to be zoomed;
所述处理器 902具体用于:获取所述待缩放图片拍照聚焦时的焦点位置, 将所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。  The processor 902 is specifically configured to: acquire a focus position when the to-be-scaled picture is in focus, and use a focus position when the picture is focused as a zoom point of the picture to be zoomed.
可选地, 所述处理器 902还用于: 在所述输入装置 901获取所述待缩放 图片的属性信息之前, 在确定所述待缩放图片中包括人脸时, 对所述待缩放 图片进行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所述待缩放图片的属性信息;  Optionally, the processor 902 is further configured to: before determining, by the input device 901, the attribute information of the to-be-scaled picture, when determining that the to-be-scaled picture includes a human face, performing the to-be-scaled picture a face recognition, where a location of the face to be zoomed in the picture to be zoomed is obtained, and a location of the face in the to-be-scaled picture is used as attribute information of the picture to be zoomed;
所述处理器 902具体用于: 获取所述人脸在所述待缩放图片的位置, 将 所述人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。  The processor 902 is specifically configured to: acquire a location of the face in the to-be-scaled picture, and use the location of the face in the to-be-scaled picture as a zoom point of the to-be-scaled picture.
可选地, 所述处理器 902用于, 在确定所述待缩放图片中包括人脸时, 对所述待缩放图片进行人脸识别, 获取所述待缩放图片中人脸在所述待缩放 图片的位置, 具体为:  Optionally, the processor 902 is configured to perform face recognition on the to-be-scaled picture when determining that the to-be-scaled picture includes a human face, and obtain a face in the to-be-scaled picture to be zoomed in The location of the image, specifically:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数;  When determining that the face to be zoomed includes a human face, performing face recognition on the to-be-scaled picture, and acquiring the number of faces in the to-be-scaled picture;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者,  When the number of the faces is greater than 1, the area size of each face in the to-be-scaled picture is obtained, and the face corresponding to the largest area is determined, and the face corresponding to the largest area in the picture to be zoomed is obtained. Tell the location of the zoomed image; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。  When the number of the faces is greater than 1, the face of the to-be-scaled picture in the preset area is obtained at the position of the picture to be zoomed.
可选地, 所述处理器 902还用于, 在所述输入装置 901获取所述待缩放 图片的属性信息之前, 获取所述待缩放图片的图片类型, 根据图片信息表确 定与所述图片类型对应的缩放区域, 将所述缩放区域作为所述待缩放图片的 属性信息, 其中, 所述图片信息表中存储图片类型与缩放区域的对应关系; 所述处理器 902具体用于: 获取所述缩放区域, 确定所述缩放区域的中 心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。 Optionally, the processor 902 is further configured to: before the input device 901 acquires the attribute information of the to-be-scaled picture, acquire a picture type of the to-be-scaled picture, and determine, according to the picture information table, the picture type Corresponding zooming area, the zooming area is used as attribute information of the to-be-scaled picture, where the picture information table stores a corresponding relationship between the picture type and the zooming area; The processor 902 is specifically configured to: obtain the zoom area, determine a center point of the zoom area, and use a center point of the zoom area as a zoom point of the to-be-scaled picture.
可选地, 所述处理器 902还用于, 在所述输入装置 901获取所述待缩放 图片的图片类型之前, 获取用户确定的标准图片的缩放区域和所述标准图片 的图片类型, 建立所述图片类型和所述缩放区域的对应关系, 并将所述对应 关系保存到所述图片信息表中。  Optionally, the processor 902 is further configured to: before the input device 901 acquires the picture type of the to-be-scaled picture, acquire a zoom area of the standard picture determined by the user, and a picture type of the standard picture, Corresponding relationship between the picture type and the zoom area, and saving the correspondence to the picture information table.
可选地, 所述输入装置 901获取用户触发的对待缩放图片进行缩放操作 的指令, 具体为:  Optionally, the input device 901 acquires an instruction that is triggered by a user to perform a scaling operation on the image to be scaled, specifically:
所述输入装置 901获取用户通过触碰所述待缩放图片的任意位置触发的 对所述待所缩放图片进行缩放操作的指令; 或者,  The input device 901 acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by touching an arbitrary position of the to-be-scaled picture; or
所述输入装置 901获取用户通过语音触发的对所述待所缩放图片进行缩 放操作的指令; 或者,  The input device 901 acquires an instruction that the user performs a zoom operation on the to-be-scaled picture triggered by voice; or
所述输入装置 901获取用户通过按压预设按键触发的对所述待所缩放图 片进行缩放操作的指令。  The input device 901 acquires an instruction for the user to zoom the image to be zoomed by pressing the preset button.
本发明实施例提供的用户设备,可用于执行上述方法实施例的技术方案, 其技术效果和技术原理类似, 本实施例此处不再赘述。  The user equipment provided by the embodiment of the present invention can be used to perform the technical solution of the foregoing method embodiments, and the technical effects and technical principles are similar, and details are not described herein again.
本领域普通技术人员可以理解: 实现上述各方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成。 前述的程序可以存储于一计算机可 读取存储介质中。 该程序在执行时, 执行包括上述各方法实施例的步骤; 而 前述的存储介质包括: ROM、 RAM,磁碟或者光盘等各种可以存储程序代码 的介质。  One of ordinary skill in the art will appreciate that all or a portion of the steps to implement the various method embodiments described above can be accomplished by hardware associated with the program instructions. The aforementioned program can be stored in a computer readable storage medium. The program, when executed, performs the steps including the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权利 要 求 书 claims
1、 一种图片缩放方法, 其特征在于, 包括: 1. An image scaling method, characterized by including:
获取对待缩放图片进行缩放操作的指令; Get instructions for scaling the image to be scaled;
获取所述待缩放图片的属性信息, 根据所述待缩放图片的属性信息, 确 定所述待缩放图片的缩放点; Obtain the attribute information of the picture to be scaled, and determine the scaling point of the picture to be scaled based on the attribute information of the picture to be scaled;
以所述缩放点为缩放中心, 对所述待缩放图片进行缩放处理。 Using the scaling point as the scaling center, the image to be scaled is scaled.
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取所述待缩放图片 的属性信息之前, 还包括: 2. The method according to claim 1, characterized in that, before obtaining the attribute information of the image to be scaled, it further includes:
拍照获取所述待缩放图片时, 记录所述待缩放图片拍照聚焦时的焦点位 置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待缩放图片的属性信 息; When taking a picture to obtain the picture to be zoomed, record the focus position when the picture to be zoomed is photographed and focused, and use the focus position when the picture to be zoomed is photographed and focused as the attribute information of the picture to be zoomed;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括: Obtaining the attribute information of the picture to be scaled, and determining the zoom point of the picture to be scaled based on the attribute information of the picture to be scaled includes:
获取所述待缩放图片拍照聚焦时的焦点位置, 将所述拍照聚焦时的焦点 位置作为所述待缩放图片的缩放点。 Obtain the focus position when the picture to be zoomed is photographed and focused, and the focus position when the picture is focused is used as the zoom point of the picture to be zoomed.
3、 根据权利要求 1所述的方法, 其特征在于, 所述获取所述待缩放图片 的属性信息之前, 还包括: 3. The method according to claim 1, characterized in that, before obtaining the attribute information of the image to be scaled, it further includes:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述人脸在所述待 缩放图片的位置作为所述待缩放图片的属性信息; When it is determined that the picture to be zoomed includes a human face, perform face recognition on the picture to be zoomed, obtain the position of the face in the picture to be zoomed in the picture to be zoomed, and place the face in the picture to be zoomed The position of the image to be scaled is used as the attribute information of the image to be scaled;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括: Obtaining the attribute information of the picture to be scaled, and determining the zoom point of the picture to be scaled based on the attribute information of the picture to be scaled includes:
获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片 的位置作为所述待缩放图片的缩放点。 Obtain the position of the human face in the picture to be zoomed, and use the position of the human face in the picture to be zoomed as the zoom point of the picture to be zoomed.
4、 根据权利要求 3所述的方法, 其特征在于, 所述对所述待缩放图片进 行人脸识别, 获取所述待缩放图片中人脸在所述待缩放图片的位置, 包括: 在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; 4. The method according to claim 3, characterized in that: performing face recognition on the picture to be zoomed and obtaining the position of the face in the picture to be zoomed in the picture to be zoomed includes: determining When the picture to be zoomed includes a face, face recognition is performed on the picture to be zoomed, and the number of faces in the picture to be zoomed is obtained;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者, When the number of faces is greater than 1, obtain the area size of each face in the picture to be zoomed, determine the face corresponding to the largest area, and obtain the face corresponding to the largest area in the picture to be zoomed At the position of the picture to be zoomed; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。 When the number of faces is greater than 1, the position of the face located in the preset area in the picture to be zoomed in the picture to be zoomed is obtained.
5、 根据权利要求 1所述的方法, 其特征在于, 所述获取所述待缩放图片 的属性信息之前, 还包括: 5. The method according to claim 1, characterized in that, before obtaining the attribute information of the image to be scaled, it further includes:
获取所述待缩放图片的图片类型, 根据图片信息表确定与所述图片类型 对应的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中存储图片类型与缩放区域的对应关系; Obtain the picture type of the picture to be zoomed, determine the zoom area corresponding to the picture type according to the picture information table, and use the zoom area as the attribute information of the picture to be zoomed, wherein the picture information table stores pictures Correspondence between type and zoom area;
所述获取所述待缩放图片的属性信息,根据所述待缩放图片的属性信息, 确定所述待缩放图片的缩放点, 包括: Obtaining the attribute information of the picture to be scaled, and determining the zoom point of the picture to be scaled based on the attribute information of the picture to be scaled includes:
获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩放区域的中 心点作为所述待缩放图片的缩放点。 Obtain the zoom area, determine the center point of the zoom area, and use the center point of the zoom area as the zoom point of the picture to be zoomed.
6、 根据权利要求 5所述的方法, 其特征在于, 所述获取所述待缩放图片 的图片类型之前, 还包括: 6. The method according to claim 5, characterized in that, before obtaining the picture type of the picture to be scaled, it further includes:
获取用户确定的标准图片的缩放区域和所述标准图片的图片类型, 建立 所述图片类型和所述缩放区域的对应关系, 并将所述对应关系保存到所述图 片信息表中。 Obtain the zoom area of the standard picture determined by the user and the picture type of the standard picture, establish a corresponding relationship between the picture type and the zoom area, and save the corresponding relationship in the picture information table.
7、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 所述获取用户 触发的对待缩放图片进行缩放操作的指令, 包括如下中的任一: 7. The method according to any one of claims 1 to 6, characterized in that the obtaining a user-triggered instruction to perform a zoom operation on a picture to be zoomed includes any of the following:
获取用户通过触碰所述待缩放图片的任意位置触发的对所述待所缩放图 片进行缩放操作的指令; Obtain instructions for scaling the image to be scaled that are triggered by the user touching any position of the image to be scaled;
获取用户通过语音触发的对所述待所缩放图片进行缩放操作的指令; 获取用户通过按压预设按键触发的对所述待所缩放图片进行缩放操作的 指令。 Obtain the instruction of the user to perform the zoom operation on the picture to be zoomed, which is triggered by voice; and obtain the instruction of the user to perform the zoom operation of the picture to be zoomed, which is triggered by pressing the preset button.
8、 一种用户设备, 其特征在于, 包括: 8. A user equipment, characterized by including:
指令获取模块, 用于获取对待缩放图片进行缩放操作的指令; Instruction acquisition module, used to obtain instructions for scaling the image to be scaled;
缩放点获取模块, 用于获取所述待缩放图片的属性信息, 根据所述待缩 放图片的属性信息, 确定所述待缩放图片的缩放点; A zoom point acquisition module, used to obtain the attribute information of the picture to be zoomed, and determine the zoom point of the picture to be zoomed based on the attribute information of the picture to be zoomed;
缩放处理模块, 用于以所述缩放点为缩放中心, 对所述待缩放图片进行 缩放处理。 A scaling processing module, configured to use the scaling point as a scaling center to perform scaling processing on the image to be scaled.
9、 根据权利要求 8所述的用户设备, 其特征在于, 还包括: 第一属性获 取模块, 用于在所述缩放点获取模块获取所述待缩放图片的属性信息之前, 拍照获取所述待缩放图片时, 记录所述待缩放图片拍照聚焦时的焦点位置, 将所述待缩放图片拍照聚焦时的焦点位置作为所述待缩放图片的属性信息; 所述缩放点获取模块具体用于: 获取所述待缩放图片拍照聚焦时的焦点 位置, 将所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。 9. The user equipment according to claim 8, further comprising: a first attribute acquisition module, configured to take a photo to acquire the attribute information of the image to be zoomed before the zoom point acquisition module acquires the attribute information of the image to be zoomed. When zooming a picture, record the focus position when the picture to be zoomed is photographed and focused, and the focus position 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 used to: obtain The focus position when the picture to be zoomed is taken and focused, and the focus position when the picture is taken and focused is used as the zoom point of the picture to be zoomed.
10、 根据权利要求 8所述的用户设备, 其特征在于, 还包括: 第二属性 获取模块,用于在所述缩放点获取模块获取所述待缩放图片的属性信息之前, 在确定所述待缩放图片中包括人脸时, 对所述待缩放图片进行人脸识别, 获 取所述待缩放图片中人脸在所述待缩放图片的位置, 将所述人脸在所述待缩 放图片的位置作为所述待缩放图片的属性信息; 10. The user equipment according to claim 8, further comprising: a second attribute acquisition module, configured to determine the attribute information of the image to be zoomed before the zoom point acquisition module acquires the attribute information of the image to be zoomed. When the zoomed picture includes a human face, face recognition is performed on the picture to be zoomed, 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 obtained. As the attribute information of the image to be scaled;
所述缩放点获取模块具体用于:获取所述人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。 The zoom point acquisition module is specifically configured to: obtain the position of the human face in the picture to be zoomed, and use the position of the human face in the picture to be zoomed as the zoom point of the picture to be zoomed.
11、 根据权利要求 10所述的用户设备, 其特征在于, 所述第二属性获取 模块具体用于: 11. The user equipment according to claim 10, characterized in that the second attribute acquisition module is specifically used to:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; When it is determined that the picture to be zoomed includes a human face, perform face recognition on the picture to be zoomed, and obtain the number of faces in the picture to be zoomed;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者, When the number of faces is greater than 1, obtain the area size of each face in the picture to be scaled, determine the face corresponding to the largest area, and obtain the face corresponding to the maximum area in the picture to be scaled. Describe the location of the image to be scaled; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。 When the number of faces is greater than 1, the position of the face located in the preset area in the picture to be zoomed in the picture to be zoomed is obtained.
12、 根据权利要求 8所述的用户设备, 其特征在于, 还包括: 第三属性 获取模块,用于在所述缩放点获取模块获取所述待缩放图片的属性信息之前, 获取所述待缩放图片的图片类型, 根据图片信息表确定与所述图片类型对应 的缩放区域, 将所述缩放区域作为所述待缩放图片的属性信息, 其中, 所述 图片信息表中存储图片类型与缩放区域的对应关系; 12. The user equipment according to claim 8, further comprising: a third attribute acquisition module, configured to acquire the attribute information of the image to be zoomed before the zoom point acquisition module acquires the attribute information of the image to be zoomed. The picture type of the picture, determine the zoom area corresponding to the picture type according to the picture information table, and use the zoom area as the attribute information of the picture to be zoomed, wherein the picture type and the zoom area are stored in the picture information table Correspondence;
所述缩放点获取模块具体用于: 获取所述缩放区域, 确定所述缩放区域 的中心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。 The zoom point acquisition module is specifically configured to: obtain the zoom area, determine the center point of the zoom area, and use the center point of the zoom area as the zoom point of the picture to be zoomed.
13、 根据权利要求 12所述的用户设备, 其特征在于, 还包括: 关系建立 模块, 用于在所述缩放点获取模块获取所述待缩放图片的图片类型之前, 获 取用户确定的标准图片的缩放区域和所述标准图片的图片类型, 建立所述图 片类型和所述缩放区域的对应关系, 并将所述对应关系保存到所述图片信息 表中。 13. The user equipment according to claim 12, further comprising: relationship establishment Module, configured to obtain the zoom area of the standard picture determined by the user and the picture type of the standard picture before the zoom point acquisition module obtains the picture type of the picture to be zoomed, and establish the picture type and the zoom area corresponding relationship, and save the corresponding relationship into the picture information table.
14、 根据权利要求 8至 13任一项所述的用户设备, 其特征在于, 所述指 令获取模块, 具体用于实现如下方式中的任一: 14. The user equipment according to any one of claims 8 to 13, characterized in that the instruction acquisition module is specifically used to implement any of the following methods:
获取用户通过触碰所述待缩放图片的任意位置触发的对所述待所缩放图 片进行缩放操作的指令; Obtain instructions for performing a zoom operation on the picture to be zoomed, triggered by the user touching any position of the picture to be zoomed;
获取用户通过语音触发的对所述待所缩放图片进行缩放操作的指令; 获取用户通过按压预设按键触发的对所述待所缩放图片进行缩放操作的 指令。 Obtain the instruction of the user to perform the zoom operation on the picture to be zoomed, which is triggered by voice; and obtain the instruction of the user to perform the zoom operation of the picture to be zoomed, which is triggered by pressing the preset button.
15、 一种用户设备, 其特征在于, 包括: 15. A user equipment, characterized by: including:
输入装置, 用于获取对待缩放图片进行缩放操作的指令; An input device used to obtain instructions for scaling the image to be scaled;
处理器, 用于获取所述待缩放图片的属性信息, 根据所述待缩放图片的 属性信息, 确定所述待缩放图片的缩放点, 以所述缩放点为缩放中心, 对所 述待缩放图片进行缩放处理。 A processor configured to obtain the attribute information of the image to be scaled, determine the scaling point of the image to be scaled based on the attribute information of the image to be scaled, and use the scaling point as the scaling center to perform the scaling of the image to be scaled. Perform scaling.
16、根据权利要求 15所述的用户设备,其特征在于,所述处理器还用于, 在所述输入装置获取所述待缩放图片的属性信息之前, 拍照获取所述待缩放 图片时, 记录所述待缩放图片拍照聚焦时的焦点位置, 将所述待缩放图片拍 照聚焦时的焦点位置作为所述待缩放图片的属性信息; 16. The user equipment according to claim 15, wherein the processor is further configured to: before the input device obtains the attribute information of the picture to be zoomed, when taking a photo to obtain the picture to be zoomed, record The focus position when the picture to be zoomed is photographed and focused, and the focus position when the picture to be zoomed is photographed and focused is used as the attribute information of the picture to be zoomed;
所述处理器具体用于: 获取所述待缩放图片拍照聚焦时的焦点位置, 将 所述拍照聚焦时的焦点位置作为所述待缩放图片的缩放点。 The processor is specifically configured to: obtain the focus position when the picture to be zoomed is photographed and focused, and use the focus position when the picture is photographed and focused as the zoom point of the picture to be zoomed.
17、根据权利要求 15所述的用户设备,其特征在于,所述处理器还用于: 在所述输入装置获取所述待缩放图片的属性信息之前, 在确定所述待缩放图 片中包括人脸时, 对所述待缩放图片进行人脸识别, 获取所述待缩放图片中 人脸在所述待缩放图片的位置, 将所述人脸在所述待缩放图片的位置作为所 述待缩放图片的属性信息; 17. The user equipment according to claim 15, wherein the processor is further configured to: before the input device obtains the attribute information of the picture to be zoomed, determine that the picture to be zoomed includes a person. face, perform face recognition on the picture to be zoomed, obtain the position of the face in the picture to be zoomed in the picture to be zoomed, and use the position of the face in the picture to be zoomed as the position of the face to be zoomed Image attribute information;
所述处理器具体用于: 获取所述人脸在所述待缩放图片的位置, 将所述 人脸在所述待缩放图片的位置作为所述待缩放图片的缩放点。 The processor is specifically configured to: obtain the position of the human face in the picture to be zoomed, and use the position of the human face in the picture to be zoomed as the zoom point of the picture to be zoomed.
18、 根据权利要求 17所述的用户设备, 其特征在于, 所述处理器用于, 在确定所述待缩放图片中包括人脸时, 对所述待缩放图片进行人脸识别, 获 取所述待缩放图片中人脸在所述待缩放图片的位置, 具体为: 18. The user equipment according to claim 17, characterized in that, the processor is configured to, When it is determined that the picture to be zoomed includes a human face, face recognition is performed on the picture to be zoomed, and the position of the face in the picture to be zoomed in the picture to be zoomed is obtained, specifically:
在确定所述待缩放图片中包括人脸时,对所述待缩放图片进行人脸识别, 获取所述待缩放图片中的人脸个数; When it is determined that the picture to be zoomed includes a human face, perform face recognition on the picture to be zoomed, and obtain the number of faces in the picture to be zoomed;
在所述人脸个数大于 1时, 获取所述待缩放图片中各人脸的面积大小, 确定最大面积对应的人脸, 获取所述待缩放图片中所述最大面积对应的人脸 在所述待缩放图片的位置; 或者, When the number of faces is greater than 1, obtain the area size of each face in the picture to be scaled, determine the face corresponding to the largest area, and obtain the face corresponding to the maximum area in the picture to be scaled. Describe the location of the image to be scaled; or,
在所述人脸个数大于 1时, 获取所述待缩放图片中位于预设区域的人脸 在所述待缩放图片的位置。 When the number of faces is greater than 1, the position of the face located in the preset area in the picture to be zoomed in the picture to be zoomed is obtained.
19、根据权利要求 15所述的用户设备,其特征在于,所述处理器还用于, 在所述输入装置获取所述待缩放图片的属性信息之前, 获取所述待缩放图片 的图片类型, 根据图片信息表确定与所述图片类型对应的缩放区域, 将所述 缩放区域作为所述待缩放图片的属性信息, 其中, 所述图片信息表中存储图 片类型与缩放区域的对应关系; 19. The user equipment according to claim 15, wherein the processor is further configured to: before the input device obtains the attribute information of the image to be scaled, obtain the picture type of the picture to be scaled, Determine the zoom area corresponding to the picture type according to the picture information table, and use the zoom area as the attribute information of the picture to be zoomed, wherein the corresponding relationship between the picture type and the zoom area is stored in the picture information table;
所述处理器具体用于: 获取所述缩放区域, 确定所述缩放区域的中心点, 将所述缩放区域的中心点作为所述待缩放图片的缩放点。 The processor is specifically configured to: obtain the zoom area, determine the center point of the zoom area, and use the center point of the zoom area as the zoom point of the image to be zoomed.
20、根据权利要求 19所述的用户设备,其特征在于,所述处理器还用于, 在所述输入装置获取所述待缩放图片的图片类型之前, 获取用户确定的标准 图片的缩放区域和所述标准图片的图片类型, 建立所述图片类型和所述缩放 区域的对应关系, 并将所述对应关系保存到所述图片信息表中。 20. The user equipment according to claim 19, characterized in that the processor is further configured to: before the input device obtains the picture type of the picture to be scaled, obtain the zoom area of the standard picture determined by the user and For the picture type of the standard picture, establish a corresponding relationship between the picture type and the zoom area, and save the corresponding relationship in the picture information table.
21、 根据权利要求 15至 20任一项所述的用户设备, 其特征在于, 所述 输入装置获取用户触发的对待缩放图片进行缩放操作的指令, 具体为: 21. The user equipment according to any one of claims 15 to 20, characterized in that the input device obtains a user-triggered instruction to perform a zoom operation on the image to be zoomed, specifically:
所述输入装置获取用户通过触碰所述待缩放图片的任意位置触发的对所 述待所缩放图片进行缩放操作的指令; 或者, The input device obtains an instruction for a zoom operation on the picture to be zoomed triggered by the user touching any position of the picture to be zoomed; or,
所述输入装置获取用户通过语音触发的对所述待所缩放图片进行缩放操 作的指令; 或者, The input device obtains the user's voice-triggered instruction to perform a zoom operation on the image to be zoomed; or,
所述输入装置获取用户通过按压预设按键触发的对所述待所缩放图片进 行缩放操作的指令。 The input device obtains the user's instruction to perform a zoom operation on the image to be zoomed by pressing a preset button.
PCT/CN2014/072466 2014-02-24 2014-02-24 Image zoom method and device WO2015123888A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2014/072466 WO2015123888A1 (en) 2014-02-24 2014-02-24 Image zoom method and device
CN201480000605.9A CN104205031A (en) 2014-02-24 2014-02-24 Image zoom method and equipment

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
WO2015123888A1 true WO2015123888A1 (en) 2015-08-27

Family

ID=52088177

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/072466 WO2015123888A1 (en) 2014-02-24 2014-02-24 Image zoom method and device

Country Status (2)

Country Link
CN (1) CN104205031A (en)
WO (1) WO2015123888A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106406702B (en) * 2016-09-19 2019-09-13 天脉聚源(北京)传媒科技有限公司 A kind of image display method and device
CN106780363B (en) * 2016-11-21 2019-07-23 北京金山安全软件有限公司 Picture processing method and device and electronic equipment
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
CN110764764B (en) * 2019-09-16 2024-03-01 平安科技(深圳)有限公司 Webpage end image fixed stretching method and device, computer equipment and storage medium
CN111556248B (en) * 2020-05-09 2021-09-03 Tcl移动通信科技(宁波)有限公司 Shooting method, shooting device, storage medium and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848914A (en) * 2005-04-05 2006-10-18 奥林巴斯映像株式会社 Digital camera
CN1294753C (en) * 2003-06-20 2007-01-10 佳能株式会社 Image display method, program for executing the method, and image display device
CN101751901A (en) * 2009-12-18 2010-06-23 康佳集团股份有限公司 Method and device for playing dynamic electronic album
CN101783129A (en) * 2009-01-04 2010-07-21 虹软(杭州)科技有限公司 Image scaling device and image scaling method
US20100208123A1 (en) * 2009-02-13 2010-08-19 Fujitsu Limited Photographing device, photographing method, and portable terminal apparatus
US20130111399A1 (en) * 2011-10-31 2013-05-02 Utc Fire & Security Corporation Digital image magnification user interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294753C (en) * 2003-06-20 2007-01-10 佳能株式会社 Image display method, program for executing the method, and image display device
CN1848914A (en) * 2005-04-05 2006-10-18 奥林巴斯映像株式会社 Digital camera
CN101783129A (en) * 2009-01-04 2010-07-21 虹软(杭州)科技有限公司 Image scaling device and image scaling method
US20100208123A1 (en) * 2009-02-13 2010-08-19 Fujitsu Limited Photographing device, photographing method, and portable terminal apparatus
CN101751901A (en) * 2009-12-18 2010-06-23 康佳集团股份有限公司 Method and device for playing dynamic electronic album
US20130111399A1 (en) * 2011-10-31 2013-05-02 Utc Fire & Security Corporation Digital image magnification user interface

Also Published As

Publication number Publication date
CN104205031A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US10115019B2 (en) Video categorization method and apparatus, and storage medium
WO2015123888A1 (en) Image zoom method and device
US8879803B2 (en) Method, apparatus, and computer program product for image clustering
CN105608425B (en) The method and device of classification storage is carried out to photo
US20160203360A1 (en) Systems and methods for performing actions in response to user gestures in captured images
WO2019120068A1 (en) Thumbnail display control method and mobile terminal
US20090051787A1 (en) Apparatus and method for photographing image using digital camera capable of providing preview images
WO2017124899A1 (en) Information processing method, apparatus and electronic device
CN105069083B (en) The determination method and device of association user
KR101660576B1 (en) Facilitating image capture and image review by visually impaired users
KR20140104753A (en) Image preview using detection of body parts
KR101978299B1 (en) Apparatus for service contents in contents service system
JP2010509695A (en) User interface for face recognition
TWI633499B (en) Method and electronic device for displaying panoramic image
WO2017084220A1 (en) Photography processing method and apparatus, and terminal
EP3518522B1 (en) Image capturing method and device
WO2017166636A1 (en) Intelligent photographing method and device, mobile apparatus, and non-volatile computer storage medium
EP2712176B1 (en) Method and apparatus for photography
WO2017219515A1 (en) Method for photographing focusing and electronic device
WO2023173616A1 (en) Crowd counting method and apparatus, electronic device and storage medium
CN111201768B (en) Shooting focusing method and device
CN105812655A (en) Method and apparatus for capturing images
WO2018045565A1 (en) Control display method and device for flexible display device
JP2012244525A (en) Information processing device, information processing method, and computer program
US11157549B2 (en) Emotional experience metadata on recorded images

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: 14883185

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: 14883185

Country of ref document: EP

Kind code of ref document: A1