CN105511759B - image processing method and electronic equipment - Google Patents

image processing method and electronic equipment Download PDF

Info

Publication number
CN105511759B
CN105511759B CN201510924899.0A CN201510924899A CN105511759B CN 105511759 B CN105511759 B CN 105511759B CN 201510924899 A CN201510924899 A CN 201510924899A CN 105511759 B CN105511759 B CN 105511759B
Authority
CN
China
Prior art keywords
images
picture
obtaining
block
blocks
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510924899.0A
Other languages
Chinese (zh)
Other versions
CN105511759A (en
Inventor
唐九如
陈文辉
刘立娜
黄文娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201510924899.0A priority Critical patent/CN105511759B/en
Publication of CN105511759A publication Critical patent/CN105511759A/en
Application granted granted Critical
Publication of CN105511759B publication Critical patent/CN105511759B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a picture processing method and electronic equipment, wherein the method comprises the steps of obtaining a th picture, carrying out block processing on the th picture to obtain M blocks of images, wherein M is an integer larger than or equal to 2, the M blocks of images are arranged in the th picture in sequence, and obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer smaller than or equal to M.

Description

image processing method and electronic equipment
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to information processing methods and electronic devices.
Background
With the development of electronic technology, various electronic products have come to the forefront, such as tablet computers, smart phones, notebook computers, etc., which bring great convenience to people's daily life.
At present, people have an increasing demand for taking pictures through electronic equipment. In order to beautify a picture and meet the viewing requirements of users, apparatuses have been proposed for beautifying the picture, such as adjusting contrast, red-eye processing, and performing picture splicing with other pictures.
In the process of inventing the technical scheme in the embodiment of the present application, the inventor of the present application finds that the above prior art has at least the following technical problems:
the electronic device in the prior art has a technical problem that the processing mode is relatively simple when the electronic device processes the picture.
Disclosure of Invention
The embodiment of the invention provides picture processing methods and electronic equipment, which are used for solving the technical problem that the processing mode is single when the electronic equipment processes pictures in the prior art, and realizing the technical effect of diversified design of picture processing modes.
, the embodiment of the application provides picture processing methods, including the following steps:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
Optionally, the obtaining a second picture based on N images of the M images specifically includes:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
Optionally, when N is equal to M, obtaining a second picture based on N images of the M images includes:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture.
Optionally, when N is less than M, obtaining a second picture based on N images of the M images includes:
and extracting the N images from the M images according to preset rules.
Optionally, the extracting the N images from the M images according to preset rules specifically includes:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
Optionally, after obtaining a second picture based on N of the M images, the method further includes:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
Optionally, the N images are in a movable state, and after the obtaining a second picture based on N images of the M images, the method further includes:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
Optionally, after the adjusting the th block image from the current th position to the second position in response to the th operation, the method further comprises:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
Optionally, when N is equal to M, after obtaining a second picture based on N of the M blocks of images, the method further includes:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
Second, this application embodiment also provides kinds of electronic equipment, including:
a housing;
a processor disposed within the housing; wherein the processor is configured to:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
Optionally, the processor is configured to:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
Optionally, when N is equal to M, the processor is configured to:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture.
Optionally, when N is less than M, the processor is configured to:
and extracting the N images from the M images according to preset rules.
Optionally, the processor is configured to:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
Optionally, after the obtaining a second picture based on N of the M block images, the processor is configured to:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
Optionally, the N images are in a movable state, and after the obtaining of the second picture based on the N images of the M images, the processor is configured to:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
Optionally, after said adjusting the th tile image from the current th position to the second position in response to said th operation, the processor is configured to:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
Optionally, when N is equal to M, after said obtaining a second picture based on N of the M block images, the processor is configured to:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
Third, this application embodiment also provides kinds of electronic equipment, including:
an th obtaining unit for obtaining a th picture;
a second obtaining unit, configured to perform blocking processing on the th picture to obtain M block images, where M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in an th arrangement order;
a third obtaining unit configured to obtain a second picture based on N blocks of images of the M blocks of images, where the second picture is different from the th picture, and N is a positive integer less than or equal to M.
The or more technical solutions in the embodiment of the present application have at least the following or more technical effects:
in the technical scheme of the embodiment of the application, an th picture is obtained, the th picture is subjected to blocking processing to obtain M blocks of images, wherein M is an integer larger than or equal to 2, the M blocks of images are arranged in the th picture in the th arrangement sequence, and a second picture is obtained based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer smaller than or equal to M.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only embodiments of the present invention.
Fig. 1 is a flowchart of methods for processing pictures according to embodiment of the present application;
fig. 2a is a schematic diagram illustrating block images numbered 1 to 9 included in the th picture in the picture processing methods according to the embodiment of the present application arranged in the order of the ;
fig. 2b is a schematic diagram of a second picture composed of block images with numbers 1, 3, 5, 7, and 9 in picture processing methods provided in embodiment of the present application;
fig. 2c is a schematic diagram of a second picture composed of block images numbered 1, 4, 7, 3, 6, and 9 in picture processing methods provided in embodiment of the present application;
fig. 3 is a flowchart of the method in step S103 of the methods for processing pictures provided in embodiment of the present application;
fig. 4 is a flowchart of of the methods for processing pictures in step S103 according to embodiment of the present application;
FIG. 5 is a flowchart of a method for extracting N block images from M block images according to preset rules, in the image processing methods provided in embodiment of the present application;
fig. 6 is a flowchart of a method after step S103 in the methods for processing pictures provided in embodiment of the present application;
fig. 7 is a flowchart of a method after step S103 when M blocks of images are in a movable state in the picture processing methods provided in embodiment of the present application;
fig. 8 is a flowchart of a method after step 103 when N is equal to M in the methods for processing pictures provided in embodiment of the present application;
fig. 9 illustrates kinds of electronic devices according to a second embodiment of the present application;
fig. 10 shows electronic devices according to a third embodiment of the present application.
Detailed Description
The embodiment of the invention provides picture processing methods and electronic equipment, which are used for solving the technical problem that the processing mode is single when the electronic equipment processes pictures in the prior art, and realizing the technical effect of diversified design of picture processing modes.
In order to solve the technical problems, the general idea of the embodiment of the present application is as follows:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
In the technical scheme of the embodiment of the application, an th picture is obtained, the th picture is subjected to blocking processing to obtain M blocks of images, wherein M is an integer larger than or equal to 2, the M blocks of images are arranged in the th picture in the th arrangement sequence, and a second picture is obtained based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer smaller than or equal to M.
The term "and/or" herein is only kinds of association relations describing the association objects, which means that there may be three kinds of relations, for example, a and/or B, which may mean that a exists alone, a and B exist together, and B exists alone.
In order to better understand the technical solutions, the technical solutions of the present invention are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features in the embodiments and examples of the present invention are detailed descriptions of the technical solutions of the present invention, and are not limitations of the technical solutions of the present invention, and the technical features in the embodiments and examples of the present invention may be combined with each other without conflict.
Example
Referring to fig. 1, an embodiment of the present application provides methods for processing pictures, including:
s101, obtaining an th picture;
s102, carrying out blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
and S103, obtaining a second picture based on N images in the M images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
In the specific implementation process, the specific implementation process from step S101 to step S103 is as follows:
firstly, an th picture is obtained, specifically, the th picture can be obtained through the following three obtaining ways, specifically, the th obtaining way is obtained by utilizing an image acquisition unit of an electronic device to acquire an image, specifically, the second obtaining way is obtained from a th storage space stored in the local electronic device, specifically, the third obtaining way is obtained by sending another electronic device to the electronic device, of course, a person skilled in the art can obtain the th picture through other ways, and details are not described in again.
Then, the th picture is subjected to block processing to obtain M block images, wherein M is an integer greater than or equal to 2, the M block images are arranged in the th picture in the th arrangement order, as a specific example, when the th picture is divided into 3 × 3 block images, the arrangement order of the images in the th picture from numbers 1 to 9 is as shown in fig. 2a, then, based on N block images in the M block images, a second picture is obtained, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M, for example, block images corresponding to numbers 1, 3, 5, 7 and 9 are extracted from the M block images, a new picture consisting of the block images corresponding to the 5 numbers is obtained, as shown in fig. 2b, and for example, a th column image and a second column image are extracted from the th picture, and a new picture consisting of the block images corresponding to the 5 th column th column (7, 7) and a new picture consisting of the corresponding column 466 (including the corresponding block images) and the 3 c, which include the corresponding column 466).
In the embodiment of the present application, please refer to fig. 3, step S103: obtaining a second picture based on the N images in the M images, including:
s301: determining the N images from the M images;
s302, adjusting display parameter values of at least images in the N images to obtain adjusted N images;
s303: and obtaining the second picture based on the adjusted N images.
In the specific implementation process, the specific implementation process of steps S301 to S303 is as follows:
for example, the contrast of all odd-numbered column block images in the th picture is adjusted from 50% to 80%, or a gradient effect is added to all odd-numbered column block images, so that the second picture is obtained based on the adjusted block images.
In the embodiment of the present application, please refer to fig. 4 when N is equal to M, step S103: obtaining a second picture based on the N images in the M images, including:
s401, adjusting the sequence of the M block images in the th picture so that the arrangement sequence of the M block images is adjusted from the th arrangement sequence to a second arrangement sequence different from the th arrangement sequence;
s402: obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture.
In the specific implementation process, the specific implementation processes from step S401 to step S402 are as follows:
then, the second picture in which N blocks of images are arranged in the second arrangement order is obtained, that is, even though all image contents in the th picture are retained, in the embodiment of the present application, the original arrangement order of all block images in the nd picture can be disturbed, so that the second picture composed of all block images after the order is adjusted is obtained.
In this embodiment of the present application, when N is less than M, in step S103, obtaining a second picture based on N blocks of images in the M blocks of images, specifically, extracting the N blocks of images from the M blocks of images according to preset rules, where in a specific implementation process, referring to fig. 5, a specific implementation process of this step includes:
s501, determining the number of rows and columns of the th picture;
and S502, extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and the columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
In the specific implementation process, the specific implementation process of steps S501 to S502 is as follows:
first, after the th picture is subjected to the blocking process based on the specific blocking rule, the number of rows and columns of the th picture may be determined, for example, if the current blocking rule is 10 × 10, the total number of rows of the th picture is 10 rows, and the total number of columns is 10 columns, and then the image contents of the blocked block images are sequentially marked with numbers 1 to 100, then, based on the preset rule, at least columns of images are extracted from the number of rows and the number of columns of the M block images, and/or at least rows of block images, and/or at least 2 block images are repeated, so as to obtain the N block images, still taking the blocking rule as an example of 10 × 10, for example, if the preset rule is to extract all even rows, the extracted block images include the image contents of 2, 4, 6, 8, and 10 rows, if the preset rule is to extract all the column images that satisfy the difference between adjacent columns by 3 columns, the extracted block images include the corresponding image contents of 2, 4, 6, 8, and 10, the corresponding block images may also include the corresponding block images corresponding number of course, and the preset rule is to the extraction rule, and the extraction rule of course, the corresponding block images may also include the corresponding block images of the corresponding picture content of the preset image contents of the drawing No. 2, and the extraction rule of the extraction rule is to be a part of the extraction rule of the drawing No. 3.
In the embodiment of the application, the safety of the electronic equipment about the picture information is ensured. In step S103: after obtaining the second picture based on N of the M images, please refer to fig. 6, the method further includes:
s601, determining whether the current environment parameter information of the electronic equipment meets preset conditions;
s602, if yes, displaying the th picture;
s603: and if not, displaying the second picture.
In the specific implementation process, the specific implementation process of steps S601 to S603 is as follows:
when a user previews or acquires a picture by using the electronic device, firstly, whether current environment parameter information of the electronic device meets preset conditions is determined, when the current environment parameter information meets the preset conditions, the th picture is displayed, when the current environment parameter information does not meet the preset conditions, for example, when the current environment of the electronic device is detected to be not private, the second picture is displayed, so that the personal information of the user is effectively protected.
For another example, when it is detected that the number of users in the current environment of the electronic device is greater than preset number, the second picture is displayed, if the number of users is less than the preset number, the picture is displayed, for another example, when it is detected that the current environment of the electronic device is quite noisy, it means that the current electronic device is in a public place, for another example, when it is detected that the current network attribute used by the electronic device is a public network such as a coffee shop, which indicates that the current electronic device is still in a public place, since a user is likely to leak information when more people around the user move in the process of using the electronic device in a public place, the detailed description is omitted, so as to ensure that the information security of the user can be effectively ensured even in the public place, in the specific implementation process, the specific display mode of the picture can be adjusted accordingly based on the current environment state of the electronic device, and certainly, different detection modes can be designed by those skilled in the art as needed to determine the privacy of the current environment of the electronic device, so that is omitted.
In the embodiment of the application, in order to increase the interactivity of the electronic device among multiple users and increase the user experience, the method and the electronic device are provided. While the N pieces of images are in the movable state, at step S103: after obtaining the second picture based on N of the M images, please refer to fig. 7, the method further includes:
s701, detecting th moving operation of an obtained operation body for th images in the N images;
s702, in response to the th moving operation, adjusting the th image from the current th position to a second position.
In the specific implementation process, the specific implementation process from step S701 to step S702 is as follows:
firstly, detecting movement operation of an obtained operation body for th block images in the N block images, namely, the N block images are in a movable state in the second picture, for example, a user finger can perform movement operation on the block image with the number of 3 in the second picture, then, responding to the th movement operation, adjusting the th block image to a second position from the current th position, for example, the block image with the number of 3 is located at the lower right corner position in the second picture, and the user can move the block image to the upper left corner position of the second picture.
In this embodiment of the application, after the th block image is adjusted from the current th position to the second position in response to the th moving operation in step S702, the method further includes generating and outputting a prompt message indicating whether the second position is the correct position when the length of time that the th block image is in the second position is longer than a preset length of time.
For example, after the image is adjusted from the th picture to the second picture, the block image corresponding to the original number 1 is adjusted from the upper left corner of the th picture to the lower left corner region of the second picture, when the user moves the block image corresponding to the number in the second picture from the lower left corner position to the upper right corner, whether the currently moved position is the original position of the block image in the th picture is generated, for example, in the upper right corner region of the second picture, the upper left corner region of the numbered block image in the th picture is not generated.
In this embodiment, in order to ensure that the user can still obtain the content information of the original th picture after obtaining the second picture, please refer to fig. 8 when N is equal to M, in step S103, after obtaining the second picture based on N of the M images, the method further includes:
s801: detecting to obtain a second operation aiming at the second picture;
and S802, when the second operation is a preset restoration operation, restoring the second picture to the th picture.
In a specific implementation process, the specific implementation process of steps S801 to S802 includes, first, detecting a second operation on the second picture, and when the second operation is a preset recovery operation, recovering the second picture to the th picture, for example, a function key, which may be a physical key or a virtual key, , upon detecting the operation on the function key, recovers the second picture to the th picture, or when detecting a shaking operation on the second picture, recovers block images that are disordered and arranged in the second picture to an original position.
Example two
Referring to fig. 9, based on the same inventive concept as that of embodiment of the present application, an embodiment of the present application further provides types of electronic devices, including:
a housing 10;
a processor 20 disposed within the housing 10; wherein the processor 20 is configured to:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
In an embodiment of the application, the processor 20 is configured to:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
In the embodiment of the present application, when N is equal to M, the processor 20 is configured to:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture.
In this embodiment, when N is less than M, the processor 20 is configured to:
and extracting the N images from the M images according to preset rules.
In an embodiment of the application, the processor 20 is configured to:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
In this embodiment of the application, after obtaining the second picture based on N of the M images, the processor 20 is configured to:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
In the embodiment of the present application, the N images are in a movable state, and after obtaining the second picture based on the N images of the M images, the processor 20 is configured to:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
In this embodiment, after said adjusting the th block image from the current th position to the second position in response to the th operation, the processor 20 is configured to:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
In this embodiment of the present application, when N is equal to M, after obtaining the second picture based on N of the M block images, the processor 20 is configured to:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
EXAMPLE III
Referring to fig. 10, based on the same inventive concept as that of embodiment of the present application, an embodiment of the present application further provides types of electronic devices, including:
an th obtaining unit 30 for obtaining a th picture;
a second obtaining unit 40, configured to perform blocking processing on the th picture to obtain M block images, where M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
a third obtaining unit 50 obtains a second picture based on N blocks of images among the M blocks of images, where the second picture is different from the th picture, and N is a positive integer less than or equal to M.
In the embodiment of the present application, the third obtaining unit 50 specifically includes:
an th determining module for determining the N block images from the M block images;
an obtaining module, configured to adjust display parameter values of at least images of the N images, so as to obtain adjusted N images;
and the second obtaining module is used for obtaining the second picture based on the adjusted N images.
In this embodiment of the present application, when N is equal to M, the third obtaining unit 50 specifically includes:
an adjustment module for adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
a third obtaining module, configured to obtain the second picture, where the N blocks of images are arranged in the second picture in the second arrangement order.
In this embodiment of the application, when N is less than M, the third obtaining unit 50 is specifically configured to:
and extracting the N images from the M images according to preset rules.
In this embodiment of the present application, the third obtaining unit specifically includes:
a second determining module, configured to determine the number of rows and the number of columns of the th picture;
a fourth obtaining module, configured to extract at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and the columns of the M blocks of images based on the preset rule, so as to obtain the N blocks of images.
In this embodiment of the application, after obtaining the second picture based on N images of the M images, the electronic device further includes:
an th determining unit for determining whether the current environment parameter information of the electronic device satisfies preset conditions;
an th display unit for displaying the th picture when yes;
and if not, displaying the second picture.
In this embodiment of the application, the N images are in a movable state, and after the obtaining a second picture based on N images of the M images, the electronic device further includes:
an th detecting unit for detecting a th moving operation of an obtaining operator for a th image of the N block images;
an th adjusting unit for adjusting the th block image from the current th position to the second position in response to the th moving operation.
In this embodiment, after the adjusting the th block image from the current th position to the second position in response to the th operation, the electronic device further includes:
an generation unit, configured to generate and output a prompt message indicating whether the second position is a correct position when a duration that the th block image is at the second position is longer than a preset duration.
In this embodiment of the present application, when N is equal to M, after obtaining a second picture based on N of the M images, the electronic device further includes:
a second detection unit configured to detect that a second operation for the second picture is obtained;
an processing unit, configured to restore the second picture to the th picture when the second operation is a preset restoration operation.
Through or a plurality of technical solutions in the embodiment of the present application, or a plurality of technical effects can be achieved as follows:
in the technical scheme of the embodiment of the application, an th picture is obtained, the th picture is subjected to blocking processing to obtain M blocks of images, wherein M is an integer larger than or equal to 2, the M blocks of images are arranged in the th picture in the th arrangement sequence, and a second picture is obtained based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer smaller than or equal to M.
In the technical scheme of the embodiment of the application, the N images are determined from the M images, the display parameter values of at least images in the N images are adjusted to obtain the adjusted N images, and the second picture is obtained based on the adjusted N images, namely, the partial images in the N images can be subjected to processing such as contrast, brightness, adjustment of arrangement sequence and the like, so that the picture is guaranteed to have a good display effect in aspect, and the interactivity of picture processing is enhanced in aspect.
According to the technical scheme of the embodiment of the application, whether the current environment parameter information of the electronic equipment meets preset conditions is determined, if yes, the th picture is displayed, and if not, the second picture is displayed.
According to the technical scheme of the embodiment of the application, movement operation of an operation body for th images in the N images is detected, the th images are adjusted to be second positions from the current th positions in response to the th movement operation, namely, a user can move the current arrangement sequence of each image in the second picture, and therefore the interactivity of the electronic device is improved.
Furthermore, the present invention may take the form of a computer program product embodied on or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
It is to be understood that each flow and/or block in the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions which can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flow diagram flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Specifically, the computer program instructions corresponding to the picture processing method in the embodiment of the present application may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to the picture processing method in the storage medium are read or executed by the electronic device , the method includes the following steps:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N blocks of images in the M blocks of images, wherein the second picture is different from the th picture, and N is a positive integer less than or equal to M.
Optionally, the computer program instructions stored in the storage medium, where the obtaining a second picture based on N of the M images, when executed, specifically include:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
Optionally, the computer program instructions stored in the storage medium and corresponding to the steps, when N is equal to M, obtaining a second picture based on N of the M images, when executed, specifically include:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture.
Optionally, the computer program instructions stored in the storage medium and the steps, when N is less than M, the obtaining a second picture based on N of the M images, when executed, specifically include:
and extracting the N images from the M images according to preset rules.
Optionally, the step stored in the storage medium, where the N images are extracted from the M images according to preset rules, when executed, the corresponding computer program instructions specifically include:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
Optionally, the computer program instructions stored in the storage medium, when executed after obtaining the second picture based on N of the M block images, further comprise:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
Optionally, the method further includes, after obtaining a second picture based on N of the M block images, corresponding computer program instructions stored in the storage medium when executed, the steps of:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
Optionally, the computer program instructions stored in the storage medium, when executed, corresponding to the steps of, after said adjusting the th block image from the current th position to the second position in response to the th operation, further comprise:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
Optionally, when N is equal to M, after obtaining the second picture based on N of the M block images, the method further includes:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
Having described preferred embodiments of the invention, further alterations and modifications may be effected to these embodiments by those skilled in the art having the benefit of the basic inventive concepts .
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (15)

