Image processing method and device, electronic equipment and storage medium
By generating and displaying multiple images with different preset magnifications, the problem of difficulty for users to adjust the image magnification instantly when taking pictures is solved, and the images users need are instantly taken and the user experience is improved.
Patent Information
- Application Number
- CN202311102695.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-29
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, it is difficult for users to adjust the image magnification instantly when taking pictures, resulting in the possibility of missing the shooting moment or the generated images being unable to meet the user's needs.
By responding to the photography command, multiple images with different preset magnifications are generated and displayed, including using cameras of different focal lengths to capture real-time images when the preview screen is stable when the terminal takes pictures, and loading them to different buffers for processing.
Users can directly touch the photo button when taking pictures, and the terminal can display multiple images with different preset magnifications to avoid users missing the shooting moments. Users can retain the required images according to their needs, improving the user experience.
Smart Images

Figure CN119545169A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to an image processing method, device, electronic device and storage medium. Background Art
[0002] In the related art, when the user presses the camera button of the terminal, a single fixed-magnification image will be generated. If the user wants to adjust the image magnification during shooting, he may miss the shooting moment he wants to shoot; if the user does not adjust the image magnification, the captured image may not meet the user's needs. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an image processing method, device, electronic device and storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, including:
[0005] In response to a photographing instruction, generating a plurality of first images with different preset magnifications to be displayed;
[0006] A plurality of the first images with different preset magnifications are displayed.
[0007] Optionally, in response to the photographing instruction, generating a plurality of first images with different preset magnifications to be displayed includes:
[0008] When the preview image is stable when the terminal is taking photos, a plurality of first images with different preset magnifications are generated in response to a photo taking instruction; wherein the preview image is stable including at least one of the following:
[0009] The exposure value of the preview image reaches a first convergence condition, the white balance of the preview image reaches a second convergence condition, and the focus of the preview image reaches a third convergence condition.
[0010] Optionally, displaying a plurality of first images with different preset magnifications includes:
[0011] Simultaneously displaying a plurality of the first images with different preset magnifications on the same display page, or;
[0012] A plurality of the first images with different preset magnifications are displayed on different display pages.
[0013] Optionally, displaying a plurality of first images with different preset magnifications includes:
[0014] Cropping at least one first image among a plurality of the first images with different preset magnifications to obtain a second image with a target magnification;
[0015] The second image and a plurality of the first images with different magnifications are displayed.
[0016] Optionally, in response to the photographing instruction, generating a plurality of first images with different preset magnifications to be displayed includes:
[0017] In response to the photographing instruction, loading the photographed real-time images of different preset magnifications into different buffers;
[0018] The real-time images in different buffers are processed to obtain first images with different preset magnifications.
[0019] Optionally, in response to the photographing instruction, loading the captured real-time images of different preset magnifications into different buffers includes:
[0020] In response to the photographing instruction, using cameras with different focal lengths to photograph the real-time images at different preset magnifications;
[0021] The real-time images with different preset magnifications are loaded into different buffers.
[0022] Optionally, in response to the photographing instruction, generating a plurality of first images with different preset magnifications to be displayed includes:
[0023] In response to a trigger operation on a preset button on the terminal, generating the photo-taking instruction; the preset button is a virtual button or a physical button;
[0024] In response to a photographing instruction, a plurality of first images with different preset magnifications are generated.
[0025] Optionally, the method further comprises:
[0026] In response to a confirmation operation of retaining a target image from the plurality of first images, the target image is retained and / or the first images other than the target image are deleted.
[0027] Optionally, the method further comprises:
[0028] In response to a focusing operation on a target object displayed in a preview screen of the terminal, the target object is displayed in the first image.
[0029] Optionally, the plurality of first images with different preset magnifications are acquired by capturing with cameras with different focal lengths, and / or are acquired by cropping after being photographed by the camera.
[0030] According to a second aspect of an embodiment of the present disclosure, there is provided an image processing apparatus, including:
[0031] A generating module, configured to generate a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction;
[0032] The display module is configured to display a plurality of the first images with different preset magnifications.
[0033] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0034] processor;
[0035] a memory for storing processor-executable instructions;
[0036] Wherein, the processor is configured to:
[0037] Execute the steps of the image processing method provided in the first aspect of the embodiment of the present disclosure.
[0038] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided in the first aspect of the present disclosure are implemented.
[0039] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0040] Through the above technical solution, when taking photos, the user can directly trigger the photo button, and the terminal can respond to the photo instruction and display multiple first images with different preset magnifications.
[0041] During this process, on the one hand, the user directly triggers the photo-taking command without adjusting the image magnification during shooting, and multiple first images with different preset magnifications can be displayed, thereby preventing the user from missing the shooting moment they want to shoot; on the other hand, since among the multiple first images with different preset magnifications displayed, there are images with the magnification required by the user, the user can retain the images he or she requires, thereby improving the user experience.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] 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 present disclosure.
[0044] Figure 1 The figure is a flowchart showing a method for image processing according to an exemplary embodiment.
[0045] Figure 2 It is a schematic diagram showing images at different focal lengths according to an exemplary embodiment.
[0046] Figure 3The diagram is a schematic diagram showing a method of generating a plurality of first images with different preset magnifications according to an exemplary embodiment.
[0047] Figure 4 is a schematic diagram showing an image to be cropped according to an exemplary embodiment.
[0048] Figure 5 The figure is a schematic diagram showing the position of a preview picture on a terminal screen according to an exemplary embodiment.
[0049] Figure 6 The figure is a schematic diagram showing a focus area according to an exemplary embodiment.
[0050] Figure 7 The diagram is a schematic diagram showing a method of displaying a plurality of first images with different preset magnifications on the same page according to an exemplary embodiment.
[0051] Figure 8 The diagram is a schematic diagram showing a method of displaying a plurality of first images with different preset magnifications on different pages according to an exemplary embodiment.
[0052] Fig. 9 The figure is a schematic diagram showing a physical button according to an exemplary embodiment.
[0053] Fig.10 is a block diagram of an image processing apparatus according to an exemplary embodiment.
[0054] Fig.11 is a block diagram of an image processing apparatus according to an exemplary embodiment. DETAILED DESCRIPTION
[0055] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0056] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0057] In the related art, when a user presses a camera button of a terminal, a single fixed-magnification image is generated. The fixed-magnification image may be a 1x image or the magnification saved when the user last exited the camera.
[0058] If the user wants to adjust the image magnification when shooting, the moment they want to shoot may be missed when adjusting the image magnification. For example, when the user is shooting a distant object such as a vehicle and adjusts the image magnification from 1x to 2x, the vehicle may have moved out of the field of view while the user is adjusting the image magnification from 1x to 2x, and the user will not be able to shoot the vehicle.
[0059] If the user does not adjust the image magnification, the captured image may have poor image quality, and the generated image may not meet the user's expectations, thus failing to meet the user's needs. For example, when a user uses a fixed magnification of 0.6 to shoot a distant vehicle, since the vehicle is small in the image, the user may enlarge the image and crop it to display the distant vehicle. However, after the image is enlarged and cropped, the clarity will be reduced, resulting in a blurry displayed vehicle, thus failing to meet the user's demand for image clarity.
[0060] Based on this, the present disclosure proposes an image processing method. Figure 1 is a flowchart of an image processing method according to an exemplary embodiment. Figure 1 As shown, the image processing method is used in a terminal and includes the following steps.
[0061] In step S11 , in response to a photographing instruction, a plurality of first images with different preset magnifications are generated to be displayed.
[0062] The photographing instruction is used to trigger the terminal to perform a photographing operation, thereby generating a plurality of first images with different preset magnifications to be displayed.
[0063] The preset zoom ratio is a parameter used to describe the zoom range of a camera, indicating the zoom ratio of the camera from short focal length to long focal length. For example, if the zoom range of a camera is from 24mm to 120mm, then the preset ratio is 1x to 5x. The camera can provide a zoom capability of 1x to 5x, and the first images of different preset ratios are collected by cameras of different focal lengths.
[0064] See also Figure 2As shown, different preset magnifications correspond to different focal lengths and fields of view (FOV). The smaller the preset magnification, the smaller the focal length and the larger the field of view; conversely, the larger the preset magnification, the larger the focal length and the smaller the field of view. For example, the first preset magnification of 0.6 corresponds to a focal length of 14mm and a field of view of 90°, and the captured image can only show the straight path; the second preset magnification of 1 corresponds to a focal length of 28mm and a field of view of 53°, and the captured image can not only show the straight path, but also the curved path at the end of the path; the third preset magnification of 2 corresponds to a focal length of 50mm and a field of view of 31°, which can show houses in the distance; the fourth preset magnification corresponds to a focal length of 200mm and a field of view of 8°, which can show houses farther away. The longer the focal length, the larger the preset magnification, the smaller the field of view, and the farther the object that can be captured.
[0065] The field of view refers to the range that can be observed in the camera. Figure 2 As shown, the larger the field of view, the wider the range that the camera can capture, but the objects in the picture will appear smaller; conversely, the smaller the field of view, the smaller the range that can be captured, but the objects in the picture will appear larger.
[0066] The terminal can be equipped with several types of cameras, including the main camera, ultra-wide-angle lens, zoom lens and macro lens. The main camera is the core camera for most photo and video shooting. It has high pixels and optical performance, and can provide clear and delicate images. The ultra-wide-angle camera has a wider field of view and is used to shoot wide scenes, such as landscapes, buildings or group photos, and can capture the details of the picture with a larger field of view. The zoom lens has optical zoom capability and can achieve long-distance shooting, allowing the photographer to zoom in and out without moving the position, and can shoot distant objects or details. The macro lens is used to shoot small objects at a close distance, such as flowers, insects, etc. It has a short focus distance and high magnification, and can capture the details of tiny objects.
[0067] In the disclosed embodiment, the plurality of first images with different preset magnifications are acquired by capturing with cameras with different focal lengths, and / or are acquired by cropping after being photographed by the camera.
[0068] When a photo-taking instruction is obtained, different types of cameras on the terminal can be controlled to shoot the first image with focal lengths and fields of view corresponding to different preset magnifications, thereby generating first images with different preset magnifications. For example, the ultra-wide-angle camera on the terminal can be controlled to shoot a first image with a magnification of 0.6 with a focal length and field of view corresponding to 0.6; the main camera on the terminal can be controlled to shoot a first image with a magnification of 1 with a focal length and field of view corresponding to 1, and the zoom lens on the terminal can be controlled to shoot a first image with a focal length and field of view corresponding to 2, thereby generating first images with three preset magnifications of 0.6, 1 and 2. It can be understood that, in response to the photo-taking instruction, the terminal can simultaneously control cameras with different focal lengths, such as the main camera, the ultra-wide-angle camera and the zoom lens, to shoot, so as to obtain first images with different preset magnifications.
[0069] For another example, after the first image is acquired by a camera with a fixed focal length (such as an ultra-wide-angle camera), the first image with a magnification of 0.6 can be cropped to a first image with a magnification of 0.8.
[0070] In step S12, a plurality of first images with different preset magnifications are displayed.
[0071] After acquiring the first images of different preset magnifications of the terminal, the first images of different preset magnifications can be displayed in the photo album of the terminal, and the user can select at least one of the first images to keep according to his / her own needs.
[0072] In the related art, when the user does not adjust the image magnification to shoot a distant object, the user can magnify the distant object in the image by cropping. Figure 4 As shown, the image taken by the user shows a scene of "people dancing on the stage with many audiences under the stage". When the user wants to show only the people dancing on the stage in the image, the image can be cropped to remove the audience from the image and retain the image of the people dancing on the stage. However, the clarity of the image of the people dancing on the stage obtained after cropping will decrease and the image will be blurry.
[0073] In the present disclosure, images are captured simultaneously with different focal lengths, so that first images with different preset magnifications can be generated. For example, when a user triggers a photo button, 0.6x, 1x, and 2x images of "people dancing on the stage with many audiences under the stage" will be captured simultaneously through multiple types of cameras. The 2x image can clearly show the person dancing on the stage. The 2x image not only meets the user's need to shoot distant objects, but also retains image clarity, so the user can keep the 2x image.
[0074] It can be understood that the reason why the present disclosure can display a first image with a large preset magnification of 2 times while retaining image clarity compared to the related art is that the present disclosure uses a zoom lens type camera to shoot a first image with a larger preset magnification. The zoom lens has a larger focal length, so it can clearly capture distant objects.
[0075] Through the above technical solution, when taking photos, the user can directly trigger the photo button, and the terminal can respond to the photo instruction and display multiple first images with different preset magnifications.
[0076] During this process, on the one hand, the user does not need to adjust the image magnification during shooting, and multiple first images with different preset magnifications can be displayed, thereby preventing the user from missing the shooting moment they want to shoot; on the other hand, since among the multiple first images with different preset magnifications displayed, there are images with the magnification required by the user, the user can retain the images he or she needs, thereby improving the user experience.
[0077] The optional embodiments and specific embodiments involved in the above steps S11 to S12 are introduced below.
[0078] Figure 3 A schematic diagram of generating multiple first images with different preset magnifications is shown. Generating multiple first images with different preset magnifications includes: generating multiple first images with different preset magnifications in response to a photo taking instruction when the preview screen is stable when the terminal takes photos.
[0079] The stabilization of the preview image includes at least one of the following: the exposure value of the preview image reaches a first convergence condition, the white balance of the preview image reaches a second convergence condition, and the focus of the preview image reaches a third convergence condition.
[0080] See also Figure 5 As shown, the preview screen refers to when the terminal's camera is turned on and ready to shoot, the terminal screen will display the real-time picture captured by the camera, so that the user can see the preview screen and adjust the shooting angle and shooting parameters, and then shoot the picture they need.
[0081] 3A convergence is understood when the exposure value of the preview image reaches the first convergence condition, the white balance of the preview image reaches the second convergence condition, and the focus of the preview image reaches the third convergence condition.
[0082] Exposure is the brightness level in an image. Appropriate exposure can make an image look bright and detailed. Overexposure will make the image too bright, and underexposure will make the image dark. The terminal is equipped with an automatic exposure function. The camera can automatically adjust parameters such as shutter speed, aperture size and sensitivity according to the ambient light to obtain the appropriate exposure value. When the exposure value reaches the first convergence condition, it means that the image in the preview screen is neither too bright nor too dark.
[0083] White balance is to adjust the color temperature in the image so that the white area looks real and has no color deviation. Different light sources such as daylight, incandescent lamps and fluorescent lamps will produce different color temperatures. The terminal is equipped with an automatic white balance function. The camera can automatically monitor the color temperature of the ambient light and adjust the color information of the image accordingly to make the presented color closer to the real environment.
[0084] Focusing is the process of ensuring a clear image. The terminal is equipped with an autofocus function. When the autofocus function is turned on, the terminal will analyze the clarity and distance of the target object and automatically adjust the focal length of the camera to keep the target object in clear focus. When the focus reaches the third convergence condition, it means that the image in the preview screen is clear enough.
[0085] When the user triggers the camera to start and enters the 3A convergence process, when the picture content in the preview screen of the terminal is stable, it means that cameras with different focal lengths and fields of view are ready. At this time, in response to the photo command triggered by the user, multiple cameras with different focal lengths and fields of view can be used to simultaneously capture the first images with different preset magnifications.
[0086] Through the above technical solution, the terminal responds to the photo command only when the preview picture of the photo is stable, so that the exposure value, white balance and focus of the first image taken can be automatically adjusted to appropriate values, so that the quality of the presented first image is better.
[0087] Figure 6 A schematic diagram of displaying a first image with a magnification ratio greater than single magnification is shown, and displaying the first image with a magnification ratio greater than single magnification includes: in response to a focusing operation on a target object displayed in a preview screen of a terminal, displaying the target object in the first image.
[0088] The single magnification refers to a preset magnification of 1 times, and the first image with a magnification greater than the single magnification refers to a first image with a preset magnification greater than 1 times, such as 1.5 times, 1.7 times, 2 times, etc.
[0089] The focusing operation may be a touch operation of the user on the target object in the preview image, or may be a focusing operation of the terminal automatically focusing on the target object.
[0090] See also Figure 2As shown in the figure, when the preset magnification increases, the focal length increases and the field of view decreases accordingly. Therefore, due to the reduction in the field of view, some objects cannot be displayed in the image, such as Figure 2 The image on the far right can only show the houses in the distance, but cannot show the path close to the terminal. At this time, the terminal can determine the target object that the user wants to lock based on the focus area touched by the user on the preview screen of the terminal, and display the locked target object when displaying the first image with a preset magnification.
[0091] For example, see Figure 6 As shown in FIG. 1 , in the scene of “people dancing on the stage and there are many audiences under the stage”, if the user wants to focus on shooting the scene of “people dancing on the stage”, the user will click “dancing people” on the preview screen of the terminal screen, thereby focusing the camera on “dancing people” ( Figure 6 The dotted box in the figure is the focus area), then the terminal can lock the target object that the user wants to lock as the "dancing person". Then when the 2x image is displayed, the "dancing person" locked by the user will be displayed in the 2x image, while the "audience under the stage" will not be displayed in the 2x image.
[0092] For another example, in the scenario of "people dancing on the stage and there are many audiences under the stage", if the user does not click on "the dancing people" and the terminal automatically focuses on the "dancing people", the first image of the "dancing people" can also be directly displayed in the 2x image, while the "audience under the stage" will not be displayed in the 2x image.
[0093] Through the above technical solution, when a first image with a magnification greater than single magnification is generated, the target object triggered by the user or automatically triggered by the terminal can be automatically displayed in the first image, so that the target object in the displayed first image is what the user wants to see, thereby improving the user experience.
[0094] Figure 7 and Figure 8 A schematic diagram showing a plurality of first images with different preset magnifications is shown, see Figure 7 and Figure 8 As shown, displaying multiple first images with different preset magnifications includes the following two methods:
[0095] Mode 1: Displaying a plurality of the first images with different preset magnifications on the same display page at the same time.
[0096] See also Figure 7 As shown, when the user clicks the shooting button to trigger the photo command, the terminal generates multiple first images with different preset magnifications. If the user clicks Figure 7The album button shown can simultaneously display multiple first images with different preset magnifications on one page, so that the user can directly keep the first images he needs on the page and delete the other unnecessary first images.
[0097] It can be understood that, in response to the confirmation operation of retaining the target image from the plurality of first images, the target image is retained and / or the first images other than the target image are deleted.
[0098] For example, the terminal displays the first images with preset magnifications of 0.6, 1, and 2, and when the user confirms to keep the 2-fold image, in order to avoid the user from making additional operations, the terminal can actively delete the first images with magnifications of 0.6 and 1. Of course, the terminal may not help the user delete the first images other than the target image, and the present disclosure does not limit this.
[0099] Mode 2: Displaying a plurality of the first images with different preset magnifications on different display pages.
[0100] See also Figure 8 As shown, when the user clicks the shooting button to trigger the photo command, the terminal generates multiple first images with different preset magnifications. If the user clicks Figure 8 The album button shown can display a first image of a preset magnification on the terminal screen. If the user needs to view other first images of preset magnifications, the user can slide the image left or right to view the first images of other magnifications.
[0101] For example, if a user clicks Figure 8 After clicking the album button shown, a first image with a preset magnification of 0.6 times will pop up on the terminal screen. If the user wants to view the first image with a preset magnification of 1 times, the user can slide the first image to the left, so that the first image with a preset magnification of 1 times will be displayed on the terminal screen.
[0102] Through the above technical solution, when multiple first images with different preset magnifications are displayed on the same page, it is convenient for users to perform the retention and deletion operations of the first image on the same page without having to slide the page to delete the first image; when multiple first images with different preset magnifications are displayed on different pages, it is convenient for users to view the details of the first images with different preset magnifications on different pages, thereby facilitating users to decide which first images with preset magnifications should be deleted.
[0103] Figure 7 and Figure 8 A method for displaying multiple first images with different preset magnifications is shown. Displaying multiple first images with different preset magnifications includes: cropping at least one first image among the multiple first images with different preset magnifications to obtain a second image with a target magnification; and displaying the second image and the multiple first images with different magnifications.
[0104] The target magnification of the cropped second image is greater than the preset magnification of the first image before cropping, and the difference between the target magnification and the preset magnification is less than a preset value, which may be 0.3.
[0105] For example, the terminal generates a first image at 0.6 times, 1 times, and 2 times. When cropping, the 0.6 times first image can be cropped into a 0.8 times second image, the 1 times first image can be cropped into a 1.2 times second image, and the 2 times first image can be cropped into a 2.2 times second image. When displaying, the 0.6 times, 0.8 times, 1 times, 1.2 times, 2 times, and 2.2 times images can all be displayed.
[0106] Through the above technical solution, multiple first images with different preset magnifications can be cropped to obtain a second image with a target magnification. On the one hand, more images with preset magnifications can be provided for users to choose from, so that users can select images with magnifications they need; on the other hand, when cropping, the target magnification obtained by cropping is slightly larger than the preset magnification of the first image before cropping, so the clarity of the obtained second image will not be greatly affected.
[0107] Figure 3 A schematic diagram of generating a plurality of first images with different preset magnifications is shown, and generating a plurality of first images with different magnifications includes the following steps:
[0108] In step S21, in response to the photographing instruction, the captured real-time images of different preset magnifications are loaded into different buffers.
[0109] Different buffers are used to temporarily store real-time images with different preset magnifications, and the same buffer is used to temporarily store real-time images with the same preset magnification.
[0110] For example, the first buffer is used to temporarily store real-time images with a preset magnification of 0.6 times; the second buffer is used to temporarily store real-time images with a preset magnification of 1 times; and the third buffer is used to temporarily store real-time images with a preset magnification of 2 times.
[0111] There are multiple real-time images of the same preset magnification loaded in the same buffer, so the multiple real-time images of the same preset magnification loaded in the same buffer can be spliced, smoothed, cropped, etc., so that the first image of the preset magnification displayed is obtained by processing multiple real-time images.
[0112] Loading into different buffers includes: in response to the photographing instruction, using cameras with different focal lengths to shoot the real-time images with different preset magnifications; and loading the real-time images with different preset magnifications into different buffers.
[0113] The preset magnifications of the real-time images captured by cameras with different focal lengths are different, so the real-time images with different preset magnifications captured by cameras with different focal lengths can be loaded into different buffers.
[0114] In step S22, the real-time images in the different buffers are processed to obtain first images with different preset magnifications.
[0115] Multiple real-time images output from the same buffer are stitched, smoothed, cropped, etc. to obtain a first image with the same preset magnification.
[0116] Through the above technical solution, by using different buffers to temporarily store real-time images with different preset magnifications, when performing image processing, the buffer can be used as a division unit, and multiple real-time images output by one buffer can be centrally processed, while multiple real-time images output by another buffer can be centrally processed, so that the processes of processing multiple first images with different preset magnifications are independent of each other, thereby avoiding mutual influence between the processing processes of multiple real-time images with different preset magnifications.
[0117] Figure 5 and Fig. 9 The following two methods are shown:
[0118] Mode 1: In response to a triggering operation on a preset button on the terminal, the photographing instruction is generated; in response to the photographing instruction, a plurality of first images with different preset magnifications are generated, and the preset button is a virtual button.
[0119] See also Figure 5 As shown, Figure 5 The center of the terminal screen is a preview screen, the left side is an album button, the middle is a virtual button, that is, a virtual photo button, and the right side is a flip button for flipping the camera; when the user touches the virtual button, the terminal can generate a photo instruction in response to the user's triggering operation of the virtual button, and generate multiple first images with different preset magnifications for the user.
[0120] Mode 2: In response to a triggering operation on a preset button on the terminal, the photographing instruction is generated; in response to the photographing instruction, a plurality of first images with different preset magnifications are generated, and the preset button is a physical button.
[0121] See also Fig. 9 As shown, the volume +, volume - and power buttons are arranged from top to bottom on the right side of the terminal. The physical button can be any one of the volume +, volume - and power buttons. When the user long presses the volume - or double-clicks the power button, the terminal can generate a photo-taking instruction in response to the user's triggering operation of the physical button, and generate multiple first images with different preset magnifications for the user.
[0122] Of course, the above-mentioned setting of the volume +, volume - and power button is only an example. The volume - and power button can be set according to actual needs in an actual terminal, and the present disclosure does not limit this.
[0123] Through the above technical solution, the user can quickly trigger a photo-taking command by touching a virtual button or pressing a physical button, thereby generating a plurality of first images with different preset magnifications for the user.
[0124] Fig.10 is a block diagram of an image processing device according to an exemplary embodiment. Fig.10 The image processing device 1000 includes a generating module 1010 and a display module 1020 .
[0125] The generating module 1010 is configured to generate a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction;
[0126] The display module 1020 is configured to display a plurality of the first images with different preset magnifications.
[0127] Optionally, the generating module 1010 includes:
[0128] The first generating submodule is configured to generate a plurality of first images with different preset magnifications in response to a photographing instruction when the preview image is stable when the terminal photographs; wherein the preview image is stable including at least one of the following:
[0129] The exposure value of the preview image reaches a first convergence condition, the white balance of the preview image reaches a second convergence condition, and the focus of the preview image reaches a third convergence condition.
[0130] Optionally, the display module 1020 includes:
[0131] The first display submodule is configured to simultaneously display a plurality of the first images with different preset magnifications on the same display page, or to display a plurality of the first images with different preset magnifications on different display pages.
[0132] Optionally, the display module 1020 includes:
[0133] A cropping submodule, configured to crop at least one first image among a plurality of the first images with different preset magnifications to obtain a second image with a target magnification;
[0134] The second display submodule is configured to display the second image and a plurality of the first images with different magnifications.
[0135] Optionally, the generating module 1010 includes:
[0136] A first loading submodule is configured to load the captured real-time images of different preset magnifications into different buffers in response to the photographing instruction;
[0137] The second generating submodule is configured to process the real-time images in different buffers to obtain first images with different preset magnifications.
[0138] Optionally, the first loading submodule includes:
[0139] A collection submodule is configured to respond to the photographing instruction and use cameras with different focal lengths to photograph the real-time images with different preset magnifications;
[0140] The second loading submodule is configured to load the real-time images with different preset magnifications into different buffers.
[0141] Optionally, the generating module 1010 includes:
[0142] A first trigger submodule is configured to generate the photo-taking instruction in response to a trigger operation on a preset button on the terminal; the preset button is a virtual button or a physical button;
[0143] The second trigger submodule is configured to generate a plurality of first images with different preset magnifications in response to a photographing instruction.
[0144] Optionally, the image processing apparatus 1000 includes:
[0145] The focusing module is configured to display the target object in the first image in response to a focusing operation on the target object displayed in the preview screen of the terminal.
[0146] Optionally, the plurality of first images with different preset magnifications are acquired by capturing with cameras of different focal lengths and / or are cropped after being photographed by the cameras.
[0147] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0148] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the image processing method provided by the present disclosure are implemented.
[0149] Fig.11 1 is a block diagram of an apparatus 1100 for image processing according to an exemplary embodiment. For example, the apparatus 1100 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0150] Reference Fig.11 , the device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output interface 1112 , a sensor component 1114 , and a communication component 1116 .
[0151] The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to complete all or part of the steps of the above-mentioned image processing method. In addition, the processing component 1102 may include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0152] The memory 1104 is configured to store various types of data to support the operation of the device 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0153] The power supply component 1106 provides power to the various components of the device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1100.
[0154] The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0155] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the device 1100 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.
[0156] The input / output interface 1112 provides an interface between the processing component 1102 and the 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.
[0157] The sensor assembly 1114 includes one or more sensors for providing various aspects of the status assessment of the device 1100. For example, the sensor assembly 1114 can detect the open / closed state of the device 1100, the relative positioning of components, such as the display and keypad of the device 1100, the sensor assembly 1114 can also detect the position change of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration / deceleration of the device 1100, and the temperature change of the device 1100. The sensor assembly 1114 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0158] The communication component 1116 is configured to facilitate wired or wireless communication between the device 1100 and other devices. The device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0159] In an exemplary embodiment, the device 1100 can 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, microcontrollers, microprocessors or other electronic components to perform the above-mentioned image processing method.
[0160] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the instructions can be executed by the processor 1120 of the device 1100 to complete the above-mentioned image processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0161] In addition to being an independent electronic device, the above-mentioned device can also be a part of an independent electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be an IC or a collection of multiple ICs; the chip can include but is not limited to the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), SOC (System on Chip, SoC), etc. The above-mentioned integrated circuit or chip can be used to execute executable instructions (or codes) to implement the above-mentioned image processing method. The executable instructions can be stored in the integrated circuit or chip, or can be obtained from other devices or equipment, such as the integrated circuit or chip includes a processor, a memory, and an interface for communicating with other devices. The executable instruction may be stored in the memory, and when the executable instruction is executed by the processor, the above-mentioned image processing method may be implemented; alternatively, the integrated circuit or chip may receive the executable instruction through the interface and transmit it to the processor for execution, so as to implement the above-mentioned image processing method.
[0162] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned image processing method when executed by the programmable device.
[0163] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0164] It should be understood that the present disclosure is not limited to the exact structures 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
1. An image processing method, characterized in that: include: In response to a photographing instruction, generating a plurality of first images with different preset magnifications to be displayed; A plurality of the first images with different preset magnifications are displayed.
2. The method according to claim 1, characterized in that The step of generating a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction comprises: When the preview image is stable when the terminal is taking photos, a plurality of first images with different preset magnifications are generated in response to a photo taking instruction; wherein the preview image is stable including at least one of the following: The exposure value of the preview image reaches a first convergence condition, the white balance of the preview image reaches a second convergence condition, and the focus of the preview image reaches a third convergence condition.
3. The method according to claim 1, characterized in that The displaying of a plurality of first images with different preset magnifications includes: Simultaneously displaying a plurality of the first images with different preset magnifications on the same display page, or; A plurality of the first images with different preset magnifications are displayed on different display pages.
4. The method according to claim 3, characterized in that The displaying of a plurality of first images with different preset magnifications includes: Cropping at least one first image among a plurality of the first images with different preset magnifications to obtain a second image with a target magnification; The second image and a plurality of the first images with different magnifications are displayed.
5. The method according to claim 1, characterized in that: The step of generating a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction comprises: In response to the photographing instruction, loading the photographed real-time images of different preset magnifications into different buffers; The real-time images in different buffers are processed to obtain first images with different preset magnifications.
6. The method according to claim 5, characterized in that The step of loading the captured real-time images of different preset magnifications into different buffers in response to the photographing instruction includes: In response to the photographing instruction, using cameras with different focal lengths to photograph the real-time images at different preset magnifications; The real-time images with different preset magnifications are loaded into different buffers.
7. The method according to claim 1, characterized in that The step of generating a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction comprises: In response to a trigger operation on a preset button on the terminal, generating the photo-taking instruction; the preset button is a virtual button or a physical button; In response to a photographing instruction, a plurality of first images with different preset magnifications are generated.
8. The method according to claim 1, characterized in that: The method further comprises: In response to a confirmation operation of retaining a target image from the plurality of first images, the target image is retained and / or the first images other than the target image are deleted.
9. The method according to claim 1, characterized in that: The method further comprises: In response to a focusing operation on a target object displayed in a preview screen of the terminal, the target object is displayed in the first image.
10. The method according to claim 1, characterized in that The plurality of first images with different preset magnifications are acquired by capturing with cameras with different focal lengths, and / or are acquired by cropping after being photographed by the cameras.
11. An image processing device, characterized in that: include: A generating module, configured to generate a plurality of first images with different preset magnifications to be displayed in response to a photographing instruction; The display module is configured to display a plurality of the first images with different preset magnifications.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 10.
13. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 10 are implemented.