CN112511745A - Image acquisition method, device, equipment and medium - Google Patents

Image acquisition method, device, equipment and medium Download PDF

Info

Publication number
CN112511745A
CN112511745A CN202011348048.3A CN202011348048A CN112511745A CN 112511745 A CN112511745 A CN 112511745A CN 202011348048 A CN202011348048 A CN 202011348048A CN 112511745 A CN112511745 A CN 112511745A
Authority
CN
China
Prior art keywords
image
target
preview area
receiving
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011348048.3A
Other languages
Chinese (zh)
Inventor
王沛彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011348048.3A priority Critical patent/CN112511745A/en
Publication of CN112511745A publication Critical patent/CN112511745A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • 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/62Control of parameters via user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides an image acquisition method, an image acquisition device, image acquisition equipment and an image acquisition medium, which are used for solving the problems that in the prior art, when an image smaller than the fixed size is acquired, the operation is complicated and the user experience is influenced. And specifically discloses: receiving an adjustment instruction for the size of a preview window of an image, and determining an adjusted target preview area; and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image. According to the embodiment of the invention, the target preview area is obtained by adjusting the size of the preview window before image acquisition, and the acquired image is intercepted according to the target preview area when the target image is obtained, so that the target image with the size consistent with that of the target preview area is obtained.

Description

