CN111970440A - Image acquisition method, electronic device, and storage medium - Google Patents
Image acquisition method, electronic device, and storage medium Download PDFInfo
- Publication number
- CN111970440A CN111970440A CN202010799489.9A CN202010799489A CN111970440A CN 111970440 A CN111970440 A CN 111970440A CN 202010799489 A CN202010799489 A CN 202010799489A CN 111970440 A CN111970440 A CN 111970440A
- Authority
- CN
- China
- Prior art keywords
- image
- processing
- snapshot
- video
- resolution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000007781 pre-processing Methods 0.000 claims abstract description 88
- 230000008569 process Effects 0.000 claims abstract description 28
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000009467 reduction Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000033764 rhythmic process Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
Abstract
The application discloses an image acquisition method, an electronic device and a storage medium. In an electronic device, an image acquisition method includes: in the process of shooting by the electronic device, acquiring an image output by an image sensor and taking the image as a pre-processing image; processing the pre-processed image to obtain a video; and acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as a snapshot image, wherein the resolution of the snapshot image is greater than that of the video. Therefore, in the shooting process of the electronic device, the snapshot image is obtained from the preprocessed image according to the snapshot instruction, and the resolution of the snapshot image is larger than that of the video, so that the acquisition process of the snapshot image is convenient, the resolution of the snapshot image is higher, and the user requirements are met.
Description
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to an image acquisition method, an electronic device, and a storage medium.
Background
In the process of shooting a video, sometimes a picture at a certain moment needs to be stored, so that the video is often required to be played back after the video is shot, a corresponding image frame is found, then the picture at the moment is obtained in a screen capture mode, and the picture is stored, so that the operation is relatively complex.
Disclosure of Invention
The application provides an image acquisition method, an electronic device and a storage medium.
The embodiment of the application provides an image acquisition method, which is used for an electronic device and comprises the following steps:
in the process of shooting by the electronic device, acquiring an image output by an image sensor and taking the image as a pre-processing image;
processing the pre-processed image to obtain a video;
and acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as a snapshot image, wherein the resolution of the snapshot image is greater than that of the video.
The electronic device comprises a memory and a processor, wherein the processor is used for acquiring an image output by an image sensor and taking the image as a pre-processing image in the process of shooting by the electronic device; and for processing the pre-processed image to obtain a video; and the pre-processing image corresponding to the snapshot instruction is obtained according to the snapshot instruction and is used as a snapshot image, and the resolution of the snapshot image is greater than that of the video.
A non-transitory computer-readable storage medium containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the image acquisition method described above.
According to the image acquisition method, the electronic device and the storage medium, in the shooting process of the electronic device, the snapshot image is acquired from the preprocessed image according to the snapshot instruction, and the resolution of the snapshot image is larger than that of the video, so that the acquisition process of the snapshot image is convenient, the resolution of the snapshot image is higher, and the user requirements are met.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of an image acquisition method according to an embodiment of the present application;
fig. 2 is a block diagram of an electronic device according to an embodiment of the present application.
FIG. 3 is a schematic flow chart diagram of an image acquisition method according to another embodiment of the present application;
FIG. 4 is a schematic flow chart diagram of an image acquisition method according to yet another embodiment of the present application;
FIG. 5 is a schematic flow chart diagram illustrating an image acquisition method according to yet another embodiment of the present application;
fig. 6 is a schematic flow chart of an image acquisition method according to another embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
Referring to fig. 1-2, an embodiment of the present application provides an image capturing method. The image acquisition method is used for the electronic device 100, and comprises the following steps:
s10, acquiring an image output by the image sensor as a pre-processing image in the process of shooting by the electronic device 100;
s20, processing the preprocessed image to obtain a video;
and S30, acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as the snapshot image, wherein the resolution of the snapshot image is greater than that of the video.
The electronic device 100 of the embodiment of the present application includes a memory and a processor 101, and the above steps S10-S30 can be executed by the processor 101, or the processor 101 is configured to acquire an image output by the image sensor and serve as a pre-processed image during the process of capturing an image by the electronic device 100; and for processing the pre-processed image to obtain a video; and the pre-processing image corresponding to the snapshot instruction is obtained according to the snapshot instruction and is used as a snapshot image, and the resolution of the snapshot image is greater than that of the video.
In the image acquisition method and the electronic device 100 in the embodiment of the application, in the process of shooting by the electronic device 100, the snapshot image is acquired from the preprocessed image according to the snapshot instruction, and the resolution of the snapshot image is greater than that of the video, so that the acquisition process of the snapshot image is convenient, the resolution of the snapshot image is higher, and the user requirements are met.
Specifically, the electronic apparatus 100 may be any of various types of computer system devices that are mobile or portable and perform wireless communication. Specifically, the electronic apparatus 100 may be a mobile phone, a portable game device, a laptop computer, a Personal Digital Assistant (PDA), a portable internet device, a wearable device, a vehicle-mounted terminal, a navigator, a music player, a data storage device, and the like.
Note that, for convenience of description, the image capturing method of the electronic device 100 according to the embodiment of the present application is explained by taking the electronic device 100 as a mobile phone. This is not intended to limit the specific form of the electronic device 100.
In the related art, in order to obtain an image at a certain moment, a user often needs to play a video in a shooting process, and when the video is played to a moment required by the user, the user captures the image through a screen capturing operation, so that the operation is troublesome.
In order to improve the convenience of the snapshot operation, a button may be set on the display screen during the process of shooting the video by the electronic device 100, and when the user encounters a desired photo, the button on the display screen may be pressed, so that the photo is saved. However, whether the picture is obtained by screen capture during video playing or the picture is obtained by shooting video, the resolution of the pictures obtained by the two modes is the same according to the resolution of the video, and the resolution is lower.
In the application, the snapshot image is acquired in the process of shooting by the electronic device 100, so that the acquisition process of the snapshot image is simpler and more convenient; in addition, the snapshot image is obtained according to the preprocessed image output by the image sensor, and is not obtained according to the image in the video, so that the resolution of the snapshot image is larger than that of the video, and the image with higher resolution and better definition can be obtained.
In step S10, the electronic device 100 may start the related application program camera shooting, for example, a "camera" application program camera shooting of the electronic device 100 may be turned on to obtain a video. During the shooting process of the electronic device 100, the image sensor may perform full-scale exposure to obtain an original image, and the original image may be output after performing a cropping and scaling (down) operation inside the image sensor, so as to obtain a preprocessed image. The resolution of the preprocessed image is, for example, 3840 × 2160.
In step S20, since the pre-processed image is generally in units of frames and the format of the pre-processed image is different from that of the video, the pre-processed image can be processed by means of encoding, image reduction, or the like to obtain the video. The resolution of the video is, for example, 1080 × 720(720P) or 1920 × 1080(1080P) resolution.
In step S30, a snapshot instruction may be formed according to a user trigger. For example, a snapshot key is arranged on a display screen of the electronic device 100, and after a user clicks the snapshot key in the process of shooting, the display screen is triggered to form a snapshot instruction. As another example, the electronic device 100 may be provided with a physical key to trigger the formation of the snapshot instruction through the physical key.
The generation timing of the snapshot image is substantially the same as the generation timing of the snapshot command. The snapshot image can be a frame of preprocessing image or a plurality of frames of preprocessing images. When the snapshot image is a multi-frame image, a multi-frame continuous preprocessed image corresponding to the generation time of the snapshot instruction can be used as the snapshot image.
In one example, as discussed above, the video may be obtained by downscaling (downscaling) the pre-processed image, so that the resolution of the video is smaller than that of the pre-processed image, and the resolution of the snapshot image is the same as that of the pre-processed image, so that the resolution of the snapshot image is greater than that of the video. For example, the resolution of a snap-shot image is 3840 × 2160, and the resolution of a video is 1920 × 1080.
In the embodiment of the present application, the preprocessed image may be stored in an image buffer of the electronic device 100.
Referring to fig. 3, in some embodiments, step S20 includes the steps of:
s21, reducing the preprocessed image;
and S22, carrying out video coding on the reduced preprocessed image to obtain a video, wherein the resolution of the video is smaller than that of the preprocessed image.
In some embodiments, steps S21 and S22 may be performed by the processor 101, or the processor 101 may be configured to reduce the pre-processed image; and the video coding unit is used for carrying out video coding on the reduced preprocessed image to obtain a video, and the resolution of the video is smaller than that of the preprocessed image.
In this way, after the pre-processed image is reduced and encoded, a video meeting the expectation can be obtained, so that the video can be normally played in the electronic device 100.
In step S21, the resolution of the pre-processed image may be reduced, so that the pre-processed image is reduced to reduce the resolution of the video and reduce the storage space occupied by the video. For example, a preprocessed image having a resolution of 3840 × 2160 is reduced to obtain an image having a resolution of 1920 × 1080.
In step S22, the preprocessed image is encoded to obtain a video in MP4, AVI, or other formats, so that the video meets the video format requirement of the electronic device 100, and the electronic device 100 can normally play the video after capturing the video.
Referring to fig. 4, in some embodiments, the image capturing method includes the steps of:
s01, controlling the image sensor to output a plurality of frames of first preprocessed images;
s02, controlling the image sensor to output a frame of second pre-processing image according to the snapshot instruction, wherein the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image;
step S20 includes the steps of:
and S23, processing the first preprocessed image and the second preprocessed image of the plurality of frames to obtain a video, wherein the resolution of the video is the same as that of the first preprocessed image.
Step S30 includes the steps of:
and S31, taking the second preprocessed image as a snapshot image according to the snapshot instruction.
In some embodiments, steps S01-02, S23, S31 may be executed by the processor 101, or the processor 101 is configured to control the image sensor to output a plurality of frames of the first pre-processed image; the image sensor is controlled to output a frame of second pre-processing image according to the snapshot instruction, the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image; the system comprises a first preprocessing image, a second preprocessing image, a video processing unit and a display unit, wherein the first preprocessing image and the second preprocessing image are used for processing a plurality of frames of the first preprocessing image and the second preprocessing image to obtain a video, and the resolution of the video is the same as that of the first preprocessing image; and the second preprocessing image is used as a snapshot image according to the snapshot instruction.
It can be understood that if the resolution of the image output by the image sensor is high, the amount of data transmitted by the electronic device 100 becomes large, and the frame rate of the obtained video is low, which results in a poor image capturing experience. In the embodiment, when no snapshot instruction exists, the image sensor outputs more first preprocessed images with lower resolution, so that the frame rate of the images output by the image sensor can be improved, and the frame rate of the processed videos is ensured; when the snapshot instruction is obtained, the image sensor outputs a second preprocessed image with higher resolution, and the higher resolution of the snapshot image is ensured.
Specifically, in step S01, after the image sensor is exposed to full size to obtain the original image, the original image may be cropped and reduced inside the image sensor to output the image, so as to obtain the first pre-processed image with lower resolution, and since the resolution of the first pre-processed image is the same as the resolution of the video, the processor 101 does not need to perform cropping, reduction and other processing on the first pre-processed image, so that the amount of data processed by the processor 101 is reduced, and the power consumption of the processor 101 is further reduced. The resolution of the first preprocessed image is 1920 × 1080, for example.
In step S02, the resolution of the second preprocessed image is higher, and the resolution of the resulting snap-shot image is also higher. Note that the second preprocessed image may be formed by subjecting an original image obtained by exposing the image sensor to a process such as cropping and reduction.
In step S23, it is understood that the first pre-processed image and the second pre-processed image are images that are continuously output by the image sensor, and thus, processing the first pre-processed image and the second pre-processed image can ensure that the video is continuous without missing frames. In addition, since the resolution of the second pre-processed image is greater than the resolution of the first pre-processed image, and the resolution of the video is the same as the resolution of the first pre-processed image, in the process of processing the second pre-processed image, the second pre-processed image may be subjected to processing such as cropping and reduction so that the resolution of the processed second pre-processed image is the same as the resolution of the first pre-processed image. In addition, the second preprocessed image is used as the snapshot image, and the processing of the second preprocessed image further comprises a mode of copying the second preprocessed image, and the copied image is used for forming a video.
In step S31, in one example, the second pre-processed image just output by the image sensor may be copied to obtain a second pre-processed image, that is, the number of the second processed images may be two, wherein one of the second processed images is used for processing to form a video and the other second processed image is used as a snapshot image.
Referring to fig. 5, in some embodiments, the image capturing method includes the steps of:
s03, controlling the image sensor to output a first preprocessed image;
s04, controlling the image sensor to output a frame of second pre-processing image every other predetermined frame of image, wherein the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image;
step S20 includes the steps of:
s24, processing a plurality of frames of the first pre-processed image and the second pre-processed image to obtain a video, wherein the resolution of the video is the same as that of the first pre-processed image;
step S30 includes the steps of:
s32, acquiring the generation time of the snapshot instruction;
s33, the second preprocessed image of one frame corresponding to the generation time is used as the snapshot image.
In some embodiments, steps S03-S04, S24, S32 may be performed by the processor 101, or the processor 101 is configured to control the image sensor to output the first pre-processed image; the image sensor is controlled to output a frame of second pre-processing image every other predetermined frame of image, the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image; the system comprises a first preprocessing image, a second preprocessing image, a video processing unit and a display unit, wherein the first preprocessing image and the second preprocessing image are used for processing a plurality of frames of the first preprocessing image and the second preprocessing image to obtain a video, and the resolution of the video is the same as that of the first preprocessing image; the generation time for acquiring the snapshot instruction is obtained; and the image processing device is used for taking the second preprocessed image of one frame corresponding to the generation moment as the snapshot image.
It can be understood that there may be a certain time in the process of generating and transmitting the snapshot instruction to the response, for example, there is a time delay from when the user clicks the display screen to generate the snapshot instruction to when the snapshot image is formed in response to the snapshot instruction, and if the time delay is long, the image pre-obtained by the user is inconsistent with the snapshot image, and there is a certain frame rate difference.
In the embodiment, the image sensor outputs the pre-processed image with two resolutions, so that the frame rate of the image output by the image sensor can be ensured, and the frame rate of the video obtained after processing can be ensured. In addition, due to the fact that the second preprocessing is output discontinuously, one frame of second preprocessed image can be determined to be used as the snapshot image from the multiple frames of second preprocessed images according to the generation time of the snapshot instruction, and therefore the problem of snapshot delay can be solved.
Specifically, in step S03, after the image sensor is exposed to full size to obtain the original image, the original image may be cropped and reduced inside the image sensor to output the image, so as to obtain the first pre-processed image with lower resolution, and since the resolution of the first pre-processed image is the same as the resolution of the video, the processor 101 does not need to perform cropping, reduction and other processing on the first pre-processed image, so that the amount of data processed by the processor 101 is reduced, and the power consumption of the processor 101 is further reduced. The resolution of the first preprocessed image is 1920 × 1080, for example.
In step S04, the resolution of the second preprocessed image is higher, and the resolution of the resulting snap-shot image is also higher. Note that the second preprocessed image may be formed by subjecting an original image obtained by exposing the image sensor to a process such as cropping and reduction. The first pre-processed image may be output every other frame, two frames, and then one frame of the second pre-processed image.
In step S24, it is understood that the first pre-processed image and the second pre-processed image are images that are continuously output by the image sensor, and thus, processing the first pre-processed image and the second pre-processed image can ensure that the video is continuous without missing frames. In addition, since the resolution of the second pre-processed image is greater than the resolution of the first pre-processed image, and the resolution of the video is the same as the resolution of the first pre-processed image, in the process of processing the second pre-processed image, the second pre-processed image may be subjected to processing such as cropping and reduction so that the resolution of the processed second pre-processed image is the same as the resolution of the first pre-processed image. In addition, as the second preprocessed image of one frame is taken as the snapshot image, the processing of the second preprocessed image also comprises the mode of copying the second preprocessed image, and the copied image is used for forming a video.
After acquiring the time at which the snapshot instruction is generated, frames may be taken forward in steps S32 and S33, so that the corresponding second preprocessed image is obtained as the snapshot image.
Referring to fig. 6, in some embodiments, step S33 includes:
s331, acquiring the time required by the snapshot instruction from generation to the image sensor;
and S332, acquiring a second preprocessed image corresponding to the generation moment according to the required time, and taking the second preprocessed image as a snapshot image.
In some embodiments, steps S331-S332 may be performed by the processor 101, or the processor 101 may be configured to obtain a time required for the snapshot instruction to be generated and transmitted to the image sensor; and the second preprocessing image corresponding to the generation moment is acquired according to the required time and is used as a snapshot image.
Therefore, the snapshot image corresponding to the snapshot instruction can be accurately obtained, and the user experience is improved. In one example, the time required for the snapshot command to be transmitted in the electronic device may be obtained experimentally, and a better relationship between the snapshot command and the snapshot image may be obtained by continuously correcting the snapshot command generation time and obtaining the snapshot image.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media embodying computer-executable instructions that, when executed by one or more processors 101, cause the processors 101 to perform the image acquisition method of any of the embodiments described above.
The electronic device 100 and the computer-readable storage medium according to the embodiment of the present application process the audio and the plurality of video materials to form the target video according to the rhythm point of the audio, so that the video materials in the target video are switched at least one rhythm point of the audio, and the video materials can be matched with the rhythm point of the audio without manual adjustment of a user, thereby simply and conveniently improving the expressive force and the impact force of the target video, and making the effect of the target video better.
Fig. 2 is a schematic diagram illustrating internal modules of the electronic device 100 according to an embodiment. The electronic device 100 includes a processor 101, a memory 102 (e.g., a non-volatile storage medium), an internal memory 103, a display device 104, and an input device 105 connected by a system bus 110. The memory 102 of the electronic device 100 stores an operating system and computer-readable instructions, among other things. The computer readable instructions can be executed by the processor 101 to implement the image capturing method according to any one of the above embodiments.
The processor 101 may be used to provide computing and control capabilities, supporting the operation of the entire electronic device 100. The internal memory 103 of the electronic device 100 provides an environment for the execution of computer-readable instructions in the memory 102. The input device 105 may be a key, a trackball, or a touch pad provided on the housing of the electronic device 100, or may be an external keyboard, a touch pad, or a mouse.
It will be appreciated by those skilled in the art that the configurations shown in the figures are merely schematic representations of portions of configurations relevant to the present disclosure, and do not constitute limitations on the electronic devices to which the present disclosure may be applied, and that a particular electronic device may include more or fewer components than shown in the figures, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, and the program may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-only Memory (ROM), or the like.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (11)
1. An image acquisition method for an electronic device, the image acquisition method comprising:
in the process of shooting by the electronic device, acquiring an image output by an image sensor and taking the image as a pre-processing image;
processing the pre-processed image to obtain a video;
and acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as a snapshot image, wherein the resolution of the snapshot image is greater than that of the video.
2. The image acquisition method according to claim 1, wherein said processing said pre-processed image to obtain a video comprises:
reducing the preprocessed image;
and carrying out video coding on the reduced preprocessing image to obtain the video, wherein the resolution of the video is smaller than that of the preprocessing image.
3. The image acquisition method according to claim 1, characterized in that it comprises:
controlling the image sensor to output a plurality of frames of first preprocessed images;
controlling the image sensor to output a frame of second pre-processing image according to the snapshot instruction, wherein the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image;
the processing the pre-processed image to obtain a video, comprising:
processing the plurality of frames of the first pre-processed image and the second pre-processed image to obtain the video, wherein the resolution of the video is the same as that of the first pre-processed image;
the acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as the snapshot image comprises the following steps:
and taking the second preprocessed image as the snapshot image according to the snapshot instruction.
4. The image acquisition method according to claim 1, characterized in that it comprises:
controlling the image sensor to output a first preprocessed image;
controlling the image sensor to output a frame of second pre-processing image every other predetermined frame of image, wherein the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image;
the processing the pre-processed image to obtain a video, comprising:
processing the plurality of frames of the first pre-processed image and the second pre-processed image to obtain the video, wherein the resolution of the video is the same as that of the first pre-processed image;
the acquiring the preprocessed image corresponding to the snapshot instruction according to the snapshot instruction and using the preprocessed image as the snapshot image comprises the following steps:
acquiring the generation time of the snapshot instruction;
and taking one frame of the second preprocessed image corresponding to the generation moment as the snapshot image.
5. The image acquisition method according to claim 4, wherein the taking of the second preprocessed image of the frame corresponding to the generation time as the captured image includes:
acquiring the time required by the snapshot instruction from generation and transmission to the image sensor;
and acquiring a second preprocessed image corresponding to the generation moment according to the required time and taking the second preprocessed image as the snapshot image.
6. An electronic device is characterized by comprising a memory and a processor, wherein the processor is used for acquiring an image output by an image sensor as a pre-processed image in the process of shooting by the electronic device; and for processing the pre-processed image to obtain a video; and the pre-processing image corresponding to the snapshot instruction is obtained according to the snapshot instruction and is used as a snapshot image, and the resolution of the snapshot image is greater than that of the video.
7. The electronic device of claim 6, wherein the processor is configured to downscale the pre-processed image; and the video coding unit is used for carrying out video coding on the reduced preprocessing image to obtain the video, and the resolution of the video is smaller than that of the preprocessing image.
8. The electronic device of claim 6, wherein the processor is configured to control the image sensor to output a plurality of frames of a first pre-processed image; the image sensor is controlled to output a frame of second pre-processing image according to the snapshot instruction, the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image; the multi-frame first pre-processing image and the second pre-processing image are processed to obtain the video, and the resolution of the video is the same as that of the first pre-processing image; and the second preprocessing image is used as the snapshot image according to the snapshot instruction.
9. The electronic device of claim 6, wherein the processor is configured to control the image sensor to output a first pre-processed image; the image sensor is controlled to output a frame of second pre-processing image every other predetermined frame of image, the resolution of the second pre-processing image is greater than that of the first pre-processing image, and the pre-processing image comprises the first pre-processing image and the second pre-processing image; the multi-frame first pre-processing image and the second pre-processing image are processed to obtain the video, and the resolution of the video is the same as that of the first pre-processing image; the generation time for acquiring the snapshot instruction is obtained; and the second preprocessing image corresponding to the generation moment is used as the snapshot image.
10. The electronic device of claim 9, wherein the processor is configured to obtain a time required for the snapshot instruction to be generated and transmitted to the image sensor; and the second preprocessing image corresponding to the generation moment is acquired according to the required time and is used as the snapshot image.
11. A non-transitory computer-readable storage medium containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the image acquisition method of any one of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010799489.9A CN111970440A (en) | 2020-08-11 | 2020-08-11 | Image acquisition method, electronic device, and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010799489.9A CN111970440A (en) | 2020-08-11 | 2020-08-11 | Image acquisition method, electronic device, and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111970440A true CN111970440A (en) | 2020-11-20 |
Family
ID=73364240
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010799489.9A Pending CN111970440A (en) | 2020-08-11 | 2020-08-11 | Image acquisition method, electronic device, and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111970440A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113852756A (en) * | 2021-09-03 | 2021-12-28 | 维沃移动通信(杭州)有限公司 | Image acquisition method, device, equipment and storage medium |
| CN115525188A (en) * | 2022-02-28 | 2022-12-27 | 荣耀终端有限公司 | Shooting method and electronic equipment |
| WO2023016041A1 (en) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | Video processing method and apparatus, electronic device, and storage medium |
| CN115776532A (en) * | 2021-09-07 | 2023-03-10 | 荣耀终端有限公司 | Method and electronic device for capturing images in video |
| CN116033261B (en) * | 2021-10-22 | 2023-10-20 | 荣耀终端有限公司 | A video processing method, electronic device, storage medium and chip |
| WO2024055797A1 (en) * | 2022-09-14 | 2024-03-21 | 荣耀终端有限公司 | Method for capturing images in video, and electronic device |
| US12114061B2 (en) | 2021-10-22 | 2024-10-08 | Honor Device Co., Ltd. | Video processing method and electronic device |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030112340A1 (en) * | 1999-12-24 | 2003-06-19 | Shigeyuki Okada | Digital camera, memory control device usable for it, image processing device and image processing method |
| CN101489043A (en) * | 2008-01-17 | 2009-07-22 | 亚洲光学股份有限公司 | Method for video data processing |
| CN101690163A (en) * | 2007-06-15 | 2010-03-31 | 索尼株式会社 | Shutter time compensation |
| CN102088559A (en) * | 2009-12-03 | 2011-06-08 | 三星电子株式会社 | Digital photographing apparatus and method of controlling the same |
| CN103108118A (en) * | 2011-09-29 | 2013-05-15 | 三星电子株式会社 | Digital image capturing method and apparatus |
| CN103384307A (en) * | 2012-05-03 | 2013-11-06 | 三星电子株式会社 | Image processing apparatus and method |
| CN105684424A (en) * | 2013-11-18 | 2016-06-15 | 苹果公司 | Modeless video and still frame capture |
| CN106210463A (en) * | 2015-05-29 | 2016-12-07 | 佳能株式会社 | Cameras and camera equipment |
-
2020
- 2020-08-11 CN CN202010799489.9A patent/CN111970440A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030112340A1 (en) * | 1999-12-24 | 2003-06-19 | Shigeyuki Okada | Digital camera, memory control device usable for it, image processing device and image processing method |
| CN101690163A (en) * | 2007-06-15 | 2010-03-31 | 索尼株式会社 | Shutter time compensation |
| CN101489043A (en) * | 2008-01-17 | 2009-07-22 | 亚洲光学股份有限公司 | Method for video data processing |
| CN102088559A (en) * | 2009-12-03 | 2011-06-08 | 三星电子株式会社 | Digital photographing apparatus and method of controlling the same |
| CN103108118A (en) * | 2011-09-29 | 2013-05-15 | 三星电子株式会社 | Digital image capturing method and apparatus |
| CN103384307A (en) * | 2012-05-03 | 2013-11-06 | 三星电子株式会社 | Image processing apparatus and method |
| CN105684424A (en) * | 2013-11-18 | 2016-06-15 | 苹果公司 | Modeless video and still frame capture |
| CN106210463A (en) * | 2015-05-29 | 2016-12-07 | 佳能株式会社 | Cameras and camera equipment |
Cited By (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115706767B (en) * | 2021-08-12 | 2023-10-31 | 荣耀终端有限公司 | Video processing method, device, electronic equipment and storage medium |
| WO2023016041A1 (en) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | Video processing method and apparatus, electronic device, and storage medium |
| CN115706767A (en) * | 2021-08-12 | 2023-02-17 | 荣耀终端有限公司 | Video processing method and device, electronic equipment and storage medium |
| US12425535B2 (en) | 2021-08-12 | 2025-09-23 | Honor Device Co., Ltd. | Video processing method and apparatus, electronic device, and storage medium |
| EP4270936A4 (en) * | 2021-08-12 | 2024-08-07 | Honor Device Co., Ltd. | VIDEO PROCESSING METHOD AND APPARATUS, ELECTRONIC DEVICE AND STORAGE MEDIUM |
| CN113852756A (en) * | 2021-09-03 | 2021-12-28 | 维沃移动通信(杭州)有限公司 | Image acquisition method, device, equipment and storage medium |
| CN115776532B (en) * | 2021-09-07 | 2023-10-20 | 荣耀终端有限公司 | A method and electronic device for capturing images during video recording |
| WO2023035920A1 (en) * | 2021-09-07 | 2023-03-16 | 荣耀终端有限公司 | Method for capturing image during filming, and electronic device |
| US12335600B2 (en) | 2021-09-07 | 2025-06-17 | Honor Device Co., Ltd. | Method for capturing image during video recording and electronic device |
| CN115776532A (en) * | 2021-09-07 | 2023-03-10 | 荣耀终端有限公司 | Method and electronic device for capturing images in video |
| CN116033261B (en) * | 2021-10-22 | 2023-10-20 | 荣耀终端有限公司 | A video processing method, electronic device, storage medium and chip |
| US12114061B2 (en) | 2021-10-22 | 2024-10-08 | Honor Device Co., Ltd. | Video processing method and electronic device |
| WO2023160170A1 (en) * | 2022-02-28 | 2023-08-31 | 荣耀终端有限公司 | Photographing method and electronic device |
| CN115525188A (en) * | 2022-02-28 | 2022-12-27 | 荣耀终端有限公司 | Shooting method and electronic equipment |
| WO2024055797A1 (en) * | 2022-09-14 | 2024-03-21 | 荣耀终端有限公司 | Method for capturing images in video, and electronic device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111970440A (en) | Image acquisition method, electronic device, and storage medium | |
| KR102381713B1 (en) | Photographic method, photographic apparatus, and mobile terminal | |
| CN109922372B (en) | Video data processing method and device, electronic equipment and storage medium | |
| CN106060249B (en) | A kind of photographing anti-shake method and mobile terminal | |
| CN107682714B (en) | Method and device for acquiring online video screenshot | |
| CN109040524B (en) | Artifact removal method, device, storage medium and terminal | |
| CN113099122A (en) | Shooting method, shooting device, shooting equipment and storage medium | |
| CN113596294A (en) | Shooting method and device and electronic equipment | |
| KR20200092631A (en) | Apparatus and method for generating slow motion video | |
| KR100902419B1 (en) | An image processing apparatus and method for displaying a captured image without time delay, and a computer-readable recording medium that includes the program and the method. | |
| CN108769738B (en) | Video processing method, video processing device, computer equipment and storage medium | |
| CN112565603A (en) | Image processing method and device and electronic equipment | |
| US20160006938A1 (en) | Electronic apparatus, processing method and storage medium | |
| CN110913118B (en) | Video processing method, device and storage medium | |
| CN115361502A (en) | Shooting method, device, electronic device and storage medium | |
| JPWO2011052492A1 (en) | Portable communication device | |
| CN112887515A (en) | Video generation method and device | |
| CN113301254A (en) | Video recording method, processing method, device, terminal and storage medium | |
| CN107809592A (en) | Method, device, terminal and storage medium for capturing images | |
| CN113891005B (en) | Shooting method and device and electronic equipment | |
| CN118247194A (en) | Image processing method and device, computer readable medium and electronic device | |
| CN112367470A (en) | Image processing method and device and electronic equipment | |
| CN118175352B (en) | Video display adjustment method, device, equipment and storage medium | |
| US20250182241A1 (en) | Deep Learning-Based Fusion Techniques for High Resolution Images | |
| CN114596346B (en) | Image processing method, video processing method, device and electronic equipment |
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: 20201120 |