WO2022007622A1 - 图像的获取方法、终端设备和计算机可读存储介质 - Google Patents
图像的获取方法、终端设备和计算机可读存储介质 Download PDFInfo
- Publication number
- WO2022007622A1 WO2022007622A1 PCT/CN2021/101320 CN2021101320W WO2022007622A1 WO 2022007622 A1 WO2022007622 A1 WO 2022007622A1 CN 2021101320 W CN2021101320 W CN 2021101320W WO 2022007622 A1 WO2022007622 A1 WO 2022007622A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image information
- camera
- target
- picture
- preview
- 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.)
- Ceased
Links
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/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
-
- 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
Definitions
- the present application relates to the technical field of image processing, and in particular, to an image acquisition method, a terminal device, and a computer-readable storage medium.
- the shooting functions of terminal equipment are also becoming more and more advanced.
- today's terminal equipment can capture images in ultra-wide-angle, wide-angle, and telephoto, and ultra-wide-angle and wide-angle can achieve large-angle shooting, which can be applied to different shooting scenarios with telephoto shooting.
- the terminal equipment that realizes ultra-wide-angle, wide-angle and telephoto shooting on the market generally has at least three cameras, such as ultra-wide-angle camera, wide-angle camera and telephoto camera, etc.
- Ultra-wide-angle images are taken with ultra-wide-angle cameras, and wide-angle images are taken.
- the camera preview interface is formed with the preview data collected by the default camera, and then the user sets the zoom value according to the camera preview interface.
- the camera identifies the camera corresponding to the set zoom value, and then starts the corresponding camera.
- the camera picks up the image data and displays it in the camera preview interface. After the user presses to take a photo, the camera is used to obtain the image.
- the terminal device is still imaged by a single camera in the end, and the imaging effect is not good.
- the main purpose of the present application is to provide an image acquisition method, a terminal device and a computer-readable storage medium, which aims to solve the technical problem of poor imaging effect of the terminal device.
- the present application provides an image acquisition method
- the terminal device includes at least two cameras
- the image acquisition method includes the following steps:
- the focal lengths captured by the cameras are different, and the step of forming the camera preview interface includes:
- the main preview image information is image information picked up by the target camera
- the supplemental preview image information is image information picked up by other cameras except the target camera.
- the step of merging the main preview image information and the supplementary preview image information to form the camera preview interface includes:
- the area overlapping with the main preview image information in the supplementary preview image information is merged into the main preview image information to form the camera preview interface.
- the step of merging the area overlapping with the main preview image information in the supplementary preview image information into the main preview image information, forming the camera preview interface includes:
- the camera preview interface is formed by converting each pixel into a pixel plane corresponding to the main preview image information according to the coordinate position.
- the target camera is a camera corresponding to the preset zoom value, wherein the target camera includes at least one of a wide-angle camera, a telephoto camera, and an ultra-wide-angle camera.
- the step of generating a picture according to the camera preview interface it further includes:
- the method further includes:
- the edited preview data of the target image is generated according to the target image information.
- the step of acquiring target image information corresponding to the editing parameters from image information associated with the picture includes:
- the image information picked up by the target camera is used as the target image information.
- the step of generating the edited target image preview data according to the target image information includes:
- the target image information is adjusted according to the zoom value, and the edited target image preview data is generated based on the adjusted target image information.
- the step of generating the edited target image preview data according to the target image information includes:
- the edited target picture preview data is generated according to the target image information and other image information associated with the picture.
- the focal length where the zoom value of the adjusted picture is located is greater than the focal length where the current zoom value of the picture is located;
- the focal length where the zoom value of the adjusted picture is located is smaller than the focal length where the current zoom value of the picture is located.
- the method when the editing operation is cropping, after the step of generating the edited target image preview data according to the target image information, the method further includes:
- the editing parameters include at least one of magnification, reduction and cropping size.
- the present application also provides a method for acquiring an image, and the method for acquiring an image includes:
- the edited preview data of the target image is generated according to the target image information.
- the picture when the picture is generated, it is associated with image information collected by at least two cameras;
- the photographing trigger operation of the picture is associated with at least two pieces of acquired image information, and the at least two pieces of the image information include the image information of the picture.
- the step of acquiring target image information corresponding to the editing parameters according to at least two image information associated with the picture includes:
- the image information picked up by the target camera is used as the target image information, wherein at least two image information are collected based on cameras with different focal lengths.
- At least two of the focal lengths include at least two zoom values
- the step of generating the edited target image preview data according to the target image information includes:
- the target image information is adjusted according to the zoom value, and the edited target image preview data is generated based on the adjusted target image information.
- the present application also provides a terminal device, including: a memory, a processor, and an image acquisition program stored on the memory and executable on the processor, where the image acquisition program is executed as described above when executed by the processor Each step of the image acquisition method.
- the processor includes at least two image processing modules, each of which is connected to a camera.
- the present application also provides a computer-readable storage medium on which an image acquisition program is stored, and when the image acquisition program is executed by a processor, implements each step of the above-described image acquisition method .
- An image acquisition method, a terminal device, and a computer-readable storage medium proposed in the embodiments of the present application.
- the terminal device turns on at least two cameras, and controls the at least two cameras to pick up image information respectively. , generating a camera preview interface based on the image information picked up by the camera, and generating a picture according to the camera preview interface when a photographing trigger operation is detected. Since the picture is formed by merging different image information simultaneously collected by at least two cameras, the clarity of the background and the background of the picture and the stereoscopic effect of the image in the picture are improved, so that the imaging effect of the camera is good.
- FIG. 1 is a schematic structural diagram of a terminal of a hardware operating environment involved in a solution according to an embodiment of the present application
- FIG. 2 is a schematic flowchart of a first embodiment of an image acquisition method of the application
- Fig. 3 is the refinement flow chart of step S10 in Fig. 2;
- FIG. 4 is a schematic flow chart of the refinement of step S12 in the second embodiment of the image acquisition method of the present application.
- FIG. 5 is a schematic flowchart of a third embodiment of a method for acquiring an image of the application
- FIG. 6 is a schematic flow chart of the refinement of step S60 in FIG. 5;
- FIG. 7 is a schematic flowchart of a fourth embodiment of a method for acquiring an image of the application
- FIG. 8 is a schematic diagram of a hardware system involved in a method for acquiring an image of the application
- FIG. 9 is a schematic diagram of a mobile terminal in which the image acquisition method of the present application operates.
- FIG. 10 is a schematic interface diagram of the mobile terminal of the present application.
- the main solutions of the embodiments of the present application are: turn on at least two of the cameras, control the at least two cameras to pick up image information respectively, and form a camera preview interface; when detecting a photo-taking trigger operation, generate a camera preview interface according to the camera preview interface. picture.
- FIG. 1 is a schematic structural diagram of a terminal device of a hardware operating environment involved in the solution of the embodiment of the present application.
- the terminal device in this embodiment of the present application may be a PC, or may be a terminal device with a photographing function, such as a smart phone and a tablet computer.
- the terminal device may include: a processor 1001 , such as a CPU, a network interface 1004 , a user interface 1003 , a memory 1005 , and a communication bus 1002 .
- the communication bus 1002 is used to realize the connection and communication between these components.
- the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
- the network interface 1004 may include a standard wired interface and a wireless interface (eg, a WI-FI interface).
- the memory 1005 may be high-speed RAM memory, or may be non-volatile memory, such as disk memory.
- the memory 1005 may also be a storage device independent of the aforementioned processor 1001 .
- the terminal device includes at least two cameras, and the focal lengths captured by each of the cameras are different.
- the terminal device when the terminal device includes three cameras, they are the first camera 100 (for example, as shown in FIG. 8 ).
- telephoto camera a second camera 200 (such as a wide-angle camera), and a third camera 300 (such as an ultra-wide-angle camera).
- the focal length corresponding to the telephoto camera is 3X-30X
- the focal length corresponding to the wide-angle camera is 1X-3X
- the focal length corresponding to the ultra-wide-angle camera is 0.6X-1X.
- the plurality of cameras are all connected to the processor.
- the processor includes at least two image processing modules 400, and each of the image processing modules 400 is connected to one of the cameras (100/200/300). After the camera (100/200/300) collects image information at the front end, it is transmitted to the image processing module 400 connected to it, and the image processing module 400 processes the image information collected by the camera (100/200/300), to form the image information in the focal length and save it to the memory.
- the original image data information collected by the camera (100/200/300) can be saved in the memory, at least two
- the image data collected by the at least two cameras (100/200/300) may also be processed at the same time, and then based on the at least two cameras (100/200/300) 100/200/300) simultaneously collected image data for data merging to form images based on data merging of different focal lengths or different angles to improve the shooting effect.
- the arrangement of the first camera 100 , the second camera 200 and the third camera 300 in the mobile terminal includes but is not limited to the two manners shown in FIG. 9 .
- the camera 100, the second camera 200, and the third camera 300 are sequentially arranged along the length direction of the mobile terminal, or the first camera 100, the second camera 200, and the third camera 300 are sequentially arranged along the width direction of the mobile terminal.
- terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or less components than the one shown, or combine some components, or arrange different components.
- the memory 1005 which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an image acquisition program.
- the network interface 1004 is mainly used to connect to the background server and perform data communication with the background server;
- the user interface 1003 is mainly used to connect to the client (client) and perform data communication with the client;
- the processor 1001 can be used to call the image acquisition program stored in memory 1005 and perform the following operations:
- each of the cameras When a triggering operation of the camera is detected, each of the cameras is turned on, and each of the cameras is controlled to pick up image information respectively, and a camera preview interface is formed;
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the main preview image information and the supplementary preview image information are combined to form the camera preview interface, wherein the main preview image information is the image information picked up by the target camera, and the supplementary preview image information is the information other than the target camera. image information picked up by other cameras.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the area overlapping with the main preview image information in the supplementary preview image information is merged into the main preview image information to form the camera preview interface.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the camera preview interface is formed by converting each pixel into a pixel plane corresponding to the main preview image information according to the coordinate position.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the image information picked up by each of the cameras is saved, and the picture is associated with each of the image information.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the edited preview data of the target image is generated according to the target image information.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the image information picked up by the target camera is used as the target image information.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the target image information is adjusted according to the zoom value, and the edited preview data of the target image is generated based on the adjusted target image information.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the edited target picture preview data is generated according to the target image information and other image information associated with the picture.
- processor 1001 can call the image acquisition program stored in the memory 1005, and also perform the following operations:
- the present application provides a first embodiment of an image acquisition method.
- the image acquisition method is applied to a terminal device with a camera.
- the terminal device includes at least two cameras.
- the focal lengths captured by the camera are different, and the image acquisition method includes:
- Step S10 turn on at least two cameras, control at least two cameras to pick up image information respectively, and form a camera preview interface;
- the terminal device in this embodiment may be a mobile phone, a tablet, a camera, or the like.
- the terminal device has a camera application, and the user can trigger the camera application to perform shooting work.
- the terminal device turns on at least two cameras, the at least two cameras pick up image information respectively, and then the cameras respectively transmit the picked-up image information to the image processing module connected to it, and the image processing module The image information is processed separately.
- the acquired image information is also different.
- Each of the cameras transmits the acquired image information to different processing modules, and the processing modules save the acquired image information in different storage areas. Inside. Wherein, the same trigger operation corresponds to the correlation of the acquired multiple image data.
- the terminal devices in this embodiment include, but are not limited to, a telephoto camera, a wide-angle camera, and an ultra-wide-angle camera.
- the focal length corresponding to the telephoto camera is 3X-30X
- the focal length corresponding to the wide-angle camera is 1X- 3X
- the focal length corresponding to the ultra-wide-angle camera is 0.6X-1X.
- the terminal device has a display interface, and after the camera application is triggered, the image data collected by the camera is displayed on the display interface in a preview manner.
- the picked-up image information forms a preview interface for the user to view the current shooting effect.
- the camera preview interface can be formed based on a combination of multiple sets of the image information.
- the formation method of the camera preview interface includes but is not limited to the following one:
- Step S11 determining the target camera according to the preset zoom value
- step S12 the main preview image information and the supplementary preview image information are combined to form the camera preview interface, wherein the main preview image information is the image information picked up by the target camera, and the supplementary preview image information is the image information other than the image information picked up by the target camera. Image information picked up by cameras other than the target camera.
- the main preview image information is determined by the preset zoom value, and then the main preview image information is corrected with the image information of other cameras, so as to improve the display effect of the captured image.
- the preset zoom value may be a default zoom value of the terminal device, or the preset zoom value may be a user-set zoom value.
- the terminal device controls each of the cameras to turn on, and each of the cameras picks up image information and returns the image information to each processing module.
- the default zoom value of the terminal device is used as the preset zoom value.
- the terminal device detects that the user has set the zoom value of the current camera, the user's set zoom value is used as the preset zoom value.
- the terminal device is provided with a zoom control 500 (as shown in FIG. 10 ), and the user can set the zoom value by triggering the zoom control 500 .
- the camera preview interface defaults to the default zoom value set by the system.
- the default zoom value is adjusted to Set the zoom value.
- the terminal device directly uses the image information picked up by the camera corresponding to the set zoom value as the main preview image information, and the image information picked up by other cameras can be used as supplementary preview image information, and can be combined for imaging, without the need for an exemplary technique: when adjusting the zoom value from the default zoom value to the set zoom value, first turn off the camera corresponding to the default zoom value, Then turn on the camera corresponding to the set zoom value, and then pick up the image information.
- the time for picking up the image information after adjusting the zoom value is omitted, and to a certain extent, the momentary picture missed due to adjusting the zoom value can be avoided.
- the target camera is determined according to the preset zoom value, and the target camera mentioned here refers to the camera corresponding to the preset zoom value.
- the preset zoom value is 1.0X, corresponding to The target camera is a wide-angle camera; if the preset zoom value is 0.6X, the corresponding target camera is an ultra-wide-angle camera.
- the image information picked up by the target camera is used as the main preview image information
- the image information picked up by other cameras except the target camera is used as the supplementary preview image information, and then use the supplementary preview image information to correct the main preview image information, and finally form a preview interface.
- the camera preview interface in this embodiment is formed by combining image information picked up by at least two cameras, the imaging of at least two cameras makes the camera preview interface in this embodiment have a good imaging effect.
- Step S20 generating a picture according to the camera preview interface when a photo-taking trigger operation is detected
- Step S30 save the picture.
- the display interface of the terminal device has a photo-taking determination control.
- the photo-taking determination control it is determined that the terminal device has detected a photo-taking trigger operation, and the terminal device generates a picture according to the image information currently displayed on the camera preview interface, and saves all the images. Describe the picture and complete the photo.
- this embodiment takes the mobile terminal having three cameras as an example to illustrate the image acquisition principle of this embodiment:
- the mobile terminal includes a first camera 100 , a second camera 200 and a third camera 300 .
- Each of the first camera 100 , the second camera 200 and the third camera 300 is correspondingly connected with an image processing module 400 .
- the focal lengths of the first camera 100, the second camera 200 and the third camera 300 are different, for example, the focal length of the first camera 100 is 3X-30X, the focal length of the second camera 200 is 1X-3X and the focal length of the third camera 300 0.6X-1X.
- the first camera 100 , the second camera 200 and the third camera 300 work to generate a preview, and the image information collected by the first camera 100 , the second camera 200 and the third camera 300 They are respectively sent back to the corresponding image processing module 400 to process the image.
- the mobile terminal Based on the preset zoom value set by the upper layer, the mobile terminal determines which camera among the three cameras matches the preset zoom value. If the preset zoom value is 1X, the matching camera is the second camera 200, and the second camera is used at this time.
- the image information collected by the camera 200 is used as the target image information (main display screen), the images collected by the first camera 100 and the third camera 300 are used as auxiliary image information (auxiliary display), and the display screen of the preview interface is synthesized based on the three image data, When the user clicks the photographing control on the camera screen, the image displayed in the preview interface will generate a picture and keep the picture.
- the image information collected by the three cameras is respectively saved and associated with the picture.
- the original image information collected by the three-way cameras is associated and saved during the picture saving process.
- the original image data can be retrieved. In this way, when editing the picture , which can be edited based on the saved original image information.
- the terminal device when detecting a camera triggering operation, turns on each camera, and controls each camera to pick up image information, generates a camera preview interface based on the image information picked up by each camera, and detects that taking a photo
- a picture is generated according to the camera preview interface, and the picture is saved. Since the picture is formed by combining image information of different focal lengths simultaneously collected by multiple cameras, the clarity of the front and rear of the picture and the stereoscopic effect of the image in the picture are improved, so that the imaging effect of the camera is good.
- the embodiment of the present application uses image information of different focal lengths collected by at least two cameras to synthesize a picture. Compared with the image zoom processing performed by the exemplary technology, the embodiment of the present application simplifies the image zoom processing process and improves the filming efficiency of clear pictures. , which is more than 2 times higher than the exemplary sheeting efficiency.
- the present application provides a second embodiment of an image acquisition method.
- the step of combining the main preview image information and the supplementary preview image information to form the camera preview interface includes: :
- Step S121 acquiring the area overlapping with the main preview image information in the supplementary preview image information
- Step S122 Merge the area overlapping with the main preview image information in the supplementary preview image information into the main preview image information to form the camera preview interface.
- At least two cameras pick up the image information of the same object from different angles, so there must be an overlapping area and a non-overlapping area between each image information.
- the edge position depth information of the formed picture is increased by merging the overlapping areas. , which can qualitatively improve the transparency of the image content.
- the edge of the picture can be supplemented and corrected by supplementary preview image information of other focal segments. Compared with the single-shot photo, the edge of the photographed image in this embodiment will not be distorted.
- the supplementary preview data is converted to the plane where the main preview data is located by means of coordinate conversion, so that the supplementary preview data is calibrated on a plane.
- the method of the coordinate conversion is to use the coordinates of the main preview image data as the center coordinates, and transfer the supplementary preview information to the center coordinates based on the relative relationship between the center coordinates and the coordinates of the supplementary preview image information to transfer the supplementary preview information to the center coordinates.
- the step of merging the area overlapping with the main preview image information in the supplementary preview image information into the main preview image information, forming the camera preview interface includes:
- the camera preview interface is formed by converting each pixel into a pixel plane corresponding to the main preview image information according to the coordinate position.
- the position of the target camera is used as the center coordinate
- the relative position parameter refers to the relative position of the coordinate positions of other cameras relative to the coordinates of the target camera.
- the edge depth information of a single photo is increased by multi-channel fusion imaging, which can qualitatively improve the transparency of the photo content; the poor edge resolution is optimized to cause the edge noise problem of the image, and the multi-pixel
- the stitching and proofreading of the camera indirectly becomes a large pixel, which improves the light perception and color reproduction of the camera.
- zoom processing can be performed based on the image.
- the present application provides a third embodiment of an image acquisition method. Based on the above-mentioned first and/or second embodiment, please refer to FIG. 5 , the image acquisition method performs the step of saving the image. while also executing:
- Step S40 save the image information picked up by each of the cameras, and associate the picture with each of the image information.
- the terminal device After the user triggers the photographing operation, the terminal device generates a picture according to the camera preview interface, and while saving the picture, saves the image information picked up by each of the cameras, and associates the picture with the image information picked up by each camera.
- the terminal device can call multiple channels of the image information based on the correlation between the picture and the image information data, and use the originally picked up image information for data processing.
- the sharpness of the image can always be kept the same as the sharpness of the original image.
- the image acquisition method of the embodiment of the present application can perform the following processing on the picture:
- the method further includes:
- Step S50 when an editing operation of the picture is detected, acquiring editing parameters corresponding to the editing operation;
- Step S60 obtaining target image information corresponding to the editing parameters from each image information associated with the picture;
- Step S70 generating edited preview data of the target image according to the target image information.
- the user can click on the picture to edit the picture, and when the terminal device detects an editing operation triggered by the user based on the picture, it obtains the editing parameters corresponding to the editing operation, and then retrieves the editing parameters from each of the pictures associated with the picture.
- the target image information corresponding to the editing parameters is obtained from the image information, and the edited target image preview data is generated by using the target image information.
- the principle of high definition picture editing is illustrated by taking the mobile terminal using three cameras to collect images to generate pictures as an example:
- the mobile terminal decompresses the original image information collected by the three cameras associated with the picture based on the trigger operation (image information collected by the first camera, image information collected by the second camera, and image information collected by the third camera).
- the editing parameters such as zooming and zooming values
- the target image information that matches the editing parameters and the image information in the three cameras is determined and the zoom interval in which each camera is located, determine the zoom interval in which the zoom zoom value is located, and the image information corresponding to the zoom interval in which the zoom zoom value is located is the target image information
- the picture is displayed, and the picture displayed is the edited picture. Based on the zoomed image is also the original image captured by one of the cameras, the definition of the original image is not destroyed, so the edited image has high definition.
- the editing operation includes at least one of enlarging, reducing, and cutting, and the editing parameters include one or more of an enlargement factor, a reduction factor, and a crop size.
- the target image information corresponding to the magnification is searched from the various image information associated with the picture, and then the target image information is used as the target picture preview data for the user to preview the enlarged image.
- the picture shows the effect.
- the terminal device processes the picture in the same manner as described above, which will not be repeated here.
- the picture is formed into a film
- the corresponding original collected image data can be called for processing, so that the image can be edited for many times and the clarity can be maintained, and the image can be improved. Editing clarity.
- the definition is improved by 2 times.
- the focal lengths captured by each camera are different, and the picked-up image information is also divided according to the zoom value. Therefore, in order to reasonably call the image information associated with the picture to generate the target image preview data, the editing The display effect of the latter picture is optimal.
- the step of obtaining target image information corresponding to the editing parameters from each image information associated with the picture includes:
- Step S61 determining the zoom value of the adjusted picture according to the editing parameters
- Step S62 obtaining the focal length where the zoom value is located, and using the camera matching the focal length as the target camera;
- Step S63 taking the image information picked up by the target camera as the target image information.
- the editing parameter corresponding to the editing operation when the editing parameter corresponding to the editing operation is obtained, the editing parameter is converted into a zoom value, and then the camera matching the focal length of the zoom value is determined according to the zoom value, using The image information picked up by the camera is used as target image information, and then the target picture preview data is generated according to the target image information.
- the image information picked up by each camera is different based on the focal length of the camera.
- the terminal device determines the target camera according to the zoom value of the picture adjusted by using the editing parameters, and uses the target image information corresponding to the target camera to generate the target image preview.
- data since the target image information is the original information collected by the camera, and is the same image information as the focal length where the adjusted zoom value of the picture is located, there is no need to change the pixels of the target image information, so the adjusted target image preview
- the image presented by the data is sharp, which solves the problem of reduced sharpness in the manner in which the pixel of the image is changed to achieve the purpose of focusing in the exemplary technique. Relatively speaking, this embodiment improves the clear effect of editing pictures.
- the image information that best matches the editing parameters is determined by the zoom value, and then the image information is used to generate the preview data of the target image, so that the display effect of the convenient image can be optimized.
- each focal length has an upper limit value and a lower limit value
- the upper limit value or lower limit value of two adjacent focal lengths are the same, if the zoom value is between the upper limit value or lower limit value , but when it does not belong to the upper limit value or the lower limit value, the generation methods of the target image preview data include but are not limited to the following two:
- the edited preview data of the target image can be generated directly by using the target image information, so that the adjusted preview data of the target image can satisfy the focal length.
- the target image information is adjusted according to the zoom value, and the edited preview data of the target image is generated based on the adjusted target image information.
- the target image information is adjusted according to the zoom value, so that the adjusted target image information matches the zoom value. , and then generate the edited preview data of the target image according to the adjusted target image information, so that the preview data of the target image meets the requirement of the zoom value.
- the terminal device when the editing operation is enlargement or reduction, the terminal device generates the enlarged or reduced picture preview data, and displays the enlarged or reduced picture. At this time, the user can choose to capture the enlarged or reduced picture and save it in the memory, or choose to exit the picture editing, so that the picture can be restored to before editing.
- the terminal device When the editing operation is cropping, the terminal device generates the preview data of the target image in the cropping area. At this time, the user can select the cropping determination. After the terminal device detects the cropping determination operation, it will be cropped according to the preview data of the target image and the editing parameters. target image. That is, the terminal device determines the cropping size according to the editing parameters, forms a cropping area, and then forms the target picture with the data in the cropping area.
- the present application provides a fourth embodiment of an image acquisition method based on the above-mentioned third embodiment, please refer to FIG. 7 , the step of generating the edited target image preview data according to the target image information includes:
- Step S71 merge and generate edited preview data of the target image according to the target image information and other image information associated with the image.
- the image presented by the edited preview data of the target image when the user performs an editing operation on the generated picture, after determining the target image information, in order to make the edited preview data of the target image present high-definition background and background, the image presented by the edited preview data of the target image also reaches the level of Stereoscopic effect, so that the image effect presented by the edited target image preview data is consistent with the effect presented by the image obtained during shooting, and when the edited target image preview data is generated, the target image information is used as the main preview image information, The other image information associated with the picture is used as supplementary preview image information, and the main target image information and other image information are combined to form the target picture preview data.
- the target picture preview data can be generated after combining all the image information.
- the specific merging method is the same as the merging method of the camera preview interface in the process of taking pictures by the terminal device. For details, reference may be made to the second embodiment, which will not be repeated here.
- the present application also provides a method for acquiring an image, the method comprising:
- the edited preview data of the target image is generated according to the target image information.
- This embodiment is applied to the editing operation after the picture is formed into a film.
- the corresponding editing parameters are obtained, and then the target image information is determined based on at least two image information associated with the picture, and then the edited target image preview is generated according to the target image information. data.
- the specific editing process and the acquisition method of the target image information in this embodiment are the same as those in the above-mentioned embodiments, which will not be repeated here.
- the picture in this embodiment is associated with image information collected by at least two cameras when it is generated, and the photographing trigger operation of the picture is associated with at least two obtained image information, at least two of the
- the image information includes image information of the picture.
- the trigger operation is associated with all the acquired image information, and then the picture formed based on the trigger operation is associated with all the image information.
- the image information is associated with the picture, and the user edits the picture. When taking a picture, it can be edited based on the image information, so that the edited image can maintain maximum clarity.
- an embodiment of the present application further provides a computer-readable storage medium, where an image acquisition program is stored on the computer-readable storage medium, and when the image acquisition program is executed by a processor, the above-mentioned image acquisition method is implemented. each step.
- the present application also provides a terminal device, the terminal device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor Implement the steps of the method as described above.
- the embodiments of the present application further provide a computer program product, the computer program product includes computer program code, when the computer program code is run on a computer, the computer is made to execute the method described in the various possible implementation manners above.
- An embodiment of the present application further provides a chip, including a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a chip installed with the chip is
- the apparatus performs the method as described in the various possible embodiments above.
- first, second, third, etc. may be used herein to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other.
- first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of this document.
- the word “if” as used herein can be interpreted as “at the time of” or “when” or “in response to determining”, depending on the context.
- the singular forms "a,” “an,” and “the” are intended to include the plural forms as well, unless the context dictates otherwise.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
本申请公开了一种图像的获取方法,所述终端设备包括至少两个摄像头,包括以下步骤:开启至少两个所述摄像头,控制至少两个所述摄像头分别拾取图像信息,并形成相机预览界面;检测到拍照触发操作时,根据所述相机预览界面生成图片。本申请还公开了一种终端设备和计算机可读存储介质。本申请终端设备拍摄的图片是由至少两个摄像头同时采集到的不同的图像信息合并而成的,提升了图片的前后景清晰度以及图片中图像的立体效果,从而使得拍摄成像效果佳。
Description
本申请要求于2020年07月10日提交中国专利局、申请号为202010654953.5、发明名称为“图像的获取方法、终端设备和计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
本申请涉及图像处理技术领域,尤其涉及一种图像的获取方法、终端设备和计算机可读存储介质。
随着科技的进步,终端设备的拍摄功能也越来越先进。如现今终端设备可以实现超广角、广角和长焦等方式拍摄图像,超广角和广角可以实现大视角拍摄,与长焦拍摄方式可以适用在不同的拍摄场景中。
目前市场上实现超广角、广角和长焦方式拍摄的终端设备一般设有至少三个摄像头,例如超广角摄像头、广角摄像头和长焦摄像头等,拍摄超广角图像采用超广角摄像头拍摄,拍摄广角图像采用广角摄像头拍摄,拍摄长焦图像采用长焦摄像头拍摄。具体拍摄过程中,用户打开相机时,以默认的摄像头采集到的预览数据形成相机预览界面,然后用户根据相机预览界面再设定变焦值,相机识别设定变焦值对应的摄像头,再启动对应的摄像头拾取图像数据,再在相机预览界面中显示,用户按下拍照后,采用该摄像头获取图像。
然而终端设备最终仍是单摄像头成像,拍摄成像的效果不佳。
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。
发明内容
本申请的主要目的在于提供一种图像的获取方法、终端设备和计算机可读存储介质,旨在解决终端设备拍摄成像的效果不佳的技术问题。
为实现上述目的,本申请提供一种图像的获取方法,所述终端设备包括至少两个摄像头,所述图像的获取方法包括以下步骤:
开启至少两个所述摄像头,控制至少两个所述摄像头分别拾取图像信息,并形成相机预览界面;
检测到拍照触发操作时,根据所述相机预览界面生成图片。
可选地,所述摄像头所拍摄的焦段不同,所述形成相机预览界面的步骤包括:
根据预设变焦值确定目标摄像头;
将主预览图像信息和补充预览图像信息合并形成所述相机预览界面;
其中,所述主预览图像信息为所述目标摄像头所拾取的图像信息,所述补充预览图像信息为除所述目标摄像头之外的其它摄像头所拾取的图像信息。
可选地,所述将主预览图像信息和补充预览图像信息合并形成所述相机预览界面的步骤包括:
获取所述补充预览图像信息中与所述主预览图像信息重叠的区域;
将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面。
可选地,所述将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面的步骤包括:
获取所述目标摄像头所在的坐标以及所述其它摄像头与所述目标摄像头的相对位置参数;
根据所述目标摄像头所在的坐标、所述相对位置参数计算各个所述补充预览图像信息中与所述主预览图像信息重叠的区域的像素的坐标位置;
根据所述坐标位置将各个所述像素转换到所述主预览图像信息对应的像素平面中,形成所述相机预览界面。
可选地,所述目标摄像头为与所述预设变焦值对应的摄像头,其中,所述目标摄像头包括广角摄像头、长焦摄像头和超广角摄像头中的至少一个。
可选地,所述根据所述相机预览界面生成图片的步骤之后,还包括:
保存所述摄像头拾取的图像信息,并将所述图片与所述图像信息关联;
所述保存所述摄像头拾取的图像信息,并将所述图片与所述图像信息关联的步骤之后,还包括:
检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;
从与所述图片关联的图像信息中获取与所述编辑参数对应的目标图像信息;
根据所述目标图像信息生成编辑后的目标图片预览数据。
可选地,所述从与所述图片关联的图像信息中获取与所述编辑参数对应的目标图像信息的步骤包括:
根据所述编辑参数确定调整后的图片的变焦值;
获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;
将所述目标摄像头所拾取的图像信息作为所述目标图像信息。
可选地,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:
根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成编辑后 的所述目标图片预览数据。
可选地,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:
根据所述目标图像信息以及与所述图片关联的其它图像信息合并生成编辑后的目标图片预览数据。
可选地,所述编辑操作为放大操作时,所述调整后的图片的变焦值所在的焦段大于所述图片的当前变焦值所在的焦段;
所述编辑操作为缩小操作时,所述调整后的图片的变焦值所在的焦段小于所述图片的当前变焦值所在的焦段。
可选地,所述编辑操作为裁剪时,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤之后,还包括:
检测到裁剪确定操作后,根据所述目标图片预览数据以及所述编辑参数裁剪目标图片;
其中,所述编辑参数包括放大倍数、缩小倍数以及裁剪尺寸中的至少一种。
本申请还提供一种图像的获取方法,所述图像的获取方法包括:
检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;
根据所述图片关联的至少两个图像信息,获取与所述编辑参数对应的目标图像信息;
根据所述目标图像信息生成编辑后的目标图片预览数据。
可选地,所述图片生成时与至少两个摄像头采集到的图像信息相关联;
其中,所述图片的拍照触发操作对应获取到的至少两个图像信息相关联,至少两个所述图像信息包括所述图片的图像信息。
可选地,所述根据所述图片关联的至少两个图像信息,获取与所述编辑参数对应的目标图像信息步骤包括:
根据所述编辑参数确定调整后的图片的变焦值;
获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;
将所述目标摄像头所拾取的图像信息作为所述目标图像信息,其中,至少两个图像信息是基于不同焦段的摄像头采集到的。
可选地,至少两个所述焦段焦段包含至少两个变焦值,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:
确定目标图像信息后,根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成编辑后的所述目标图片预览数据。
本申请还提供一种终端设备,包括:存储器、处理器及存储在所述存储器上并可在所 述处理器上运行的图像获取程序,所述图像获取程序被所述处理器执行时实现如上所述的图像的获取方法的各个步骤。
可选地,所述处理器包括至少两个图像处理模块,每个所述图像处理模块与一个摄像头连接。
此外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有图像获取程序,所述图像获取程序被处理器执行时实现如上所述的图像的获取方法的各个步骤。
本申请实施例提出的一种图像的获取方法、终端设备和计算机可读存储介质,终端设备在检测到相机触发操作时,开启至少两个摄像头,并控制至少两个所述摄像头分别拾取图像信息,以所述摄像头拾取的图像信息生成相机预览界面,并在检测到拍照触发操作时,根据所述相机预览界面生成图片。由于所述图片是由至少两个摄像头同时采集到的不同的图像信息合并而成的,提升了图片的前后景清晰度以及图片中图像的立体效果,从而使得相机成像效果佳。
图1为本申请实施例方案涉及的硬件运行环境的终端结构示意图;
图2为本申请图像的获取方法第一实施例的流程示意图;
图3为图2中S10步骤的细化流程示意图;
图4为本申请图像的获取方法第二实施例中S12步骤的细化流程示意图;
图5为本申请图像的获取方法第三实施例的流程示意图;
图6为图5中S60步骤的细化流程示意图;
图7为本申请图像的获取方法第四实施例的流程示意图;
图8为本申请图像的获取方法的涉及的硬件系统示意图;
图9为本申请图像的获取方法运行的移动终端的示意图;
图10为本申请移动终端的界面示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例的主要解决方案是:开启至少两个所述摄像头,控制至少两个所述摄像头分别拾取图像信息,并形成相机预览界面;检测到拍照触发操作时,根据所述相机预览界面生成图片。
如图1所示,图1是本申请实施例方案涉及的硬件运行环境的终端设备结构示意图。
本申请实施例终端设备可以是PC,也可以是智能手机、平板电脑等具有拍摄功能的终端设备。
如图1所示,该终端设备可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。
进一步地,所述终端设备包括至少两个摄像头,每个所述摄像头所拍摄的焦段不同,例如,请参照图8,所述终端设备包括三个摄像头时,分别为第一摄像头100(比如如长焦摄像头)、第二摄像头200(比如广角摄像头)和第三摄像头300(比如超广角摄像头)。可选地,所述长焦摄像头对应拍摄的焦段为3X-30X,所述广角摄像头对应拍摄的焦段为1X-3X,超广角摄像头对应拍摄的焦段是0.6X-1X。所述多个摄像头均与所述处理器连接。
可选地,所述处理器包括至少两个图像处理模块400,每个所述图像处理模块400与一个所述摄像头(100/200/300)连接。所述摄像头(100/200/300)在前端采集图像信息后,传输到与其连接的图像处理模块400上,所述图像处理模块400处理该摄像头(100/200/300)所采集的图像信息,以形成在该焦段内的图像信息,并保存到存储器中。由于每个摄像头(100/200/300)单独采集的图像信息均由单独的图像处理模块400处理,如此可以在存储器中保存该摄像头(100/200/300)采集的原始图像数据信息,至少两个所述摄像头(100/200/300)同时采集图像时,还可以同时分别对至少两个所述摄像头(100/200/300)采集的图像数据进行处理,进而基于至少两个所述摄像头(100/200/300)同时采集的图像数据进行数据合并,形成基于不同焦段或不同角度数据合并的图像,提高拍摄效果。
可选地,请参照图9,所述第一摄像头100、第二摄像头200和第三摄像头300在移动终端的排布方式包括但不限于图9所示的两个方式,如所述第一摄像头100、第二摄像头200、第三摄像头300沿移动终端长度方向依次排列,或者所述第一摄像头100、第二摄像头200、第三摄像头300沿移动终端宽度方向依次排列。
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通 信模块、用户接口模块以及图像获取程序。
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的图像获取程序,并执行以下操作:
检测到相机触发操作时,开启各个所述摄像头,控制各个所述摄像头分别拾取图像信息,并形成相机预览界面;
检测到拍照触发操作时,根据所述相机预览界面生成图片;
保存所述图片。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
根据预设变焦值确定目标摄像头;
将主预览图像信息和补充预览图像信息合并形成所述相机预览界面,其中,所述主预览图像信息为所述目标摄像头所拾取的图像信息,所述补充预览图像信息为除所述目标摄像头之外的其它摄像头所拾取的图像信息。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
获取所述补充预览图像信息中与所述主预览图像信息重叠的区域;
将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
获取所述目标摄像头所在的坐标以及所述其它摄像头与所述目标摄像头的相对位置参数;
根据所述目标摄像头所在的坐标、所述相对位置参数计算各个所述补充预览图像信息中与所述主预览图像信息重叠的区域的像素的坐标位置;
根据所述坐标位置将各个所述像素转换到所述主预览图像信息对应的像素平面中,形成所述相机预览界面。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
保存各个所述摄像头拾取的图像信息,并将所述图片与各个所述图像信息关联。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操 作:
检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;
从与所述图片关联的各个图像信息中获取与所述编辑参数对应的目标图像信息;
根据所述目标图像信息生成编辑后的目标图片预览数据。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
根据所述编辑参数确定调整后的图片的变焦值;
获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;
将所述目标摄像头所拾取的图像信息作为所述目标图像信息。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成编辑后的所述目标图片预览数据。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
根据所述目标图像信息以及与所述图片关联的其它图像信息合并生成编辑后的目标图片预览数据。
进一步地,处理器1001可以调用存储器1005中存储的图像获取程序,还执行以下操作:
检测到裁剪确定操作后,根据所述目标图片预览数据以及所述编辑参数裁剪目标图片。
参照图2,本申请提供一种图像的获取方法的第一实施例,所述图像的获取方法应用于具有相机的终端设备,所述终端设备包括至少两个摄像头,可选地,每个所述摄像头所拍摄的焦段不同,所述图像的获取方法包括:
步骤S10,开启至少两个所述摄像头,控制至少两个所述摄像头分别拾取图像信息,并形成相机预览界面;
本实施例中的终端设备可以是手机、平板或摄像机等。所述终端设备具有相机应用,用户可以触发相机应用进行拍摄工作。
当用户触发终端设备的相机应用时,终端设备开启至少两个摄像头,至少两个所述摄像头分别拾取图像信息,然后摄像头将拾取到的图像信息分别传输至与其连接的图像处理模块,图像处理模块分别对图像信息进行处理。
由于各个所述摄像头所拍摄的焦段不同,因此获取到的图像信息也不同,各个所述摄像头将获取到的图像信息分别传输到不同的处理模块中,由各个处理模块处理后保存在不同存储区域内。其中,同一触发操作对应获取到的多个图像数据相关关联。
需要说明的是,本实施例中的终端设备包括但不限于长焦摄像头、广角摄像头和超广角摄像头,长焦摄像头对应拍摄的焦段为3X-30X,所述广角摄像头对应拍摄的焦段为1X-3X,超广角摄像头对应拍摄的焦段是0.6X-1X。
所述终端设备具有显示界面,在相机应用被触发后,以预览的方式在显示界面显示摄像头采集的图像数据,本实施例中,各个所述摄像头分别拾取到图像信息后,根据各个所述摄像头拾取的图像信息形成预览界面,供用户查看当前拍摄效果。
可以理解的是,基于本实施例中至少两个所述摄像头拾取图像信息,且拾取的图像信息是基于不同焦段、不同坐标获取到的,相机预览界面可以基于多组所述图像信息合并形成的。
可选地,在一实施例中,请参照图3,所述相机预览界面的形成方式包括但不限于以下一种:
步骤S11,根据预设变焦值确定目标摄像头;
步骤S12,将主预览图像信息和补充预览图像信息合并形成所述相机预览界面,其中,所述主预览图像信息为所述目标摄像头所拾取的图像信息,所述补充预览图像信息为除所述目标摄像头之外的其它摄像头所拾取的图像信息。
也即以预设变焦值确定主预览图像信息,然后再用其它摄像头的图像信息对所述主预览图像信息进行修正,以提高被拍摄图像的显示效果。
可选地,所述预设变焦值可以为所述终端设备的默认变焦值,或者所述预设变焦值为用户的设定变焦值。如用户触发相机应用时,终端设备控制各个所述摄像头开启,各个所述摄像头分别拾取图像信息,并将所述图像信息回传至各个处理模块。此时,若终端设备未检测到用户设定变焦值,则采用所述终端设备的默认变焦值作为所述预设变焦值。若终端设备检测到用户对当前相机的变焦值进行设定,则采用用户的设定变焦值作为所述预设变焦值。可以理解的是,所述终端设备上设有变焦控件500(如图10所示),用户可以通过触发所述变焦控件500实现变焦值设置。
本实施例终端设备的相机应用被触发时,所述相机预览界面默认是系统设置的默认变焦值,当检测到用户触发变焦控件500,以调整预览界面的变焦值时,将默然变焦值调整为设定变焦值。在调焦过程中,由于本实施例采用多个摄像头拾取图像信息,由默然变焦值调整为设定变焦值时,终端设备直接将设定变焦值对应的摄像头所拾取的图像信息作为 主预览图像信息,而其它摄像头所拾取的图像信息作为补充预览图像信息,并合并成像即可,而无需像示例性技术:由默然变焦值调整为设定变焦值时,先关闭默认变焦值对应的摄像头,再开启设定变焦值对应的摄像头,再拾取图像信息。本实施例在图像拾取过程中,省去了调整变焦值后图像信息的拾取时间,在一定程度上可避免因调整变焦值而错过的瞬间画面。
需要说明的是,本实施例中根据所述预设变焦值确定目标摄像头,这里说的目标摄像头是指与所述预设变焦值对应的摄像头,如所述预设变焦值为1.0X,对应的目标摄像头则为广角摄像头;若预设变焦值为0.6X,对应的目标摄像头则为超广角摄像头。
本实施例中,根据预设变焦值确定目标摄像头后,以所述目标摄像头所拾取的图像信息作为主预览图像信息,以除所述目标摄像头之外的其它摄像头所拾取的图像信息作为补充预览图像信息,然后采用补充预览图像信息修正主预览图像信息,最终形成预览界面。
由于图片都是由物体通过等比例成像在摄像头的感光元件上呈现的,而每一个感光元件都是由不同的平面像素点所组成的,因为每一个摄像头的位置坐标是有相对位置的,多个摄像头拍摄同一个被拍摄的对象时,会有多个不同点的视角,如果将多个不同视角的数据合并成一个图片,被摄物体的微立体效果越强,在视角观感的还原度上也会更强,同时由于焦段成像的差异,使得在合成图片,画面的前后景在清晰度上也会有大幅度提升。
基于本实施例中的相机预览界面是由至少两个摄像头所拾取的图像信息合并形成的,至少两个摄像头成像使得本实施例中的相机预览界面成像效果佳。
步骤S20,检测到拍照触发操作时,根据所述相机预览界面生成图片;
步骤S30,保存所述图片。
终端设备的显示界面上具有拍照确定控,当用户触发拍照确定控件时,判定所述终端设备检测到拍照触发操作,终端设备则根据所述相机预览界面当前显示的图像信息生成图片,并保存所述图片,完成拍照。
可选地,基于上述图像获取方式,本实施例以移动终端具有三个摄像头为例说明本实施例的图像获取原理:
请参照图8,所述移动终端包括第一摄像头100、第二摄像头200和第三摄像头300。第一摄像头100、第二摄像头200和第三摄像头300均对应连接有一个图像处理模块400。可选地,所述第一摄像头100、第二摄像头200和第三摄像头300的焦段不同,如第一摄像头100焦段为3X-30X,第二摄像头200焦段为1X-3X和第三摄像头300焦段为0.6X-1X。
当从移动终端进入相机画面预览启动时,第一摄像头100、第二摄像头200和第三摄像头300工作生效生成预览,所述第一摄像头100、第二摄像头200和第三摄像头300采 集的图像信息分别回传至对应的图像处理模块400中,对图像进行处理。移动终端基于上层设置的预设变焦值判断所述预设变焦值与三个摄像头中的哪个摄像头匹配,若预设变焦值为1X,则匹配的摄像头为第二摄像头200,此时采用第二摄像头200采集的图像信息作为目标图像信息(主显示画面),第一摄像头100和第三摄像头300所采集的图像作为辅助图像信息(辅助显示),基于三个图像数据合成预览界面的显示画面,用户点击相机画面中的拍照控件时,预览界面中显示的图像生成图片,保持该图片。
可选地,在保存该图片时,三个摄像头所采集的图像信息分别保存并关联所述图片。如此,所述图片保存过程中关联保存了三路摄像头采集的原始图像信息,基于所述图片的关联关系,以所述图片作为索引时,可以调取原始图像数据,如此,编辑所述图片时,可以基于所保存的原始图像信息进行编辑。
在本实施例中,终端设备在检测到相机触发操作时,开启各个摄像头,并控制各个所述摄像头分别拾取图像信息,以各个所述摄像头拾取的图像信息生成相机预览界面,并在检测到拍照触发操作时,根据所述相机预览界面生成图片,保存所述图片。由于所述图片是由多个摄像头同时采集到的不同焦段的图像信息合并而成的,提升了图片的前后景清晰度以及图片中图像的立体效果,从而使得相机成像效果佳。
另外,本申请实施例是采用至少两个摄像头采集的不同焦段的图像信息合成图片,相对于示例性技术对图像变焦处理,本申请实施例简化了图像变焦处理流程,提升清晰图片的成片效率,相比示例性成片效率提升2倍以上。
进一步的,参照图4,本申请提供一种图像的获取方法第二实施例,基于上述第一实施例,所述将主预览图像信息和补充预览图像信息合并形成所述相机预览界面的步骤包括:
步骤S121,获取所述补充预览图像信息中与所述主预览图像信息重叠的区域;
步骤S122,将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面。
至少两个摄像头从不同角度拾取同一个物体的图像信息,故而在各个图像信息之间必有重叠区和非重叠区,本实施例中通过重叠区的合并使得形成的图片的边缘位置深度信息增加,可对图片内容的通透度进行质的提升。且基于多焦段融合,在图片的边缘可以通过其它焦段的补充预览图像信息进行补充修正,相对于单摄照片,本实施例用拍摄的图片的边缘不会畸变。
本实施例具体通过坐标转换的方式将所述补充预览数据转换到所述主预览数据所在平面上,使得补充预览数据标定在一个平面上,如此,在像素点不变的情况下,以该点为 中心会存在四轴的散射延伸。
其中,所述坐标转换的方式是以主预览图像数据所在坐标作为中心坐标,基于所述中心坐标与补充预览图像信息所在坐标的相对关系将所述补充预览信息转到所述中心坐标上,以完成坐标转换。
可选地,所述将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面的步骤包括:
获取所述目标摄像头所在的坐标以及所述其它摄像头与所述目标摄像头的相对位置参数;
根据所述目标摄像头所在的坐标、所述相对位置参数计算各个所述补充预览图像信息中与所述主预览图像信息重叠的区域的像素的坐标位置;
根据所述坐标位置将各个所述像素转换到所述主预览图像信息对应的像素平面中,形成所述相机预览界面。
需要说明的是,所述目标摄像头所在的位置作为所述中心坐标,所述相对位置参数是指其它摄像头的坐标位置相对所述目标摄像头的坐标的相对位置。在获取到所述目标摄像头所在的坐标和所述相对位置参数后,计算所述补充预览图像信息中与所述主预览图像信息重叠的区域的像素在所述目标摄像头所在坐标的坐标位置,具体通过所述像素在对应摄像头所在的坐标基于所述相对位置参数转换到所述目标摄像头所在的坐标,使得各个像素点转到到所述主预览图像信息的像素平面中,以完成与所述主预览图像信息的合并,进而在所述相机预览界面中显示。
在发明实施例中,通过多路融合成像增加单张照片的边缘深度信息,可对照片内容的通透度进行质的提升;优化边缘解析力差进而产生图片的边缘噪声问题,且通过多像素的拼接校对间接变成大像素,提升相机的光感和色彩还原度。
终端设备的拍摄过程若需要用户先调好变焦值,然后再拍照,调变焦值的过程需要时间,用户可能因调整变焦值而错过瞬间的画面,因此本实施例终端设备还可以在拍摄过程中无需调焦,以终端设备默认变焦值进行拍摄即可,在形成图片后,可以基于图片进行变焦处理。
可选地如本申请提供一种图像的获取方法的第三实施例,基于上述第一和/或第二实施例,请参照图5,所述图像的获取方法执行所述保存所述图片步骤的同时还执行:
步骤S40,保存各个所述摄像头拾取的图像信息,并将所述图片与各个所述图像信息关联。
也即在用户触发拍照操作后,终端设备根据相机预览界面生成图片,并保存图片的同 时,保存各个所述摄像头拾取的图像信息,并将所述图片与各个摄像头拾取的图像信息关联。如此,图片对应关联有多路图像信息数据,终端设备对图片进行变焦处理时,可以基于图片与图像信息数据的关联关系,调用多路所述图像信息,采用原始拾取的图像信息进行数据处理,如此实现对图片进行变焦处理时,可以使得图片的清晰度始终保持与原始图片的清晰度一直。
基于所述图片关联有各个摄像头拾取的图像信息,用户对所述图像进行编辑时,本申请实施例的图像获取方法可以对所述图片进行以下处理:
具体请参照图5,在所述保存各个所述摄像头拾取的图像信息,并将所述图片与各个所述图像信息关联的步骤之后,还包括:
步骤S50,检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;
步骤S60,从与所述图片关联的各个图像信息中获取与所述编辑参数对应的目标图像信息;
步骤S70,根据所述目标图像信息生成编辑后的目标图片预览数据。
用户可以点击所述图片以对所述图片进行编辑,终端设备检测到用户基于所述图片触发的编辑操作时,获取所述编辑操作对应的编辑参数,然后从与所述图片关联的各个所述图像信息中获取与所述编辑参数对应的目标图像信息,采用所述目标图像信息来生成编辑后的目标图片预览数据。
可选地,本实施例以移动终端采用三个摄像头采集图像生成图片为例说明图片编辑清晰度高的原理:
用户点击图片时,移动终端基于触发操作解压所述图片关联的三个摄像头采集的原始图像信息(第一摄像头采集的图像信息,第二摄像头采集的图像信息和第三摄像头采集的图像信息)。当用户编辑该图片时(如缩放图片),基于编辑操作确定编辑参数(如缩放变焦值),然后判断所述编辑参数与三个摄像头中的图像信息匹配的目标图像信息(如基于缩放变焦值以及各个摄像头所处的变焦区间,确定所述缩放变焦值所处的变焦区间,所述缩放变焦值所处的变焦区间对应的图像信息为所述目标图像信息),然后就所述目标图像信息显示图片,所显示的图片则为编辑后的图片。基于缩放后的图片也是其中一个摄像头所采集的原始图像,并没有破坏原始图像的清晰度,因此编辑图像的清晰度高。
可选地,所述编辑操作包括放大、缩小和剪切中的至少一种,所述编辑参数包括放大倍数、缩小倍数以及裁剪尺寸中的一种或多种。当用户对图片进行放大编辑时,从与所述图片关联的各个图像信息中查找与所述放大倍数对应的目标图像信息,然后以所述目标图像信息作为目标图片预览数据,供用户预览放大后的图片显示效果。当用户触发缩小操作 或裁剪操作时,终端设备对所述图片的处理方式与上述相同,在此不一一赘述。
可选地,本实施例在图片成片后,若对图片进行一次或二次编辑处理,均可以调用对应的原始采集的图像数据来处理,使得图像编辑多次还能保持清晰度,提高图像编辑的清晰效果。可选地,本实施例对成片进行编辑后清晰度达到提升2倍的效果。
可以理解的是,本实施例中各个摄像头所拍摄的焦段不同,拾取的图像信息也是根据变焦值划分,因此,为了便于合理调用与所述图片关联的图像信息来生成目标图像预览数据,使得编辑后的图片显示效果达到最优,在一实施例中,请参照图6,所述从与所述图片关联的各个图像信息中获取与所述编辑参数对应的目标图像信息的步骤包括:
步骤S61,根据所述编辑参数确定调整后的图片的变焦值;
步骤S62,获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;
步骤S63,将所述目标摄像头所拾取的图像信息作为所述目标图像信息。
也即在本实施例中,在获取到所述编辑操作对应的编辑参数时,将所述编辑参数转换为变焦值,然后根据所述变焦值确定与所述变焦值所在焦段匹配的摄像头,采用所述摄像头拾取的图像信息作为目标图像信息,然后根据所述目标图像信息来生成所述目标图片预览数据。
各个摄像头拾取的图像信息基于摄像头的焦段不同而不同,终端设备根据采用所述编辑参数调整后的图片所处的变焦值确定目标摄像头,采用所述目标摄像头对应的目标图像信息来生成目标图片预览数据,由于该目标图像信息是摄像头采集的原始信息,且是与所述图片调整后的变焦值所处的焦段相同的图像信息,不需要改变目标图像信息的像素,因此调整后的目标图片预览数据呈现的图像清晰,解决了示例性技术中通过改变图像像素来达到调焦目的的方式中清晰度会下降的问题。相对而言,本实施例提升编辑图片的清晰效果。
另外,本实施例通过变焦值确定与所述编辑参数最匹配的图像信息,然后采用该图像信息生成目标图片预览数据,使得便捷后的图片的显示效果达到最优化。
需要说明的是,每个焦段均具有上限值和下限值,相邻两个焦段的上限值或下限值相同,若所述变焦值在所述上限值或下限值之间,但不属于上限值或下限值时,所述目标图片预览数据的生成方式包括但不限于以下两种:
第一,基于所述目标图像信息生成编辑后的所述目标图片预览数据;
也即直接采用所述目标图像信息生成编辑后的所述目标图片预览数据,使得调整后的目标图片预览数据满足该焦段即可。
第二,根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成 编辑后的所述目标图片预览数据。
也即在该实施例中,根据所述变焦值所在的焦段确定目标图像信息之后,再根据所述变焦值调整所述目标图像信息,使得调整后的所述目标图像信息与所述变焦值匹配,再根据所述调整后的所述目标图像信息生成编辑后的所述目标图片预览数据,使得所述目标图片预览数据满足该变焦值的要求。
需要说明的是,当所述编辑操作为放大或缩小时,终端设备生成放大或缩小后的图片预览数据,显示放大或缩小后的图片。此时,用户可以选择截取放大或缩小后的图片,并另存与存储器中,也可以选择退出图片编辑,使得所述图片恢复至编辑之前。
所述编辑操作为裁剪时,终端设备在裁剪区域内生成目标图片预览数据,此时用户可以选择裁剪确定,终端设备检测到裁剪确定操作后,根据所述目标图片预览数据以及所述编辑参数裁剪目标图片。也即所述终端设备根据编辑参数确定裁剪大小,形成裁剪区域,然后将所述裁剪区域中的数据形成所述目标图片。
进一步地,本申请基于上述第三实施例提供图像的获取方法的第四实施例,请参照图7,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:
步骤S71,根据所述目标图像信息以及与所述图片关联的其它图像信息合并生成编辑后的目标图片预览数据。
本实施例中,用户对已生成的图片进行编辑操作时,确定目标图像信息后,为了使得编辑后的目标图片预览数据呈现前后景清晰度高,编辑后的目标图片预览数据呈现的图像同样达到立体效果,使得编辑后的目标图片预览数据呈现的图片效果与拍摄时获取到的图片呈现的效果一致,在生成编辑后的目标图片预览数据时,采用所述目标图像信息作为主预览图像信息,而与所述图片关联的其它图像信息作为补充预览图像信息,将所述主目标图像信息和其他图像信息合并形成所述目标图片预览数据。
需要说明的是,由于终端设备对所述图片进行编辑时,是从与所述图片关联的所有图像信息中编辑的,可以基于所有图像信息进行合并后生成所述目标图片预览数据。具体合并方式与终端设备在拍照过程中对相机预览界面的合并方式相同,具体可参照第二实施例,在此不一一赘述。
可选地,本申请还提供一种图像的获取方法,所述方法包括:
检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;
根据所述图片关联的至少两个图像信息,获取与所述编辑参数对应的目标图像信息;
根据所述目标图像信息生成编辑后的目标图片预览数据。
本实施例应用于图片成片后的编辑操作。当用户基于移动终端所保存的图片进行编辑 操作时,获取对应的编辑参数,进而基于图片关联的至少两个图像信息来确定目标图像信息,然后根据所述目标图像信息生成编辑后的目标图像预览数据。
可选地,本实施例中具体的编辑过程以及目标图像信息的获取方式与上述各个实施例的相同,在此不一一赘述。
可选地,本实施例中的图片在生成时与至少两个摄像头采集到的图像信息相关联,所述图片的拍照触发操作对应获取到的至少两个图像信息相关联,至少两个所述图像信息包括所述图片的图像信息。如基于相机界面触发拍照时,该触发操作关联所获取的所有图像信息,进而基于该触发操作形成的图片与所有图像信息进行关联。基于所述图片在采集的过程中,移动终端的至少两个摄像头拾取,因此移动终端内存储有至少两份所述图片的图像信息,所述图像信息与所述图片相关联,用户编辑所述图片时,可基于所述图像信息来编辑,使得编辑后的图像能够保持最大的清晰度。
此外,本申请实施例还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有图像获取程序,所述图像获取程序被处理器执行时实现如上所述的图像的获取方法的各个步骤。
本申请还提供一种终端设备,所述终端设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的方法的步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行如上各种可能的实施方式中所述的方法。
本申请实施例还提供一种芯片,包括存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得安装有所述芯片的设备执行如上各种可能的实施方式中所述的方法。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。
应当理解,尽管在本文可能采用术语第一、第二、第三等来描述各种信息,但这些信 息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本文范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语"如果"可以被解释成为"在……时"或"当……时"或"响应于确定"。再者,如同在本文中所使用的,单数形式“一”、“一个”和“该”旨在也包括复数形式,除非上下文中有相反的指示。应当进一步理解,术语“包含”、“包括”表明存在所述的特征、步骤、操作、元件、组件、项目、种类、和/或组,但不排除一个或多个其他特征、步骤、操作、元件、组件、项目、种类、和/或组的存在、出现或添加。此处使用的术语“或”和“和/或”被解释为包括性的,或意味着任一个或任何组合。因此,“A、B或C”或者“A、B和/或C”意味着“以下任一个:A;B;C;A和B;A和C;B和C;A、B和C”。仅当元件、功能、步骤或操作的组合在某些方式下内在地互相排斥时,才会出现该定义的例外。
应该理解的是,虽然本申请实施例中的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。
Claims (17)
- 一种图像的获取方法,其特征在于,所述终端设备包括至少两个摄像头,所述图像的获取方法包括以下步骤:开启至少两个所述摄像头,控制至少两个所述摄像头分别拾取图像信息,并形成相机预览界面;检测到拍照触发操作时,根据所述相机预览界面生成图片。
- 如权利要求1所述的图像的获取方法,其特征在于,所述摄像头所拍摄的焦段不同,所述形成相机预览界面的步骤包括:根据预设变焦值确定目标摄像头;将主预览图像信息和补充预览图像信息合并形成所述相机预览界面;其中,所述主预览图像信息为所述目标摄像头所拾取的图像信息,所述补充预览图像信息为除所述目标摄像头之外的其它摄像头所拾取的图像信息。
- 如权利要求2所述的图像的获取方法,其特征在于,所述将主预览图像信息和补充预览图像信息合并形成所述相机预览界面的步骤包括:获取所述补充预览图像信息中与所述主预览图像信息重叠的区域;将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面。
- 如权利要求3所述的图像的获取方法,其特征在于,所述将所述补充预览图像信息中与所述主预览图像信息重叠的区域合并到所述主预览图像信息中,形成所述相机预览界面的步骤包括:获取所述目标摄像头所在的坐标以及所述其它摄像头与所述目标摄像头的相对位置参数;根据所述目标摄像头所在的坐标、所述相对位置参数计算各个所述补充预览图像信息中与所述主预览图像信息重叠的区域的像素的坐标位置;根据所述坐标位置将各个所述像素转换到所述主预览图像信息对应的像素平面中,形成所述相机预览界面。
- 如权利要求2所述的图像的获取方法,其特征在于,所述目标摄像头为与所述预设变焦值对应的摄像头,其中,所述目标摄像头包括广角摄像头、长焦摄像头和超广角摄像头中的至少一个。
- 如权利要求1至5中任一项所述的图像的获取方法,其特征在于,所述根据所述相机预览界面生成图片的步骤之后,还包括:保存所述摄像头拾取的图像信息,并将所述图片与所述图像信息关联;所述保存所述摄像头拾取的图像信息,并将所述图片与所述图像信息关联的步骤之后,还包括:检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;从与所述图片关联的图像信息中获取与所述编辑参数对应的目标图像信息;根据所述目标图像信息生成编辑后的目标图片预览数据。
- 如权利要求6所述的图像的获取方法,其特征在于,所述从与所述图片关联的图像信息中获取与所述编辑参数对应的目标图像信息的步骤包括:根据所述编辑参数确定调整后的图片的变焦值;获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;将所述目标摄像头所拾取的图像信息作为所述目标图像信息。
- 如权利要求7所述的图像的获取方法,其特征在于,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成编辑后的所述目标图片预览数据。
- 如权利要求6所述的图像的获取方法,其特征在于,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:根据所述目标图像信息以及与所述图片关联的其它图像信息合并生成编辑后的目标图片预览数据。
- 如权利要求9所述的图像的获取方法,其特征在于,所述编辑操作为放大操作时,所述调整后的图片的变焦值所在的焦段大于所述图片的当前变焦值所在的焦段;所述编辑操作为缩小操作时,所述调整后的图片的变焦值所在的焦段小于所述图片的当前变焦值所在的焦段。
- 如权利要求9所述的图像的获取方法,其特征在于,所述编辑操作为裁剪时,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤之后,还包括:检测到裁剪确定操作后,根据所述目标图片预览数据以及所述编辑参数裁剪目标图片;其中,所述编辑参数包括放大倍数、缩小倍数以及裁剪尺寸中的至少一种。
- 一种图像的获取方法,其特征在于,所述图像的获取方法包括:检测到所述图片的编辑操作时,获取所述编辑操作对应的编辑参数;根据所述图片关联的至少两个图像信息,获取与所述编辑参数对应的目标图像信息;根据所述目标图像信息生成编辑后的目标图片预览数据。
- 如权利要求12所述的图像的获取方法,其特征在于,所述图片生成时与至少两个摄像头采集到的图像信息相关联;其中,所述图片的拍照触发操作对应获取到的至少两个图像信息相关联,至少两个所述图像信息包括所述图片的图像信息。
- 如权利要求12所述的图像的获取方法,其特征在于,所述根据所述图片关联的至少两个图像信息,获取与所述编辑参数对应的目标图像信息步骤包括:根据所述编辑参数确定调整后的图片的变焦值;获取与所述变焦值所在的焦段,以所述焦段匹配的摄像头作为目标摄像头;将所述目标摄像头所拾取的图像信息作为所述目标图像信息,其中,至少两个图像信息是基于不同焦段的摄像头采集到的。
- 如权利要求12至14任一所述的图像的获取方法,其特征在于,至少两个所述焦段焦段包含至少两个变焦值,所述根据所述目标图像信息生成编辑后的目标图片预览数据的步骤包括:确定目标图像信息后,根据所述变焦值调整所述目标图像信息,基于调整后的所述目标图像信息生成编辑后的所述目标图片预览数据。
- 一种终端设备,其特征在于,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的图像获取程序,所述图像获取程序被所述处理器执行时实现如权利要求1至15中任一项所述的图像的获取方法的步骤。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有图像获取程序,所述图像获取程序被处理器执行时实现如权利要求1至15中任一项所述的图像的获取方法的步骤。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202180044452.8A CN115812312A (zh) | 2020-07-10 | 2021-06-21 | 图像的获取方法、终端设备和计算机可读存储介质 |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010654953.5 | 2020-07-10 | ||
| CN202010654953.5A CN111787224B (zh) | 2020-07-10 | 2020-07-10 | 图像的获取方法、终端设备和计算机可读存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022007622A1 true WO2022007622A1 (zh) | 2022-01-13 |
Family
ID=72758941
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/101320 Ceased WO2022007622A1 (zh) | 2020-07-10 | 2021-06-21 | 图像的获取方法、终端设备和计算机可读存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (2) | CN111787224B (zh) |
| WO (1) | WO2022007622A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116051368A (zh) * | 2022-06-29 | 2023-05-02 | 荣耀终端有限公司 | 图像处理方法及其相关设备 |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111787224B (zh) * | 2020-07-10 | 2022-07-12 | 深圳传音控股股份有限公司 | 图像的获取方法、终端设备和计算机可读存储介质 |
| CN112887603B (zh) * | 2021-01-26 | 2023-01-24 | 维沃移动通信有限公司 | 拍摄预览方法、装置及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20170020069A (ko) * | 2015-08-13 | 2017-02-22 | 엘지전자 주식회사 | 이동 단말기 및 그의 영상촬영 방법 |
| CN110072058A (zh) * | 2019-05-28 | 2019-07-30 | 珠海格力电器股份有限公司 | 图像拍摄装置、方法及终端 |
| CN111183632A (zh) * | 2018-10-12 | 2020-05-19 | 华为技术有限公司 | 图像捕捉方法及电子设备 |
| CN111292278A (zh) * | 2019-07-30 | 2020-06-16 | 展讯通信(上海)有限公司 | 图像融合方法及装置、存储介质、终端 |
| CN111787224A (zh) * | 2020-07-10 | 2020-10-16 | 深圳传音控股股份有限公司 | 图像的获取方法、终端设备和计算机可读存储介质 |
Family Cites Families (33)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4956988B2 (ja) * | 2005-12-19 | 2012-06-20 | カシオ計算機株式会社 | 撮像装置 |
| US9007508B2 (en) * | 2012-03-29 | 2015-04-14 | Sony Corporation | Portable device, photographing method, and program for setting a target region and performing an image capturing operation when a target is detected in the target region |
| CN104168414A (zh) * | 2013-05-17 | 2014-11-26 | 光道视觉科技股份有限公司 | 拍摄并拼接物件影像的方法 |
| KR102145542B1 (ko) * | 2014-08-14 | 2020-08-18 | 삼성전자주식회사 | 촬영 장치, 복수의 촬영 장치를 이용하여 촬영하는 촬영 시스템 및 그 촬영 방법 |
| CN104349063B (zh) * | 2014-10-27 | 2018-05-15 | 东莞宇龙通信科技有限公司 | 一种控制摄像头拍摄的方法、装置及终端 |
| WO2016119150A1 (zh) * | 2015-01-28 | 2016-08-04 | 宇龙计算机通信科技(深圳)有限公司 | 具有多摄像头的移动终端的拍摄方法和移动终端 |
| CN104767937A (zh) * | 2015-03-27 | 2015-07-08 | 深圳市艾优尼科技有限公司 | 一种拍照方法 |
| CN104967775B (zh) * | 2015-06-05 | 2017-12-01 | 深圳市星苑科技有限公司 | 一种变焦镜头成像的装置及方法 |
| CN204721459U (zh) * | 2015-06-05 | 2015-10-21 | 深圳市星苑科技有限公司 | 一种变焦镜头成像的装置 |
| US10291842B2 (en) * | 2015-06-23 | 2019-05-14 | Samsung Electronics Co., Ltd. | Digital photographing apparatus and method of operating the same |
| CN105847674B (zh) * | 2016-03-25 | 2019-06-07 | 维沃移动通信有限公司 | 一种基于移动终端的预览图像处理方法及移动终端 |
| CN105676563B (zh) * | 2016-03-31 | 2018-09-18 | 深圳市极酷威视科技有限公司 | 一种变焦相机的对焦方法及相机 |
| CN106131397A (zh) * | 2016-06-21 | 2016-11-16 | 维沃移动通信有限公司 | 一种多媒体数据显示的方法及电子设备 |
| CN106131408A (zh) * | 2016-07-11 | 2016-11-16 | 深圳市金立通信设备有限公司 | 一种图像处理方法及终端 |
| CN106254780A (zh) * | 2016-08-31 | 2016-12-21 | 宇龙计算机通信科技(深圳)有限公司 | 一种双摄像头拍照控制方法、拍照控制装置及终端 |
| CN106385534A (zh) * | 2016-09-06 | 2017-02-08 | 努比亚技术有限公司 | 一种对焦方法及终端 |
| US10827107B2 (en) * | 2016-10-28 | 2020-11-03 | Huawei Technologies Co., Ltd. | Photographing method for terminal and terminal |
| CN106791376B (zh) * | 2016-11-29 | 2019-09-13 | Oppo广东移动通信有限公司 | 成像装置、控制方法、控制装置及电子装置 |
| CN106791377B (zh) * | 2016-11-29 | 2019-09-27 | Oppo广东移动通信有限公司 | 控制方法、控制装置及电子装置 |
| CN107360364B (zh) * | 2017-06-28 | 2019-10-18 | 维沃移动通信有限公司 | 一种图像拍摄方法、终端及计算机可读存储介质 |
| US10834310B2 (en) * | 2017-08-16 | 2020-11-10 | Qualcomm Incorporated | Multi-camera post-capture image processing |
| CN111641778B (zh) * | 2018-03-26 | 2021-05-04 | 华为技术有限公司 | 一种拍摄方法、装置与设备 |
| CN108769485A (zh) * | 2018-06-27 | 2018-11-06 | 北京小米移动软件有限公司 | 电子设备 |
| CN110830756B (zh) * | 2018-08-07 | 2022-05-17 | 华为技术有限公司 | 一种监控方法与装置 |
| CN109436344B (zh) * | 2018-11-16 | 2022-04-22 | 航宇救生装备有限公司 | 基于降落伞弹道轨迹的机载摄影吊舱 |
| CN109361794B (zh) * | 2018-11-19 | 2021-04-20 | Oppo广东移动通信有限公司 | 移动终端的变焦控制方法、装置、存储介质及移动终端 |
| CN109194881A (zh) * | 2018-11-29 | 2019-01-11 | 珠海格力电器股份有限公司 | 图像处理方法、系统及终端 |
| CN109639997B (zh) * | 2018-12-20 | 2020-08-21 | Oppo广东移动通信有限公司 | 图像处理方法、电子装置及介质 |
| CN110312075B (zh) * | 2019-06-28 | 2021-02-19 | Oppo广东移动通信有限公司 | 设备成像方法、装置、存储介质及电子设备 |
| CN110248101B (zh) * | 2019-07-19 | 2021-07-09 | Oppo广东移动通信有限公司 | 对焦方法和装置、电子设备、计算机可读存储介质 |
| CN110536057B (zh) * | 2019-08-30 | 2021-06-08 | Oppo广东移动通信有限公司 | 图像处理方法和装置、电子设备、计算机可读存储介质 |
| CN111083380B (zh) * | 2019-12-31 | 2021-06-11 | 维沃移动通信有限公司 | 一种视频处理方法、电子设备及存储介质 |
| CN111654629B (zh) * | 2020-06-11 | 2022-06-24 | 展讯通信(上海)有限公司 | 摄像头切换方法、装置、电子设备及可读存储介质 |
-
2020
- 2020-07-10 CN CN202010654953.5A patent/CN111787224B/zh active Active
-
2021
- 2021-06-21 CN CN202180044452.8A patent/CN115812312A/zh active Pending
- 2021-06-21 WO PCT/CN2021/101320 patent/WO2022007622A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20170020069A (ko) * | 2015-08-13 | 2017-02-22 | 엘지전자 주식회사 | 이동 단말기 및 그의 영상촬영 방법 |
| CN111183632A (zh) * | 2018-10-12 | 2020-05-19 | 华为技术有限公司 | 图像捕捉方法及电子设备 |
| CN110072058A (zh) * | 2019-05-28 | 2019-07-30 | 珠海格力电器股份有限公司 | 图像拍摄装置、方法及终端 |
| CN111292278A (zh) * | 2019-07-30 | 2020-06-16 | 展讯通信(上海)有限公司 | 图像融合方法及装置、存储介质、终端 |
| CN111787224A (zh) * | 2020-07-10 | 2020-10-16 | 深圳传音控股股份有限公司 | 图像的获取方法、终端设备和计算机可读存储介质 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116051368A (zh) * | 2022-06-29 | 2023-05-02 | 荣耀终端有限公司 | 图像处理方法及其相关设备 |
| CN116051368B (zh) * | 2022-06-29 | 2023-10-20 | 荣耀终端有限公司 | 图像处理方法及其相关设备 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111787224B (zh) | 2022-07-12 |
| CN115812312A (zh) | 2023-03-17 |
| CN111787224A (zh) | 2020-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110572581B (zh) | 基于终端设备的变焦虚化图像获取方法和装置 | |
| CN111294517B (zh) | 一种图像处理的方法及移动终端 | |
| US10311649B2 (en) | Systems and method for performing depth based image editing | |
| US10681258B2 (en) | Imaging capturing device and imaging capturing method | |
| WO2022007622A1 (zh) | 图像的获取方法、终端设备和计算机可读存储介质 | |
| CN112887617B (zh) | 一种拍摄方法、装置和电子设备 | |
| WO2022111330A1 (zh) | 多摄像头设备的图像拼接方法及装置、存储介质、终端 | |
| WO2025108228A1 (zh) | 视频处理方法、视频处理装置、电子设备及介质 | |
| CN110602392A (zh) | 控制方法、成像模组、电子设备及计算机可读存储介质 | |
| CN112640430B (zh) | 成像元件、摄像装置、图像数据处理方法及存储介质 | |
| CN111614865A (zh) | 多摄亮度同步方法、设备、装置及存储介质 | |
| JP4788172B2 (ja) | 撮像装置及びプログラム | |
| CN112887624B (zh) | 一种拍摄方法、装置和电子设备 | |
| TWI704408B (zh) | 全景照相裝置及其影像映射結合方法 | |
| RU2792413C1 (ru) | Способ обработки изображений и мобильный терминал | |
| CN115086558B (zh) | 对焦方法、摄像设备、终端设备及存储介质 | |
| US20240346619A1 (en) | Image capturing device and zooming method for depth-of-field image thereof | |
| CN113037988B (zh) | 变焦方法、电子装置和计算机可读存储介质 | |
| TWI234682B (en) | Method for capturing a digital image | |
| CN117177046A (zh) | 拍摄处理方法、处理器、存储介质及电子设备 | |
| EP3041219B1 (en) | Image processing device and method, and program | |
| CN112017117A (zh) | 一种基于红外热像仪的全景图像获取方法及系统 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21838435 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/06/2023) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21838435 Country of ref document: EP Kind code of ref document: A1 |