Image acquisition method, device, equipment and medium
Technical Field
The present invention relates to image processing technologies, and in particular, to an image acquisition method, an image acquisition apparatus, an image acquisition device, and a medium.
Background
With the development of computer technology and the increasing demand of users for terminal functions, more and more functions are supported by terminals. The image acquisition is a function commonly used at present, and the image acquisition can store the image displayed by the terminal or share the image with others.
At present, when an image is acquired, the acquired image is a fixed size, and if other sizes are to be acquired, the direction of the terminal is generally changed, or the acquired image is cut by using an image editor after the image is acquired.
However, in the prior art, the posture of the terminal needs to be changed, and the acquired image is still in a fixed size, and if an image smaller than the fixed size needs to be acquired, the acquired image can only be cut after the image is acquired, so that the operation is complicated when the image meeting the size requirement of the user is acquired, and the user experience is reduced.
Disclosure of Invention
The invention provides an image acquisition method, an image acquisition device, image acquisition equipment and an image acquisition medium, which are used for solving the problems that in the prior art, when an image smaller than the fixed size is acquired, the operation is complicated and the user experience is influenced.
In a first aspect, an embodiment of the present invention provides an image acquisition method, where the method includes:
receiving an adjustment instruction for the size of a preview window of an image, and determining an adjusted target preview area;
and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image.
Further, the instruction for adjusting the size of the preview window of the image comprises:
and sliding any boundary in the boundary boxes forming the preview window.
Further, the receiving the photographing instruction includes:
receiving a triggering operation of a photographing key; or
Receiving a preset operation in a non-target preview area; or
Receiving a voice instruction for taking a picture; or
Receiving a preset operation in a target preview area; or
And receiving the triggering operation of a preset shortcut key for realizing photographing.
Further, before determining the adjusted target preview area, the method further includes:
and adjusting the size of the preview window according to the adjusting instruction, and if the size of the preview window simultaneously comprises a target preview area and a non-target preview area during adjustment, displaying the target preview area and the non-target preview area in a distinguishing manner.
Further, the method further comprises:
and saving the image and/or the target image to a preset storage position.
In a second aspect, an embodiment of the present invention further provides an image capturing apparatus, where the apparatus includes:
the determining module is used for determining the adjusted target preview area if receiving an adjusting instruction of the size of the preview window;
and the processing module is used for intercepting the acquired image according to the target preview area to acquire a target image if a photographing instruction is received.
Further, the processing module is specifically configured to receive a trigger operation on a photographing key; or receiving a preset operation in the non-target preview area; or receiving a voice instruction for taking a picture; or receiving a preset operation in the target preview area; or receiving the trigger operation of the preset shortcut key for realizing the photographing.
Further, the processing module is specifically configured to adjust the size of the preview window according to the adjustment instruction, and when the adjustment is performed, if a target preview area and a non-target preview area are included at the same time, the target preview area and the non-target preview area are displayed in a differentiated manner.
Further, the apparatus further comprises:
and the storage module is used for storing the image and/or the target image to a preset storage position.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement the steps of the image acquisition method as described in any one of the above when executing a computer program stored in the memory.
In a fourth aspect, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of any one of the image acquisition methods described above.
According to the embodiment of the invention, the target preview area is obtained by adjusting the size of the preview window before image acquisition, and the acquired image is intercepted according to the target preview area when the target image is obtained, so that the target image with the size consistent with that of the target preview area is obtained.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic diagram of an image acquisition process according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a terminal display interface provided in an embodiment of the present invention;
fig. 3 is a schematic view of a display interface of the terminal after an instruction is adjusted according to the size of the preview window according to the embodiment of the present invention;
FIG. 4 is a diagram illustrating a detailed implementation process of image acquisition according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an image acquisition structure according to an embodiment of the present invention;
fig. 6 is an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to improve the efficiency of acquiring a target image, embodiments of the present invention provide an image acquisition method, an image acquisition apparatus, a device, and a medium.
Example 1:
fig. 1 is a schematic diagram of an image acquisition process provided in an embodiment of the present invention, where the process includes the following steps:
s101: and receiving an adjustment instruction of the size of the preview window of the image, and determining an adjusted target preview area.
The image acquisition provided by the embodiment of the invention is applied to the electronic equipment, and the electronic equipment can be intelligent equipment such as image acquisition equipment, terminals and the like.
Because the image needs to be previewed when the image is acquired, the content included in the image to be acquired can be previewed in the preview window in advance, the electronic device in the embodiment of the invention includes the preview window, and the preview window can be included in a photographing application when a user in the electronic device photographs, or can be directly included in the electronic device, and after entering the preview window, the user can preview the image for the preview window. In order to improve user experience, in the embodiment of the present invention, the size of the preview window may be adjusted, and in order to achieve adjustment of the size of the preview window, in the embodiment of the present invention, an instruction for adjusting the size of the preview window may be input, and when the electronic device receives the instruction for adjusting the size of the preview window, it indicates that the size of the current preview window cannot meet the requirement of the user, and in general, the current preview window is a normal preview window after the electronic device is opened, for example, when the electronic device is a terminal, the current preview window is a size of a window for normally taking an image after a photographing application of the terminal is opened. When the terminal is opened and a photographing application is opened to photograph, the preview window is the largest when photographing is performed first, and therefore the adjustment command is generally a command for reducing the size of the preview window.
And after receiving the adjusting instruction, the electronic equipment adjusts the size of the preview window according to the adjusting instruction, and determines the area corresponding to the preview window obtained after adjustment as a target preview area.
S102: and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image.
In order to quickly and accurately acquire an image meeting the size requirement of a user, in the embodiment of the invention, when a photographing instruction is received, image acquisition is performed, wherein the photographing instruction can be a common photographing instruction and the like.
In the embodiment of the invention, after receiving the photographing instruction, the electronic device acquires the image, wherein the acquired image is the image corresponding to the size of the preview window before adjustment, and after acquiring the image, the electronic device intercepts the acquired image according to the size of the target preview area so as to acquire the target image matched with the size of the target preview area, so that the operation of a user is facilitated.
In addition, when the image is acquired, the target preview area may display the content to be acquired for previewing, and the non-target preview area may not display the content, which is equivalent to shielding the preview window, so that the user previews the content desired by the user.
When a photographing instruction is received and an image is acquired, intercepting the image, intercepting the acquired image according to the position of a target preview area in a preview window, wherein the target preview area is located at half of the size of an original preview window and at the lower half of the original preview window, when the image is intercepted, intercepting the image, taking the lower half of the intercepted image as a target image, and when the preview window is shielded, a picture when the target preview area is previewed is consistent with the angle of view of the acquired target image.
According to the embodiment of the invention, the target preview area is obtained by adjusting the size of the preview window before image acquisition, and the acquired image is intercepted according to the target preview area when the target image is obtained, so that the target image with the size consistent with that of the target preview area is obtained.
Example 2:
in order to improve the user experience, on the basis of the above embodiment, in the embodiment of the present invention, the instruction for adjusting the size of the preview window of the image includes:
and sliding any boundary in the boundary boxes forming the preview window.
In the embodiment of the present invention, in order to accurately acquire the target preview area, the adjustment instruction may be a sliding operation on any boundary of the bounding boxes forming the preview window, and the area outside the bounding box is a non-target preview area, and the size of the target preview area is determined according to the position when the sliding operation is stopped.
The preview window can be reduced by sliding operation from the boundary of the original preview window to the inside of the original preview window, so that the corresponding acquisition requirements are met. After the preview window is reduced, if the preview window needs to be enlarged, an adjustment instruction can be input into the electronic device, wherein the adjustment instruction can be a sliding operation performed on any boundary of the bounding boxes forming the preview window to the outside of the preview window.
The target preview area is the original preview window at the beginning, namely the length and the width of the non-target preview area are both 0 at the beginning, and the length or the width of the non-target preview area gradually increases along with the sliding operation from the boundary of the original preview window to the inside of the preview window. For example, when the upper boundary of the original preview window slides towards the inside of the preview window, the initial length h of the non-target preview area is 0, the length h of the non-target preview area gradually increases along with the sliding operation towards the inside of the preview window, when the sliding operation slides from the upper boundary of the original preview window to the lower boundary of the original preview window, the length of the non-target preview area is the length of the original preview window, reaches the maximum value, and is equivalent to that the preview area is completely shielded, wherein if the original length of the preview window is pos, h is more than or equal to 0 and less than or equal to pos. When sliding is performed on the left boundary or the right boundary, the same principle as the above description is not repeated herein.
When the preview area is reduced to the minimum, the length or width of the non-target preview area is gradually reduced along with the sliding operation of the border of the preview window to the outside of the preview window. For example, the upper boundary and the lower boundary of the preview area are overlapped with each other and are overlapped with the lower boundary of the original preview window, the initial length h of the non-target preview area is approximately equal to pos, theoretically, the length h of the non-target preview area is infinitely close to pos, but h is less than pos, when the upper boundary of the original preview window is subjected to sliding operation towards the outside of the preview window, the length h of the non-target preview area is gradually reduced along with the sliding operation towards the outside of the preview window, when the sliding operation slides to the upper boundary of the original preview window from the inside of the original preview window close to the lower boundary, the length of the non-target preview area is 0, the minimum value is reached, and the value is equivalent to that the preview area is not completely shielded, and h is more than or equal to. When sliding is performed on the left boundary or the boundary, the same principle as the above description is not repeated herein.
When the adjustment instruction is executed, the adjustment instruction may be slid into the preview window for different boundaries of the original preview window, for example, the adjustment instruction may be slid into the preview window for an upper boundary of the preview window, and after the adjustment instruction is not slid, the adjustment instruction may be slid into the preview window for a left boundary of the preview window. After the camera application is opened, the default aspect ratio of the preview window is started, the picture proportion is not different from that of the common image acquisition equipment, the diversity of the size of the finally acquired target image is increased by adjusting the preview window, and the default aspect ratio can be 4:3 or other aspect ratios, which is not limited herein.
The adjustment instruction may also be to input a specific gesture on the display interface of the electronic device, where different gestures correspond to different sizes of the adjusted target preview area, where the gesture may be a letter or may also be a specific symbol, for example, if the received adjustment instruction is that the letter is "s", the size of the target preview area is adjusted to 1/2 of the original preview window; if the letter of the received challenge operation is "m", the size of the target preview area is adjusted to 1/3 of the original preview window. The specific position of the target preview area on the terminal display interface may also be preset, for example, a letter may be drawn above the display interface to obtain the target preview area, and the target display area may be determined to be located above or below the original preview window. Specifically, how to determine the target preview area by means of a gesture, and how to determine the target preview area by means of what gesture are not limited herein.
Taking an adjustment instruction as an example to explain a sliding operation of a preview window from a boundary of an original preview window to an inside of the original preview window, fig. 2 is a schematic diagram of a terminal display interface provided in an embodiment of the present invention, where a white rectangular area 21 in fig. 2 is a preview window, is used for previewing content of an acquired image, and can be adjusted according to a size of the preview window, and a white circular area 22 in fig. 2 is a photographing key in an embodiment of the present invention, and when the terminal receives a trigger operation of the photographing key, the terminal will take a photograph, and the terminal display interface thereof may be a display interface of a camera application when the terminal performs image acquisition.
Fig. 3 is a schematic view of a display interface of a terminal after an instruction is adjusted for a size of a preview window according to an embodiment of the present invention, where a black rectangular region 31 in fig. 3 is a non-target preview region, and is used to shield an original preview window and enable an operation of taking a picture to be input in the black region, a white rectangular region 32 in fig. 3 is obtained as a target preview region after a sliding operation is performed on the display interface, a boundary of the target preview region is a boundary of a border frame that can perform the sliding operation, h is a length of the non-target preview region in the embodiment of the present invention, a width of the non-target preview region is a width of the original preview window, and a white circular region 33 in fig. 3 is a shooting key in the embodiment of the present invention, and when the terminal receives a trigger operation on the shooting key, the. And determining the intercepted area according to the size of the h value of the non-target preview area and the width of the original preview window. And because the length value pre-saved in the original preview window is pos and the length of the collected non-target preview area, the length of the target preview area can be determined to be pos-h, and the target image can be accurately acquired after the image is determined according to the width of the pre-saved original preview window.
Example 3:
in order to improve the user experience, on the basis of the above embodiments, in the embodiment of the present invention, the photographing instruction may be received in the following manner:
receiving a triggering operation of a photographing key; or
Receiving a preset operation in a non-target preview area; or
Receiving a voice instruction for taking a picture; or
Receiving a preset operation in a target preview area; or
And receiving the triggering operation of a preset shortcut key for realizing photographing.
In order to improve user experience and quickly acquire an image, in the embodiment of the present invention, after a frame proportion of a view is determined, that is, an adjusted target preview area is determined, an image is acquired, and a photographing instruction may be a common photographing instruction, for example, a photographing key is displayed on a display interface of an electronic device, or a photographing key is arranged at an edge of a housing of the electronic device, and the photographing instruction may be a trigger operation on the photographing key.
In order to further improve the efficiency of acquiring an image, in the embodiment of the present invention, receiving the photographing instruction may also be receiving a preset operation in a non-acquisition region, and in order to distinguish an original preview window, that is, a preview window in the prior art, a region capable of generating a target image is referred to as a target preview region, and the remaining regions in the original preview window are referred to as non-target preview regions. For the purpose of distinguishing, the target preview area and the non-target preview area may be distinguished by different colors, for example, the non-target preview area may be represented by black for distinguishing the non-target preview area from the target preview area. The preset operation may be any one of a click operation, a double click operation, a press operation, and the like on the non-target preview area.
In order to further improve the efficiency of acquiring the image, in the embodiment of the present invention, the receiving of the photographing instruction may also be receiving a voice instruction for image acquisition, for example, a "photographing" voice instruction.
In order to further improve the efficiency of acquiring the image, in the embodiment of the present invention, the receiving of the photographing instruction may also be receiving a preset operation of the target preview area, where the preset operation may be any one of a click operation, a double click operation, a press operation, and the like of the target preview area, and specifically, why the preset operation is performed is not limited herein.
In order to further improve the efficiency of obtaining the image, in the embodiment of the present invention, the receiving of the photographing instruction may also be receiving a trigger operation on a preset shortcut key for realizing photographing, and may also be receiving a trigger operation on a preset shortcut point for realizing photographing by the electronic device. The triggering operation may be an operation in which the power-off key and the volume-down key are triggered simultaneously, and in particular, why the triggering operation is triggered is not limited herein.
The photographing instruction may also be other instructions, and in particular, why the photographing instruction is an instruction, is not limited herein.
In order to improve user experience, on the basis of the foregoing embodiments, in an embodiment of the present invention, before determining an adjusted target preview area, the method further includes:
and adjusting the size of the preview window according to the adjusting instruction, and if the size of the preview window simultaneously comprises a target preview area and a non-target preview area during adjustment, displaying the target preview area and the non-target preview area in a distinguishing manner.
In the embodiment of the present invention, in order to ensure that the content and the size of the target preview area viewed by the user are the content and the size of the target image that the user wants to obtain when previewing, in the embodiment of the present invention, if the target preview area and the non-target preview area are included at the same time, the target preview area and the non-target preview area are displayed in a differentiated manner in order to improve the user experience, wherein a pixel value of the non-target preview area may be set as a preset value for blocking the non-target preview area. And the preset value can be set to 0 or 255, that is, the non-target preview area is usually a full black or full white pixel point. Equivalently, the non-target preview area is shielded, so that the user can not see the picture in the non-target preview area, the picture in the determined target preview area meets the user requirement, and the user experience is improved. Specifically, how to distinguish the target preview area from the non-target preview area is not limited herein.
If the non-target preview area is included, displaying the non-target preview area in a preset mode, specifically, how the non-target preview area is displayed, which is not limited herein.
Example 4:
in order to improve the user experience, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
and saving the image and/or the target image to a preset storage position.
Because the user may no longer be satisfied with the content or size of the acquired target image after the target image is acquired subsequently, and because the original preview window is the size of the view-finding picture acquired through many experiments, the user usually holds the device in the hand when acquiring the image, so that the device keeps the image acquired after the device is stable, and the image acquired according to the size of the preview window usually still meets the public requirements, the acquired image can be stored in a preset storage position. Since the content in the target preview area sometimes meets the user's requirement during the framing, since the image displayed in the target preview area during the image preview is consistent with the view angle of the finally acquired target image and the content in the image is also consistent after the camera application software is entered, the acquired target image can be saved to a preset position, and the target image is obtained by capturing the image data of the image.
In the embodiment of the invention, after receiving a photographing instruction, the electronic device acquires image data, and the image sensor chip in the camera module outputs the image data, wherein the output image data is not different from the image data output by the common image acquisition device, and the CPU or other devices receive the image data, so that the subsequent operations are more complicated and a good effect cannot be achieved in order to avoid modification of underlying driver software, and therefore, the image data does not change in the process, and after receiving the image data, the image data is subjected to image signal processing, image coding and image compression to obtain an image, and the image is intercepted according to the information of the stored target preview area to obtain a target image, and the obtained image and/or the target image are stored. And when saving, the storage is generally in a jpeg format or a PNG format, wherein the specific storage is in what format, and the storage is not limited herein. And when the user views the target image at the preset storage position, the target image is consistent with the field angle of the user during image acquisition, so that adjustment or interception is not needed generally. When the image and/or the target image are saved, whether the specific saved image or the target image or the image and the target image are set by a user, and the acquired image and/or the target image are saved to a preset storage position according to the setting of the user.
Example 5:
the following describes the image acquisition process provided by the embodiment of the present invention in detail with reference to a specific embodiment.
Fig. 4 is a schematic diagram of a detailed implementation process of image acquisition, where the process includes:
s401: and receiving an instruction for adjusting the size of the preview window.
S402: and determining the adjusted target preview area.
S403: and if a photographing instruction is received, acquiring an image.
S404: and intercepting the acquired image according to the target preview area to acquire a target image.
S405: the acquired image and/or the target image is saved.
Example 6:
fig. 5 is a schematic structural diagram of image acquisition according to an embodiment of the present invention, where the apparatus includes:
a determining module 501, configured to receive an instruction to adjust the size of a preview window of an image, and determine an adjusted target preview area;
and the processing module 502 is configured to intercept the acquired image according to the target preview area to obtain a target image if a photographing instruction is received.
In a possible implementation manner, the processing module 502 is specifically configured to receive a trigger operation of a photographing key; or receiving a preset operation in the non-target preview area; or receiving a voice instruction for taking a picture; or receiving a preset operation in the target preview area; or receiving the trigger operation of the preset shortcut key for realizing the photographing.
In a possible implementation manner, the processing module 502 is further specifically configured to adjust the size of the preview window according to the adjustment instruction, and when the adjustment is performed, if a target preview area and a non-target preview area are included at the same time, the target preview area and the non-target preview area are displayed differently.
In a possible embodiment, the apparatus further comprises: and the storage module is used for storing the image and/or the target image to a preset storage position.
Example 7:
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 6, including: the system comprises a processor 601, a communication interface 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication interface 602 and the memory 603 complete mutual communication through the communication bus 604;
the memory 603 has stored therein a computer program which, when executed by the processor 601, causes the processor 601 to perform the steps of:
receiving an adjustment instruction for the size of a preview window of an image, and determining an adjusted target preview area;
and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image.
In a possible embodiment, the instruction to resize the preview window of the image includes:
and sliding any boundary in the boundary boxes forming the preview window.
In a possible embodiment, the receiving the photographing instruction includes:
receiving a triggering operation of a photographing key; or
Receiving a preset operation in a non-target preview area; or
Receiving a voice instruction for taking a picture; or
Receiving a preset operation in a target preview area; or
And receiving the triggering operation of a preset shortcut key for realizing photographing.
In a possible implementation manner, before determining the adjusted target preview area, the method further includes:
and adjusting the size of the preview window according to the adjusting instruction, and if the size of the preview window simultaneously comprises a target preview area and a non-target preview area during adjustment, displaying the target preview area and the non-target preview area in a distinguishing manner.
In one possible embodiment, the method further comprises:
and saving the image and/or the target image to a preset storage position.
Because the principle of the electronic device for solving the problem is similar to that of the communication method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 602 is used for communication between the above-described electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 8:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
receiving an adjustment instruction for the size of a preview window of an image, and determining an adjusted target preview area;
and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image.
In a possible embodiment, the instruction to resize the preview window of the image includes:
and sliding any boundary in the boundary boxes forming the preview window.
In a possible embodiment, the receiving the photographing instruction includes:
receiving a triggering operation of a photographing key; or
Receiving a preset operation in a non-target preview area; or
Receiving a voice instruction for taking a picture; or
Receiving a preset operation in a target preview area; or
And receiving the triggering operation of a preset shortcut key for realizing photographing.
In a possible implementation manner, before determining the adjusted target preview area, the method further includes:
and adjusting the size of the preview window according to the adjusting instruction, and if the size of the preview window simultaneously comprises a target preview area and a non-target preview area during adjustment, displaying the target preview area and the non-target preview area in a distinguishing manner.
In one possible embodiment, the method further comprises:
and saving the image and/or the target image to a preset storage position.
Since the principle of solving the problem of the computer readable medium is similar to that of the communication method, after the processor executes the computer program in the computer readable medium, the steps implemented may refer to the other embodiments, and repeated parts are not described again.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of 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. These computer program instructions may 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 flowchart 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. 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 (11)