1, method for processing pictures, comprising:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N images in the M images, wherein N is a positive integer less than or equal to M;
when N is equal to M, obtaining a second picture based on N images of the M images, including:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture;
after the obtaining a second picture based on N of the M blocks of images, the method further comprises:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
2. The method according to claim 1, wherein obtaining the second picture based on N of the M images comprises:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
3. The method according to claim 1 or 2, wherein when N is less than M, obtaining a second picture based on N of the M block images comprises:
and extracting the N images from the M images according to preset rules.
4. The method as claimed in claim 3, wherein said extracting said N blocks of images from said M blocks of images according to preset rules specifically comprises:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
5. The method of claim 1 or 2, wherein the N blocks of images are in a movable state, the method further comprising, after said obtaining a second picture based on N blocks of images of the M blocks of images:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
6. The method of claim 5, wherein after said adjusting the th tile image from the current th position to the second position in response to the th move operation, the method further comprises:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
7. The method of claim 1 or 2, wherein when N is equal to M, after said obtaining a second picture based on N of the M block images, the method further comprises:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
An electronic device of the kind , comprising:
a housing;
a processor disposed within the housing; wherein the processor is configured to:
obtaining a th picture;
performing blocking processing on the th picture to obtain M block images, wherein M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in the th arrangement order;
obtaining a second picture based on N images in the M images, wherein N is a positive integer less than or equal to M;
when the N is equal to M, the processor is configured to:
adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
obtaining the second picture, wherein the N images are arranged in the second arrangement order in the second picture;
after the obtaining a second picture based on N of the M block images, the processor is configured to:
determining whether the current environmental parameter information of the electronic device meets a preset condition;
when yes, displaying the th picture;
and if not, displaying the second picture.
9. The electronic device of claim 8, wherein the processor is configured to:
determining the N images from the M images;
adjusting display parameter values of at least images in the N images to obtain adjusted N images;
and obtaining the second picture based on the adjusted N images.
10. The electronic device of claim 8 or 9, wherein when the N is less than M, the processor is configured to:
and extracting the N images from the M images according to preset rules.
11. The electronic device of claim 10, wherein the processor is configured to:
determining the number of rows and columns of the th picture;
extracting at least columns of block images, and/or at least rows of block images, and/or at least blocks of images from the rows and columns of the M blocks of images based on the preset rule, thereby obtaining the N blocks of images.
12. The electronic device of claim 8 or 9, wherein the N images are in a movable state, and wherein after the obtaining a second picture based on N of the M images, the processor is configured to:
detecting th moving operation of an obtaining operation body for th block images in the N block images;
adjusting the th block image from the current th position to a second position in response to the th moving operation.
13. The electronic device of claim 12, wherein, after the adjusting the th tile image from the current th position to the second position in response to the th move operation, the processor is configured to:
and when the duration of the th image at the second position is longer than the preset duration, generating and outputting a prompt message indicating whether the second position is the correct position.
14. The electronic device of claim 8 or 9, wherein when N is equal to M, after the obtaining a second picture based on N of the M block images, the processor is configured to:
detecting to obtain a second operation aiming at the second picture;
when the second operation is a preset restoration operation, restoring the second picture to the th picture.
15, an electronic device, comprising:
an th obtaining unit for obtaining a th picture;
a second obtaining unit, configured to perform blocking processing on the th picture to obtain M block images, where M is an integer greater than or equal to 2, and the M block images are arranged in the th picture in an th arrangement order;
a third obtaining unit, configured to obtain a second picture based on N blocks of images in the M blocks of images, where N is a positive integer less than or equal to M;
when N is equal to M, the third obtaining unit specifically includes:
an adjustment module for adjusting the order of the M block images in the th picture so that the arrangement order of the M block images is adjusted from the th arrangement order to a second arrangement order different from the th arrangement order;
a third obtaining module, configured to obtain the second picture, where the N blocks of images are arranged in the second arrangement order in the second picture;
after obtaining a second picture based on N of the M images, the electronic device further includes:
an th determining unit for determining whether the current environment parameter information of the electronic device satisfies preset conditions;
an th display unit for displaying the th picture when yes;
and if not, displaying the second picture.
CN201510924899.0A 2015-12-14 2015-12-14 image processing method and electronic equipment Active CN105511759B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510924899.0A CN105511759B (en) 2015-12-14 2015-12-14 image processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510924899.0A CN105511759B (en) 2015-12-14 2015-12-14 image processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105511759A CN105511759A (en) 2016-04-20
CN105511759B true CN105511759B (en) 2020-01-31

