Camera shooting method, camera shooting device, electronic equipment and computer readable storage medium

By determining the local image area in the imaging area of the photosensitive element and acquiring the corresponding images, the problem of large footage occupancy in traditional axis shift imaging technology is solved, and efficient axis shift imaging effect and convenient operation in lightweight and thin-designed electronic devices are realized.

CN120282019APending Publication Date: 2025-07-08GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510571573.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-30
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

In traditional axis-shift camera technology, the camera lens takes up a lot of space and is difficult to apply to thin and thin electronic devices such as smartphones and tablets.

Method used

By acquiring a preview image of the imaging area of the photosensitive element, a local area is determined as the first image area, and an image of the first imaging area corresponding to the area is acquired, the offset of the main optical axis of the lens relative to the photosensitive element is realized, and the perspective deformation phenomenon is eliminated without moving elements such as the lens.

Benefits of technology

Without increasing the size of the equipment, the axis shift camera effect is achieved, the camera convenience and operability are improved, the camera effect is adjusted in real time, and perspective deformation is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120282019A_ABST
    Figure CN120282019A_ABST
Patent Text Reader

Abstract

The invention relates to a camera shooting method, a camera shooting device, electronic equipment and a computer readable storage medium. The camera shooting method comprises the following steps: acquiring a preview image of an imaging area of a photosensitive element; determining a local area of the preview image as a first image area; acquiring a first imaging area corresponding to the first image area in the photosensitive element; and obtaining an image formed by the first imaging area. According to the camera shooting method, the tilt-shift camera shooting effect is achieved on the basis that elements such as a moving lens are not needed, the space occupied by a tilt-shift mechanism and a tilt-shift stroke of the tilt-shift lens is saved, and therefore the camera shooting method adapts to the light and thin design of electronic equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of imaging technologies, and particularly to an imaging method, an imaging device, an electronic device, and a computer-readable storage medium. Background Art

[0002] To solve the problem of object deformation caused by perspective during imaging, the tilt-shift imaging technology has emerged. The tilt-shift imaging technology can, on the premise that the positions of the camera body and the image sensor remain unchanged, shift the principal optical axis of the imaging lens relative to the image sensor to change the relative position between the principal optical axis of the imaging lens and the geometric center of the image sensor, thereby changing the image field area of the imaging lens received by the sensor. Furthermore, when the photosensitive surface of the image sensor is parallel to the object plane, a complete image of the object can be received, solving the problem of object deformation caused by perspective.

[0003] However, in traditional tilt-shift imaging technology, the imaging lens occupies a large space and is difficult to be applied to electronic devices with a thin and light design such as smartphones, tablet computers, and e-readers. Summary of the Invention

[0004] Embodiments of this application provide an imaging method, an imaging device, an electronic device, and a computer-readable storage medium to solve the problem that the imaging lens in traditional tilt-shift imaging technology occupies a large space.

[0005] An imaging method includes:

[0006] Obtaining a preview image of the imaging area of an image sensor;

[0007] Determining a local area of the preview image as a first image area;

[0008] Obtaining a first imaging area corresponding to the first image area in the image sensor;

[0009] Obtaining the image formed by the first imaging area.

[0010] An imaging device includes:

[0011] A first obtaining unit for obtaining a preview image of the imaging area of an image sensor;

[0012] A determining unit for determining a local area of the preview image as a first image area;

[0013] A second obtaining unit for obtaining a first imaging area corresponding to the first image area in the image sensor;

[0014] A third obtaining unit for obtaining the image formed by the first imaging area.

[0015] An electronic device includes a processor, a memory, and one or more programs. The one or more programs are stored in the memory and configured to be executable by the processor. The programs include instructions for performing the steps in the imaging method described in any of the above embodiments.

[0016] A computer-readable storage medium stores a computer program for electronic data exchange. The computer program is used to cause a computer to execute the imaging method described in any of the above embodiments.

[0017] The above imaging method can determine a first image area based on a preview image of an imaging area and obtain an image formed by a first imaging area corresponding to the first image area as a display image. Since the first image area is a local area of the preview image and the first imaging area is also a local area of the photosensitive element, by obtaining an image of a local area in the imaging area of the photosensitive element, the effect of offsetting the first imaging area relative to the principal optical axis can be achieved, enabling the first imaging area to better adapt to the target object and reducing the perspective distortion phenomenon of the target object.

[0018] At the same time, the effect of shift photography is achieved without the need to move components such as the lens, which is beneficial for saving the space occupied by the shift mechanism and shift travel of the shift lens.

[0019] In addition, by obtaining an image of the first imaging area as a display image in real time, the above imaging method can allow the user to view the actual imaging effect after shift in real time. Compared with the method of reducing distortion by post-image cropping, it is easier to master and adjust the actual imaging effect in real time, improving the convenience and operability of photography. Description of the Drawings

[0020] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0021] Figure 1 It is a schematic flowchart of the imaging method in some embodiments.

[0022] Figure 2 It is a schematic structural diagram of an electronic device in some embodiments.

[0023] Figure 3 It is a schematic structural diagram of an imaging module in some embodiments.

[0024] Figure 4 It is a schematic structural diagram of the preview image covering the display area in some embodiments.

[0025] Figure 5 Schematic diagrams of the target object area and the preview image in some embodiments.

[0026] Figure 6 Schematic flow chart of determining a local area of the preview image as the first image area in some embodiments.

[0027] Figure 7 Schematic flow chart of obtaining a first imaging area corresponding to the first image area in the photosensitive element in some embodiments.

[0028] Figure 8 Schematic flow chart of determining a local area of the preview image as the first image area in some other embodiments.

[0029] Figure 9 Schematic diagram of simultaneous display of the pending image and the preview image in some embodiments.

[0030] Figure 10 Schematic flow chart of determining a local area of the preview image as the first image area in still some other embodiments.

[0031] Figure 11 Schematic diagram of simultaneous display of multiple pending images and the preview image in some embodiments.

[0032] Figure 12 Schematic diagrams of multiple pending images in some embodiments.

[0033] Figure 13 Schematic diagram of the structure of the imaging device in some embodiments.

[0034] Figure 14 Schematic diagram of the structure of the imaging device in some embodiments.

[0035] Reference numerals:

[0036] 10. Electronic device; 11. Middle frame; 12. Back panel; 13. Display panel; 14. Imaging module; 141. Lens; 142. Photosensitive element; 15. Preview image; 151. First image area; 152. Target object area; 1521. First part; 1522. Second part; 153. Pending image area; 154. Pending image; 20. Imaging device; 21. First acquisition unit; 22. Determination unit; 23. Second acquisition unit; 24. Third acquisition unit; 25. Processing module; 26. Communication module; 27. Storage module. Detailed implementation manners

[0037] To facilitate the understanding of the present application, the present application will be described more comprehensively below with reference to the relevant accompanying drawings. Preferred embodiments of the present application are shown in the drawings. However, the present application may be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the understanding of the disclosure of the present application more thorough and comprehensive.

[0038] As used herein, an "electronic device" refers to a device capable of receiving and / or transmitting communication signals connected by any one or more of the following connection methods, including but not limited to:

[0039] (1) Via a wired connection method, such as via a Public Switched Telephone Network (PSTN), Digital Subscriber Line (DSL), digital cable, or direct cable connection;

[0040] (2) Via a wireless interface method, such as a cellular network, Wireless Local Area Network (WLAN), digital television network such as a DVB-H network, satellite network, or AM-FM broadcast transmitter.

[0041] An electronic device configured to communicate via a wireless interface may be referred to as a "mobile terminal". Examples of mobile terminals include, but are not limited to, the following electronic devices:

[0042] (1) A satellite phone or cellular phone;

[0043] (2) A Personal Communications System (PCS) terminal that can combine cellular radiotelephone with data processing, fax, and data communication capabilities;

[0044] (3) A radiotelephone, pager, Internet / intranet access, web browser, notepad, calendar, personal digital assistant (PDA) equipped with a Global Positioning System (GPS) receiver;

[0045] (4) Conventional laptop and / or palm-top receivers;

[0046] (5) Conventional laptop and / or palm-top radiotelephone transceivers, etc.

[0047] Please refer to Figure 1 and Figure 2 , Figure 1The flowchart of the imaging method in some embodiments of the present application is shown. Figure 2 The schematic structural diagram of the electronic device 10 in some embodiments of the present application is shown. The imaging method provided by the present application can be used in the electronic device 10, and the electronic device 10 includes but is not limited to smartphones, tablets, e-readers, etc. In the embodiments of the present application, a smartphone is taken as an example.