1. An image acquisition method, characterized in that the method comprises:
receiving an adjustment instruction for the size of a preview window of an image, and determining an adjusted target preview area;
and if a photographing instruction is received, intercepting the acquired image according to the target preview area to acquire a target image.
2. The method of claim 1, wherein the instruction to resize the preview window of the image comprises:
and sliding any boundary in the boundary boxes forming the preview window.
3. The method of claim 1, wherein receiving a photographing instruction comprises:
receiving a triggering operation of a photographing key; or
Receiving a preset operation in a non-target preview area; or
Receiving a voice instruction for taking a picture; or
Receiving a preset operation in a target preview area; or
And receiving the triggering operation of a preset shortcut key for realizing photographing.
4. The method of any of claims 1-3, wherein prior to determining the adjusted target preview area, the method further comprises:
and adjusting the size of the preview window according to the adjusting instruction, and if the size of the preview window simultaneously comprises a target preview area and a non-target preview area during adjustment, displaying the target preview area and the non-target preview area in a distinguishing manner.
5. The method of claim 1, further comprising:
and saving the image and/or the target image to a preset storage position.
6. An image acquisition apparatus, characterized in that the apparatus comprises:
the determining module is used for receiving an adjusting instruction of the size of the preview window of the image and determining an adjusted target preview area;
and the processing module is used for intercepting the acquired image according to the target preview area to acquire a target image if a photographing instruction is received.
7. The device according to claim 6, wherein the processing module is specifically configured to receive a trigger operation of a photographing key; or receiving a preset operation in the non-target preview area; or receiving a voice instruction for taking a picture; or receiving a preset operation in the target preview area; or receiving the trigger operation of the preset shortcut key for realizing the photographing.
8. The apparatus of claim 6, wherein the processing module is further configured to adjust a size of the preview window according to the adjustment instruction, and when the adjustment is performed, if a target preview area and a non-target preview area are included at the same time, the target preview area and the non-target preview area are displayed differently.
9. The apparatus of claim 6, further comprising:
and the storage module is used for storing the image and/or the target image to a preset storage position.
10. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to perform the steps of the image acquisition method of any of claims 1-5 when executing a computer program stored in the memory.
11. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the image acquisition method according to any one of claims 1 to 5.
CN202011348048.3A 2020-11-26 2020-11-26 Image acquisition method, device, equipment and medium Pending CN112511745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011348048.3A CN112511745A (en) 2020-11-26 2020-11-26 Image acquisition method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011348048.3A CN112511745A (en) 2020-11-26 2020-11-26 Image acquisition method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112511745A true CN112511745A (en) 2021-03-16

