ELECTRONIC APPARATUS HAVING OPTICAL ZOOM CAMERA, CAMERA OPTICAL ZOOM METHOD, UNIT, AND MEMORY
20230319412 · 2023-10-05
Inventors
Cpc classification
G02B15/00
PHYSICS
H04N23/633
ELECTRICITY
H04N25/702
ELECTRICITY
H04N23/632
ELECTRICITY
H04N23/667
ELECTRICITY
H04N23/69
ELECTRICITY
International classification
H04N23/69
ELECTRICITY
H04N23/667
ELECTRICITY
Abstract
An electronic apparatus, a camera optical-zoom method, a camera optical-zoom unit, and a memory are disclosed. The electronic apparatus may include a camera, a sensor, a processor, and a memory, where the memory stores a program instruction which, when executed by the processor, causes the processor to perform the following steps: receiving image data of a photographed object acquired by the camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on the sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.
Claims
1. An electronic apparatus, comprising a camera, a sensor, a processor, and a memory, wherein the memory stores a program instruction which, when executed by the processor, causes the processor to perform the following steps: receiving image data of a photographed object acquired by the camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on the sensor, wherein the full pixel area comprises pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.
2. The electronic apparatus of claim 1, wherein in response to the zoom value of the camera being a maximum zoom value a, image data of pixel areas of the sensor corresponding to the zoom value a is outputted according to the coordinate sequence of the pixels on the sensor, wherein a is a positive number greater than 0.
3. The electronic apparatus of claim 2, wherein in response to the zoom value of the camera being b and b being less than a, integrated image data of a full pixel area corresponding to the zoom value b is outputted according to the coordinate sequence of the pixels on the sensor.
4. The electronic apparatus of claim 1, wherein after the receiving image data of a photographed object acquired by the camera, the processor is further configured to process the program instruction to perform the following steps: obtaining a zoom photographing mode option selected by a user, and turning on the camera to enter a corresponding zoom photographing mode.
5. The electronic apparatus of claim 1, wherein the electronic apparatus provides M zoom photographing mode options, and the M zoom photographing mode options are all displayed on a display screen, or only one of the zoom photographing mode options is displayed on the display screen, or no zoom photographing mode option is displayed on the display screen, wherein M is an integer greater than or equal to 2.
6. The electronic apparatus of claim 3, wherein a size of each pixel in the pixel area corresponding to the zoom value a is b.sup.2/a.sup.2 of a size of each pixel in the pixel area corresponding to the zoom value b.
7. The electronic apparatus of claim 3, wherein the integrating comprises synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor corresponding to the zoom value b.
8. A camera optical-zoom method for an electronic apparatus, comprising: receiving image data of a photographed object acquired by a camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on a sensor, wherein the full pixel area comprises pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.
9. The camera optical-zoom method for an electronic apparatus of claim 8, wherein in response to the zoom value of the camera being a maximum zoom value a, image data of pixel areas of the sensor corresponding to the zoom value a is outputted according to the coordinate sequence of the pixels on the sensor, wherein a is a positive number greater than 0.
10. The camera optical-zoom method for an electronic apparatus of claim 9, wherein in response to the zoom value of the camera being b and b being less than a, integrated image data of a full pixel area corresponding to the zoom value b is outputted according to the coordinate sequence of the pixels on the sensor.
11. The camera optical-zoom method for an electronic apparatus of claim 8, wherein after the receiving image data of a photographed object acquired by a camera, the method further comprises: obtaining a zoom photographing mode option selected by a user, and turning on the camera to enter a corresponding zoom photographing mode.
12. The camera optical-zoom method for an electronic apparatus of claim 8, wherein the electronic apparatus provides M zoom photographing mode options, and the M zoom photographing mode options are all displayed on a display screen, or only one of the zoom photographing mode options is displayed on the display screen, or no zoom photographing mode option is displayed on the display screen, wherein M is an integer greater than or equal to 2.
13. The camera optical-zoom method for an electronic apparatus of claim 10, wherein a size of each pixel in the pixel area corresponding to the zoom value a is b.sup.2/a.sup.2 of a size of each pixel in the pixel area corresponding to the zoom value b.
14. The camera optical-zoom method for an electronic apparatus of claim 10, wherein the integrating comprises synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor corresponding to the zoom value b.
15-21. (canceled)
22. A memory, storing a computer program which, when executed by a processor, causes the processor to perform a camera optical-zoom method for an electronic apparatus of wherein the method comprises: receiving image data of a photographed object acquired by a camera; and integrating image data of a full pixel area corresponding to a zoom value of the camera according to a preset algorithm, and outputting the integrated image data according to a coordinate sequence of pixels on a sensor wherein the full pixel area comprises pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.
23. The memory of claim 22, wherein in response to the zoom value of the camera being a maximum zoom value a, image data of pixel areas of the sensor corresponding to the zoom value a is outputted according to the coordinate sequence of the pixels on the sensor, wherein a is a positive number greater than 0.
24. The memory of claim 23, wherein in response to the zoom value of the camera being b and b being less than a, integrated image data of a full pixel area corresponding to the zoom value b is outputted according to the coordinate sequence of the pixels on the sensor.
25. The memory of claim 22, wherein after the receiving image data of a photographed object acquired by a camera, the method further comprises: obtaining a zoom photographing mode option selected by a user, and turning on the camera to enter a corresponding zoom photographing mode.
26. The memory of claim 24, wherein a size of each pixel in the pixel area corresponding to the zoom value a is b.sup.2/a.sup.2 of a size of each pixel in the pixel area corresponding to the zoom value b.
27. The memory of claim 24, wherein the integrating comprises synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor corresponding to the zoom value b.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0009] The accompanying drawings are used to provide a further understanding of the technical schemes of the present disclosure, and form part of the specification. The accompanying drawings and the embodiments of the present disclosure are used together to illustrate the technical schemes of the present disclosure, and do not constitute a limitation on the technical schemes of the present disclosure.
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
DETAILED DESCRIPTION
[0019] To make the objectives, technical schemes and advantages of the present disclosure clearer, the present disclosure is further described below in detail with reference to the accompanying drawings and embodiments. It is to be noted that the embodiments in the present disclosure and the features in the embodiments may be arbitrarily combined with each other if not conflicted.
[0020]
[0021]
[0022] The receiving module 20 is configured to receive the image data of the photographed object acquired by the camera 10. When the camera 10 enters a photographing state, light emitted or reflected by the photographed object is converged by the lens of the camera 10 to focus on the sensor 100. The sensor 100 receives an optical signal of the light, converts the optical signal into a corresponding electrical signal, and converts the electrical signal into a digital image signal through a digital-to-analog conversion circuit. The receiving module 20 receives the digital image signal, processes the digital image signal, converts the digital image signal into image data that can be normally read by the electronic apparatus 1, and sends the image data to the memory 13 for storage.
[0023] The obtaining module 21 is configured to obtain a zoom photographing mode option selected by a user on the display screen 11, and turn on the camera 10 to enter a corresponding zoom photographing mode. In this embodiment, the camera 10 has M zoom photographing modes. M is an integer greater than or equal to 2. The electronic apparatus 1 provides M zoom photographing mode options displayed on the display screen 11 for selection by the user. In an embodiment, all the M zoom photographing mode options may be displayed on the display screen 11, or only one of the zoom photographing mode options is displayed on the display screen 11, or no zoom photographing mode option is displayed on the display screen 11.
[0024] In an embodiment, as shown in
[0025] In another embodiment, the display screen 11 displays only one zoom photographing mode option of the M zoom photographing mode options. As shown in
[0026] In another embodiment, no zoom photographing mode option is displayed on the display screen 11. As shown in
[0027] The determining module 22 is configured to determine whether a zoom value of the camera 10 is a maximum zoom value. In this embodiment, the determining module 22 is configured to determine whether the zoom value of the camera 10 is a maximum zoom value a, where a is a positive number greater than 0. When the camera 10 uses the zoom value a, the camera 10 uses an ax zoom photographing mode, and the ax zoom photographing mode is the highest-magnification zoom photographing mode in the M zoom photographing modes of the camera 10. That is, the user selects the highest-magnification zoom photographing mode option from the M zoom photographing mode options displayed on the display screen 11. As shown in
[0028] When the zoom value of the camera 10 is the maximum zoom value, the output module 24 is configured to output image data of pixel areas of the sensor 100 corresponding to the zoom value according to the coordinate sequence of the pixels on the sensor 100. That is, when the camera 10 uses the zoom value a, the zoom value a corresponds to the highest-magnification zoom photographing mode in the M zoom photographing modes. The output module 24 is configured to output image data of pixel areas of the sensor 100 corresponding to the zoom value a according to the coordinate sequence of the pixels on the sensor 100. The pixel areas of the sensor 100 include an nx zoom pixel area, where n is a positive number greater than 0. As shown in
[0029] When the zoom value of the camera 10 is a non-maximum zoom value, the integration module 23 is configured to integrate image data of pixel areas of the sensor 100 corresponding to the zoom value and image data of pixel areas of the sensor 100 corresponding to a value greater than the zoom value according to the preset algorithm. That is, when the camera 10 uses a zoom value b, where b is a positive number greater than 0, and b is less than a, the integration module 23 is configured to integrate image data of a full pixel area corresponding to the zoom value b of the sensor 100 according to the preset algorithm. The full pixel area corresponding to the zoom value b include pixel areas of the sensor 100 corresponding to the zoom value b and pixel areas of the sensor 100 corresponding to a value greater than the zoom value b. A pixel area of the sensor 100 corresponding to the zoom value b is a bx zoom pixel area. The preset algorithm includes, but is not limited to, an interpolation algorithm and a remosaic algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor 100 corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor 100 corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor 100 corresponding to the zoom value b.
[0030] The output module 24 is further configured to output, according to the coordinate sequence of the pixels on the sensor 100, the image data integrated by the integration module 23.
[0031] In this embodiment, when the camera 10 uses the zoom value b, that is, when the camera 10 uses a bx zoom photographing mode, the quantity of pixels that are outputted by the output module 24 and are obtained after integration of the full pixel area corresponding to the zoom value b is x*y, where x and y are respectively the quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the zoom value b. The ax zoom pixel area may be any (bx/a)*(by/a) pixel area in the full pixel area corresponding to the zoom value b. In this embodiment, the present disclosure is described only by an example in which the ax zoom pixel area is a central (bx/a)*(by/a) pixel area in the full pixel area corresponding to the zoom value b. That is, a central coordinate point of the ax zoom pixel area overlaps with a central coordinate point of the full pixel area corresponding to the zoom value b. A size of each pixel in the ax zoom pixel area is b.sup.2/a.sup.2 of a size of each pixel in the bx zoom pixel area. That is, the ratio of pixel quantity in the same pixel area size of the ax zoom pixel area to the bx zoom pixel area is a.sup.2: b.sup.2.
[0032] As shown in
[0033]
[0034] At S70, the receiving module 20 receives image data of a photographed object acquired by a camera 10. When the camera 10 enters a photographing state, light emitted or reflected by the photographed object is converged by the lens of the camera 10 to focus on a sensor 100. The sensor 100 receives an optical signal of the light, converts the optical signal into a corresponding electrical signal, and converts the electrical signal into a digital image signal through a digital-to-analog conversion circuit. The receiving module 20 receives the digital image signal, processes the digital image signal, converts the digital image signal into image data that can be normally read by the electronic apparatus 1, and sends the image data to the memory 13 for storage.
[0035] At S71, the obtaining module 21 obtains a zoom photographing mode option selected by a user on a display screen 11, and turns on the camera 10 to enter a corresponding zoom photographing mode. In this embodiment, the camera 10 has M zoom photographing modes. M is an integer greater than or equal to 2. The electronic apparatus 1 provides M zoom photographing mode options displayed on the display screen 11 for selection by the user. In an embodiment, all the M zoom photographing mode options may be displayed on the display screen 11, or only one of the zoom photographing mode options is displayed on the display screen 11, or no zoom photographing mode option is displayed on the display screen 11.
[0036] In an embodiment, as shown in
[0037] In another embodiment, the display screen 11 displays only one zoom photographing mode option of the M zoom photographing mode options. As shown in
[0038] In another embodiment, no zoom photographing mode option is displayed on the display screen 11. As shown in
[0039] At S72, the determining module 22 determines whether a zoom value of the camera 10 is a maximum zoom value. In this embodiment, the determining module 22 determines whether the zoom value of the camera 10 is a maximum zoom value a, where a is a positive number greater than 0. When the camera 10 uses the zoom value a, the camera 10 uses an ax zoom photographing mode, and the ax zoom photographing mode is the highest-magnification zoom photographing mode in the M zoom photographing modes of the camera 10. That is, the user selects the highest-magnification zoom photographing mode option from the M zoom photographing mode options displayed on the display screen 11. As shown in
[0040] At S73, when the zoom value of the camera 10 is the maximum zoom value, the output module 24 outputs image data of pixel areas of the sensor 100 corresponding to the zoom value according to the coordinate sequence of the pixels on the sensor 100. That is, when the camera 10 uses the zoom value a, the zoom value a corresponds to the highest-magnification zoom photographing mode in the M zoom photographing modes. The output module 24 outputs image data of pixel areas of the sensor 100 corresponding to the zoom value a according to the coordinate sequence of the pixels on the sensor 100. The pixel areas of the sensor 100 include an nx zoom pixel area, where n is a positive number greater than 0. As shown in
[0041] At S74, when the zoom value of the camera 10 is a non-maximum zoom value, the integration module 23 integrates image data of pixel areas of the sensor 100 corresponding to the zoom value and image data of pixel areas of the sensor 100 corresponding to a value greater than the zoom value according to the preset algorithm. That is, when the camera 10 uses a zoom value b, where b is a positive number greater than 0, and b is less than a, the integration module 23 integrates image data of the full pixel area corresponding to the zoom value b of the sensor 100 according to the preset algorithm. The full pixel area corresponding to the zoom value b includes pixel areas of the sensor 100 corresponding to the zoom value b and pixel areas of the sensor 100 corresponding to a value greater than the zoom value b. A pixel area of the sensor 100 corresponding to the zoom value b is a bx zoom pixel area. The preset algorithm includes, but is not limited to, an interpolation algorithm and a remosaic algorithm. The integrating includes synthesizing, according to the preset algorithm, pixels in a pixel area of the sensor 100 corresponding to a value greater than the zoom value b according to a size of each pixel in the pixel area of the sensor 100 corresponding to the zoom value b, and integrating a synthesized pixel with image data of pixels in the pixel area of the sensor 100 corresponding to the zoom value b.
[0042] At S75, the output module 24 outputs, according to the coordinate sequence of the pixels on the sensor 100, the image data integrated by the integration module 23.
[0043] In this embodiment, when the camera 10 uses the zoom value b, that is, when the camera 10 uses a bx zoom photographing mode, the quantity of pixels that are outputted by the output module 24 and are obtained after integration of the full pixel area corresponding to the zoom value b is x*y, where x and y are respectively the quantity of pixels in a length direction and the quantity of pixels in a width direction after the integration of the full pixel area corresponding to the zoom value b. The ax zoom pixel area may be any (bx/a)*(by/a) pixel area in the full pixel area corresponding to the zoom value b. In this embodiment, the present disclosure is described only by an example in which the ax zoom pixel area is a central (bx/a)*(by/a) pixel area in the full pixel area corresponding to the zoom value b. That is, a central coordinate point of the ax zoom pixel area overlaps with a central coordinate point of the full pixel area corresponding to the zoom value b. A size of each pixel in the ax zoom pixel area is b.sup.2/a.sup.2 of a size of each pixel in the bx zoom pixel area. That is, the ratio of pixel quantity in the same pixel area size of the ax zoom pixel area to the bx zoom pixel area is a.sup.2: b.sup.2.
[0044] As shown in
[0045]
[0046] At S80, image data of a photographed object acquired by a camera is received.
[0047] At S81, image data of the full pixel area corresponding to a zoom value of the camera according to a preset algorithm is integrated, and the integrated image data is outputted according to a coordinate sequence of pixels on a sensor, where the full pixel area includes pixel areas of the sensor corresponding to the zoom value and pixel areas of the sensor corresponding to a value greater than the zoom value.
[0048] In the technical schemes in the embodiments of the present disclosure, image data of a photographed object that is acquired by a camera is received, image data of the full pixel area corresponding to a zoom value of the camera is integrated according to a preset algorithm, and the integrated image data is outputted according to a coordinate sequence of pixels on the sensor, so that when an electronic apparatus is used for taking photos, an optical zoom function can be implemented by using a single camera, thereby greatly reducing the costs of cameras.
[0049] Although the embodiments disclosed in the present disclosure are as described above, the content of the present disclosure is only for the purpose of understanding the embodiments of the present disclosure and is not intended to limit the present disclosure. Those having ordinary skill in the art of the present disclosure may make any modification or change in the form and details of the implementation without departing from the technical scheme and scope of the present disclosure. However, the scope of patent protection of the present disclosure shall be subjected to the scope defined in the appended claims.