[0048] The electronic device 10 includes a middle frame 11, a back panel 12, a display panel 13, and an imaging module 14. The back panel 12 and the display panel 13 are disposed on two opposite sides of the middle frame 11. The back panel 12, the display panel 13, and the middle frame 11 jointly enclose a receiving space. The imaging module 14 is disposed in the receiving space and is exposed on one side of the display panel 13 or the back panel 12 to receive external light. It can be understood that when the imaging module 14 is exposed on one side of the display panel 13, the imaging module 14 can be the front camera of the electronic device 10. When the imaging module 14 is exposed on one side of the back panel 12, the imaging module 14 can be the rear camera of the electronic device 10. In the embodiments of the present application, the imaging module 14 is taken as the rear camera as an example.

[0049] Combined with Figure 3 As shown, in some embodiments, the imaging module 14 includes a lens 141 and a photosensitive element 142 disposed on the image side of the lens 141. The lens 141 may include one or more lenses having optical power and coaxially arranged. The photosensitive element 142 includes but is not limited to a Charge-Coupled Device (CCD) or a Complementary Metal-Oxide-Semiconductor (CMOS). At least part of the light incident on the imaging module 14 from the outside of the electronic device 10 can be adjusted by the lenses in the lens 141 and then projected onto the photosensitive surface of the photosensitive element 142. The photosensitive element 142 can convert the optical signal into an electrical signal and transmit it to the main board of the electronic device 10, or transmit it to a chip in the electronic device 10 specifically for processing image information, so that the electronic device 10 can obtain an image of the target object on the object side of the imaging module 14, realize the imaging function, and the electronic device 10 can display the obtained image of the target object in the display area of the display panel 13 for the user to view.

[0050] Referring to Figure 1 、 Figure 3 and Figure 4 As shown, in some embodiments, the imaging method includes the following steps:

[0051] S110, obtaining a preview image 15 of the imaging area of the photosensitive element 142.

[0052] In step S110, the preview image 15 can be displayed in a part of the display area of the display panel 13 or cover the entire display area. The acquisition of the preview image 15 is mainly for corresponding the preview image 15 to each position of the imaging area of the photosensitive element 142. For example, the preview image 15 can be divided into multiple regions, and the imaging area of the photosensitive element 142 is also divided into multiple regions. The multiple regions on the preview image 15 correspond one by one to the multiple regions on the imaging area of the photosensitive element 142, or each pixel point in the preview image 15 corresponds to each pixel unit on the photosensitive element 142.

[0053] The preview image 15 can be an image captured in real time by the camera module 14, so the preview image 15 can change according to the real-time change of the object-side scene of the camera module 14. The preview image 15 can also be a blank image or an arbitrarily used solid-color frame. The preview image 15 can be divided into multiple regions by lines to correspond one by one to the multiple regions on the imaging area of the photosensitive element 142. Then, in step S110, the image information actually collected from the imaging area of the photosensitive element 142 can be not acquired first, and only the preview image 15 corresponding to the imaging area is acquired, as long as the preview image 15 can establish a corresponding relationship with the imaging area of the photosensitive element 142.

[0054] S120, determine a partial area of the preview image 15 as the first image area 151.

[0055] S130, acquire a first imaging area in the photosensitive element 142 corresponding to the first image area 151.

[0056] Since the multiple regions of the preview image 15 area correspond one by one to the multiple regions of the imaging area of the photosensitive element 142, the first image area 151 corresponds to a part of the regions (the first imaging area) in the imaging area of the photosensitive element 142. Thus, steps S120 and S130 can be understood as a process of selecting a part of the imaging area of the photosensitive element 142. In step S120, the first image area 151 can be determined by the user's operation on the display area, or the electronic device 10 can determine the first image area 151 through an algorithm. Multiple determination methods will be described in detail below.

[0057] It should be noted that if the first image area 151 is determined by the user's operation on the display area, in step S110, the preview image 15 is displayed on the display area of the display panel 13 for the convenience of the user's operation. If the electronic device 10 determines the first image area 151 through an algorithm, in step S110, the preview image 15 may not be displayed on the display area of the display panel 13, and steps S110 - S130 are implemented through the background operation of the electronic device 10. Alternatively, the preview image 15 may be displayed on the display area of the display panel 13 so that the user can obtain in real time the correspondence of the first image area 151 in the preview image 15.

[0058] S140, obtain the image formed by the first imaging area.

[0059] In step S140, the image formed by the first imaging area is displayed on the display area of the display panel 13. The image formed by the first imaging area may be displayed in a part of the display area or cover the entire display area. The image formed by the first imaging area is an image obtained in real time by the first imaging area and will change in real time according to the change of the light incident on the first imaging area. That is to say, after step S140, the user can view on the display area the image collected by a partial area (the first imaging area) of the imaging area of the photosensitive element 142.

[0060] The above imaging method can determine the first image area 151 according to the preview image 15 of the imaging area and obtain the image formed by the first imaging area corresponding to the first image area 151 as the display image. Since the first image area 151 is a partial area of the preview image 15, the first imaging area is also a partial area of the photosensitive element 142. Thus, when the principal optical axis of the lens 141 passes through the geometric center of the photosensitive element 142, for example, through the center of the imaging area of the photosensitive element 142, and the center of the first imaging area does not coincide with the center of the imaging area of the photosensitive element 142, the principal optical axis of the lens 141 does not pass through the center of the first imaging area. That is to say, the principal optical axis of the lens 141 is offset relative to the center of the actually imaged first imaging area. By obtaining the image of a partial area in the imaging area of the photosensitive element 142, the effect of the offset of the first imaging area relative to the principal optical axis can be achieved, so that the first imaging area can better adapt to the target object and reduce the perspective distortion phenomenon of the target object.

[0061] At the same time, on the basis of not needing to move components such as the lens 141, the effect of shift photography is achieved, which is beneficial to saving the space occupied by the shift mechanism and the shift stroke of the shift lens 141, beneficial to compressing the volume of the electronic device 10, and adapting to the thin and light design of the electronic device 10.

[0062] In addition, by obtaining the image of the first imaging area in real time as the display image, the above imaging method enables the user to view the actual imaging effect after shift in real time. Compared with the method of reducing distortion by cropping pictures later, it is easier to master and adjust the actual imaging effect in real time, improving the convenience and operability of imaging.

[0063] Here, the principle of selecting the image formed in the first imaging area to reduce the perspective distortion phenomenon of the target object will be elaborated. Refer to Figure 5 As shown, it can be understood that when the electronic device 10 is used to photograph a target object such as a building, if shooting methods such as shooting from a low angle or a high angle are adopted (the line connecting the geometric center of the target object and the geometric center of the photosensitive element 142 is inclined to the horizontal line), the image of the target object captured by the electronic device 10 will be distorted due to the perspective phenomenon, affecting the shooting effect. If the photosensitive surface of the photosensitive element 142 is parallel to the target object plane and the geometric center of the target object deviates from the center of the photosensitive surface of the photosensitive element 142, when the size of the target object is large, the imaging module 14 usually has difficulty receiving the complete image of the target object.

[0064] Figure 5 Taking the left side as an example, in the image of the target object area 152 captured by the electronic device 10, it includes a first part 1521 and a second part 1522, and the width of the first part 1521 is less than that of the second part 1522. When the actual widths of the target object corresponding to the first part 1521 and the second part 1522 are the same, in the image captured by the electronic device 10, the degree of distortion of the first part 1521 is greater than that of the second part 1522.

[0065] Refer to Figure 5 As shown on the right side, by selecting the first image area 151 in the preview image 15, such that the first image area 151 deviates from the geometric center of the preview image 15 in the direction from the first part 1521 to the second part 1522, then the center of the first imaging area of the photosensitive element 142 deviates from the principal optical axis of the lens 141 in the direction from the first part 1521 to the second part 1522, achieving the effect that the principal optical axis of the lens 141 deviates from the actual imaging area (the first imaging area) in the direction from the second part 1522 to the first part 1521. Thus, according to the relative position relationship between the electronic device 10 and the target object, selecting a local area in the imaging area of the photosensitive element 142 for imaging can indirectly achieve the shift effect of the lens 141 and reduce the perspective distortion phenomenon.

[0066] Based on the above description, refer to Figure 6 As shown, in some embodiments, step S120 includes:

[0067] S121, obtaining the image formed in the imaging area of the photosensitive element 142;

[0068] S122. Obtain the target object area 152 in the image formed by the imaging area of the photosensitive element 142;

[0069] S123. Obtain the deformation condition of the target object area 152 relative to the target object;

