Information processing method, system and electronic equipment
By adjusting the acquisition area of the camera module's photosensitive array in different postures of folding screen mobile phones, the problem of different image effects in different postures is solved, the consistency of images in different postures is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202211230639.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-30
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-09-30
AI Technical Summary
When taking photos using different postures, the foldable screen mobile phone selfie results in large differences in framing and imaging due to the different camera positions, which reduces the user experience.
By adopting different acquisition strategies under different device postures to determine the different acquisition areas of the camera module's photosensitive array, we ensure that the same image effect is output under different postures.
By adjusting the acquisition area of the photosensitive array under different device postures, the consistency of image effects collected under different postures is achieved, thereby improving the user experience.
Smart Images

Figure CN116074610B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing, and in particular to an information processing method, system and electronic device. Background Art
[0002] When capturing images with electronic devices, such as mobile phone selfies, the screen size or camera position can lead to significant differences in the framing and image quality when taking photos in different postures. For example, when taking a selfie with the external screen of a foldable phone, with a 1:1 aspect ratio, at the same distance, if the phone is held upright (with the camera facing downward), the portrait will easily exceed the viewfinder. However, if the phone is held upside down (with the camera facing upward), this problem does not occur. As a result, the resulting images from the two different postures are different, which reduces the user experience. Summary of the Invention
[0003] In view of this, the present application provides an information processing method, system, and electronic device, the specific solutions of which are as follows:
[0004] An information processing method, comprising:
[0005] Determining a first collection area based on a first strategy, wherein first collection data of the first collection area is used for output by a display module;
[0006] determining a second acquisition area based on a second strategy different from the first strategy, wherein second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module;
[0007] Among them, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module.
[0008] Further,
[0009] A first device posture corresponding to the first policy is different from a second device posture corresponding to the second policy;
[0010] The target direction of the first side of the output area of the display module toward the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
[0011] Furthermore, it also includes:
[0012] Get target parameters;
[0013] The determining of the first acquisition area based on the first strategy includes:
[0014] If the target parameter indicates that the electronic device is in a first device posture, determining a first acquisition area;
[0015] The determining the second acquisition area based on a second strategy different from the first strategy includes:
[0016] If the target parameter indicates that the electronic device is in a second device posture, a second acquisition area is determined.
[0017] Furthermore, obtaining the target parameters includes:
[0018] Obtaining target parameters for characterizing a relative positional relationship between a first body and a second body of the electronic device;
[0019] The electronic device being in the first device posture means that the first body is in a closed state relative to the second body;
[0020] The electronic device is in the second device posture when the first body is in an unfolded state relative to the second body.
[0021] Furthermore, obtaining the target parameters includes:
[0022] If the target application is in a running state, the target parameters are obtained.
[0023] An electronic device, comprising:
[0024] A camera module is used to obtain collected data;
[0025] A display module, used to output the collected data obtained by the camera module;
[0026] a processor, configured to determine a first acquisition area based on a first strategy, wherein first acquired data of the first acquisition area is used for output by a display module; and determine a second acquisition area based on a second strategy different from the first strategy, wherein second acquired data of the second acquisition area is used for output by the display module, wherein the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module;
[0027] Among them, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module.
[0028] Further,
[0029] The camera module is close to a first side of an output area of the display module.
[0030] Further,
[0031] A first device posture corresponding to the first policy is different from a second device posture corresponding to the second policy;
[0032] The target direction of the first side of the output area of the display module toward the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
[0033] An information processing system comprising:
[0034] A first determining unit is configured to determine a first collection area based on a first strategy, wherein first collected data in the first collection area is output to a display module;
[0035] a second determining unit, configured to determine a second acquisition area based on a second strategy different from the first strategy, wherein second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module;
[0036] Among them, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module.
[0037] Furthermore, it also includes:
[0038] An image processing module is used to obtain a first acquisition area or a second acquisition area, crop the image obtained by the camera module based on the first acquisition area or the second acquisition area, obtain first acquisition data corresponding to the first acquisition area, or obtain second acquisition data corresponding to the second acquisition area. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0040] Figure 1 A flowchart of an information processing method disclosed in an embodiment of the present application;
[0041] Figure 2 A schematic diagram of the corresponding relationship between the acquisition area in the photosensitive array when an electronic device in different postures acquires images in the prior art;
[0042] Figure 3a A schematic diagram of a target area in a current scene disclosed in an embodiment of the present application;
[0043] Figure 3b When obtaining a target area through a first acquisition area, a corresponding relationship between the first acquisition area and the photosensitive array is disclosed in an embodiment of the present application;
[0044] Figure 3c When obtaining a target area through the second acquisition area, a corresponding relationship between the second acquisition area and the photosensitive array is disclosed in an embodiment of the present application;
[0045] Figure 4 A flowchart of an information processing method disclosed in an embodiment of the present application;
[0046] Figure 5a A schematic diagram illustrating a correspondence between an output area of a camera module and a display module disclosed in an embodiment of the present application;
[0047] Figure 5b A schematic diagram illustrating a correspondence between an output area of a camera module and a display module disclosed in an embodiment of the present application;
[0048] Figure 6a A schematic diagram of the positional relationship between a first side and a second side of an output area of a display module of an electronic device disclosed in an embodiment of the present application when the electronic device is in a certain device posture;
[0049] Figure 6b A schematic diagram of the positional relationship between a first side and a second side of an output area of a display module when an electronic device disclosed in an embodiment of the present application is in another device posture;
[0050] Figure 7a A schematic diagram of a first device posture disclosed in an embodiment of the present application;
[0051] Figure 7b A schematic diagram of a second device posture disclosed in an embodiment of the present application;
[0052] Figure 8 A flowchart of an information processing method disclosed in an embodiment of the present application;
[0053] Figure 9a The corresponding relationship between the position of the second acquisition area in the photosensitive array when the electronic device disclosed in the embodiment of the present application is in the unfolded state;
[0054] Figure 9b The corresponding relationship between the position of the second acquisition area in the photosensitive array when the electronic device disclosed in the embodiment of the present application is in a closed state;
[0055] Figure 10 A schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application;
[0056] Figure 11 This is a schematic diagram of the structure of an information processing system disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0057] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0058] This application discloses an information processing method, the flow chart of which is as follows: Figure 1 As shown, including:
[0059] Step S11: determining a first collection area based on a first strategy, wherein first collected data of the first collection area is used for output by a display module;
[0060] Step S12: determining a second acquisition area based on a second strategy different from the first strategy, and the second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the acquisition camera module; if the scene acquired by the camera module remains unchanged, the display content of the first acquisition data output through the display module corresponds to the same target area of the scene as the display content of the second acquisition data output through the display module corresponds to the same target area of the scene.
[0061] The camera module in an electronic device corresponds to a complete photosensitive array. When using the electronic device for image acquisition, the camera module of the electronic device may have different image acquisition strategies. When different image acquisition strategies acquire images through the complete photosensitive array, the images acquired may be different.
[0062] For example, when taking a selfie with a mobile phone, when the phone is upright, that is, the camera is at the top, the image obtained by the complete photosensitive array is different from the image obtained by the complete photosensitive array when the phone is upside down. Figure 2As shown, the same portrait of the same scene is captured through the camera module. When the phone is upright, the image obtained is the information in the solid-line frame, and when the phone is inverted, the image obtained is the information in the dotted-line frame. Since the position of the camera module on the electronic device is fixed and does not change, when the phone is upright, the area in the scene corresponding to the photosensitive array in the camera module is the area in the solid-line frame, and when the phone is inverted, the area in the scene corresponding to the photosensitive array in the camera module is the area in the dotted-line frame, which will result in different images obtained.
[0063] In order to avoid the above situation and ensure that the electronic device can obtain the same image when collecting images of the same scene through different strategies, in this solution, when different strategies are used for image collection, different strategies correspond to different areas of the photosensitive array in the camera module, and images are obtained through the photosensitive arrays in different areas to ensure that the camera module can obtain the same image even if different strategies are used.
[0064] Specifically, different photosensitive array acquisition areas are pre-set for different strategies, such as: the first strategy corresponds to the first acquisition area, and the second strategy corresponds to the second acquisition area.
[0065] When it is determined that the electronic device is currently capturing an image using the first strategy, a first capture area corresponding to the first strategy is determined based on the first strategy, and an image is acquired through the first capture area, that is, the first capture area obtains first capture data, the first capture data being the image obtained using the first strategy, and the display module of the electronic device outputs the first capture data;
[0066] When it is determined that the electronic device is currently capturing images through the second strategy, a second capture area corresponding to the second strategy is determined based on the second strategy, and the image is acquired through the second capture area, that is, the second capture area obtains second capture data, which is the image obtained through the second strategy, and the display module of the electronic device outputs the second capture data.
[0067] If the first strategy is different from the second strategy, the first acquisition area and the second acquisition area in the photosensitive array are different. When the scene acquired by the camera module remains unchanged, the first acquisition data and the second acquisition data are the same, that is, the same image is obtained through different strategies. The same image is the image of the same target area in the same scene.
[0068] For example: the image to be collected currently corresponds to the target area in the current scene, such as Figure 3a As shown, the solid-line frame is the target area in the current scene. To obtain an image of the target area, when the camera module of the electronic device captures an image using the first strategy, the first capture area in the photosensitive array can be selected, such as Figure 3bAs shown in FIG, the position of the first acquisition area in the photosensitive array, and the first acquisition data in the first acquisition area is the image of the target area in the current scene; when the camera module of the electronic device acquires an image through the second strategy, a second acquisition area different from the first acquisition area in the photosensitive array can be selected, such as Figure 3c As shown, the position of the second acquisition area in the photosensitive array, and the second acquisition data in the second acquisition area is the image in the target area in the current scene.
[0069] like Figure 3b and 3c As shown, it is clear that the first acquisition area and the second acquisition area of the photosensitive array are different, but the first acquisition data obtained by the first acquisition area under the first strategy and the second acquisition data obtained by the second acquisition area under the second strategy are the same. As in the above example, when acquiring images using different strategies, images of the same target area in the same scene can be acquired using different acquisition areas in the photosensitive array.
[0070] The first collected data output by the display module and the second collected data output by the display module may be completely identical, or may have an error within a specific threshold range.
[0071] When the first acquisition data and the second acquisition data are exactly the same, that is, the target area of the scene corresponding to the first acquisition data is exactly the same as the target area of the scene corresponding to the second acquisition data; when there is an error between the first acquisition data and the second acquisition data within a specific threshold range, it indicates that the target area of the scene corresponding to the first acquisition data is not exactly the same as the target area of the scene corresponding to the second acquisition data. For example, the overlapping part between the target area of the scene corresponding to the first acquisition data and the target area of the scene corresponding to the second acquisition data reaches a certain threshold, such as the overlap rate is 97% and the threshold is 95%. Then the overlap rate reaches the threshold, and it can be determined that the target area of the scene corresponding to the first acquisition data is the same as the target area of the scene corresponding to the second acquisition data.
[0072] It should be noted that the first acquisition data is obtained through the first acquisition area of the photosensitive array based on the first strategy, and the second acquisition data is obtained through the second acquisition area of the photosensitive array based on the second strategy. If the first acquisition data and the second acquisition data are to correspond to the same target area in the same scene, it is necessary to ensure that when the image of the target area is collected by the electronic device, the position of the electronic device remains unchanged, but the strategy is different. If the position of the electronic device changes, the acquisition area of the camera module can be changed directly by manually adjusting the position of the electronic device. There is no need to adopt this solution to collect images of the same target area under different strategies.
[0073] The information processing method disclosed in this embodiment determines a first acquisition area based on a first strategy, and the first acquisition data of the first acquisition area is used for output by the display module. A second acquisition area is determined based on a second strategy different from the first strategy, and the second acquisition data of the second acquisition area is used for output by the display module. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module. If the scene captured by the camera module remains unchanged, the display content output by the display module of the first acquisition data corresponds to the same target area of the scene as the display content output by the display module of the second acquisition data. In this solution, when the same scene is captured through different acquisition areas under different strategies, the captured images output by the display module are the same. This avoids the problem of reduced user experience caused by different effects of the captured images when the electronic device captures images through different postures.
[0074] This embodiment discloses an information processing method, the flow chart of which is as follows: Figure 4 As shown, including:
[0075] Step S41: determining a first collection area based on a first strategy, and outputting first collected data of the first collection area to a display module;
[0076] Step S42: Determine a second acquisition area based on a second strategy different from the first strategy, and output second acquired data of the second acquisition area to the display module. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the acquisition camera module. If the scene acquired by the acquisition camera module remains unchanged, the display content of the first acquisition data output through the display module corresponds to the same target area of the scene as the display content of the second acquisition data output through the display module.
[0077] Step S43, the first device posture corresponding to the first strategy is different from the second device posture corresponding to the second strategy, and the target direction of the first edge of the output area of the display module to the second edge of the display area opposite to the first edge is relative to the relative reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
[0078] The first strategy corresponds to the first device posture, and the second strategy corresponds to the second device posture, that is, under different device postures, image capture of the same target area in the same scene is achieved through different capture areas of the photosensitive array.
[0079] In electronic devices, the camera module is fixedly positioned on the device. However, when the device's posture changes, the camera module's orientation relative to the entire device changes. Consequently, when the device's posture changes, if the entire photosensitive array is used to capture images, the area of the current scene captured by the camera module's photosensitive array will change. Therefore, in this embodiment, when the device's posture changes, the photosensitive array's capture area also changes accordingly, ensuring that images captured at different device postures correspond to the same target area within the same scene.
[0080] The output area of the display module is usually the physical display area of the electronic device. The camera module is usually located at the top of the electronic device as a whole, above the output area of the display module. When the electronic device is placed upright, the camera module is still located at the top of the electronic device as a whole, and above the output area of the display module. Figure 5a As shown, it includes: a camera module 51 and an output area 52 of the display module; when the electronic device is inverted, the camera module is located at the bottom of the electronic device as a whole and below the output area of the display module, as shown in FIG. Figure 5b As shown, it includes: a camera module 51 and an output area 52 of the display module.
[0081] The camera module is close to the first side of the output area of the display module, wherein the camera module can be located inside the output area of the display module, that is, inside the output area of the display module close to the first side, or it can be located outside the output area of the display module, that is, outside the output area of the display module close to the first side. In this embodiment, the content of the camera module being located in the output area of the display module is described.
[0082] Specifically, a target direction can be set on the electronic device, and the target direction is: the first side of the output area of the display module points to the direction of the second side of the display area opposite to the first side. No matter what posture the electronic device is in, the first side and the second side of the output area of the display module in the electronic device are always relative, that is, the first side and the second side are parallel. Then, the target direction from the first side to the second side is also determined. No matter how the posture of the electronic device changes, the target direction is always the direction from the first side to the second side, such as: Figure 6a As shown, it includes: a first side 61 and a second side 62. When the electronic device is placed upright, the side above the output area of the display module is determined as the first side, the side parallel to the first side is the second side, and the direction from the first side to the second side is the target direction, as shown by the arrow in the figure; Figure 6bAs shown, it includes: a first side 61 and a second side 62. When the electronic device is inverted, the side located below the output area of the display module is the first side, the side parallel to the first side is the second side, and the direction from the first side toward the second side is the target direction, as shown by the arrow in the figure, that is, no matter how the posture of the electronic device changes, the target direction is always the direction from the first side toward the second side.
[0083] At the same time, the relationship between the first device posture and the second device posture is set to be relative to a specific reference surface. The specific reference surface can be the ground, desktop, wall or other locations or a surface with a fixed orientation. The target direction is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture. Since the target direction is always from the first side to the second side regardless of how the posture of the electronic device changes, the target direction is relative to the reference surface in different postures, that is, if the target direction is downward in the first device posture, it is upward in the second device posture; if the target direction is left in the first device posture, it is right in the second device posture.
[0084] Then the first device posture and the second device posture can be as follows Figure 6a and 6b As shown, the first device posture is not limited to Figure 6a The posture shown is still Figure 6b If the first device posture is Figure 6a The posture shown, the second device posture is Figure 6b If the first device posture is Figure 6b The posture shown, the second device posture is Figure 6a The posture shown;
[0085] Alternatively, the first device posture and the second device posture can also be as follows Figure 7a and 7b As shown, Figure 7a As shown, it includes: a first side 71 and a second side 72. In the current device posture, the first side is located on the left side of the output area of the display module, and the second side is located on the right side of the output area of the display module; Figure 7b As shown, the first side 71 and the second side 72, in the current device posture, the first side is located on the right side of the output area of the display module, and the second side is located on the left side of the output area of the display module. Figure 7a The posture shown, the second device posture is Figure 7b If the first device posture is Figure 7b The posture shown, the second device posture is Figure 7a The posture shown.
[0086] That is, when the posture of the first device is determined, the posture of the second device can also be determined directly. It is not that the electronic device is switched from landscape to portrait, nor is it switched from portrait to landscape. Instead, when the display screen in the first device posture is landscape, the display screen in the second device posture is also landscape. When the display screen in the first device posture is portrait, the display screen in the second device posture is also portrait.
[0087] The information processing method disclosed in this embodiment determines a first acquisition area based on a first strategy, and the first acquisition data of the first acquisition area is used for display module output; determines a second acquisition area based on a second strategy different from the first strategy, and the second acquisition data of the second acquisition area is used for display module output, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module; wherein, if the scene acquired by the camera module remains unchanged, the display content of the first acquisition data output through the display module corresponds to the same target area of the scene as the display content of the second acquisition data output through the display module corresponds to the same target area of the scene; the first device posture corresponding to the first strategy is different from the second device posture corresponding to the second strategy, and the first edge of the output area of the display module is in a target direction to the second edge of the display area opposite to the first edge, relative to the relative reference surface when the electronic device is in the first device posture and when the electronic device is in the second device posture. When this solution collects images of the same scene through different collection areas under different strategies, the collected images output by the display module are the same. Different strategies correspond to different postures of the electronic device, so that the same image can be obtained when the same target area in the same scene is collected by electronic devices with different postures. This avoids the problem of reduced user experience caused by different effects of the collected images when the electronic device collects images through different postures.
[0088] This embodiment discloses an information processing method, the flow chart of which is as follows: Figure 8 As shown, including:
[0089] Step S81: obtaining target parameters;
[0090] Step S82: If the target parameter indicates that the electronic device is in a first device posture, a first collection area is determined, and first collection data of the first collection area is used for output by a display module;
[0091] Step S83: If the target parameter characterizes that the electronic device is in the second device posture, determine the second acquisition area, and the second acquisition data of the second acquisition area is used for display module output. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the acquisition camera module; if the scene acquired by the acquisition camera module remains unchanged, the display content output by the display module of the first acquisition data corresponds to the target area of the scene, and the display content output by the display module of the second acquisition data corresponds to the target area of the scene.
[0092] The device posture of the electronic device can be determined based on the target parameters. When the values of the target parameters are different, it indicates that the device posture of the electronic device is different. Different strategies are adopted when acquiring images in different device postures, and the corresponding acquisition areas in the photosensitive array are different.
[0093] That is, if the target parameter indicates that the electronic device is in a first device posture, a first collection area is determined; if the target parameter indicates that the electronic device is in a second device posture, a second collection area is determined.
[0094] The target parameters may be parameters of different types, such as parameters collected by a gyroscope, or the relative positional relationship between the two bodies of an electronic device having two bodies.
[0095] Specifically, if the target parameter is a target parameter used to characterize the relative position relationship between the first body and the second body of the electronic device, it can be determined based on the target parameter that the electronic device is in the first device posture as the first body is in a closed state relative to the second body, and it can be determined based on the target parameter that the electronic device is in the second device posture as the first body is in an unfolded state relative to the second body.
[0096] If the electronic device is a foldable electronic device, then as the electronic device is closed or unfolded, the first sensor at the connection axis between the first body and the second body on the electronic device, or the second sensor on the first body or the second body that can detect the relative position of the first body and the second body, can detect the current posture of the electronic device. The positional relationship between the first body and the second body detected by the first sensor can be used to determine the current posture of the electronic device, thereby determining the collection area on the photosensitive array when the camera module collects images, and then obtaining an image of the target area in the current scene.
[0097] If it is determined based on the target parameters that the first body and the second body are currently in a closed state, then a first acquisition area of the photosensitive array is determined, and an image is acquired through the first acquisition area of the photosensitive array. At this time, the image obtained is an image of the target area in the current scene;
[0098] If in the same scene, based on the target parameters, it is determined that the first body and the second body are currently in the unfolded state, then the second acquisition area of the photosensitive array is determined, and the image is captured through the second acquisition area of the photosensitive array. At this time, the image obtained is also the image of the target area in the current scene.
[0099] like Figure 9a As shown, when the first body and the second body are in the unfolded state, the corresponding relationship between the position of the camera module in the electronic device and the position of the second acquisition area selected at this time in the photosensitive array includes: camera module 91, photosensitive array 92 and second acquisition area 93, wherein, Figure 9a The camera module 91 is located on the opposite side of the main display screen of the electronic device. The portion of the electronic device having the camera module 91 on the opposite side of the main display screen has a secondary display screen. The secondary display screen can display the image currently obtained by the camera module. At this time, the positional relationship between the second acquisition area and the photosensitive array is as follows: Figure 9a As shown in, where Figure 9a Point O in is the origin of the photosensitive array;
[0100] Figure 9b As shown, when the first body and the second body are in a closed state, the position of the camera module in the electronic device and the position of the first acquisition area selected at this time in the photosensitive array correspondence relationship, including: camera module 91, photosensitive array 92 and first acquisition area 94, wherein, Figure 9b The closed state shown in Figure 9a The camera module is folded outwards to the expanded state shown in FIG. Figure 9b In the state shown, the position of the camera module changes, and the position of the origin O of the photosensitive array changes accordingly, as shown in FIG. Figure 9b As shown, accordingly, in order to obtain an image of the same target area, it is necessary to obtain the image through the first acquisition area in the photosensitive array. The first acquisition area is different from the second acquisition area, so as to achieve the acquisition of images of the same target area through different acquisition areas of the photosensitive array.
[0101] If the target parameters are parameters collected by a gyroscope, after obtaining the parameters collected by the gyroscope, it is possible to directly determine whether the electronic device is currently in an upright state or an inverted state based on the parameters collected by the gyroscope. Whether the electronic device is upright or inverted can be specified by the target direction of the first side toward the second side.
[0102] Specifically, if the target application is in a running state, the target parameters are obtained. In this case, the target parameters are parameters collected by the gyroscope.
[0103] That is, only when the target application is in operation can the parameters collected by the gyroscope be obtained, and the collection area on the photosensitive array can be determined based on the parameters collected by the gyroscope, and then the image of the target area in the current scene can be collected.
[0104] There are multiple applications that can use the camera module to capture images, such as: camera applications, WeChat and other applications for instant messaging, Alipay and other applications for identity authentication. It can be set that only when the target application is in running state and calls the camera module, the target parameters will be obtained, and the acquisition area of the photosensitive array will be determined based on the target parameters to obtain the image; for non-target applications that are in running state and call the camera module, there is no need to obtain the target parameters, nor is there any need to distinguish between different acquisition areas of the photosensitive array. Image acquisition is directly performed through the conventional photosensitive array area, such as: image acquisition through the preset general area of the photosensitive array.
[0105] Taking the target parameters as parameters collected by a gyroscope as an example, when a target application is running, the gyroscope collects the parameters. When the target application calls the camera module, the target application obtains the target parameters. That is, the gyroscope sends the collected parameters to the target application via the gyroscope hardware abstraction layer and the gyroscope service layer. The target application obtains the parameters collected by the gyroscope. If it is determined based on the parameters collected by the gyroscope that the electronic device is currently in a first device posture, that is, the first body is in a closed state relative to the second body, a first collection area is determined based on the first device posture. The camera module sends the first collection area to the processing module of the camera hardware abstraction layer via the camera service layer. The processing module of the camera hardware abstraction layer sends the first collection area to the image sensor. The image sensor determines the first collection area in its photosensitive array. The image sensor and the image signal processor (ISP) perform perspective cropping according to the first collection area to obtain first collection data that conforms to the first collection area. That is, an image is acquired through the first collection area. The obtained first collection data is sent to the processing module of the camera hardware abstraction layer so that the processing module of the hardware abstraction layer sends the first collection data to the target application. The target application then outputs the first collection data to the display module for display.
[0106] The information processing method disclosed in this embodiment obtains a target parameter. If the target parameter indicates that the electronic device is in a first device posture, a first acquisition area is determined, and the first acquisition data of the first acquisition area is used for display module output. If the target parameter indicates that the electronic device is in a second device posture, a second acquisition area is determined, and the second acquisition data of the second acquisition area is used for display module output. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module. Wherein, if the scene captured by the camera module does not change, the display content of the first acquisition data output through the display module corresponds to the target area of the scene, and the display content of the second acquisition data output through the display module corresponds to the same target area of the scene. In this solution, when different acquisition areas are determined by different device postures and images of the same scene are captured based on different acquisition areas, the captured images output by the display module are the same. This avoids the problem of reduced user experience caused by different effects of the captured images when the electronic device captures images through different postures.
[0107] This embodiment discloses an electronic device, the structural diagram of which is shown in FIG. Figure 10 As shown, including:
[0108] Camera module 101 , display module 102 and processor 103 .
[0109] The camera module 101 is used to obtain collected data;
[0110] The display module 102 is used to output the collected data obtained by the camera module;
[0111] The processor 103 is configured to determine a first acquisition area based on a first strategy, wherein first acquired data of the first acquisition area is used for output by the display module; and determine a second acquisition area based on a second strategy different from the first strategy, wherein second acquired data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module;
[0112] If the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module.
[0113] Furthermore, the camera module is close to a first side of the output area of the display module.
[0114] Further,
[0115] The first device posture corresponding to the first strategy is different from the second device posture corresponding to the second strategy;
[0116] The target direction from the first side of the output area of the display module to the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
[0117] Furthermore, the processor is further configured to:
[0118] Get target parameters;
[0119] The processor determines the first acquisition area based on the first strategy, including:
[0120] If the processor determines that the target parameter represents that the electronic device is in the first device posture, determining a first acquisition area;
[0121] The processor determines a second acquisition area based on a second strategy different from the first strategy, including:
[0122] If the processor determines that the target parameter indicates that the electronic device is in a second device posture, a second acquisition area is determined.
[0123] Furthermore, the processor is configured to:
[0124] Obtaining target parameters for characterizing a relative positional relationship between a first body and a second body of the electronic device;
[0125] The electronic device is in the first device posture when the first body is in a closed state relative to the second body; the electronic device is in the second device posture when the first body is in an unfolded state relative to the second body.
[0126] Further,
[0127] If the target application is running, get the target parameters.
[0128] The electronic device disclosed in this embodiment is implemented based on the information processing method disclosed in the above embodiments, which will not be described in detail here.
[0129] The electronic device disclosed in this embodiment determines a first acquisition area based on a first strategy, and the first acquisition data of the first acquisition area is used for output by the display module. A second acquisition area is determined based on a second strategy different from the first strategy, and the second acquisition data of the second acquisition area is used for output by the display module. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module. If the scene captured by the camera module remains unchanged, the display content output by the display module of the first acquisition data corresponds to the same target area of the scene as the display content output by the display module of the second acquisition data. When the same scene is captured by different acquisition areas under different strategies, the captured images output by the display module are the same. This avoids the problem of reduced user experience caused by different effects of the captured images when the electronic device captures images through different postures.
[0130] This embodiment discloses an information processing system, and its structural diagram is shown in FIG. Figure 11 Shown, including:
[0131] A first determining unit 111 and a second determining unit 112 .
[0132] The first determining unit 111 is used to determine a first collection area based on a first strategy, wherein the first collection data of the first collection area is used for output by the display module;
[0133] The second determining unit 112 is configured to determine a second acquisition area based on a second strategy different from the first strategy, wherein the second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module;
[0134] If the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module.
[0135] Furthermore, the information processing system disclosed in this embodiment may further include:
[0136] The image processing module is used to obtain a first acquisition area or a second acquisition area, crop the image obtained by the camera module based on the first acquisition area or the second acquisition area, obtain first acquisition data corresponding to the first acquisition area, or obtain second acquisition data corresponding to the second acquisition area.
[0137] The information processing system disclosed in this embodiment is implemented based on the information processing method disclosed in the above embodiments, and will not be described in detail here.
[0138] The information processing system disclosed in this embodiment determines a first acquisition area based on a first strategy, and the first acquisition data of the first acquisition area is used for output by the display module. A second acquisition area is determined based on a second strategy different from the first strategy, and the second acquisition data of the second acquisition area is used for output by the display module. The second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module. If the scene captured by the camera module remains unchanged, the display content of the first acquisition data output through the display module corresponds to the same target area of the scene as the display content of the second acquisition data output through the display module. When the same scene is captured through different acquisition areas under different strategies, the captured images output by the display module are the same. This avoids the problem of reduced user experience caused by different effects of the captured images when the electronic device captures images through different postures.
[0139] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0140] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0141] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0142] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An information processing method, comprising: Determining a first collection area based on a first strategy, wherein first collection data of the first collection area is used for output by a display module; determining a second acquisition area based on a second strategy different from the first strategy, wherein second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module; Wherein, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module; in, A first device posture corresponding to the first policy is different from a second device posture corresponding to the second policy; The target direction from the first side of the output area of the display module to the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
2. The method according to claim 1, further comprising: Get target parameters; The determining of the first acquisition area based on the first strategy includes: If the target parameter indicates that the electronic device is in a first device posture, determining a first acquisition area; The determining the second acquisition area based on a second strategy different from the first strategy includes: If the target parameter indicates that the electronic device is in a second device posture, a second acquisition area is determined.
3. The method according to claim 2, wherein: The obtaining of target parameters includes: Obtaining target parameters for characterizing a relative positional relationship between a first body and a second body of the electronic device; The electronic device being in the first device posture means that the first body is in a closed state relative to the second body; The electronic device is in the second device posture when the first body is in an unfolded state relative to the second body.
4. The method according to claim 2, wherein: The obtaining of target parameters includes: If the target application is in a running state, the target parameters are obtained.
5. An electronic device comprising: A camera module is used to obtain collected data; A display module, used to output the collected data obtained by the camera module; a processor, configured to determine a first acquisition area based on a first strategy, wherein first acquired data of the first acquisition area is used for output by a display module; and determine a second acquisition area based on a second strategy different from the first strategy, wherein second acquired data of the second acquisition area is used for output by the display module, wherein the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module; Wherein, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module; A first device posture corresponding to the first policy is different from a second device posture corresponding to the second policy; The target direction from the first side of the output area of the display module to the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture. The electronic device according to claim 5 , wherein: The camera module is close to a first side of an output area of the display module.
7. An information processing system, characterized in that: include: A first determining unit is configured to determine a first collection area based on a first strategy, wherein first collected data in the first collection area is output to a display module; a second determining unit, configured to determine a second acquisition area based on a second strategy different from the first strategy, wherein second acquisition data of the second acquisition area is used for output by the display module, and the second acquisition area and the first acquisition area correspond to different areas of the photosensitive array of the camera module; Wherein, if the scene captured by the camera module remains unchanged, the display content of the first captured data output through the display module corresponds to the same target area of the scene as the display content of the second captured data output through the display module; A first device posture corresponding to the first policy is different from a second device posture corresponding to the second policy; The target direction from the first side of the output area of the display module to the second side of the display area opposite to the first side is relative to the reference surface when the electronic device is in the first device posture and the electronic device is in the second device posture.
8. The system according to claim 7, characterized in that Also includes: An image processing module is used to obtain a first acquisition area or a second acquisition area, crop the image obtained by the camera module based on the first acquisition area or the second acquisition area, obtain first acquisition data corresponding to the first acquisition area, or obtain second acquisition data corresponding to the second acquisition area.
Citation Information
Patent Citations
Information processing method and electronic equipment
CN103780747A
Image collection control method and device
CN106161922A