Family

ID=74966262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011348048.3A Pending CN112511745A (en) 2020-11-26 2020-11-26 Image acquisition method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112511745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911152A (en) * 2021-01-29 2021-06-04 北京乐学帮网络技术有限公司 Preview image generation method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140093557A (en) * 2013-01-18 2014-07-28 삼성전자주식회사 Method and apparatus for photographing of a portable terminal
CN105959567A (en) * 2016-06-21 2016-09-21 维沃移动通信有限公司 Photographing control method and mobile terminal
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal
CN106941589A (en) * 2017-03-30 2017-07-11 努比亚技术有限公司 Find a view photographic method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140093557A (en) * 2013-01-18 2014-07-28 삼성전자주식회사 Method and apparatus for photographing of a portable terminal
CN105959567A (en) * 2016-06-21 2016-09-21 维沃移动通信有限公司 Photographing control method and mobile terminal
CN106657761A (en) * 2016-09-29 2017-05-10 乐视控股(北京)有限公司 Picture shooting method and device for intelligent terminal
CN106941589A (en) * 2017-03-30 2017-07-11 努比亚技术有限公司 Find a view photographic method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112911152A (en) * 2021-01-29 2021-06-04 北京乐学帮网络技术有限公司 Preview image generation method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US10430075B2 (en) Image processing for introducing blurring effects to an image
US9785323B2 (en) Touch-based user interface control tiles
CN105892868B (en) Screenshotss method and apparatus
WO2022166944A1 (en) Photographing method and apparatus, electronic device, and medium
US20200210061A1 (en) Method, device and storage medium for sharing multimedia resource
US20130155308A1 (en) Method and apparatus to enhance details in an image
US11715445B2 (en) Display control adjustment method, and terminal, and computer-readable storage medium
EP3833001A1 (en) Image shooting method and device, terminal, and non-transitory storage medium for automatic shooting
US20210041999A1 (en) Video playing method and device, electronic equipment and storage medium
EP4287610A1 (en) Focusing method and apparatus, electronic device, and medium
EP4329283A1 (en) Image processing method and apparatus, and device and storage medium
US20240004676A1 (en) Screen Capture Method and Apparatus, Electronic Device, and Readable Storage Medium
CN111213363A (en) Terminal photographing control method, mobile terminal and readable storage medium
CN106293426A (en) Screenshotss method and apparatus based on browser of mobile terminal
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN112511745A (en) Image acquisition method, device, equipment and medium
CN111201774A (en) Zooming control method and device and shooting terminal
CN110738021A (en) document display method and device
CN112684963A (en) Screenshot method and device and electronic equipment
CN111045576B (en) Display control method, display control device, terminal equipment and electronic equipment
CN112286430B (en) Image processing method, apparatus, device and medium
CN112887624B (en) Shooting method and device and electronic equipment
US20150054854A1 (en) Image Cropping Manipulation Method and Portable Electronic Device
CN113056905B (en) System and method for photographing tele-like image
CN112419134A (en) Image processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210316