[0070] S124. Determine the first image area 151 on the preview image 15 according to the deformation condition.

[0071] Among them, step S123 may include: obtaining the first part 1521 and the second part 1522 of the target object area 152, where the deformation degree of the first part 1521 is greater than that of the second part 1522. In step S124, the first image area 151 is offset relative to the geometric center of the preview image 15 in the direction from the first part 1521 to the second part 1522 to reduce the perspective deformation phenomenon of the target object area 152 in the image obtained by the first image area 151 relative to the target object.

[0072] In step S122, in the image formed by the imaging area, the areas of target objects such as buildings, cars, and natural landscapes in the image are used as the target object area 152.

[0073] In step S122, the target object area 152 can be obtained according to the user's click or box selection operation. Then in step S121, the image formed by the imaging area is displayed in the display area of the display panel 13. In step S122, the user can click on a part of the target object area 152 in the display area, for example, click on the window area of a building, so as to identify and select the entire target object through an algorithm. Or, the user can select the target object area 152 through a box selection operation.

[0074] In step S124, the first image area 151 can be selected on the preview image 15 through an algorithm according to the deformation condition of the target object area 152 relative to the target object, or the first image area 151 can be selected through the user's operation on the display area of the display panel 13.

[0075] In steps S121 - S124, first, the image formed by the imaging area of the photosensitive element 142 can be displayed in the display area of the display panel 13 for the user to perform click or box selection operations. After determining the target object area 152, then hide the image formed by the imaging area of the photosensitive element 142, and display the preview image 15 in the display area for the user to determine the first image area 151. Of course, the imaging area of the photosensitive element 142 and the preview image 15 can also be simultaneously displayed in different areas of the display area.

[0076] In step S122, the object region with the largest image proportion in the image formed by the imaging region of the photosensitive element 142 can also be obtained through algorithm recognition as the target object region 152. Then, in step S121, the image formed by the imaging region of the photosensitive element 142 may not be displayed in the display region, and the electronic device 10 implements steps S121 - S124 in the background through the algorithm.

[0077] It should be noted that Figure 5 It is only the correspondence relationship between the deformation situation of the target object region 152 and the position of the first image region 151 in the preview image 15 in some of the embodiments. According to the deformation situation of the target object region 152, the first image region 151 has different distribution positions and coverage areas in the preview image 15, as long as the image obtained through the first imaging region can reduce the perspective deformation phenomenon of the target object region 152 with respect to the image formed by the entire imaging region of the photosensitive element 142.

[0078] In this application, the target object plane can be determined according to the relative position between the electronic device 10 and the target object. For example, when the angle between the photosensitive surface of the photosensitive element 142 and the height - width plane of the target object is the smallest, the height - width plane of the target object is defined as the target object plane.

[0079] Referring to Figure 7 As shown, in some embodiments, step S130 includes:

[0080] S131, obtaining the position information of each pixel point of the first image region 151 on the preview image 15;

[0081] S132, obtaining the first imaging region according to the position information.

[0082] Among them, the position where each pixel point of the first image region 151 is located on the preview image 15 corresponds one - to - one with the position where the first imaging region is located on the entire imaging region of the photosensitive element 142, so as to determine the first imaging region corresponding to the position of the determined first image region 151 on the imaging region of the photosensitive element 142, which is convenient for obtaining the image formed by a specific region on the photosensitive element 142.

[0083] In some embodiments, before step S140, the imaging method further includes: adjusting the orientation of the photosensitive element 142 so that the photosensitive surface of the photosensitive element 142 is parallel to the target object plane. Among them, the relative position relationship between the electronic device 10 and the target object plane can be adjusted by means of the gyroscope provided in the electronic device 10. For example, when the target object plane is parallel to the vertical direction, before step S140, the orientation of the electronic device 10 can be displayed in the display area of the display panel 13 in the form of a rectangular coordinate system for the user's reference by means of the orientation information sensed by the gyroscope. When the user adjusts the orientation of the electronic device 10 until the orientation information sensed by the gyroscope shows that the electronic device 10 is parallel to the vertical direction, the electronic device 10 is parallel to the target object plane.

[0084] Thus, by making the photosensitive surface of the photosensitive element 142 parallel to the target plane, the variable of the relative position between the target object and the photosensitive element 142 can be reduced, making the determination of the first image area 151 more convenient and rapid, and at the same time, it is also beneficial to reduce the perspective distortion phenomenon.

[0085] In step S120, the first image area 151 is determined according to the user's operation on the display area. Then, in step S110, the preview image 15 is displayed in the display area of the display panel 13.

[0086] For example, with reference to Figure 4 and Figure 8 as shown, in some embodiments, step S120 includes:

[0087] S221, determining a local area on the preview image 15 as the to-be-determined image area 153 according to the user's operation on the display area;

[0088] S222, obtaining the to-be-determined imaging area corresponding to the to-be-determined image area 153 on the photosensitive element 142;

[0089] S223, obtaining the to-be-determined image 154 formed by the to-be-determined imaging area;

[0090] S224, determining the first image area 151 according to the to-be-determined image 154.

[0091] Among them, in steps S221 - S224, after obtaining the to-be-determined image 154 formed by the to-be-determined imaging area, the to-be-determined image 154 is displayed in the display area for the user to preview. The user can determine whether to use the area corresponding to the to-be-determined image 154 as the first image area 151 according to the shooting quality of the to-be-determined image 154, for example, according to the deformation of the target object area 152 in the to-be-determined image 154 relative to the target object. When there is an obvious perspective deformation phenomenon in the target object area 152 of the to-be-determined image 154, the user can repeat steps S221 - S223, adjust the to-be-determined image area 153 through the box selection operation, and display the to-be-determined image 154 formed by the adjusted to-be-determined image area 153 in the display area. By repeatedly adjusting the to-be-determined image area 153 until there is no obvious perspective deformation phenomenon in the target object area 152 of the to-be-determined image 154, the to-be-determined image area 153 is determined as the first image area 151. That is to say, the finally determined first image area 151 is one of the one or more to-be-determined image areas 153.

[0092] Reference Figure 4 As shown, in steps S221 - S224, the preview image 15 can be first displayed in the display area for the user to determine the to-be-determined image area 153 through operations such as box selection, and then the corresponding to-be-determined image 154 is replaced with the preview image 15 and displayed in the display area. If there is a perspective deformation phenomenon in the to-be-determined image 154, through the return operation, the preview image 15 is replaced with the to-be-determined image 154 and displayed in the display area for the user to adjust the to-be-determined image area 153 until a certain to-be-determined image area 153 is determined as the first image area 151.

[0093] Reference Figure 9 As shown, in some other embodiments, in steps S221 - S224, the preview image 15 and the to-be-determined image 154 can also be simultaneously displayed in different areas of the display area, and the to-be-determined image 154 changes in real time according to the change of the to-be-determined image area 153 in the preview image 15. In this way, the user can adjust the to-be-determined image area 153 in the preview image 15 in real time and view the adjusted to-be-determined image 154 in real time, which is beneficial to quickly determining the first image area 151 and improving the adjustment efficiency and user experience.

[0094] Reference Figure 10 and Figure 11 As shown, in some embodiments, step S120 includes:

[0095] S321. Obtain multiple to-be-determined image areas 153 in the preview image 15, and the multiple to-be-determined image areas 153 do not completely overlap;

[0096] Among them, any two to-be-determined image areas 153 can be completely independent or partially overlapping.

[0097] S322. Obtain the to-be-determined imaging regions corresponding to multiple to-be-determined image regions 153 on the photosensitive element 142;

[0098] S323. Obtain the to-be-determined images 154 formed by multiple to-be-determined imaging regions;

[0099] S224. Determine the first image region 151 according to multiple to-be-determined images 154.

[0100] In step S321, the electronic device 10 can select multiple to-be-determined imaging regions that are conducive to reducing the deformation of the target object region 152 through an algorithm according to the deformation of the target object region 152 in the image formed by the imaging region of the photosensitive element 142. In step S323, multiple to-be-determined images 154 are displayed in the display region for the user to preview. The user can select one to-be-determined image 154 with a smaller deformation degree of the target object region 152, so as to determine the to-be-determined image region 153 corresponding to the to-be-determined image 154 as the first image region 151.

[0101] Reference Figure 12 As shown, in some embodiments, in step S323, multiple to-be-determined images 154 are respectively displayed in different regions of the display region for the user to preview and select.

[0102] Reference Figure 11 As shown, in some embodiments, in steps S321 - S324, the preview image 15 and multiple to-be-determined images 154 can also be simultaneously displayed at different positions in the display region, and the to-be-determined image regions 153 are marked in the preview image 15 by means of frame lines or the like, which is convenient for the user to obtain the positions of the to-be-determined image regions 153 corresponding to each to-be-determined image 154. The user can also adjust the position and coverage area of any to-be-determined image region 153 in the preview image 15 in real time through a frame selection operation, so as to adjust any to-be-determined image 154 in real time, improving the confirmation efficiency and usage experience of the first image region 151.

[0103] For the above-mentioned imaging method, first provide a preview image 15 in which each pixel point corresponds one-to-one to the pixel points on the photosensitive element 142, or the position information of each region corresponds one-to-one to multiple regions on the imaging region. According to the user's click and frame selection operations, or through an algorithm, the first image region 151 is selected according to the deformation of the target object region 152, so as to select the first imaging region corresponding to the first image region 151 on the photosensitive element 142, and then obtain the image of the first imaging region. Since the first imaging region is a partial region of the imaging region of the photosensitive element 142, the center of the first imaging region is offset relative to the principal optical axis of the lens 141, so as to achieve the effect of shift photography without moving the lens 141.

[0104] Reference Figure 13As shown in the figure, based on the imaging method described in any of the above embodiments, the present application further provides an imaging device 20, which can be applied to an electronic device 10. The imaging device 20 includes a first acquisition unit 21, a determination unit 22, a second acquisition unit 23, and a third acquisition unit 24. The first acquisition unit 21 is used to acquire a preview image 15 of the imaging area of the photosensitive element 142. The determination unit 22 is used to determine a local area of the preview image 15 as the first image area 151. The second acquisition unit 23 is used to acquire a first imaging area corresponding to the first image area 151 in the photosensitive element 142. The third acquisition unit 24 is used to acquire the image formed by the first imaging area.

[0105] It can be understood that since the above imaging method embodiment and the imaging device 20 embodiment are different presentation forms of the same technical concept, the content of the imaging method embodiment part in the present application should be synchronously adapted to the device embodiment part, and will not be elaborated here.

[0106] Combined with Figure 13 and Figure 14 As shown in the figure, in some embodiments, the imaging device 20 includes a processing module 25 and a communication module 26. The processing module 25 is used to control and manage the actions of the imaging device 20. For example, it executes the steps of the first acquisition unit 21, the determination unit 22, the second acquisition unit 23, and the third acquisition unit 24, and / or is used to execute other processes of the technologies described herein. The communication module 26 is used for the interaction between the imaging device 20 and other devices. The imaging device 20 may further include a storage module 27, and the storage module 27 is used to store the program code and data of the imaging device 20.

[0107] Among them, the processing module 25 may be a processor or a controller. For example, it may be a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an ASIC, an FPGA, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The processor may also be a combination for implementing computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc. The communication module 26 may be a transceiver, an RF circuit, or a communication interface, etc. The storage module 27 may be a memory. The processing module 25 is capable of executing one or more programs stored in the storage module 27, and the programs include instructions for executing the steps in the imaging method described in any of the above embodiments.

[0108] Among them, all relevant contents of each scenario involved in the above imaging method embodiment can be cited in the function description of the corresponding functional module, and will not be elaborated here. The above imaging device 20 can execute Figure 1The imaging method shown above.

[0109] The above mainly introduced the solution of the embodiment of the present application from the perspective of the execution process on the method side. It can be understood that in order for the electronic device 10 to implement the above functions, it includes the corresponding hardware structures and software modules for executing each function. Those skilled in the art should easily realize that, combining the units and algorithm steps of each example described in the embodiments provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed in the way of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0110] The embodiments of the present application can divide the functional units of the electronic device 10 according to the above method examples. For example, each functional unit can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. It should be noted that the division of units in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.

[0111] The embodiments of the present application also provide a chip. The chip includes a processor for calling and running a computer program from a memory, so that the device installed with the chip executes some or all of the steps described by the electronic device 10 in the imaging method embodiment as above.

[0112] The embodiments of the present application also provide a computer storage medium. The computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute some or all of the steps of any of the methods described in the imaging method embodiment as above. The above computer includes the electronic device 10.

[0113] The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute some or all of the steps of any of the methods described in the imaging method embodiment as above. The computer program product can be a software installation package, and the above computer includes the electronic device 10.

