CN110876013B - Method and device for determining image resolution, electronic equipment and storage medium - Google Patents
Method and device for determining image resolution, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110876013B CN110876013B CN201811010302.1A CN201811010302A CN110876013B CN 110876013 B CN110876013 B CN 110876013B CN 201811010302 A CN201811010302 A CN 201811010302A CN 110876013 B CN110876013 B CN 110876013B
- Authority
- CN
- China
- Prior art keywords
- image
- resolution
- pixel arrangement
- arrangement mode
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/95—Computational photography systems, e.g. light-field imaging systems
- H04N23/951—Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computing Systems (AREA)
- Theoretical Computer Science (AREA)
- Studio Devices (AREA)
Abstract
The present disclosure relates to a method and an apparatus for determining image resolution, an electronic device, and a storage medium, wherein the method includes: when a photographing instruction is received, displaying a prompt box on a user interface, wherein the prompt box is used for setting the resolution of an image to be displayed; determining the resolution of the image to be displayed based on the prompt box; the resolution of the image to be displayed is between a first resolution and a second resolution, the first resolution is the resolution of a first image with a first pixel arrangement mode, and the second resolution is the resolution of a second image with a second pixel arrangement mode; and pixels with the same color component in the first pixel arrangement mode are distributed in a square array mode, and the second pixel arrangement mode is a standard Bayer arrangement mode of the photosensitive element. The technical scheme of the disclosure can enable the user to select the proper image resolution according to the specific requirements of the user, and improve the photographing experience of the user.
Description
Technical Field
The present disclosure relates to the field of image processing technologies, and in particular, to a method and an apparatus for determining an image resolution, an electronic device, and a storage medium.
Background
In the related art, when a mobile phone takes a picture through a front camera, if the light is strong, the resolution of the taken picture is 1600 ten thousand pixels, and if the light is weak, the resolution of the taken picture is 400 ten thousand pixels. The pictures taken by the related art cannot take into account both image quality and image resolution.
Disclosure of Invention
To overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for determining an image resolution, an electronic device, and a storage medium, which enable an image displayed on a display screen to have both image quality and image resolution.
According to a first aspect of embodiments of the present disclosure, there is provided a method of determining image resolution, including:
when a photographing instruction is received, displaying a prompt box on a user interface, wherein the prompt box is used for setting the resolution of an image to be displayed;
determining the resolution of the image to be displayed based on the prompt box;
the resolution of the image to be displayed is between a first resolution and a second resolution, the first resolution is the resolution of a first image with a first pixel arrangement mode, and the second resolution is the resolution of a second image with a second pixel arrangement mode; the pixels with the same color component in the first pixel arrangement mode are distributed in a square array mode, and the second pixel arrangement mode is a standard Bayer arrangement mode of the photosensitive element.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for determining a resolution of an image, including:
the display module is used for displaying a prompt box on a user interface when a photographing instruction is received, wherein the prompt box is used for setting the resolution of an image to be displayed;
the determining module is used for determining the resolution of the image to be displayed based on the prompt box displayed by the display module;
the resolution of the image to be displayed is between a first resolution and a second resolution, the first resolution is the resolution of a first image with a first pixel arrangement mode, and the second resolution is the resolution of a second image with a second pixel arrangement mode; the pixels with the same color component in the first pixel arrangement mode are distributed in a square array mode, and the second pixel arrangement mode is a standard Bayer arrangement mode of the photosensitive element.
According to a third aspect of embodiments of the present disclosure, there is provided a storage medium, wherein the storage medium stores computer instructions for executing the method for determining image resolution provided in the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method for determining image resolution provided in the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the image resolution to be displayed is set in a user interface mode, so that a user can select the proper image resolution according to the specific requirements of the user, and the photographing experience of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1A is a flow diagram illustrating a method of determining image resolution according to an exemplary embodiment.
FIG. 1B is a schematic illustration of setup options in the exemplary embodiment shown in FIG. 1A.
FIG. 1C is a schematic diagram of the arrangement of pixels on the photosensitive element in the embodiment shown in FIG. 1A.
FIG. 1D is a diagram illustrating a first pixel arrangement of the photosensitive element in the embodiment shown in FIG. 1A.
FIG. 1E is a diagram illustrating a second pixel arrangement of the photosensitive element in the embodiment shown in FIG. 1A.
FIG. 2 is a flowchart illustrating a method of determining image resolution according to another exemplary embodiment.
FIG. 3 is a flow chart illustrating how an image having a third resolution is derived based on a first image and a second image, according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating how an image with a third resolution is derived based on a first image and a second image, according to another exemplary embodiment.
FIG. 5 is a block diagram illustrating an apparatus for determining resolution of an image according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for determining a resolution of an image according to another exemplary embodiment.
Fig. 7 is a block diagram illustrating an apparatus for determining a resolution of an image according to still another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1A is a flow chart illustrating a method of determining image resolution according to an exemplary embodiment, FIG. 1B is a schematic illustration of setup options in the exemplary embodiment shown in FIG. 1A, FIG. 1C is a schematic illustration of pixel arrangement on a photosensitive element in the embodiment shown in FIG. 1A, FIG. 1D is a schematic illustration of a first pixel arrangement of a photosensitive element in the embodiment shown in FIG. 1A, and FIG. 1E is a schematic illustration of a second pixel arrangement of a photosensitive element in the embodiment shown in FIG. 1A; the method for determining the image resolution can be applied to electronic devices (for example, devices such as a smart phone, a tablet computer, a digital camera, etc.), and as shown in fig. 1A, the method for determining the image resolution includes the following steps S101 to S102:
in step S101, when a photographing instruction is received, a prompt box for setting the resolution of an image to be displayed is displayed on a user interface.
As shown in fig. 1B, a prompt box 11 may be displayed on the currently displayed image preview interface, and a user may input the resolution of an image that the user needs to display on the display interface in the prompt box 11, and receive a photographing instruction through the virtual key 12.
In step S102, determining the resolution of the image to be displayed based on the prompt box; the resolution ratio of the image to be displayed is between a first resolution ratio and a second resolution ratio, wherein the first resolution ratio is the resolution ratio of a first image with a first pixel arrangement mode, and the second resolution ratio is the resolution ratio of a second image with a second pixel arrangement mode; the pixels of the same color component are distributed in a square array in the first pixel arrangement mode, and the second pixel arrangement mode is a standard Bayer arrangement mode of the photosensitive element.
In one embodiment, the square array may be an N × N array, where N is greater than or equal to 2, and as shown in fig. 1C, the pixel arrangement pattern inherent to the photosensitive elements is a four-in-one (4in1) pixel arrangement mode, that is, the 2 × 2 array corresponding to the same color component is taken as one large pixel point and is regarded as a standard Bayer arrangement pattern, and accordingly, the resolution of the first image is one fourth of the resolution of the photosensitive elements. Based on the color components in the 2 × 2 array shown in fig. 1C, the color components of the large pixels corresponding to the 2 × 2 array can be determined, and then the first pixel arrangement mode shown in fig. 1D is obtained. In one embodiment, a frame of raw image data as shown in fig. 1C is collected by a photosensitive element, and the raw image data is converted into a first pixel arrangement as shown in fig. 1D, so as to obtain a first image. A pixel point on the first image is obtained through four pixel points of the same color component of the photosensitive element, which is equivalent to increase of the photosensitive area of the pixel point, so that the first image has low resolution and high light sensitivity.
In one embodiment, the standard Bayer arrangement pattern is as shown in fig. 1E, and a second image is obtained by rearranging pixels of the raw image data shown in fig. 1C according to a second pixel arrangement manner shown in fig. 1E; the second image is obtained by pixel rearrangement of the inherent pixel points of the photosensitive element, which is equivalent to the fact that the inherent resolution of the photosensitive element is reserved, and the second image can have high resolution and low sensitivity.
In the embodiment, the image resolution to be displayed is set in a user interface mode, so that a user can select the proper image resolution according to the specific requirements of the user, and the photographing experience of the user is improved.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 2 is a flow chart illustrating a method of determining image resolution in accordance with another exemplary embodiment; the present embodiment utilizes the above method provided by the embodiment of the present disclosure, and takes how to determine the resolution of the image to be displayed based on the prompt box as an example, as shown in fig. 2, the method includes the following steps:
in step S201, when a photographing instruction is received, a prompt box for setting a resolution of an image to be displayed is displayed on a user interface.
Step S201 can be referred to the description of step S101 in the embodiment shown in fig. 1A, and is not described in detail here.
In step S202, the third resolution input in the prompt box is detected.
In step S203, the size relationship between the third resolution and the first and second resolutions is determined.
In one embodiment, the third resolution may be compared with the first resolution and the second resolution, and the size relationship may exist in the following three cases: the third resolution is greater than or equal to the first resolution and less than or equal to the second resolution, the third resolution being less than the first resolution, the third resolution being greater than the second resolution. When the third resolution is lower than the first resolution, the resolution of the user input is lower than that of the first image, the input is unreasonable, and the user can be prompted to input again; when the third resolution is greater than the first resolution, it indicates that the resolution of the user input is higher than the resolution of the second image, and the input is also unreasonable and may prompt the user to re-enter.
In step S204, the resolution of the image to be displayed is determined based on the size relationship.
In an embodiment, if the size relationship indicates that the third resolution is greater than or equal to the first resolution and the third resolution is less than or equal to the second resolution, it indicates that the resolution input by the user based on the prompt box is reasonable, so the resolution input by the user through the prompt box can be determined as the resolution of the image to be displayed.
In this embodiment, the third resolution of the image to be displayed is determined based on the size relationship between the third resolution and the first resolution, and the second resolution, so that the third resolution of the image to be displayed can be changed along with the perception of the user, and the image to be displayed can be ensured to have better image quality and higher resolution for the user.
In one embodiment, the first image and the second image are output simultaneously by the photosensitive element; the image with the third resolution is obtained by fusing the first image and the second image. A detailed description of how to obtain the image with the third resolution from the first image and the second image is given below by the embodiment shown in fig. 3.
Fig. 3 is a flow chart illustrating how an image with a third resolution is derived based on a first image and a second image, as shown in fig. 3, comprising the steps of:
in step S301, a first image having a first pixel arrangement and a second image having a second pixel arrangement are simultaneously output using a photosensitive element; the pixels with the same color component are distributed in a square array in the first pixel arrangement mode, and the second pixel arrangement mode is a standard Bayer arrangement mode.
In an embodiment, the first image and the second image are acquired within the same frame of native image data. The Quad Bayer arrangement and the standard Bayer arrangement are described in detail with reference to the embodiment shown in fig. 1A, and will not be described in detail here.
In step S302, the first image is enlarged from the first resolution to a third resolution to obtain a third image.
In one embodiment, the first resolution is one fourth of the intrinsic resolution of the photosensitive elements, for example, as shown in fig. 1B, the intrinsic resolution of the photosensitive elements is 16 × 16, and the first resolution is 4 × 4.
In step S303, the second image is reduced from the second resolution to the third resolution to obtain a fourth image.
In an embodiment, the description of the related art may be referred to for a reduction algorithm of the second image, and the reduction algorithm is not limited in this embodiment.
In step S304, the third image and the fourth image are fused to obtain an image to be displayed.
In an embodiment, interpolation operation may be performed on the third image to obtain a fifth RGB image corresponding to the third image; similarly, performing interpolation operation on the fourth image to obtain a sixth RGB image corresponding to the fourth image; and finally, fusing based on the fifth RGB image and the sixth RGB image to obtain an image to be displayed.
In an embodiment, the image to be displayed may be subjected to edge sharpening, image enhancement, and the like, so as to further improve the visual experience of the user.
It should be noted that the present embodiment may be executed after determining the third resolution of the image to be displayed, so that the image to be displayed may be obtained.
In this embodiment, the first image and the second image are adjusted to the third image and the fourth image with the same resolution, and the image to be displayed is obtained based on the fusion of the third image and the fourth image with the same resolution.
In an embodiment, an image with a third resolution may be obtained by fusing at least one frame of first image and at least one frame of second image, where the at least one frame of first image is acquired based on the second pixel arrangement mode, and the at least one frame of second image is acquired based on the second pixel arrangement mode. A detailed description of how to obtain the image with the third resolution from the at least one first image and the at least one second image is provided in the embodiment shown in fig. 4.
Fig. 4 is a flow chart illustrating how an image with a third resolution is derived based on a first image and a second image, as shown in fig. 4, comprising the steps of:
in step S401, at least one frame of a first image is acquired based on a first pixel arrangement of the photosensitive elements; in the first pixel arrangement mode, pixels of the same color component are distributed in a square array.
The description of step S401 can refer to the related description of the embodiment shown in fig. 1A, and is not detailed here. In one embodiment, as shown in fig. 1B, the inherent pixel arrangement pattern of the photosensitive elements is a four-in-one (4in1) pixel arrangement, that is, a 2 × 2 array corresponding to the same color component is taken as a large pixel, and can be regarded as a standard Bayer arrangement pattern. Based on the color components in the 2 × 2 array shown in fig. 1B, the color components of the large pixels corresponding to the 2 × 2 array can be determined, and then the first pixel arrangement mode shown in fig. 1C is obtained. In an embodiment, at least one frame of raw image data as shown in fig. 1B is collected by the photosensitive element, and each frame of raw image data is converted into the first pixel arrangement as shown in fig. 1C, so as to obtain at least one frame of first image.
In step S402, at least one frame of a second image is acquired based on a second pixel arrangement of the photosensitive elements, wherein the second pixel arrangement is a standard Bayer arrangement pattern.
In an embodiment, as shown in fig. 1D, a standard Bayer arrangement pattern is obtained, at least one frame of raw image data shown in fig. 1B is collected by a photosensitive element, and each frame of raw image data is subjected to pixel rearrangement according to a second pixel arrangement manner shown in fig. 1D, so as to obtain at least one frame of second image.
In an embodiment, the first image and the second image are derived from native image data of different frames.
In step S403, at least one frame of the first image and at least one frame of the second image are fused to obtain an image to be displayed.
In an embodiment, at least one first RGB image may be obtained by performing an interpolation operation on each frame of the first image, and at least one second RGB image may be obtained by performing an interpolation operation on each frame of the second image; and fusing the at least one first RGB image and the at least one second RGB image to obtain an image required to be displayed on a user interface of the camera application program.
In an embodiment, for each frame of the at least one frame of the first image, the first image of each frame is enlarged from the first resolution to the third resolution to obtain at least one frame of the third image; for each frame of second image in the at least one frame of second image, reducing each frame of second image from the third resolution to obtain at least one frame of fourth image; and fusing the at least one frame of third image and the at least one frame of fourth image to obtain an image to be displayed. For the algorithm for enlarging the first image and the algorithm for reducing the second image, reference may be made to the description of the related art, and the embodiment does not limit the algorithm for reducing.
In an embodiment, interpolation operation may be performed on at least one frame of the third image to obtain at least one frame of the fifth RGB image corresponding to the at least one frame of the third image, and the at least one frame of the fifth RGB image is fused to obtain a frame of the sixth RGB image; similarly, performing interpolation operation on at least one frame of fourth image to obtain at least one frame of seventh RGB image corresponding to the at least one frame of fourth image, and fusing the at least one frame of seventh RGB image to obtain a frame of eighth RGB image; and finally, fusing the image based on the sixth RGB image and the eighth RGB image to obtain the image to be displayed.
In this embodiment, one pixel point on the first image is obtained through four pixel points of the same color component of the photosensitive element, which is equivalent to increase the photosensitive area of the pixel point, so that the first image has low resolution and high sensitivity; the second image is obtained by pixel rearrangement of the inherent pixel points of the photosensitive element, which is equivalent to the fact that the inherent resolution of the photosensitive element is reserved, so that the second image has high resolution and low sensitivity; by fusing the first image and the second image, the resolution and the sensitivity of the obtained image to be displayed can be balanced, and the effect of enhancing the image quality is achieved.
Fig. 5 is a block diagram illustrating an apparatus for determining an image resolution according to an exemplary embodiment, and as shown in fig. 5, the apparatus for determining an image resolution includes:
the display module 51 is configured to display a prompt box on the user interface when the photographing instruction is received, where the prompt box is used to set a resolution of an image to be displayed;
a determining module 52, configured to determine a resolution of the image to be displayed based on the prompt box displayed by the display module 51;
the resolution ratio of the image to be displayed is between a first resolution ratio and a second resolution ratio, wherein the first resolution ratio is the resolution ratio of a first image with a first pixel arrangement mode, and the second resolution ratio is the resolution ratio of a second image with a second pixel arrangement mode; the first pixel arrangement is a Quad Bayer arrangement pattern of the light sensing element, and the second pixel arrangement is a standard Bayer arrangement pattern of the light sensing element.
Fig. 6 is a block diagram of a photo generation apparatus according to another exemplary embodiment, and as shown in fig. 6, on the basis of the embodiment shown in fig. 5, the determining module 52 may include:
a detection unit 521, configured to detect a third resolution input in the prompt box;
a first determining unit 522, configured to determine a size relationship between the third resolution detected by the detecting unit 521 and the first resolution and the second resolution;
a second determining unit 523 configured to determine the resolution of the image to be displayed based on the size relationship determined by the first determining unit 522.
In one embodiment, the first image and the second image are output simultaneously by the photosensitive element; the image with the third resolution is obtained by fusing the first image and the second image.
In one embodiment, the first image and the second image are captured within the same frame of native image data.
In one embodiment, there is at least one frame of a first image based on a first pixel arrangement; a second image having at least one frame based on a second pixel arrangement; the image with the third resolution is obtained by fusing at least one frame of the first image and at least one frame of the second image.
In one embodiment, the first pixel arrangement is a Quad Bayer arrangement pattern.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a photograph generation apparatus according to yet another exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a Microphone (MIC) configured to receive external audio signals when apparatus 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the apparatus 700. For example, sensor assembly 714 may detect an open/closed state of device 700, the relative positioning of components, such as a display and keypad of apparatus 700, sensor assembly 714 may also detect a change in position of apparatus 700 or a component of apparatus 700, the presence or absence of user contact with apparatus 700, orientation or acceleration/deceleration of apparatus 700, and a change in temperature of apparatus 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The apparatus 700 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising computer instructions, executable by the processor 720 of the apparatus 700 to perform the photo generation method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (14)
1. A method of determining image resolution, the method comprising:
when a photographing instruction is received, displaying a prompt box on a user interface, wherein the prompt box is used for setting the resolution of an image to be displayed;
determining the resolution of the image to be displayed based on the prompt box;
the resolution of the image to be displayed is between a first resolution and a second resolution, and is a third resolution, the first resolution is the resolution of a first image with a first pixel arrangement mode, and the second resolution is the resolution of a second image with a second pixel arrangement mode; the pixels of the same color component in the first pixel arrangement mode are distributed in a square array mode, the second pixel arrangement mode is a standard Bayer arrangement mode of a photosensitive element, the second pixel arrangement mode is a pixel arrangement mode obtained by pixel rearrangement of the first pixel arrangement mode, and the image with the third resolution is obtained by fusing the first image and the second image.
2. The method of claim 1, wherein the determining the resolution of the image to be displayed based on the prompt box comprises:
detecting a third resolution input in the prompt box;
determining the size relationship between the third resolution and the first resolution and the second resolution;
and determining the resolution of the image to be displayed based on the size relation.
3. The method of claim 1,
the first image and the second image are simultaneously output through the photosensitive element.
4. The method of claim 3,
the first image and the second image are acquired within the same frame of native image data.
5. The method of claim 1,
a first image having at least one frame based on the first pixel arrangement;
a second image having at least one frame based on the second pixel arrangement;
the image with the third resolution is obtained by fusing the at least one frame of the first image and the at least one frame of the second image.
6. The method of any of claims 1-5, wherein the first pixel arrangement is a Quad Bayer arrangement pattern.
7. An apparatus for determining a resolution of an image, the apparatus comprising:
the display module is used for displaying a prompt box on a user interface when a photographing instruction is received, wherein the prompt box is used for setting the resolution of an image to be displayed;
the determining module is used for determining the resolution of the image to be displayed based on the prompt box displayed by the display module;
the resolution of the image to be displayed is between a first resolution and a second resolution, and is a third resolution, the first resolution is the resolution of a first image with a first pixel arrangement mode, and the second resolution is the resolution of a second image with a second pixel arrangement mode; the pixels of the same color component in the first pixel arrangement mode are distributed in a square array mode, the second pixel arrangement mode is a standard Bayer arrangement mode of a photosensitive element, the second pixel arrangement mode is a pixel arrangement mode obtained by pixel rearrangement of the first pixel arrangement mode, and the image with the third resolution is obtained by fusing the first image and the second image.
8. The apparatus of claim 7, wherein the determining module comprises:
the detection unit is used for detecting the third resolution input in the prompt box;
a first determining unit, configured to determine a size relationship between the third resolution detected by the detecting unit and the first resolution and the second resolution;
and the second determining unit is used for determining the resolution of the image to be displayed based on the size relation determined by the first determining unit.
9. The apparatus of claim 7,
the first image and the second image are simultaneously output through the photosensitive element.
10. The apparatus of claim 9,
the first image and the second image are acquired within the same frame of native image data.
11. The apparatus of claim 7,
a first image having at least one frame based on the first pixel arrangement;
a second image having at least one frame based on the second pixel arrangement;
the image with the third resolution is obtained by fusing the at least one frame of the first image and the at least one frame of the second image.
12. The apparatus of any of claims 7-11, wherein the first pixel arrangement is a Quad Bayer arrangement pattern.
13. A computer-readable storage medium storing computer instructions for performing the method of determining image resolution of any of claims 1-6.
14. An electronic device, characterized in that the device comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the method of determining image resolution of any of the preceding claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811010302.1A CN110876013B (en) | 2018-08-31 | 2018-08-31 | Method and device for determining image resolution, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811010302.1A CN110876013B (en) | 2018-08-31 | 2018-08-31 | Method and device for determining image resolution, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110876013A CN110876013A (en) | 2020-03-10 |
CN110876013B true CN110876013B (en) | 2021-06-04 |
Family
ID=69715779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811010302.1A Active CN110876013B (en) | 2018-08-31 | 2018-08-31 | Method and device for determining image resolution, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110876013B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268827A (en) * | 2014-09-24 | 2015-01-07 | 三星电子(中国)研发中心 | Method and device for amplifying local area of video image |
CN104300982A (en) * | 2014-10-11 | 2015-01-21 | 福建星云电子股份有限公司 | High-speed resolution-settable and high-precision AD sampling circuit and control algorithm thereof |
JP2017118329A (en) * | 2015-12-24 | 2017-06-29 | 日本放送協会 | Imaging apparatus, imaging method, image frame read-out control circuit and signal processing device |
CN206611527U (en) * | 2017-03-24 | 2017-11-03 | 深圳安芯微电子有限公司 | A kind of colour filter array and imaging sensor |
CN107895345A (en) * | 2017-11-29 | 2018-04-10 | 浙江大华技术股份有限公司 | A kind of method and apparatus for improving facial image resolution ratio |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2677734A3 (en) * | 2012-06-18 | 2016-01-13 | Sony Mobile Communications AB | Array camera imaging system and method |
-
2018
- 2018-08-31 CN CN201811010302.1A patent/CN110876013B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268827A (en) * | 2014-09-24 | 2015-01-07 | 三星电子(中国)研发中心 | Method and device for amplifying local area of video image |
CN104300982A (en) * | 2014-10-11 | 2015-01-21 | 福建星云电子股份有限公司 | High-speed resolution-settable and high-precision AD sampling circuit and control algorithm thereof |
JP2017118329A (en) * | 2015-12-24 | 2017-06-29 | 日本放送協会 | Imaging apparatus, imaging method, image frame read-out control circuit and signal processing device |
CN206611527U (en) * | 2017-03-24 | 2017-11-03 | 深圳安芯微电子有限公司 | A kind of colour filter array and imaging sensor |
CN107895345A (en) * | 2017-11-29 | 2018-04-10 | 浙江大华技术股份有限公司 | A kind of method and apparatus for improving facial image resolution ratio |
Also Published As
Publication number | Publication date |
---|---|
CN110876013A (en) | 2020-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11183153B1 (en) | Image display method and device, electronic device, and storage medium | |
US9674395B2 (en) | Methods and apparatuses for generating photograph | |
CN107526494B (en) | Keyboard display method, device, terminal and storage medium | |
US10452890B2 (en) | Fingerprint template input method, device and medium | |
CN105159640B (en) | Display interface rotating method and device and mobile terminal | |
EP3173923A1 (en) | Method and device for image display | |
US9924226B2 (en) | Method and device for processing identification of video file | |
EP3179711A2 (en) | Method and apparatus for preventing photograph from being shielded | |
EP3121699A1 (en) | Method and device for displaying badge of icon | |
CN112114765A (en) | Screen projection method and device and storage medium | |
CN104238890B (en) | Character displaying method and device | |
CN111078170B (en) | Display control method, display control device, and computer-readable storage medium | |
CN107566878B (en) | Method and device for displaying pictures in live broadcast | |
CN110876014B (en) | Image processing method and device, electronic device and storage medium | |
CN112331158B (en) | Terminal display adjusting method, device, equipment and storage medium | |
CN111614910B (en) | File generation method and device, electronic equipment and storage medium | |
CN108650412B (en) | Display method, display device and computer readable storage medium | |
CN107967233B (en) | Electronic work display method and device | |
CN105808102A (en) | Frame adding method and apparatus | |
CN110874829B (en) | Image processing method and device, electronic device and storage medium | |
CN106375744B (en) | Information projecting method and device | |
CN110876013B (en) | Method and device for determining image resolution, electronic equipment and storage medium | |
CN109389547B (en) | Image display method and device | |
CN111835977B (en) | Image sensor, image generation method and device, electronic device, and storage medium | |
CN114943791A (en) | Animation playing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |