[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112087570B - Image shooting method and device, electronic equipment and readable storage medium - Google Patents

Image shooting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN112087570B
CN112087570B CN201910514360.6A CN201910514360A CN112087570B CN 112087570 B CN112087570 B CN 112087570B CN 201910514360 A CN201910514360 A CN 201910514360A CN 112087570 B CN112087570 B CN 112087570B
Authority
CN
China
Prior art keywords
image
mirror
original image
cutting frame
key
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
CN201910514360.6A
Other languages
Chinese (zh)
Other versions
CN112087570A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910514360.6A priority Critical patent/CN112087570B/en
Publication of CN112087570A publication Critical patent/CN112087570A/en
Application granted granted Critical
Publication of CN112087570B publication Critical patent/CN112087570B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/67Focus control based on electronic image sensor signals
    • 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/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The disclosure relates to an image shooting method and device, an electronic device and a readable storage medium. An image capturing method comprising: acquiring an original image with a preset first size in response to triggering of a mirror shifting key on the electronic equipment; the first size is larger than a second size crop box on the electronic device; and after translating the cutting frame in the direction corresponding to the mirror shifting key, determining a partial image of the original image in the cutting frame as a target image obtained by shooting at this time. In the embodiment of the disclosure, the target image is obtained by moving the cropping frame in the original image, so that the effect that the target image moves relative to the image before the mirror moving key is triggered is achieved, namely, the mirror moving effect can be achieved without moving the electronic device by a user in the embodiment, the problem of picture shaking caused by hand shaking of the user can be avoided, and the shooting experience can be improved.

Description

Image shooting method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to an image capturing method and apparatus, an electronic device, and a readable storage medium.
Background
Currently, users often take pictures with a camera on an electronic device. In some scenes, the user is required to move the mirror to shoot a good effect, wherein the moving of the mirror is to move the camera upwards, downwards, leftwards or rightwards in parallel. However, in the process of moving the mirror, the shaking hands of the user can cause the picture to shake, the quality of the shot video is reduced, and the video watching is affected.
Disclosure of Invention
The disclosure provides an image shooting method and device, an electronic device and a readable storage medium, which are used for solving the defects of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided an image capturing method including:
acquiring an original image with a preset first size in response to the triggering of a mirror shifting key on the electronic equipment; the first size is larger than a second size crop box on the electronic device;
and after the cutting frame is translated in the direction corresponding to the mirror shifting key, taking the partial image of the original image in the cutting frame as the target image obtained by the shooting.
Optionally, after translating the crop box in the direction corresponding to the mirror shift key, taking a partial image of the original image in the crop box as a target image obtained by the current shooting includes:
after the cutting frame is translated in the direction corresponding to the mirror moving key, judging whether the cutting frame is moved out of the original image or not;
if the original image is not moved out, determining that the partial image of the original image in the cutting frame is the target image obtained by shooting at this time.
Optionally, after determining whether the crop box is moved out of the original image, the method further includes:
if the original image is moved out of the cutting frame, controlling the lens to adjust the current focal length to a target focal length;
and when the lens is positioned at the target focal length, the step of acquiring the original image with the preset first size is executed again.
Optionally, the mirror shift key comprises at least one of: the first mirror moving key represents upward translation, the second mirror moving key represents downward translation, the third mirror moving key represents leftward translation, and the fourth mirror moving key represents rightward translation.
Optionally, the method further comprises:
and responding to the continuous triggering of the mirror shifting key, and iterating the steps until the mirror shifting key is released.
Optionally, the method further comprises:
restoring the crop box to a default position in the original image in response to the mirror shift key being released.
According to a second aspect of the embodiments of the present disclosure, there is provided an image capturing apparatus including:
the original image acquisition module is used for responding to the triggering of a mirror shifting key on the electronic equipment and acquiring an original image with a preset first size; the first size is larger than a second size crop box on the electronic device;
and the target image determining module is used for determining a partial image of the original image in the cutting frame as a target image obtained by shooting after the cutting frame is translated in the direction corresponding to the mirror-moving key.
Optionally, the target image determination module comprises:
the judging unit is used for judging whether the cutting frame moves out of the original image or not after the cutting frame is translated in the direction corresponding to the mirror moving key;
and the target image determining unit is used for determining partial images of the original image in the cutting frame as the target images obtained by shooting at this time when the cutting frame is moved out of the original image.
Optionally, the target image determination module further comprises:
and the focal length adjusting unit is used for controlling the lens to adjust the current focal length to a target focal length when the original image is moved out of the cutting frame, and triggering the original image acquisition module to acquire the original image again.
Optionally, the apparatus further comprises:
and the iteration control module is used for responding to the continuous triggering of the mirror shifting key, and controlling the original image acquisition module and the target image determination module to iterate the steps until the mirror shifting key is released.
Optionally, the apparatus further comprises:
and the position restoring module is used for restoring the cropping frame to the default position of the original image in response to the mirror shifting key being released.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device comprising a processor and a memory for storing executable instructions; the processor reads executable instructions from the memory to implement the steps of the method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a machine-readable storage medium having stored thereon machine-executable instructions that, when executed, implement the steps of the method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the embodiment, the original image with the preset first size is obtained by responding to the triggering of the mirror moving key on the electronic equipment; a crop box in which the first size is larger than a second size on the electronic device; then, after the cropping frame is translated in the direction corresponding to the mirror shifting key, a partial image of the original image in the cropping frame is determined to be used as a target image obtained by the shooting. Therefore, in the embodiment, the target image is obtained by moving the cutting frame in the original image, and the effect that the target image moves relative to the image before the mirror moving key is triggered is achieved, namely, the effect of moving the mirror can be achieved without moving the electronic equipment by a user in the embodiment, the problem of picture shaking caused by hand shaking of the user can be avoided, and the shooting experience can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment;
FIG. 2 is a flow chart illustrating an image capture method according to an exemplary embodiment;
FIG. 3 is a schematic diagram showing a comparison of an original image and a display interface in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating the acquisition of a target image according to an exemplary embodiment;
FIG. 5 is an effect diagram illustrating a mirror being moved up according to an exemplary embodiment;
FIG. 6 is a flow diagram illustrating another image capture method in accordance with an exemplary embodiment;
FIG. 7 is a flow chart illustrating yet another image capture method according to an exemplary embodiment;
FIG. 8 is a flow chart illustrating yet another image capture method according to an exemplary embodiment;
FIGS. 9-13 are block diagrams of an image capture device according to an exemplary embodiment;
FIG. 14 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
Currently, users often take pictures with a camera on an electronic device. In some scenarios, the user is required to move the mirror to move the camera up, down, left or right in parallel to obtain a better effect. However, during the process of moving the mirror, the shaking of the hand of the user can cause the picture to shake, which affects the video viewing.
Therefore, the embodiment of the disclosure provides an image shooting method, which is conceived to be characterized in that a mirror-moving key is arranged on an electronic device, and if the mirror-moving key is triggered, the electronic device adjusts a cutting position to move a cut target image after adjustment towards a direction corresponding to the mirror-moving key compared with the cut target image before adjustment, so as to achieve an effect of virtually moving the electronic device towards the direction corresponding to the mirror-moving key. In the embodiment, the user does not need to move the electronic equipment, so that the shaking of the picture caused by shaking can be avoided, and the improvement of the quality of the image and the shooting experience are facilitated.
Fig. 1 is a diagram illustrating an application scenario according to an exemplary embodiment, and referring to fig. 1, a camera (not shown) is disposed on an electronic device 10, and the camera may have a display interface 11 and a non-display interface 12 outside the display interface 11 during operation. The display interface 11 may be provided with a mirror shift key 13, where the mirror shift key 13 may include at least one of the following: a first move mirror button 131 representing an upward pan, a second move mirror button 132 representing a downward pan, a third move mirror button 133 representing a leftward pan, and a fourth move mirror button 134 representing a rightward pan. Certainly, in an embodiment, the mirror shift key may be set as a physical or virtual key such as a knob, a rocker, and the like, and in the case that the translation direction can be determined, the corresponding scheme falls into the protection scope of the present application.
In addition, some other function keys may be set in the non-display interface 12, for example, a front/back lens switching key, a photo album browsing key, a video recording key, a shooting key, etc., and a technician may set the function keys according to a specific scene, which is not limited herein.
The user can trigger the mirror shift key, and the triggering mode can include single-clicking or long-time pressing, for example, the electronic device can execute one image shooting method, and if the electronic device is pressed for a long time, the electronic device can execute one image shooting method for multiple times, and the direct mirror shift key is released. Of course, the triggering mode and the electronic device executing one image shooting method may be adjusted according to a specific scene, and the corresponding schemes all fall within the scope of the present application.
Fig. 2 is a flowchart illustrating an image capturing method according to an exemplary embodiment, which may be applied to the application scenario illustrated in fig. 1. Referring to fig. 2, an image capturing method includes steps 201 and 202, in which:
in step 201, in response to a mirror shifting key on the electronic device being triggered, acquiring an original image with a preset first size; the first size is larger than a second size crop box on the electronic device.
In this embodiment, the processor in the electronic device may monitor whether the mirror shift key is triggered. The monitoring mode can include: for example, the mirror shift key may correspond to a thread, and the processor may obtain the state (triggered or not triggered) of the mirror shift key by communicating with the thread. For another example, the mirror shift key may correspond to an interrupt instruction, and when triggered, the interrupt instruction may be generated and sent to the processor, so that the processor may determine to monitor that the mirror shift key is triggered.
In one embodiment, the shift keys may include a first shift key 131 to indicate an upward shift, a second shift key 132 to indicate a downward shift, a third shift key 133 to indicate a leftward shift, and a fourth shift key 134 to indicate a rightward shift, with the effect as shown in fig. 1.
It should be noted that, in this embodiment, the first mirror shift key 131, the second mirror shift key 132, the third mirror shift key 133, and the fourth mirror shift key 134 may respectively correspond to different threads or different interrupt instructions, that is, the processor may determine the first mirror shift key 131, the second mirror shift key 132, the third mirror shift key 133, or the fourth mirror shift key 134 when receiving the signal. Of course, the first mirror shift key 131, the second mirror shift key 132, the third mirror shift key 133, and the fourth mirror shift key 134 may also correspond to the same thread or the same interrupt instruction, that is, the processor needs to analyze the signal when receiving the signal, and then determines the first mirror shift key 131, the second mirror shift key 132, the third mirror shift key 133, or the fourth mirror shift key 134 according to the analysis result. In the case that the processor can identify the mirror shift key, the corresponding scheme falls into the protection scope of the application.
In this embodiment, the image in the crop box can be displayed as an image taken each time by the display interface in consideration that the size of the image sensor in the camera is larger than the second size of the crop box on the electronic device, and the size of the crop box is completely matched with the size of the display interface 11.
It should be noted that, in this embodiment, the crop box may be set in advance, and the size of the crop box is completely the same as the size of the display interface of the electronic device, that is, the size of the crop box is the second size. It should be noted that, the crop box in this embodiment is only used for exemplary illustration, and in practical applications, the crop box may be a rectangle formed by only four anchor points, or a rectangle formed by one anchor point, a width line and a length line, or the crop box is a minimum rectangle containing the width line and the length line whose center points are overlapped. In addition, in this embodiment, the crop box may be displayed in the display interface, or may not be displayed in the display interface, which may achieve corresponding effects, and the corresponding solutions fall within the scope of protection of the present application.
For this reason, the processor in this embodiment may control the image sensor in the camera to acquire the original image of the first size first, and the effect is as shown in fig. 3.
It should be noted that the first size in this embodiment may be preset, for example, the second size is increased to the first size while the aspect ratio is kept unchanged. As another example, the size of the image sensor is directly taken as the first size. For another example, after the mirror shifting key is determined, the width of a certain distance is increased on the second size according to the direction corresponding to the mirror shifting key, and then the first size is obtained; wherein the increased width is at least greater than the distance that the subsequent translation is required. All the above modes fall into the protection scope of the present application.
In step 202, after the cropping frame is translated in the direction corresponding to the mirror-moving key, determining a partial image of the original image in the cropping frame as a target image obtained by the current shooting.
In this embodiment, after the mirror shift key is triggered, under the condition that the user clicks or presses the mirror shift key for a short time, that is, under the scene where the clipping box translation distance is small, the processor may translate the clipping box on the original image, and determine a partial image of the original image located in the clipping box as the target image obtained by the current shooting.
In this embodiment, when the user presses the mirror-moving key for a long time, the electronic device may continue to move the cropping frame based on the previous cropping position, so that the position translation distance between the current position of the cropping frame and the triggered time is longer. It should be noted that, when the mirror-moving key is triggered for a long time, the electronic device may perform a translation on the crop box every a period of time (e.g., 33.3ms) from when the mirror-moving key is triggered, where an initial position of the translation is a last cropping position, and a distance of each translation of the crop box may be a set value (e.g., several centimeters, which is adjustable), so that the electronic device may perform the translation multiple times continuously within the triggered time period, and may acquire one image at each time. For the user, the effect of uniform mirror shift can be obtained.
Referring to fig. 4, after the mirror shift key is triggered, or after the mirror shift key is triggered for a certain period of time, or after the mirror shift key is translated for a certain number of times, the processor may translate the cropping frame on the original image, and then determine whether the cropping frame is shifted out of the original image (corresponding to step 401 in fig. 4). If not, the processor may determine that a partial image of the original image within the crop box is a target image obtained by the current shooting (corresponding to step 402 in fig. 4). Taking the first mirror-moving key 131 as an example, referring to fig. 5, after cropping, the target object "a" is displayed in the box, and after cropping, the target object "a" is displayed below the box, so as to achieve the effect of virtually translating the electronic device upward.
Referring to fig. 6, if the cropping frame moves out of the original image, the processor may control the lens to adjust the current focal length to the target focal length (corresponding to step 601 in fig. 6). Then, when the lens is located at the target focal length, the step of acquiring the original image of the preset first size (corresponding to step 602 in fig. 6) is performed again, i.e., the step 201 is returned. In the embodiment, whether the cutting frame exceeds the original image or not is judged, so that the target image obtained every time does not contain a pure white or pure black invalid area, and the effect of shooting every time is improved. The pure white or pure black invalid area is a partial image obtained by pixel supplementation of the exceeding area after the cutting frame exceeds the original image.
It should be noted that, in this embodiment, the focal length variation of the lens from the current focal length to the target focal length may be determined according to the translation distance of the cropping frame, and the determination manner may refer to the related content of the focal length and the imaging area in the related art, which is not described herein again. In practical application, a translation distance and target focal length correspondence table may be preset, and the processor may query the target focal length from the translation distance and target focal length correspondence table according to the translation distance of the crop box.
In this embodiment, when the mirror shift key is pressed for a long time, wherein the long press is longer than a set time period, for example, 33.3ms, referring to fig. 7, the processor may iterate step 201 and step 202 in response to the mirror shift key being continuously triggered until the mirror shift key is released (corresponding to step 701 in fig. 7). In this embodiment, by pressing the mirror-moving key for a long time, images in the display interface can be translated in a linked manner (the direction is opposite to the moving direction of the electronic device), so that the effect of taking images by moving the mirror is achieved.
In this embodiment, referring to fig. 8, the processor further monitors whether the mirror shift key is released, and after monitoring that the mirror shift key is released, returns the crop box to the default position in the original image in response to the mirror shift key being released (corresponding to step 801 in fig. 8). For example, when the mirror shift key is released, the processor may keep the current position of the cropping frame in the current frame image, and then adjust the focal length or angle of the lens so that the default position of the cropping frame in the next frame image corresponds to the current position in the current frame. If the cropping frame is at the default position, the central point of the cropping frame is overlapped with the central point of the original image, and the cropping frame is translated when the mirror is moved, and the central point of the cropping frame is offset from the central point of the original image. After the lens shifting key is released, the central point of the next frame image needs to be aligned and overlapped with the central point of the cutting frame, and the alignment mode can be used for adjusting the focal length or angle of the lens. In this embodiment, the cropping frame is restored to the default position in the original image, which can facilitate the next mirror-shifting operation.
To this end, in the embodiment of the present disclosure, an original image of a preset first size is acquired by responding to a trigger of a mirror shift key on an electronic device; wherein the first size is larger than a second size of a crop box on the electronic device; then, after the cropping frame is translated in the direction corresponding to the mirror shifting key, the partial image of the original image in the cropping frame is determined as the target image obtained by the shooting. It is obvious that, in this embodiment, the target image is obtained by moving the cropping frame in the original image, and the effect that the target image moves relative to the image before the mirror moving key is triggered is achieved, that is, the mirror moving effect can be achieved without moving the electronic device by the user in this embodiment, the problem of picture shaking caused by hand shaking of the user does not occur, and the shooting experience is favorably improved.
On the basis of an image capturing method provided by the embodiment of the present disclosure, an image capturing apparatus is further provided by the embodiment of the present disclosure, and fig. 9 is a block diagram illustrating an image capturing apparatus according to an exemplary embodiment. Referring to fig. 9, an image photographing apparatus 900 includes:
an original image acquiring module 901, configured to acquire an original image of a preset first size in response to a mirror shifting key on an electronic device being triggered; the first size is larger than a second size crop box on the electronic device;
and a target image determining module 902, configured to determine, after the cropping frame is translated in the direction corresponding to the mirror-moving key, a partial image of the original image located in the cropping frame as a target image obtained by the current shooting.
Fig. 10 is a block diagram of an image capturing apparatus according to an exemplary embodiment, and on the basis of the image capturing apparatus shown in fig. 9, the target image determination module 902 includes:
a determining unit 1001, configured to determine whether the cropping frame moves out of the original image after translating the cropping frame in a direction corresponding to the mirror-moving key;
a target image determining unit 1002, configured to determine, when the cropping frame is moved out of the original image, a partial image of the original image located in the cropping frame as a target image obtained by this capturing.
Fig. 11 is a block diagram of an image capturing apparatus according to an exemplary embodiment, and the target image determination module 902 further includes, on the basis of the image capturing apparatus shown in fig. 10:
a focal length adjusting unit 1101, configured to control the lens to adjust a current focal length to a target focal length when the original image is moved out of the cropping frame, and trigger the original image acquiring module to acquire the original image again.
Fig. 12 is a block diagram illustrating an image capturing apparatus according to an exemplary embodiment, and the apparatus 900 further includes, on the basis of the image capturing apparatus illustrated in fig. 9:
an iteration control module 1201, configured to control the original image acquisition module and the target image determination module to iterate each step in response to the mirror shift key being continuously triggered until the mirror shift key is released.
Fig. 13 is a block diagram illustrating an image capturing apparatus according to an exemplary embodiment, and the apparatus 900 further includes, on the basis of the image capturing apparatus illustrated in fig. 9:
a position restoring module 1301, configured to restore the crop box to a default position in the original image in response to the mirror shift key being released.
To this end, in the embodiment of the present disclosure, an original image of a preset first size is obtained by responding to a trigger of a mirror shifting key on an electronic device; wherein the first size is larger than a second size of a crop box on the electronic device; then, after the cutting frame with the second size is translated in the direction corresponding to the mirror shifting key, a partial image of the original image in the cutting frame is determined to be used as a target image obtained by shooting at this time. Therefore, in the embodiment, the target image is obtained by moving the cutting frame in the original image, and the effect that the target image moves relative to the image before the mirror moving key is triggered is achieved, namely, the effect of moving the mirror can be achieved without moving the electronic equipment by a user in the embodiment, the problem of picture shaking caused by hand shaking of the user can be avoided, and the shooting experience can be improved.
It can be understood that, the image capturing apparatus provided in the embodiment of the present invention corresponds to the image capturing method described above, and specific contents may refer to the contents of each embodiment of the method, which are not described herein again.
Fig. 14 is a block diagram illustrating an electronic device 1400 in accordance with an example embodiment. For example, the electronic device 1400 may be a mobile phone, a tablet computer, an electronic book reader, a multimedia playing device, a wearable device, a vehicle-mounted terminal, or other electronic devices.
Referring to fig. 14, electronic device 1400 may include one or more of the following components: a processing component 1402, a memory 1404, a power component 1406, a multimedia component 1408, an audio component 1410, an input/output (I/O) interface 1412, a sensor component 1414, and a communication component 1416.
The processing component 1402 generally controls overall operation of the electronic device 1400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1402 may include one or more processors 1420 to execute instructions to perform steps corresponding to the methods illustrated in fig. 1-8. Further, processing component 1402 can include one or more modules that facilitate interaction between processing component 1402 and other components. For example, the processing component 1402 can include a multimedia module to facilitate interaction between the multimedia component 1408 and the processing component 1402.
The memory 1404 is configured to store various types of data to support operations at the electronic device 1400. Examples of such data include instructions for any application or method operating on the electronic device 1400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1404 may be implemented by any type of volatile or non-volatile storage device or combination of devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1406 provides power to the various components of the electronic device 1400. The power components 1406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 1400.
The multimedia component 1408 comprises a display screen that provides an output interface between the electronic device 1400 and a user. In some embodiments, the multimedia component 1408 includes a front-facing camera and/or a rear-facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 1400 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1410 is configured to output and/or input audio signals. For example, the audio component 1410 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1404 or transmitted via the communication component 1416. In some embodiments, audio component 1410 further includes a speaker for outputting audio signals.
I/O interface 1412 provides an interface between processing component 1402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1414 includes one or more sensors for providing various aspects of status assessment for the electronic device 1400. For example, the sensor component 1414 may detect an open/closed state of the electronic device 1400, a relative positioning of components, such as a display and keypad of the electronic device 1400, a change in position of the electronic device 1400 or a component of the electronic device 1400, the presence or absence of user contact with the electronic device 1400, an orientation or acceleration/deceleration of the electronic device 1400, and a change in temperature of the electronic device 1400. The sensor assembly 1414 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1414 may also include a photosensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1416 is configured to facilitate wired or wireless communication between the electronic device 1400 and other devices. The electronic device 1400 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, 3G, 4G, or 5G, or a combination thereof. In an exemplary embodiment, the communication component 1416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory machine-readable storage medium comprising instructions, such as the memory 1404, including instructions, executable by the processor 1420 of the electronic device 1400 to perform the message processing method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. An image capturing method, characterized by comprising:
acquiring an original image with a preset first size through an image sensor in response to the triggering of a mirror shifting key on the electronic equipment; a crop box of the first size larger than a second size on the electronic device; displaying the image in the cutting frame as an image shot each time, wherein the central point of the cutting frame is overlapped with the central point of the original image at a default position;
after the cutting frame is translated in the direction corresponding to the mirror moving key, determining a partial image of the original image in the cutting frame as a target image obtained by shooting at this time; and when the mirror is moved, the central point of the cutting frame is offset from the central point of the original image.
2. The image shooting method according to claim 1, wherein after the cropping frame is translated in the direction corresponding to the mirror-shifting key, determining a partial image of the original image within the cropping frame as a target image obtained by the current shooting comprises:
after translating the cutting frame in the direction corresponding to the mirror shifting key, judging whether the cutting frame is shifted out of the original image or not;
if the original image is not moved out, determining that the partial image of the original image in the cutting frame is the target image obtained by shooting at this time.
3. The image capturing method according to claim 2, wherein after determining whether the crop box is moved out of the original image, the method further comprises:
if the original image is moved out of the cutting frame, controlling a lens to adjust the current focal length to a target focal length;
and when the lens is positioned at the target focal length, the step of acquiring the original image with the preset first size is executed again.
4. The image capturing method according to claim 1, wherein the mirror shift key includes at least one of: the first mirror moving key represents upward translation, the second mirror moving key represents downward translation, the third mirror moving key represents leftward translation, and the fourth mirror moving key represents rightward translation.
5. The image capturing method according to claim 1, characterized in that the method further comprises:
and responding to the continuous triggering of the mirror-moving key, and iterating the steps until the mirror-moving key is released.
6. The image capturing method according to claim 1, characterized in that the method further comprises:
restoring the crop box to a default position in the original image in response to the mirror shift key being released.
7. An image capturing apparatus, characterized by comprising:
the original image acquisition module is used for responding to the triggering of a mirror shifting key on the electronic equipment and acquiring an original image with a preset first size through the image sensor; the first size is larger than a second size crop box on the electronic device; displaying the image in the cutting frame as an image shot each time, wherein the central point of the cutting frame is overlapped with the central point of the original image at a default position;
the target image determining module is used for determining partial images of the original image in the cutting frame as target images obtained by shooting after the cutting frame is translated in the direction corresponding to the mirror-moving key; and when the mirror is moved, the central point of the cutting frame is offset from the central point of the original image.
8. The image capturing apparatus according to claim 7, wherein the target image determination module includes:
the judging unit is used for judging whether the cutting frame moves out of the original image or not after the cutting frame is translated in the direction corresponding to the mirror moving key;
and the target image determining unit is used for determining the partial image of the original image in the cutting frame as the target image obtained by shooting at this time when the cutting frame is moved out of the original image.
9. The image capturing apparatus according to claim 8, wherein the target image determination module further includes:
and the focal length adjusting unit is used for controlling a lens to adjust the current focal length to a target focal length when the cutting frame moves out of the original image, and triggering the original image acquisition module to acquire the original image again.
10. The image capture device of claim 7, wherein the device further comprises:
and the iteration control module is used for responding to the continuous triggering of the mirror shifting key, and controlling the original image acquisition module and the target image determination module to iterate the steps until the mirror shifting key is released.
11. The image capturing apparatus according to claim 7, characterized in that the apparatus further comprises:
and the position restoring module is used for restoring the cutting frame to the default position of the original image in response to the mirror shifting key being released.
12. An electronic device comprising a processor and a memory for storing executable instructions; the processor reads executable instructions from the memory to implement the steps of the method of any one of claims 1 to 6.
13. A machine-readable storage medium having stored thereon machine-executable instructions, wherein the instructions when executed perform the steps of the method of any of claims 1 to 6.
CN201910514360.6A 2019-06-14 2019-06-14 Image shooting method and device, electronic equipment and readable storage medium Active CN112087570B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910514360.6A CN112087570B (en) 2019-06-14 2019-06-14 Image shooting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910514360.6A CN112087570B (en) 2019-06-14 2019-06-14 Image shooting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112087570A CN112087570A (en) 2020-12-15
CN112087570B true CN112087570B (en) 2022-07-15

Family

ID=73733926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910514360.6A Active CN112087570B (en) 2019-06-14 2019-06-14 Image shooting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112087570B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114938417B (en) * 2022-05-12 2023-10-17 安徽声讯信息技术有限公司 Webpage-oriented high-speed image acquisition system and image acquisition method for high-speed image acquisition instrument

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349048A (en) * 2013-07-26 2015-02-11 三星电子株式会社 Image photographing apparatus and method thereof
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4835109B2 (en) * 2005-10-31 2011-12-14 アイシン精機株式会社 Parking target position setting device
CN103209291A (en) * 2012-01-17 2013-07-17 百度在线网络技术(北京)有限公司 Method, apparatus and device for controlling automatic image shooting
JP5820414B2 (en) * 2013-03-19 2015-11-24 株式会社Nttドコモ Information processing apparatus and information processing method
CN104991725B (en) * 2015-07-28 2018-02-23 北京金山安全软件有限公司 Picture clipping method and system
CN105681654A (en) * 2016-01-12 2016-06-15 努比亚技术有限公司 Photographing method and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104349048A (en) * 2013-07-26 2015-02-11 三星电子株式会社 Image photographing apparatus and method thereof
CN106055247A (en) * 2016-05-25 2016-10-26 努比亚技术有限公司 Picture display device, method and mobile terminal

Also Published As

Publication number Publication date
CN112087570A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN108419016B (en) Shooting method and device and terminal
CN111338744B (en) Image display method and device, electronic device and storage medium
CN106131441B (en) Photographing method and device and electronic equipment
CN111314617B (en) Video data processing method and device, electronic equipment and storage medium
EP3945494A1 (en) Video processing method, apparatus and storage medium
CN106210495A (en) Image capturing method and device
CN111385456A (en) Photographing preview method and device and storage medium
CN112261453A (en) Method, device and storage medium for transmitting subtitle splicing map
US11856312B2 (en) Image processing method, apparatus, electronic device and storage medium
CN115134505B (en) Preview picture generation method and device, electronic equipment and storage medium
CN117441341A (en) Image processing method, device, mobile terminal and storage medium
CN112087570B (en) Image shooting method and device, electronic equipment and readable storage medium
CN114422687B (en) Preview image switching method and device, electronic equipment and storage medium
CN111614910B (en) File generation method and device, electronic equipment and storage medium
CN114079724B (en) Taking-off snapshot method, device and storage medium
CN113315903B (en) Image acquisition method and device, electronic equipment and storage medium
CN114140389A (en) Video detection method and device, electronic equipment and storage medium
CN112087572B (en) Method and device for controlling zoom of lens, electronic equipment and readable storage medium
CN117956268A (en) Preview frame rate control method and device thereof
CN110874829A (en) Image processing method and device, electronic device and storage medium
CN109447929B (en) Image synthesis method and device
CN118741017A (en) Image display method, device, electronic equipment and storage medium
CN117395505A (en) Image acquisition method, device, electronic equipment and storage medium
CN118057824A (en) Image processing method, device and storage medium
CN118102080A (en) Image shooting method, device, terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant