CN111726605B - Resolving power determining method and device, terminal equipment and storage medium - Google Patents

Resolving power determining method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111726605B
CN111726605B CN202010496542.8A CN202010496542A CN111726605B CN 111726605 B CN111726605 B CN 111726605B CN 202010496542 A CN202010496542 A CN 202010496542A CN 111726605 B CN111726605 B CN 111726605B
Authority
CN
China
Prior art keywords
bar code
preset
area
camera module
image
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
Application number
CN202010496542.8A
Other languages
Chinese (zh)
Other versions
CN111726605A (en
Inventor
章礼刚
高星宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Moqin Intelligent Technology Co ltd
Original Assignee
Shanghai Moqin Intelligent Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Moqin Intelligent Technology Co ltd filed Critical Shanghai Moqin Intelligent Technology Co ltd
Priority to CN202010496542.8A priority Critical patent/CN111726605B/en
Publication of CN111726605A publication Critical patent/CN111726605A/en
Application granted granted Critical
Publication of CN111726605B publication Critical patent/CN111726605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method and a device for determining resolving power, terminal equipment and a storage medium, which are used for improving the efficiency of determining the resolving power of a camera module, and the method for determining the resolving power comprises the following steps: the method comprises the steps of entering an image acquisition interface based on a received test instruction for the resolving power of a camera module, and carrying out image acquisition on a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in a preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module; based on the decoding result of the bar code in the image of gathering, confirm the resolution of the module of making a video recording, this embodiment need not to rely on the computer, can be fast, accurately through less calculated amount, confirm the resolution of the module of making a video recording.

Description

Resolving power determining method and device, terminal equipment and storage medium
Technical Field
The present invention relates to the field of terminal device technologies, and in particular, to a method and an apparatus for determining resolution, a terminal device, and a storage medium.
Background
In recent years, with the rapid development of the electronic industry and communication technology, the use of terminal devices is becoming more and more widespread, and shooting is a common and important function in some terminal devices. The terminal equipment shoots through the camera module, and the capability (namely resolution) of the camera module for distinguishing the details of the shot original object is a key factor influencing the clear effect of the shot image, so that the determination of the resolution of the camera module is a necessary process in the evaluation or quality inspection of the terminal equipment.
In the related art, a terminal device shoots an International Organization for Standardization (ISO) 12233 test standard plate through a camera module, and sends a shot Image to a computer, and the computer detects the Image through Image Quality analysis (imatest) software to obtain the resolving power of the camera module.
However, according to the scheme, the image needs to be sent to the computer, the computer can determine the resolution power of the camera module by performing complex calculation on the image through imatest software, and the time for the transmission process and the calculation process is long, so that the efficiency for determining the resolution power of the camera module is low.
Disclosure of Invention
The invention provides a resolution power determination method and device, terminal equipment and a storage medium, which are used for improving the efficiency of determining the resolution power of a camera module.
In a first aspect, an embodiment of the present invention provides a method for determining resolution, which is applied to a terminal device, where the terminal device includes a camera module, and the method includes:
the method comprises the steps of entering an image acquisition interface based on a received test instruction for the resolving power of a camera module, and carrying out image acquisition on a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in a preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module;
and determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
According to the scheme, the terminal equipment can complete the code scanning and decoding processes without a computer, so that the time for transmitting the code to the computer is saved; the calculation amount in the decoding process is extremely small, so the calculation time is short; in addition, the definition of the bar codes collected by the camera modules with different resolution capabilities is different, and the decoding results of the bar codes with different definitions are also different, so that the resolution image of the camera module can be accurately determined according to the decoding result of the collected image. In conclusion, the resolution of the camera module can be determined quickly and accurately by the scheme.
In a possible implementation manner, the image acquisition interface includes a preset central area and at least one preset corner area;
the formation of image in the bar code region in predetermineeing the picture card is arranged in when the predetermined region of image acquisition interface, through the module of making a video recording is to the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is arranged in the preset central area and/or the preset corner area, the image acquisition is carried out on the bar code in the bar code area through the camera module.
According to the scheme, the image acquisition interface comprises a preset central area and at least one preset corner area, if the distribution of the bar code area in the image card corresponds to the distribution of the preset area in the image acquisition interface, when the imaging of each bar code area is respectively arranged in the preset central area and the preset corner area, the bar codes in the bar code area are subjected to image acquisition through the camera module, the acquired image simultaneously contains the bar codes imaged in the preset central area and the bar codes imaged in the preset corner area, so that the center resolution and the corner resolution of the camera module can be conveniently and quickly determined according to the decoding result of the bar codes in the acquired image. If the distribution of the barcode regions in the image card does not correspond to the distribution of the preset regions in the image acquisition interface, when the imaging of the barcode regions is arranged in the preset central region or the preset corner region, the barcodes in the barcode regions are acquired through the camera module, the acquired images only contain the barcodes imaged in the preset central region or the barcodes imaged in the preset corner region, the barcodes in the two images are decoded respectively, and the central resolution and the corner resolution of the camera module are obtained, so that when the number of the barcode regions in the image card is small, the central resolution and the corner resolution of the camera module can be determined according to the decoding results of the barcodes in the acquired images.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, and the preset graphic card includes a central barcode area corresponding to the preset central area and four corner barcode areas corresponding to the four preset corner areas;
the formation of image in the bar code region is arranged in predetermine central zone with when predetermineeing the corner region, through the module of making a video recording is right the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module;
the decoding result based on bar code in the image to gathering confirms the resolution power of the module of making a video recording, includes:
determining the central resolving power of the camera module based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module based on the decoding results of the bar codes of the four corner bar code areas in the first image.
According to the scheme, the image acquisition interface comprises a preset central area and four preset corner areas, the preset image card is correspondingly provided with a central bar code area and four corner bar code areas, when the imaging of the central bar code area just occupies the preset central area and the imaging of the four corner bar code areas just respectively occupies the corresponding preset corner areas, the first image acquisition is carried out on the bar codes in the central bar code area and the four corner bar code areas through the camera module, and the situation that the decoding result is influenced by the fact that the bar code areas in the first image are too large or too small is avoided, and the obtained image resolving power is unreasonable is avoided; the first image simultaneously comprises the bar code of the central bar code area and the bar codes of the four corner bar codes, so that the central resolution and the four corner resolution of the camera module can be directly determined according to the decoding result of each bar code in the first image.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, the preset graphic card includes a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same;
the formation of image in the bar code region is arranged in predetermine central zone or when predetermineeing the corner region, through the module of making a video recording is right the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
the decoding result based on bar code in the image to gathering confirms the resolution power of the module of making a video recording, includes:
determining the central resolving power of the camera module based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module based on the result of decoding the bar codes in the third images.
According to the scheme, when the imaging of the bar code area is full of the preset central area, the second image acquisition is carried out on the bar code in the bar code area through the camera module, the central resolving power of the camera module can be determined according to the decoding result of the bar code in the second image, and the unreasonable central resolving power caused by the fact that the decoding result is influenced by too large or too small imaging of the bar code area is avoided; when the imaging of the bar code area occupies any preset corner area, the third image acquisition is carried out on the bar code in the bar code area through the camera module, the four-corner resolution of the camera module can be accurately determined according to the decoding result of the bar code in each third image, and the situation that the decoding result is influenced by too large or too small imaging of the bar code area, so that the obtained four-corner resolution is unreasonable is avoided.
In one possible implementation, the decoding result is determined by:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
According to the scheme, whether the decoded result is successful or failed can be conveniently and accurately determined according to whether the analyzed character set is the same as the preset character set.
In one possible implementation manner, the method further includes: and displaying the decoding result through the image acquisition interface.
According to the scheme, the decoding result is displayed, and the follow-up management of the terminal equipment can be facilitated.
In a second aspect, an embodiment of the present invention provides a resolving power determining apparatus, including:
the image acquisition module is used for entering an image acquisition interface based on a received test instruction aiming at the resolution power of the camera module, and acquiring an image of a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in the preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, and the image acquisition interface comprises at least one preset area;
and the determining module is used for determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
In a possible implementation manner, the image acquisition interface includes a preset central area and at least one preset corner area;
the formation of image of the bar code region of image acquisition module in presetting the picture card is arranged in when the presetting region of image acquisition interface, through the module of making a video recording is right the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is arranged in the preset central area and/or the preset corner area, the image acquisition is carried out on the bar code in the bar code area through the camera module.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, and the preset graphic card includes a central barcode area corresponding to the preset central area and four corner barcode areas corresponding to the four preset corner areas;
the image acquisition module is in the formation of image in bar code region is arranged in predetermine central zone with when predetermineeing the corner region, through the module of making a video recording is right bar code in the bar code region carries out image acquisition, includes:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module;
the determining module determines the resolution of the camera module based on the decoding result of the bar code in the acquired image, and comprises:
determining the central resolving power of the camera module based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module based on the decoding results of the bar codes of the four corner bar code areas in the first image.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, the preset graphic card includes a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same;
the image acquisition module is in the formation of image in bar code region is arranged in predetermine central zone or when predetermineeing the corner region, through the module of making a video recording is right bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
the determining module determines the resolution of the camera module based on the decoding result of the bar code in the acquired image, and comprises:
determining the central resolving power of the camera module based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module based on the result of decoding the bar codes in the third images.
In one possible implementation, the determining module determines the decoding result by:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
In a possible implementation manner, the decoding device further includes a display module, configured to display the decoding result through the image acquisition interface.
In a third aspect, a terminal device provided in an embodiment of the present invention includes: the system comprises a processor, a memory and a camera module;
wherein the memory stores program code that, when executed by the processor, causes the processor to perform the following:
the method comprises the steps of entering an image acquisition interface based on a received test instruction for the resolving power of a camera module, and carrying out image acquisition on a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in a preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module; and determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
The camera module is used for collecting images.
In a possible implementation manner, the image acquisition interface includes a preset central area and at least one preset corner area;
the processor specifically performs the following processes:
when the imaging of the bar code area is arranged in the preset central area and/or the preset corner area, the image acquisition is carried out on the bar code in the bar code area through the camera module.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, and the preset graphic card includes a central barcode area corresponding to the preset central area and four corner barcode areas corresponding to the four preset corner areas;
the processor specifically performs the following processes:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module;
determining the central resolving power of the camera module based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module based on the decoding results of the bar codes of the four corner bar code areas in the first image.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, the preset graphic card includes a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same;
the processor specifically performs the following processes:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
determining the central resolving power of the camera module based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module based on the result of decoding the bar codes in the third images.
In one possible implementation, the processor further performs the following process:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
In one possible implementation, the processor further performs the following process:
and displaying the decoding result through the image acquisition interface.
In a fourth aspect, embodiments of the present invention provide a computer-readable medium on which a computer program is stored, which when executed by a processor, performs the steps of the method according to the first aspect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 2 is a block diagram of a hardware configuration of a terminal device according to an embodiment of the present invention;
fig. 3 is a block diagram of a software structure of a terminal device according to an embodiment of the present invention;
fig. 4 is a schematic flow chart of a method for determining resolution according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a user interface provided by an embodiment of the present invention;
fig. 6A is a schematic diagram of an image capture interface according to an embodiment of the present invention;
FIG. 6B is a schematic diagram of another image capture interface provided in accordance with an embodiment of the present invention;
fig. 7 is a schematic flow chart of another resolution determination method provided by the embodiment of the invention;
FIG. 8 is a schematic diagram of yet another image capture interface provided in accordance with an embodiment of the present invention;
fig. 9 is a schematic flow chart of a further method for determining resolution according to an embodiment of the present invention;
fig. 10 is a schematic flow chart of a further method for determining resolution according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a resolving power determining apparatus according to an embodiment of the present invention;
fig. 12 is a schematic block diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The terminal equipment shoots through the camera module, and the capability (namely resolution) of the camera module for distinguishing the details of the shot original object is a key factor influencing the clear effect of the shot image, so that the determination of the resolution of the camera module is a necessary process in the evaluation or quality inspection of the terminal equipment. In the related art, the terminal device shoots the ISO12233 test target through the camera module, the shot image is sent to the computer, and the computer detects the image through imatest software to obtain the resolution of the camera module.
However, according to the scheme, the image needs to be sent to the computer, the computer can determine the resolution power of the camera module by performing complex calculation on the image through imatest software, and the time for the transmission process and the calculation process is long, so that the efficiency for determining the resolution power of the camera module is low.
Therefore, in order to improve the efficiency of determining the resolution of the camera module, embodiments of the present invention provide a method, an apparatus, a terminal device, and a storage medium for determining the resolution, which enter an image acquisition interface when a test instruction for the resolution of the camera module is received, and perform image acquisition on a barcode in a barcode region in a preset image card by using the camera module when an image of the barcode region is placed in the preset region of the interface, so as to quickly and accurately determine the resolution of the camera module based on a decoding result of the barcode in the acquired image. The terminal equipment can complete the processes of code scanning and decoding without a computer, so that the time for transmitting the code to the computer is saved; the calculation amount in the decoding process is extremely small, so the calculation time is short; in addition, the definition of the bar codes collected by the camera modules with different resolution capabilities is different, and the decoding results of the bar codes with different definitions are also different, so that the resolution image of the camera module can be accurately determined according to the decoding result of the collected image. In conclusion, the resolution of the camera module can be determined quickly and accurately by the scheme.
Fig. 1 illustrates an application scenario provided in an embodiment of the present application. As shown in fig. 1, the application scenario includes a terminal device 100 and a graphic card 200.
In this embodiment, the graphic card 200 includes at least one barcode region, and one barcode region carries one barcode. The graphic card may be a reflective graphic card or a transmissive graphic card, and for the transmissive graphic card, the application scenario further includes a backlight lamp set 300. Fig. 1 illustrates a diagram 200 as a transmissive diagram.
Referring to FIG. 1, a backlight lamp set 300 provides a uniform backlight source for a graphics card 200. The terminal device 100 and the graphic card 200 are placed in parallel, and when the vertical distance between the terminal device 100 and the graphic card 200 is the focusing distance of the camera module, the terminal device acquires an image of the graphic card 200 through the camera module.
In this embodiment, the terminal device 100 may enter an image acquisition interface based on a received test instruction for the resolution of the camera module;
when the imaging of the barcode region in the graphic card 200 is placed in the preset region of the image acquisition interface, the image acquisition of the barcode in the barcode region can be performed through the camera module;
the resolution of the camera module can also be determined based on the decoding result of the bar code in the acquired image.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. In the description of the present invention, the term "plurality" means two or more unless otherwise specified.
A block diagram of a hardware configuration of the terminal device 100 according to an exemplary embodiment is exemplarily shown in fig. 2. As shown in fig. 2, the terminal device 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera module 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, and a power supply 190.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 performs various functions of the terminal device 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. The memory 120 stores an operating system that enables the terminal device 100 to operate. The memory 120 may store an operating system and various application programs, and may also store codes for performing the methods described in the embodiments of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the terminal device 100, and particularly, the display unit 130 may include a touch screen 131 disposed on the front surface of the terminal device 100 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal apparatus 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the terminal device 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described herein.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the terminal device 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera module 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The terminal device 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The terminal device 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, light sensor, motion sensor, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between the user and the terminal device 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The terminal device 100 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the terminal device 100 can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the Wi-Fi module 170, and provides wireless broadband internet access for the user.
The processor 180 is a control center of the terminal device 100, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may run an operating system, an application program, a user interface display, and a touch response, and the processing method described in the embodiments of the present application. Further, the processor 180 is coupled with the display unit 130.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the terminal device 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module via the bluetooth module 181, so as to perform data interaction.
The terminal device 100 also includes a power supply 190 (such as a battery) for powering the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The terminal device 100 may further be configured with a power button for powering on and off the terminal, and locking the screen.
Fig. 3 is a block diagram of the software configuration of the terminal device 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
The application package may include camera, gallery, calendar, phone, map, navigation, WLAN, bluetooth, music, video, short message, etc. applications.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide the communication function of the terminal device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the terminal vibrates, an indicator light flashes, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following describes exemplary workflow of the software and hardware of the terminal device 100 in connection with capturing a photo scene.
When the touch screen 131 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera module 140.
The terminal device 100 in the embodiment of the present application may be a terminal with a camera module, such as a mobile phone, a tablet computer, and a wearable device.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 4 is a schematic flowchart of a resolution determining method according to an embodiment of the present application, and an execution subject of the present embodiment may be the terminal device 100 in the foregoing embodiment. As shown in fig. 4, the method may include:
step 401: and entering an image acquisition interface based on the received test instruction aiming at the resolution power of the camera module.
In some implementations, referring to fig. 5, a user touches a resolution test application icon on a user interface to trigger a test instruction for the resolution of the camera module, and the terminal device 100 receives the test instruction and enters an image acquisition interface.
Step 402: when the imaging of the bar code area in the preset graphic card is arranged in the preset area of the image acquisition interface, the image acquisition is carried out on the bar code in the bar code area through the camera module.
The preset graphic card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module.
In this embodiment, if the edge line of the image of the barcode region is in the preset region, the image of the barcode region is placed in the preset region, and the barcode region in the image acquired by the camera module is in the preset region at this time.
In some embodiments, referring to fig. 6A, the barcode region and the preset region are both rectangles, and four edge lines of the image of the barcode region are all inside the preset region, and the image of the barcode region is placed in the preset region;
referring to fig. 6B, three edge lines of the image of the barcode region are outside the preset region, and the image of the barcode region is not disposed in the preset region.
Fig. 6A-6B are all described by taking an example that the image capturing interface includes a preset region, and the preset region is a central region of the image capturing interface, but the image capturing interface may also include a plurality of preset regions, for example, the preset region includes a central preset region and four corners, which is not limited in this embodiment. Likewise, the graphic card may include multiple barcode regions. The bar codes in fig. 6A to 6B are explained by taking a one-dimensional code as an example, but the bar code may be another bar code such as a two-dimensional code.
In addition, the preset graphic card is arranged at the focusing distance of the camera module, so that the problem that the image acquired by the camera module due to the focusing problem is unclear and the subsequent determined resolving power is influenced can be avoided.
Step 403: and determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
The bar code definition is different in the image that the module of making a video recording of different resolution ability was gathered, for example: the image collected by the camera module with poor resolution capability has low bar code definition, and the bar code with low definition is difficult to decode; the image that the module of making a video recording gathered that resolution power is good is in the bar code definition higher, and the degree of difficulty of decoding the higher bar code of definition is less, consequently has the difference to the decoding result that decodes of the bar code in the image that the module of making a video recording gathered that resolution power is different, and then can be based on the decoding result to the bar code in the image of gathering, confirms the resolution power of the module of making a video recording.
The decoding result may be determined by, but is not limited to:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
The description is given by taking the bar code as a one-dimensional code: digging out the acquired image bar code by using an operator and a cutting operator for reducing the domain of the image; and analyzing the excavated bar code by using an image reading operator, comparing the analyzed character set with a preset character set, and if the same decoding result is successful, decoding results are different, and if the different decoding results are failed. According to whether the analyzed character set is the same as the preset character set or not, whether the decoding result is successful or failed can be conveniently and accurately determined.
The above decoding process is only an example, and other decoding processes are also applicable to the embodiments of the present invention, and are not described herein again.
According to the scheme, the code scanning and decoding processes can be completed through the terminal device, and a computer is not needed, so that the time for transmitting the code to the computer is saved; the calculation amount in the decoding process is extremely small, so the calculation time is short; in addition, the definition of the bar codes collected by the camera modules with different resolution capabilities is different, and the decoding results of the bar codes with different definitions are also different, so that the resolution image of the camera module can be accurately determined according to the decoding result of the collected image. In conclusion, the resolution of the camera module can be determined quickly and accurately by the scheme.
Fig. 7 is a schematic flowchart of another resolution determination method provided in an embodiment of the present application, and as shown in fig. 7, the method may include:
step 701: and entering an image acquisition interface based on the received test instruction aiming at the resolution power of the camera module.
The step 701 is implemented in the same manner as the step 401, and is not described herein again.
Step 702: when the imaging of the bar code area is arranged in the preset central area and/or the preset corner area, the image acquisition is carried out on the bar code in the bar code area through the camera module.
The preset image card comprises at least one bar code area, the image acquisition interface comprises a preset central area and at least one preset corner area, and the vertical distance between the preset image card and the terminal equipment is the focusing distance of the camera module.
If the image acquisition interface only comprises one preset area, the resolution of the camera module in one area can only be determined through the embodiment, and the overall resolution of the camera module can not be comprehensively and reasonably obtained. Based on this, need set up a plurality of areas of predetermineeing through the image acquisition interface to comprehensively, rationally obtain the whole power of resolving a video camera module.
For example, the image capturing interface includes a preset center region and at least one preset corner region, where the division of the preset center region and the preset corner region in the image capturing interface is not specifically limited in this embodiment, as shown in fig. 8, the image capturing interface may be equally divided into three rows and three columns, the middle region is the preset center region, part or all of the regions at the four corners (the upper left corner region, the lower left corner region, the upper right corner region, and the lower right corner region) are used as the preset corner regions, and fig. 8 illustrates an example in which all of the regions at the four corners are used as the preset corner regions.
The image acquisition of the bar code in the bar code area can be carried out by the camera module through but not limited to the following two modes:
the image acquisition interface comprises a preset central area and two preset corner areas which are opposite to each other, the preset graphic card comprises three corresponding bar code areas, when the imaging of the three bar code areas is respectively arranged in the preset central area and the two preset corner areas, the image acquisition is carried out on the bar codes in the three bar code areas through the camera module, and the acquired image simultaneously contains the bar codes imaged in the preset central area and the bar codes imaged in the preset corner areas.
Or, the image acquisition interface includes predetermineeing central area and four and predetermines the corner region, predetermine the picture card and only include a bar code region, when the formation of image in bar code region was arranged in above-mentioned predetermined central area or arbitrary predetermined corner region, carry out image acquisition through the bar code of making a video recording module in to the bar code in the bar code region, contain in the image of gathering in the bar code of predetermineeing the central area formation of image or in the bar code of predetermineeing the corner region formation of image, and then can obtain the image that contains the bar code of predetermineeing the central area formation of image and the image at the bar code of predetermineeing the corner region formation of image through gathering many times.
The above two acquisition manners are only examples, and other acquisition manners are also applicable to the embodiment of the present invention, and are not described herein again.
Step 703: and determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
As described above, the acquired image may include the barcode imaged in the preset central region and the barcode imaged in the preset corner region at the same time; it is also possible to include only barcodes imaged in a preset central area; it is also possible to only include the image of the barcode imaged in the preset corner region, and correspondingly, based on the decoding result of the barcode in the captured image, determining the resolution of the camera module can be achieved by, but not limited to, the following two possible ways:
1) determining the central resolving power of the camera module according to the decoding result of the bar code imaged in the preset central area under the condition that the acquired image simultaneously comprises the bar code imaged in the preset central area and the bar code imaged in the preset corner area; determining the corner resolution of the camera module according to the decoding result of the bar code imaged in the preset corner area;
2) for the collected images only containing the bar codes imaged in the preset central area or the bar codes imaged in the preset corner area, the bar codes in the two images need to be decoded respectively to obtain the central resolution and the corner resolution of the camera module.
In some specific implementations, the decoding result of the bar code imaged in the preset central area is that the decoding is successful, and the central resolving power of the camera module is qualified; the decoding result to the bar code of predetermineeing the regional formation of image of corner is for decoding successfully, and the corner resolution power of the module of making a video recording is qualified, and when the central resolution power of module and corner resolution power were all qualified, the resolution power of the module of making a video recording was qualified.
Optionally, after a decoding result of the barcode in the acquired image is obtained, the decoding result may be displayed through the image acquisition interface.
Illustratively, the decoding results of the barcodes imaged in the preset central area and the decoding results of the barcodes imaged in each preset corner area are displayed through the image acquisition interface. For example, the bar codes imaged in each preset area are encoded, and the decoding result is displayed as: bar code 1-success/failure, bar code 2-success/failure … …
The decoding result is displayed, so that the subsequent management of the terminal equipment can be facilitated.
According to the scheme, the image acquisition interface comprises a preset central area and at least one preset corner area, if the distribution of the bar code area in the image card corresponds to the distribution of the preset area in the image acquisition interface, when the imaging of each bar code area is respectively arranged in the preset central area and the preset corner area, the bar codes in the bar code area are subjected to image acquisition through the camera module, the acquired image simultaneously contains the bar codes imaged in the preset central area and the bar codes imaged in the preset corner area, so that the center resolution and the corner resolution of the camera module can be conveniently and quickly determined according to the decoding result of the bar codes in the acquired image. If the distribution of the barcode regions in the image card does not correspond to the distribution of the preset regions in the image acquisition interface, when the imaging of the barcode regions is arranged in the preset central region or the preset corner region, the barcode in the barcode regions is acquired through the camera module, the acquired images only contain the barcode imaged in the preset central region or the barcode imaged in the preset corner region, the barcodes in the two images are decoded, and the central resolution and the corner resolution of the camera module are respectively obtained, so that when the number of the barcode regions in the image card is small, the central resolution and the corner resolution of the camera module can be determined according to the decoding result of the barcode in the acquired image.
Fig. 9 is a schematic flowchart of a further method for determining a resolution, which may include, as shown in fig. 9:
step 901: and entering an image acquisition interface based on the received test instruction aiming at the resolution power of the camera module.
Step 901 is the same as step 401, and is not described here again.
Step 902: when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas occupies the corresponding preset corner areas respectively, the first image acquisition is carried out on the bar codes in the central bar code area and the four corner bar code areas through the camera module.
The image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a central bar code area corresponding to the preset central area and four corner bar code areas corresponding to the four preset corner areas, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module.
In this embodiment, no matter whether the imaging size of the barcode region is small or large, as long as the edge line of the imaging of the barcode region is within the preset region, the barcode region is considered to be disposed within the preset region, and therefore image acquisition is performed. However, the larger imaging of the bar code area can cause the decoding result to have higher probability of successful decoding; the smaller bar code area imaging can make the decoding result have higher probability of decoding failure, so that the decoding result is not only influenced by the resolution of the camera module, but also influenced by the size of the bar code area imaging, and the obtained resolution is unreasonable.
Based on this, in order to avoid influencing the decoding result due to too large or too small imaging of the barcode region in the image, in this embodiment, when the imaging of the central barcode region occupies the preset central region (the edge line of the central barcode region coincides with the edge line of the preset central region) and the imaging of the four corner barcode regions occupies the corresponding preset corner regions (the edge lines of the four corner barcode regions coincide with the edge lines of the corresponding preset corner regions), respectively, the barcode in the central barcode region and the barcodes in the four corner barcode regions are subjected to image acquisition through the camera module, so that the size of the barcode region in the image is fixed, the decoding result is not influenced by the imaging size of the barcode region, and the decoding force can be determined more accurately through the decoding result.
In some implementations, the preset graphic card may include a central barcode region corresponding to the preset central region and four corner barcode regions corresponding to the four preset corner regions:
the position distribution, the shape and the size of each bar code area in the preset graphic card are the same as those of each preset area in the image acquisition interface;
the position distribution, the shape and the phase of each bar code area in the preset graphic card and each preset area in the image acquisition interface are the same, and the size of each bar code area in the preset graphic card and each corresponding preset area in the image acquisition interface form a certain proportional relationship.
The above two implementations are merely examples, and other implementations are not described herein.
Step 903: determining the central resolving power of the camera module based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module based on the decoding results of the bar codes of the four corner bar code areas in the first image.
In this embodiment, the main measurement criteria of the resolution of the camera module are the resolution in the central area and the resolution in the four corners, and the first image includes the barcode in the central barcode area and the barcodes in the four corners, so that the central resolution and the four-corner resolution of the camera module can be directly determined according to the decoding result of each barcode in the first image.
According to the scheme, the image acquisition interface comprises a preset central area and four preset corner areas, the preset image card is correspondingly provided with a central bar code area and four corner bar code areas, when the imaging of the central bar code area just occupies the preset central area and the imaging of the four corner bar code areas just respectively occupies the corresponding preset corner areas, the first image acquisition is carried out on the bar codes in the central bar code area and the four corner bar code areas through the camera module, and the situation that the decoding result is influenced by the fact that the bar code areas in the first image are too large or too small is avoided, and the obtained image resolving power is unreasonable is avoided; the first image simultaneously comprises the bar code of the central bar code area and the bar codes of the four corner bar codes, so that the central resolution and the four corner resolution of the camera module can be directly determined according to the decoding result of each bar code in the first image.
Fig. 10 is a schematic flowchart of a further resolution determination method provided in an embodiment of the present application, and as shown in fig. 10, the method may include:
step 1001: and entering an image acquisition interface based on the received test instruction aiming at the resolution power of the camera module.
Step 1001 is implemented in the same manner as step 401, and is not described herein again.
Step 1002: when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; and when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module.
The image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a bar code area, the bar code area is the same with the shapes of the preset central area and the preset corner areas, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module.
As described above, if the size of the barcode region in the image is large, the decoding result is not only affected by the resolution of the camera module, but also affected by the size of the barcode region, which results in an unreasonable resolution.
Based on this, in some implementations, in the case that the preset graphic card only includes one barcode region, when the imaging of the barcode region occupies the preset central region (the edge line of the barcode region is overlapped with the edge line of the preset central region), the second image acquisition is performed on the barcode of the barcode region through the imaging module. Therefore, the size of the barcode region in the second image is fixed, and the decoding result of the barcode in the second image is not influenced by the imaging size of the barcode region.
Similarly, when the imaging of the bar code area occupies any preset corner area (the edge line of the bar code area is superposed with the edge line of any preset corner area), the third image acquisition (four times of acquisition in total, and once the imaging of the bar code area occupies one preset corner area) is carried out on the bar code in the bar code area through the camera module, so that the size of the bar code area in the third image is fixed, and the decoding result of the bar code in the third image cannot be influenced by the size of the imaging of the bar code area.
In some implementations, the shapes of the barcode region, the preset central region and each preset corner region may be the same as:
the shapes and the sizes of the bar code area, the preset central area and each preset corner area are all completely the same;
or the shapes of the barcode region, the preset central region and each preset corner region are the same, but the sizes of the barcode region, the preset central region and each preset corner region are different, for example: the bar code area, the preset central area and each preset corner area are all rectangles with the same length-width ratio, the area of each preset corner area is the same, and the area ratio of the bar code area, the preset central area and any one preset corner area is 1:4: 2.
The above two implementation manners are only examples, and other implementation manners that satisfy that the barcode region, the preset central region, and each preset corner region are the same are also applicable to the embodiment of the present invention, and are not described herein again.
Step 1003: determining the central resolving power of the camera module based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module based on the result of decoding the bar codes in the third images.
In this embodiment, the main criteria for the resolution of the camera module are the resolution of the central area and the resolution of the four corners. For the situation that the image card only has one bar code area, the central resolving power of the camera module is determined according to the decoding result of the bar code in the second image, and the four-corner resolving power of the camera module is determined according to the decoding result of the bar code in each third image.
According to the scheme, when the imaging of the bar code area is full of the preset central area, the second image acquisition is carried out on the bar code in the bar code area through the camera module, the central resolving power of the camera module can be determined according to the decoding result of the bar code in the second image, and the unreasonable central resolving power caused by the fact that the decoding result is influenced by too large or too small imaging of the bar code area is avoided; when the imaging of the bar code area occupies any preset corner area, the third image acquisition is carried out on the bar code in the bar code area through the camera module, the four-corner resolution of the camera module can be accurately determined according to the decoding result of the bar code in each third image, and the situation that the decoding result is influenced by too large or too small imaging of the bar code area, so that the obtained four-corner resolution is unreasonable is avoided.
As shown in fig. 11, based on the same inventive concept, an embodiment of the present invention provides a resolving power determining apparatus 1100, including:
the image acquisition module 1101 is used for entering an image acquisition interface based on a received test instruction for the resolution of the camera module, and acquiring an image of a barcode in a barcode region through the camera module when an image of the barcode region in a preset graphic card is placed in a preset region of the image acquisition interface, wherein the preset graphic card comprises at least one barcode region, and the image acquisition interface comprises at least one preset region;
the determining module 1102 is configured to determine a resolution of the camera module based on a decoding result of the barcode in the acquired image.
In a possible implementation manner, the image acquisition interface includes a preset central area and at least one preset corner area;
when the imaging of the barcode region in the preset image card is placed in the preset region of the image acquisition interface, the image acquisition module 1101 performs image acquisition on the barcode in the barcode region through the camera module, including:
when the imaging of the bar code area is arranged in the preset central area and/or the preset corner area, the image acquisition is carried out on the bar code in the bar code area through the camera module.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, and the preset graphic card includes a central barcode area corresponding to the preset central area and four corner barcode areas corresponding to the four preset corner areas;
the image acquisition module 1101 is in the formation of image in the bar code region is arranged in predetermine the central zone with when predetermineeing the corner region, through the module of making a video recording is right bar code in the bar code region carries out image acquisition, includes:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module;
the determining module 1102 determines the resolution of the camera module based on the decoding result of the barcode in the acquired image, including:
determining the central resolving power of the camera module based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module based on the decoding results of the bar codes of the four corner bar code areas in the first image.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, the preset graphic card includes a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same;
the image acquisition module 1101 is in the formation of image in the bar code region is arranged in predetermine central region or when predetermineeing the corner region, through the module of making a video recording is right bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
the determining module 1102 determines the resolution of the camera module based on the decoding result of the barcode in the acquired image, including:
determining the central resolving power of the camera module based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module based on the result of decoding the bar codes in the third images.
In one possible implementation, the determining module 1102 determines the decoding result by:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
In a possible implementation manner, a display module 1103 is further included, configured to display the decoding result through the image capturing interface.
Since the apparatus is the apparatus in the method in the embodiment of the present invention, and the principle of the apparatus for solving the problem is similar to that of the method, the implementation of the apparatus may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 12, based on the same inventive concept, an embodiment of the present invention provides a terminal device 1200 including: a processor 1201, a memory 1202 and a camera module 1203;
wherein the memory 1202 stores program code that, when executed by the processor 1201, causes the processor 1201 to perform the following:
entering an image acquisition interface based on a received test instruction for the resolving power of the camera module, and acquiring an image of a bar code in a bar code area through the camera module 1203 when an image of the bar code area in a preset image card is placed in a preset area of the image acquisition interface, wherein the preset image card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset image card and the terminal equipment is the focusing distance of the camera module; and determining the resolution of the camera module based on the decoding result of the bar code in the acquired image.
The camera module 1203 is used for collecting images.
In a possible implementation manner, the image acquisition interface includes a preset central area and at least one preset corner area;
the processor 1201 specifically executes the following processes:
when the imaging of the barcode region is placed in the preset central region and/or the preset corner region, the image of the barcode in the barcode region is acquired through the camera module 1203.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, and the preset graphic card includes a central barcode area corresponding to the preset central area and four corner barcode areas corresponding to the four preset corner areas;
the processor 1201 specifically executes the following processes:
when the imaging of the central barcode region occupies the preset central region and the imaging of the four corner barcode regions occupies the corresponding preset corner regions, respectively, performing first image acquisition on the barcodes in the central barcode region and the four corner barcode regions through the camera module 1203;
determining the central resolving power of the camera module 1203 based on the decoding result of the bar code of the central bar code area in the first image; and determining the corner resolution of the camera module 1203 based on the decoding results of the barcodes of the four corner barcode regions in the first image.
In a possible implementation manner, the image acquisition interface includes a preset central area and four preset corner areas, the preset graphic card includes a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same;
the processor 1201 specifically executes the following processes:
when the imaging of the barcode area is full and the preset central area is occupied, performing second image acquisition on the barcode in the barcode area through a camera module 1203; when the imaging of the barcode area occupies each preset corner area, performing third image acquisition on the barcode in the barcode area through the camera module 1203;
determining the central resolving power of the camera module 1203 based on the decoding result of the bar code in the second image; and determining the corner resolution of the camera module 1203 based on the result of decoding the bar codes in the third images.
In one possible implementation, the processor 1201 further performs the following processes:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
In one possible implementation, the processor 1201 further performs the following processes:
and displaying the decoding result through the image acquisition interface.
Since the terminal is a terminal that executes the method in the embodiment of the present invention, and the principle of the terminal to solve the problem is similar to that of the method, the implementation of the terminal may refer to the implementation of the method, and repeated details are not repeated.
Embodiments of the present invention provide a computer-readable medium on which a computer program is stored, which, when being executed by a processor, implements the steps of the resolution determination method as described above. The storable medium may be, among other things, a non-volatile storable medium.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (6)

1. A method for determining resolving power is applied to a terminal device, the terminal device comprises a camera module, and the method comprises the following steps:
the method comprises the steps of entering an image acquisition interface based on a received test instruction for the resolving power of a camera module, and carrying out image acquisition on a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in a preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, the image acquisition interface comprises at least one preset area, and the vertical distance between the preset graphic card and the terminal equipment is the focusing distance of the camera module;
determining whether the resolving power of the camera module is qualified or not based on the decoding result of the bar code in the collected image;
if the image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a central bar code area corresponding to the preset central area and four corner bar code areas corresponding to the four preset corner areas; then
The formation of image in the bar code region in predetermineeing the picture card is arranged in when the predetermined region of image acquisition interface, through the module of making a video recording is to the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module;
whether the resolution power of the camera module is qualified or not is determined based on the decoding result of the bar code in the acquired image, and the method comprises the following steps:
determining whether the central resolving power of the camera module is qualified or not based on a decoding result of the bar code of the central bar code area in the first image; determining whether the corner resolution of the camera module is qualified or not based on the decoding results of the bar codes of the four corner bar code areas in the first image;
or
If the image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same; then
The formation of image in the bar code region in predetermineeing the picture card is arranged in when the predetermined region of image acquisition interface, through the module of making a video recording is to the bar code in the bar code region carries out image acquisition, includes:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
whether the resolution power of the camera module is qualified or not is determined based on the decoding result of the bar code in the acquired image, and the method comprises the following steps:
determining whether the central resolving power of the camera module is qualified or not based on the decoding result of the bar code in the second image; and determining whether the corner resolution of the camera module is qualified or not based on the result of decoding the bar codes in the third images.
2. The method of claim 1, wherein the decoding result is determined by:
decoding the bar code in the acquired image to obtain an analyzed character set;
if the analyzed character set is the same as a preset character set, the decoding result is successful;
and if the analyzed character set is different from the preset character set, the decoding result is decoding failure.
3. The method of claim 1, further comprising: and displaying the decoding result through the image acquisition interface.
4. A resolving power determining apparatus, comprising:
the image acquisition module is used for entering an image acquisition interface based on a received test instruction aiming at the resolution power of the camera module, and acquiring an image of a bar code in a bar code area through the camera module when an image of the bar code area in a preset graphic card is arranged in the preset area of the image acquisition interface, wherein the preset graphic card comprises at least one bar code area, and the image acquisition interface comprises at least one preset area;
the determining module is used for determining whether the resolving power of the camera shooting module is qualified or not based on the decoding result of the bar code in the collected image;
if the image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a central bar code area corresponding to the preset central area and four corner bar code areas corresponding to the four preset corner areas; then
The image acquisition module is specifically configured to:
when the imaging of the central bar code area occupies the preset central area and the imaging of the four corner bar code areas respectively occupies the corresponding preset corner areas, carrying out first image acquisition on the bar codes in the central bar code area and the four corner bar code areas through the camera module; then
The determining module is specifically configured to:
determining whether the central resolving power of the camera module is qualified or not based on a decoding result of the bar code of the central bar code area in the first image; determining whether the corner resolution of the camera module is qualified or not based on the decoding results of the bar codes of the four corner bar code areas in the first image;
or
If the image acquisition interface comprises a preset central area and four preset corner areas, the preset graphic card comprises a bar code area, and the shapes of the bar code area, the preset central area and each preset corner area are the same; then
The image acquisition module is specifically configured to:
when the imaging of the bar code area is full of the preset central area, carrying out second image acquisition on the bar code in the bar code area through a camera module; when the imaging of the bar code area occupies any preset corner area, performing third image acquisition on the bar code in the bar code area through the camera module;
the determining module is specifically configured to:
determining whether the central resolving power of the camera module is qualified or not based on the decoding result of the bar code in the second image; and determining whether the corner resolution of the camera module is qualified or not based on the result of decoding the bar codes in the third images.
5. A terminal device, comprising: the system comprises a processor, a memory and a camera module;
wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 3;
the camera module is used for collecting images.
6. A computer-storable medium on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN202010496542.8A 2020-06-03 2020-06-03 Resolving power determining method and device, terminal equipment and storage medium Active CN111726605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010496542.8A CN111726605B (en) 2020-06-03 2020-06-03 Resolving power determining method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010496542.8A CN111726605B (en) 2020-06-03 2020-06-03 Resolving power determining method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111726605A CN111726605A (en) 2020-09-29
CN111726605B true CN111726605B (en) 2021-10-22

Family

ID=72565947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010496542.8A Active CN111726605B (en) 2020-06-03 2020-06-03 Resolving power determining method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111726605B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542730A (en) * 2021-06-29 2021-10-22 深圳市天视通视觉有限公司 Sensor testing method and device of camera and storage medium
CN113873153B (en) * 2021-09-23 2024-06-21 汇献科技(深圳)有限公司 Shooting adjusting method of video camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6992696B1 (en) * 2000-10-26 2006-01-31 Lockheed Martin Corporation Image test target for visual determination of digital image resolution
CN104967843A (en) * 2015-07-02 2015-10-07 上海斐讯数据通信技术有限公司 Method and system for detecting camera of mobile terminal equipment
CN107525651A (en) * 2016-06-22 2017-12-29 北京疯景科技有限公司 Camera lens resolving power method of testing, apparatus and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6992696B1 (en) * 2000-10-26 2006-01-31 Lockheed Martin Corporation Image test target for visual determination of digital image resolution
CN104967843A (en) * 2015-07-02 2015-10-07 上海斐讯数据通信技术有限公司 Method and system for detecting camera of mobile terminal equipment
CN107525651A (en) * 2016-06-22 2017-12-29 北京疯景科技有限公司 Camera lens resolving power method of testing, apparatus and system

Also Published As

Publication number Publication date
CN111726605A (en) 2020-09-29

Similar Documents

Publication Publication Date Title
CN111367456A (en) Communication terminal and display method in multi-window mode
US20240137438A1 (en) Information display method and electronic device
CN113473074B (en) Detection method, electronic equipment, detection equipment and storage medium
CN111726605B (en) Resolving power determining method and device, terminal equipment and storage medium
CN113835569A (en) Terminal device, quick start method for internal function of application and storage medium
CN114020379B (en) Terminal equipment, information feedback method and storage medium
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111176766A (en) Communication terminal and component display method
CN112099892B (en) Communication terminal and method for rapidly scanning two-dimension code
CN113038141A (en) Video frame processing method and electronic equipment
CN116720533B (en) Code scanning method, electronic equipment and readable storage medium
CN113641431B (en) Method for enhancing display of two-dimension code and terminal equipment
CN114546219A (en) Picture list processing method and related device
CN113129238B (en) Photographing terminal and image correction method
CN113642010B (en) Method for acquiring data of extended storage device and mobile terminal
CN114489429A (en) Terminal device, long screen capture method and storage medium
CN111163220B (en) Display method, communication terminal and computer storage medium
CN112825536B (en) Electronic terminal and background card display method
CN113760164A (en) Display device and response method of control operation thereof
CN111159734A (en) Communication terminal and multi-application data inter-access processing method
CN112929858B (en) Method and terminal for simulating access control card
CN113655948B (en) Control method of terminal equipment and terminal equipment
CN113255644B (en) Display device and image recognition method thereof
CN113901255A (en) Image processing terminal and method
CN111427492A (en) Display position control method and terminal

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