[0114] It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0115] In the above embodiments, the descriptions of the respective embodiments have their own focuses. For the parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0116] In several embodiments provided by this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical or other forms.

[0117] The units described as separate components above may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0118] In addition, the functional units in each embodiment of this application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0119] If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the above methods in various embodiments of this application. The aforementioned memory includes: various media such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs that can store program codes.

[0120] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program. This program can be stored in a computer-readable memory, and the memory can include: flash drives, read-only memories (abbreviation: ROM, English: Read-Only Memory), random access memories (abbreviation: RAM, English: Random Access Memory), magnetic disks, or optical discs, etc.

[0121] The technical features of the above-described embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as falling within the scope described in this specification.

[0122] The above-described embodiments only represent several implementation manners of this application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the patent application. It should be noted that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can still be made, and these all belong to the protection scope of this application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims

1. A camera method, characterized in that, Including: Obtain a preview image of the imaging area of the photosensitive element; Determine a local area of the preview image as a first image area; Obtain a first imaging area corresponding to the first image area in the photosensitive element; Obtain the image formed by the first imaging area.

2. The imaging method according to claim 1, wherein, The step of obtaining the first imaging area corresponding to the first image area in the photosensitive element includes: Obtain the position information of each pixel point of the first image area on the preview image; Obtain the first imaging area according to the position information.

3. The imaging method according to claim 1, wherein Before the step of obtaining the image formed by the first imaging area, the imaging method further includes: Adjust the orientation of the photosensitive element so that the photosensitive surface of the photosensitive element is parallel to the target object plane.

4. The imaging method according to claim 1, wherein In the step of obtaining a preview image of the imaging area of the photosensitive element, display the preview image in the display area of the electronic device. In the step of determining a local area of the preview image as a first image area, determine the first image area according to the operation of the user on the display area.

5. The imaging method according to claim 4, wherein The step of determining a local area of the preview image as a first image area includes: Determine a local area on the preview image as a to-be-determined image area according to the operation of the user on the display area; Obtain a to-be-determined imaging area corresponding to the to-be-determined image area on the photosensitive element; Obtain the to-be-determined image formed by the to-be-determined imaging area; Determine the first image area according to the to-be-determined image.

6. The imaging method according to claim 1, wherein The step of determining a local area of the preview image as a first image area includes: Obtain a plurality of to-be-determined image areas in the preview image, and the plurality of to-be-determined image areas do not completely overlap; Obtain to-be-determined imaging areas corresponding to the plurality of to-be-determined image areas on the photosensitive element; Obtain the to-be-determined images formed by the plurality of to-be-determined imaging areas; Determine the first image area according to the plurality of to-be-determined images.

7. The imaging method according to claim 1, characterized in that The step of determining a local area of the preview image as a first image area includes: Obtain the image formed by the imaging area of the photosensitive element; Obtain the target object area in the image formed by the imaging area of the photosensitive element; Obtain the deformation condition of the target object area relative to the target object; Determine the first image area on the preview image according to the deformation condition.

8. The imaging method according to claim 7, wherein The step of obtaining the deformation condition of the target object area relative to the target object includes: obtaining a first part and a second part of the target object area, wherein the deformation degree of the first part is greater than that of the second part; In the step of determining the first image area on the preview image according to the deformation condition, the first image area is offset from the geometric center of the preview image in the direction from the first part to the second part.

9. The imaging method according to claim 7, characterized in that, In the step of obtaining the target object area in the image formed by the imaging area of the photosensitive element, obtain the target object area according to the click or box selection operation of the user; Or, obtain the object area with the largest image proportion in the image formed by the imaging area of the photosensitive element as the target object area.

10. An imaging device, characterized in that, Including: A first obtaining unit for obtaining a preview image of the imaging area of the photosensitive element; A determination unit, configured to determine a local area of the preview image as a first image area; A second acquisition unit, configured to acquire a first imaging area corresponding to the first image area in the photosensitive element; A third acquisition unit, configured to acquire an image formed by the first imaging area.

11. An electronic device, characterized in that, Comprising a processor, a memory, and one or more programs, the one or more programs are stored in the memory and configured to be executable by the processor, the programs comprising instructions for performing the steps in the imaging method according to any one of claims 1-9.

12. A computer-readable storage medium, characterized in that, A computer program stored for electronic data interchange, the computer program being configured to cause a computer to perform the imaging method according to any one of claims 1-9.