Family

ID=55719783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510924899.0A Active CN105511759B (en) 2015-12-14 2015-12-14 image processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105511759B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155346A (en) * 2016-06-29 2016-11-23 深圳信息职业技术学院 A kind of generation method and apparatus of word of expressing one's feelings
CN106327457B (en) * 2016-08-23 2020-02-18 北京金山安全软件有限公司 Picture processing method, device and equipment
CN112163993A (en) * 2020-08-21 2021-01-01 北京字节跳动网络技术有限公司 Image processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103477635A (en) * 2010-10-08 2013-12-25 弗兰霍菲尔运输应用研究公司 Picture coding supporting block partitioning and block merging
CN103870444A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Image cutting method and system for image type texts
CN104091357A (en) * 2014-07-14 2014-10-08 厦门大学 Method for generating mosaic images on line through subject-related images
CN104598802A (en) * 2015-02-13 2015-05-06 北京京东尚科信息技术有限公司 Verification method and system based on puzzle

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376834B (en) * 2013-08-12 2017-06-27 联想(北京)有限公司 A kind of luminance regulating method and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103477635A (en) * 2010-10-08 2013-12-25 弗兰霍菲尔运输应用研究公司 Picture coding supporting block partitioning and block merging
CN103870444A (en) * 2012-12-12 2014-06-18 腾讯科技(深圳)有限公司 Image cutting method and system for image type texts
CN104091357A (en) * 2014-07-14 2014-10-08 厦门大学 Method for generating mosaic images on line through subject-related images
CN104598802A (en) * 2015-02-13 2015-05-06 北京京东尚科信息技术有限公司 Verification method and system based on puzzle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
PS处理分块堆叠图片;PS学习网;《www.ps-xxw.cn/tupianchuli/20.html》;20081130;第1页至第3页 *

Also Published As

Publication number Publication date
CN105511759A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN104991696B (en) A kind of information processing method and electronic equipment
TW201227460A (en) Method and apparatus for providing different user interface effects for different implementation characteristics of a touch event
CN105117156A (en) Information processing method and electronic device
CN103886025B (en) The display methods and device of picture in webpage
CN110716906B (en) File viewing method, electronic equipment and file viewing device
CN106709382B (en) Keyboard display method and device
CN105511759B (en) image processing method and electronic equipment
JP6898311B2 (en) Systems and methods for displaying digital content previews
CN105487641B (en) Control method and device of terminal equipment
WO2017032078A1 (en) Interface control method and mobile terminal
WO2015132596A1 (en) Access control for a resource
CN104933375A (en) Method and system for protecting electronic display document
KR20190086781A (en) Methods, systems, and media for detecting stereoscopic video by generating fingerprints for multiple portions of a video frame
CN103809895A (en) Mobile terminal and method capable of dynamically generating keys
US10003462B2 (en) Key generating method and apparatus
EP2693744A1 (en) Information processing device, information processing method, and computer program
CN104462099A (en) Information processing method and electronic equipment
CN105022737B (en) Micro-blog method for information display and device
CN106940617B (en) Display method and electronic equipment
CN106502496B (en) Window switching method and device
CN106651751B (en) Image processing method and terminal
JP2012113521A (en) Electronic apparatus, display control method and program
JP2012088823A (en) Image processing device and program
KR101699909B1 (en) Method for displaying implantable advertisement and apparatus thereof
US10181177B2 (en) Method for masking an item among a plurality of items

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant