WO2017088594A1 - Mobile terminal, information processing method, and computer storage medium - Google Patents

Mobile terminal, information processing method, and computer storage medium Download PDF

Info

Publication number
WO2017088594A1
WO2017088594A1 PCT/CN2016/101594 CN2016101594W WO2017088594A1 WO 2017088594 A1 WO2017088594 A1 WO 2017088594A1 CN 2016101594 W CN2016101594 W CN 2016101594W WO 2017088594 A1 WO2017088594 A1 WO 2017088594A1
Authority
WO
WIPO (PCT)
Prior art keywords
area
region
image
mobile terminal
determining
Prior art date
Application number
PCT/CN2016/101594
Other languages
French (fr)
Chinese (zh)
Inventor
谢书勋
Original Assignee
努比亚技术有限公司
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 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017088594A1 publication Critical patent/WO2017088594A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing

Definitions

  • the present invention relates to information processing technologies, and in particular, to a mobile terminal, an information processing method, and a computer storage medium.
  • the mobile terminal lens module is mainly composed of a lens and a complementary metal oxide semiconductor (CMOS) sensor.
  • CMOS complementary metal oxide semiconductor
  • the specific expression is that a color patch, a black spot, or a black stripe-like mark appears on the captured image of the mobile terminal.
  • the image is transmitted to the computer, and the image is enlarged on the computer to check the dirty state of the image by the naked eye, so as to know whether the lens module has a flower screen, dirt, etc. problem.
  • This detection method not only consumes a lot of human resources, but also has low efficiency, is prone to errors, and it is difficult to make accurate judgments on the dirty situation due to human subjectivity.
  • the embodiments of the present invention provide a mobile terminal, an information processing method, and a computer storage medium, which can quickly and accurately detect whether a lens module in a mobile terminal is dirty or a screen. Reduce human resources and improve detection efficiency.
  • An embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: an image acquisition unit, an image processing unit, and a determination unit;
  • the image acquisition unit is configured to acquire a first image, and send the first image to the An image processing unit; the image acquisition area corresponding to the first image is uniform in brightness and the brightness parameter meets a preset threshold;
  • the image processing unit is configured to divide the first image into N ⁇ M regions, and obtain a gray average value of each region; N and M are positive integers;
  • the determining unit is configured to calculate a difference between the grayscale average values of the first region and the second region, and determine whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, Obtaining a judgment result; wherein the first area and the second area are any one of the N ⁇ M areas, and the first area and the second area are separated by a third area; When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal The sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  • the determining unit is configured to determine whether a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than a first threshold, and Or determining whether the difference between the gray average values of the first area A m,n and the second area A m,n-2 is greater than a first threshold, obtaining a first determination result; when the first The result of the determination is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area Am,n and the the second region a m, an average value of the gradation difference n-2 is greater than a first threshold value, determining that the first area corresponds to a first sub-region of the image acquisition unit of the mobile terminal is in an abnormal state, or the The second area corresponding to the second sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
  • the determining unit is configured to: when the first determination result is a difference between a gray average value of the first area A m,n and the second area A m-2,n When the difference between the gray level average of the first area Am,n and the second area Am,n-2 is greater than the first threshold, determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
  • the determining unit is further configured to: when the first determination result is a difference between the gray average values of the first area A m,n and the second area A m-2,n The value is not greater than the first threshold, and when the difference between the gray level average values of the first area A m,n and the second area A m,n-2 is not greater than the first threshold, determining The first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal in a normal state.
  • the determining unit determines that the first sub-region corresponding to the image acquiring unit of the mobile terminal is in an abnormal state, and includes: determining that the first region is in the first image a first position, determining a first relative positional relationship of the first region and the first image based on the first position; obtaining a first corresponding to the first relative positional relationship in the image acquisition unit a sub-area, determining that the first sub-area of the image acquisition unit is in an abnormal state.
  • the determining unit determines that the second area corresponding to the second sub-area of the image acquiring unit of the mobile terminal is in an abnormal state, and includes: determining that the second area is in the first image a second position, determining a second relative positional relationship of the second region and the first image based on the second position; obtaining a second corresponding to the second relative positional relationship in the image acquisition unit The two sub-areas determine that the second sub-area of the image acquisition unit is in an abnormal state.
  • the image processing unit is configured to recognize red and green of each area a blue (RGB) value; performing a calculation process according to a preset algorithm based on the RGB values of each of the regions to obtain a grayscale average value of each of the regions; wherein the preset algorithm includes one of the following algorithms: floating Point algorithm, integer algorithm.
  • the image capture area corresponding to the first image has uniform brightness and the preset threshold value that the brightness parameter meets satisfies 1750 lux (Lux) to 1850 Lux.
  • An embodiment of the present invention further provides an information processing method, where the method includes:
  • the image capturing area corresponding to the first image is uniform in brightness and the brightness parameter meets a preset threshold;
  • the first area and the second area are any of the N ⁇ M areas, and the first area and the second area are separated by a third area;
  • the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal
  • the sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  • the first area A m,n and the second area A m-2,n are separated from each other by a third area A m-1,n in the horizontal direction; or, the first area a m, n, and the second region a m, n-2 spaced between the third region in a vertical direction a m, n-1; wherein, m and n are positive integers greater than or equal to 2, and n is less than or equal to N, and m is less than or equal to M; the first region A m,n represents the nth and the mth region in the horizontal direction starting from the preset starting position in the N ⁇ M regions.
  • the determining the gray level of the first area and the second area Whether the mean is greater than the first threshold including:
  • the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area A m
  • the method further includes: determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
  • the method further includes: determining the a difference between a gray level average of the first area and the second area is not greater than a first threshold;
  • determining that the first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal is in a normal state.
  • the determining that the first area corresponds to an abnormal state of the first sub-area of the image capturing unit of the mobile terminal including:
  • Determining a first location of the first region in the first image determining a first relative positional relationship of the first region and the first image based on the first location; in the image acquisition unit Obtaining a first sub-region corresponding to the first relative positional relationship, determining that the first sub-region of the image acquisition unit is in an abnormal state.
  • the determining that the second area corresponds to an abnormal state of the second sub-area of the image collection unit of the mobile terminal includes:
  • Determining a second position of the second region in the first image determining a second relative positional relationship of the second region and the first image based on the second position; in the image acquisition unit Obtaining a second sub-region corresponding to the second relative positional relationship, determining that the second sub-region of the image acquisition unit is in an abnormal state.
  • the obtaining a gray average value of each region includes: identifying red, green, and blue (RGB) values of each region; and performing calculation processing according to a preset algorithm based on RGB values of each of the regions The grayscale average of each region; wherein the preset algorithm includes one of the following algorithms: a floating point algorithm, an integer algorithm.
  • RGB red, green, and blue
  • the image capture area corresponding to the first image has uniform brightness and the preset threshold value that the brightness parameter meets satisfies 1750 lux (Lux) to 1850 Lux.
  • the N and M are pre-configured according to at least one of a screen resolution, a screen pixel density, and an image acquisition unit pixel parameter of the mobile terminal.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the information processing method according to the embodiment of the invention.
  • the mobile terminal includes: an image acquisition unit, an image processing unit, and a determination unit; wherein the image acquisition unit is configured to collect the first image, and Sending the first image to the image processing unit; the image capturing area corresponding to the first image is uniform in brightness and the brightness parameter meets the preset a threshold value; the image processing unit configured to divide the first image into N ⁇ M regions, obtain a gray average value of each region; N and M are positive integers; and the determining unit is configured to calculate a difference between a gray average value of the first area and the second area, determining whether a difference between the gray average values of the first area and the second area is greater than a first threshold, and obtaining a determination result; The first area and the second area are any of the N ⁇ M areas, and the first area and the second area are separated by a third area; when the determination result is the When the difference between the grayscale average values of the first region and the second region is greater than the first threshold
  • the technical solution of the embodiment of the present invention on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection.
  • the misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
  • FIG. 1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention
  • FIG. 2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
  • FIG. 3 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an application scenario of a mobile terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of dividing a first image into N ⁇ M regions according to an embodiment of the present invention.
  • 6a and 6b are schematic diagrams showing display of a first image according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a first process of an information processing method according to an embodiment of the present invention.
  • FIG. 8 is a second schematic flowchart diagram of an information processing method according to an embodiment of the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc.
  • Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like.
  • the terminal is a mobile terminal.
  • those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
  • the mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, and the like.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 that processes image data of still pictures or video obtained by an image capturing device in a video capturing mode or an image capturing mode.
  • the processed image frame can be displayed on the display unit 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
  • the user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal.
  • the user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc.
  • a touch screen can be formed.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like.
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device.
  • the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal.
  • Various types of input from the base The command signal or power can be used as a signal for identifying whether the mobile terminal is accurately mounted on the base.
  • Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner.
  • the output unit 150 may include a display unit 151 and the like.
  • the display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function as an input device and an output device.
  • the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) .
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash Memory, hard disk, multimedia card, card type memory (eg SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable only Read memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180.
  • the controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by
  • the mobile terminal has been described in terms of its function.
  • various types of movement such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described.
  • a sliding type mobile terminal in the terminal is taken as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • Such communication systems may use different air interfaces and/or physical layers.
  • air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Division Multiple Access
  • UMTS Universal Mobile Telecommunications System
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
  • a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 can include multiple BSCs 275.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
  • BTS Base Transceiver Subsystem
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system.
  • a broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295.
  • GPS Global Positioning System
  • the satellite 300 helps locate at least one of the plurality of mobile terminals 100.
  • a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
  • the GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • BS 270 receives reverse link signals from various mobile terminals 100.
  • Mobile terminal 100 typically participates in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
  • the embodiment of the invention provides a mobile terminal.
  • 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention; as shown in FIG. 3, the mobile terminal includes: an image collecting unit 31, an image processing unit 32, and a determining unit 33;
  • the image acquisition unit 31 is configured to acquire a first image, and send the first image to the image processing unit 32; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold;
  • the image processing unit 32 is configured to divide the first image into N ⁇ M regions, and obtain The average value of the gray scale of each region; N and M are positive integers;
  • the determining unit 33 is configured to calculate a difference between the gray average values of the first area and the second area, and determine whether a difference between the gray average values of the first area and the second area is greater than a first threshold Obtaining a judgment result; wherein the first area and the second area are any one of the N ⁇ M areas, and the first area and the second area are separated by a third area When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the image acquisition unit 31 of the mobile terminal The first sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state.
  • FIG. 4 is a schematic diagram of a mobile terminal application scenario according to an embodiment of the present invention; as shown in FIG. 4, the application scenario includes a mobile terminal 41 and a uniform light panel 42; and the image acquisition unit 31 of the mobile terminal 41 faces The uniform light plate 42 is such that an image acquisition area of the image acquisition unit 31 is in the uniform light plate.
  • the uniform light panel has a fixed light emitting area, such as a rectangular light emitting area (as shown in FIG.
  • the uniform light board can emit light having uniform brightness properties in its fixed light emitting area, that is, the uniform light board The luminance values of each position in the fixed illumination area are equal.
  • the user controls the image acquisition unit 31 of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image acquisition area of the image acquisition unit 31 is included in the fixed illumination area, so that the movement
  • the first image acquired by the terminal is an image of at least a portion of the fixed illumination area of the uniform spot.
  • the mobile terminal may pre-configure the image capturing unit 31 to be in an automatic exposure mode, and the surface brightness of the uniform light plate is about 1800 lux, that is, the surface brightness of the uniform spot is 1750 Lux to 1850 Lux.
  • the brightness of the image acquired by the image acquisition unit 31 is made 128 to 135.
  • the mobile terminal divides the first image into N ⁇ M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N ⁇ M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N ⁇ M. Areas.
  • the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit 31 pixel parameter (eg, 8 million pixels).
  • M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N ⁇ M is equivalent to 8 ⁇ 10; of course, M and N may be equal, for example, N and M are both set to 16, then N ⁇ M is equivalent to 16 ⁇ 16.
  • FIG. 5 is a schematic diagram of dividing a first image into N ⁇ M regions according to an embodiment of the present invention; as shown in the figure, dividing a horizontal edge of the first image into N shares, and dividing the vertical edge
  • the area of the first column of the first row is recorded as the area A 0,0
  • the area of the second row of the first row is recorded as the area A 0,1
  • the area of the first row and the Nth column is recorded as The area A 0,N
  • the area of the first row of the second row is denoted as the area A 1,0
  • the area of the first column of the Mth row is denoted as the area A M,0
  • the area of the Mth row and the Nth column Recorded as area A M,N .
  • the image processing unit 32 obtains a grayscale average value of each of the divided regions.
  • the first image is composed of three primary colors of red, green, and blue.
  • the image processing unit 32 first identifies the RGB value of the region, and further follows The preset algorithm performs a calculation process on the obtained RGB values to obtain a gray average value corresponding to the region.
  • the preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
  • the first area is the area A m, n as an example (the area A m, n is the N ⁇ M areas divided by the first image, preset The starting position starts the nth in the horizontal direction and the mth region in the vertical direction. Since the first region and the second region are separated by a region, the second region may be A m, n-2 Or the area A m-2,n . That is, in the detecting process, traversing from the preset starting position, detecting whether the average value of the gray levels of the two regions separated by one region is greater than a first threshold; wherein, any of the N ⁇ M regions
  • the area may be used as a preset starting position; preferably, as shown in FIG. 5, any one of A m,n , A 0,n , A m,0 , A 0,0 of the first image is used. The area is used as the default starting position.
  • the gray level average of the first area and the second area is greater than the first threshold, determining that the first area corresponds to the first sub-area of the image collecting unit 31 of the mobile terminal Or the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit 31 of the mobile terminal.
  • Determining, by the determining unit 33, that the first area corresponding to the first sub-area of the image collecting unit 31 of the mobile terminal is in an abnormal state comprising: determining a first position of the first area in the first image Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit 31 Determining that the first sub-area of the image acquisition unit 31 is in an abnormal state; correspondingly, the determining unit 33 determines that the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state.
  • Determining determining a second location of the second region in the first image, determining a second relative positional relationship of the second region and the first image based on the second location; A second sub-region corresponding to the second relative positional relationship is obtained in the acquisition unit 31, and the second sub-region of the image acquisition unit 31 is determined to be in an abnormal state.
  • the first threshold may be greater than or equal to 3, such as 5.
  • the abnormal state is, for example, dirty, a flower screen, or the like.
  • the technical solution of the embodiment of the present invention on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection.
  • the misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
  • the embodiment of the present invention further provides a mobile terminal.
  • the mobile terminal includes: an image collection unit 31, an image processing unit 32, and a determination unit 33;
  • the image acquisition unit 31 is configured to acquire a first image, and send the first image to the image processing unit 32; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold;
  • the image processing unit 32 is configured to divide the first image into N ⁇ M regions, and obtain a gray average value of each region; N and M are positive integers; wherein, the first region A m,n And the third region A m-2,n is separated from the second region A m-1,n in the horizontal direction; or, the first region A m, n and the second region A m,n-2 are vertically
  • the third region A m,n-1 is separated in the straight direction; wherein m and n are both positive integers greater than or equal to 2, and n is less than or equal to N, and m is less than or equal to M; the first region A m,n represents In the N ⁇ M regions, the mth region in the horizontal direction and the mth region in the vertical direction are started with a preset starting position;
  • the determining unit 33 is configured to calculate a difference value of the gray average values of any two regions separated by one region, and determine the first region A m,n and the second region A m-2,n Whether the difference of the gray average values is greater than the first threshold, and/or determining whether the difference between the gray average values of the first area A m,n and the second area A m,n-2 is greater than a threshold value, obtaining a first determination result; when the first determination result is that the difference between the gray level average values of the first area A m,n and the second area A m-2,n is greater than the first threshold Or determining that the first region corresponds to the mobile terminal when a difference between a gray average value of the first region A m,n and the second region A m,n-2 is greater than a first threshold
  • the first sub-area of the image acquisition unit 31 is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state.
  • the determining unit 33 is configured to: when the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than the first Determining that the first region corresponds to the movement when a threshold value and a difference between a gray average value of the first region A m,n and the second region A m,n-2 is greater than a first threshold
  • the first sub-area of the image acquisition unit of the terminal is in an abnormal state.
  • the determining unit 33 is further configured to: when the first determination result is a gray average value of the first area A m,n and the second area A m-2,n The difference is not greater than the first threshold, and the difference between the gray average values of the first region A m,n and the second region A m,n-2 is not greater than the first threshold Determining that the first area corresponds to the first sub-area of the image acquisition unit 31 of the mobile terminal is in a normal state.
  • the image collection area of the image acquisition unit 31 of the user control mobile terminal is an area where the brightness is uniform and the brightness parameter meets a preset threshold.
  • the application scenario includes a mobile terminal 41 and a uniform light panel 42; the image acquisition unit 31 of the mobile terminal 41 faces the uniform light panel 42 such that the image acquisition unit 31 The image acquisition area is in the uniform light panel.
  • the uniform light panel has a fixed light emitting area, such as a rectangular light emitting area (as shown in FIG. 4); the uniform light board can emit light having uniform brightness properties in its fixed light emitting area, that is, the uniform light board The luminance values of each position in the fixed illumination area are equal.
  • the user controls the image acquisition unit 31 of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image acquisition area of the image acquisition unit 31 is included in the fixed illumination area, so that the movement
  • the number collected by the terminal An image is an image of at least a portion of the fixed illumination area of the uniform spot.
  • the mobile terminal may pre-configure the image capturing unit 31 to be in an automatic exposure mode, and the surface brightness of the uniform light plate is about 1800 lux, that is, the surface brightness of the uniform spot is 1750 Lux to 1850 Lux.
  • the brightness of the image acquired by the image acquisition unit 31 is made 128 to 135.
  • the mobile terminal divides the first image into N ⁇ M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N ⁇ M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N ⁇ M. Areas.
  • the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit 31 pixel parameter (eg, 8 million pixels).
  • M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N ⁇ M is equivalent to 8 ⁇ 10; of course, M and N may be equal, for example, N and M are both set to 16, then N ⁇ M is equivalent to 16 ⁇ 16.
  • the horizontal side of the first image is divided into N parts, and the vertical side is divided into M parts, and the area of the first column of the first row is recorded as the area A 0,0 .
  • the area of the second row of the first row is denoted as the area A 0,1
  • the area of the Nth column of the first row is recorded as the area A 0,N
  • the area of the first column of the second row is recorded as the area A 1,0
  • the area of the first column of the Mth row is denoted as the area A M,0
  • the area of the Mth column and the Nth column is denoted as the area A M,N .
  • the image processing unit 32 obtains a grayscale average value of each of the divided regions.
  • the first image is composed of three primary colors of red, green, and blue.
  • the image processing unit 32 first identifies the RGB value of the region, and further follows The preset algorithm performs a calculation process on the obtained RGB values to obtain a gray average value corresponding to the region.
  • the preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
  • the determining unit 33 separates the first area A m,n from the second area A m-2,n and the second area A m,n-2 respectively separated by a region Comparing the grayscale average values, determining that the difference between the grayscale average values of the first region Am,n and the second region Am-2,n is not greater than the first threshold, and the Determining that the first region corresponds to the mobile terminal when a difference between a gray level average of an area A m,n and the second area A m,n-2 is not greater than the first threshold
  • the first sub-area of the image acquisition unit 31 is in a normal state.
  • determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than the first threshold, or the first area Am, and the second region of the n a m, an average value of the gradation difference n-2 is greater than the first threshold value it may be determined the first region a m, n corresponding to the image acquisition of the mobile terminal.
  • the first sub-area of the unit 31 or the second area A m,n-2 or the second area A m-2,n corresponds to the second sub-area of the image acquisition unit 31 of the mobile terminal being dirty Or flower screen status.
  • the determining unit 33 determines that the first sub-region corresponding to the first region of the image acquiring unit 31 of the mobile terminal is in an abnormal state, and includes: determining that the first region is in the first image. a first position, determining a first relative positional relationship of the first region and the first image based on the first position; obtaining a first corresponding to the first relative positional relationship in the image acquisition unit 31 a sub-region, determining that the first sub-region of the image acquisition unit 31 is in an abnormal state; correspondingly, the determining unit 33 determines that the second region corresponds to the second sub-region of the image acquisition unit 31 of the mobile terminal In an abnormal state, comprising: determining a second position of the second area in the first image, determining a second relative positional relationship of the second area and the first image based on the second position; A second sub-region corresponding to the second relative positional relationship is obtained in the image acquisition unit 31, and the second sub-region of the image acquisition unit 31 is determined to be in an abnormal state.
  • FIG. 6a and FIG. 6b are schematic diagrams showing the display of the first image in the embodiment of the present invention; wherein FIG. 6a is a schematic diagram of determining that the image acquisition unit of the mobile terminal is in a normal state (ie, no stain, no flower screen, etc.); A schematic diagram for determining that the image acquisition unit of the mobile terminal is in an abnormal state (ie, there is dirt, a flower screen, etc.).
  • a normal state ie, no stain, no flower screen, etc.
  • an abnormal state ie, there is dirt, a flower screen, etc.
  • the technical solution of the embodiment of the present invention on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection.
  • the misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
  • the mobile terminal may be implemented by a mobile terminal such as a mobile phone, a tablet computer, or a notebook computer having a camera in an actual application.
  • the image processing unit 32 and the determining unit 33 in the mobile terminal may be used by a central processing unit (CPU), a digital signal processor (DSP), or a digital signal processor (DSP) in the mobile terminal.
  • the Field-Programmable Gate Array (FPGA) is implemented; the image acquisition unit 31 in the mobile terminal can be implemented by a camera of the mobile terminal in an actual application.
  • FIG. 7 is a schematic diagram of a first process of an information processing method according to an embodiment of the present invention; as shown in FIG. 7, the method includes:
  • Step 501 Acquire a first image; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold.
  • the image acquisition area of the image acquisition unit controlled by the user to the mobile terminal is bright.
  • a uniform light plate is preset, the uniform light plate has a fixed light emitting region, such as a rectangular light emitting region (as shown in FIG. 4); the uniform light plate can be emitted in a fixed light emitting region thereof.
  • the light having uniform brightness properties that is, the brightness values at each position in the fixed light-emitting region of the uniform light plate are equal.
  • the user controls the image acquisition unit of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image collection area of the image acquisition unit is included in the fixed illumination area, so that the mobile terminal collects
  • the first image obtained is an image of at least a portion of the fixed illumination area of the uniform spot.
  • the mobile terminal may pre-configure the image acquisition unit to be in an automatic exposure mode, and the surface brightness of the uniform light panel is about 1800 lux, that is, the surface brightness of the uniform light spot is between 1750 Lux and 1850 Lux.
  • the brightness of the image acquired by the image acquisition unit is 128Lux to 135Lux.
  • Step 502 Divide the first image into N ⁇ M regions, and obtain a gray average value of each region; N and M are both positive integers.
  • the mobile terminal divides the first image into N ⁇ M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares,
  • the first image is divided into N ⁇ M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N ⁇ M. Areas.
  • the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal.
  • N ⁇ M is equivalent to 8 ⁇ 10; of course, M and N may be equal, for example, N and M are both set to 16, then N ⁇ M is equivalent to 16 ⁇ 16.
  • M and N may be equal, for example, N and M are both set to 16, then N ⁇ M is equivalent to 16 ⁇ 16.
  • the vertical side is divided into M parts
  • the first column of the first row area is an area A 0,0
  • the area of the first row and the second column is denoted as the area A 0,1
  • the area of the first row and the Nth column is recorded as the area A 0,N
  • the area of the second row and the first column is recorded as the area A 1,0
  • the area of the first column of the Mth row is denoted as the area A M,0
  • the area of the Mth column and the Nth column is denoted as the area A M,N .
  • the average value of the gradation of each of the divided regions is obtained.
  • the first image is composed of three primary colors of red, green, and blue, and for each region, the RGB value of the region is first identified, and further obtained according to a preset algorithm.
  • the RGB values are subjected to calculation processing to obtain gradation average values corresponding to the regions.
  • the preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
  • Step 503 Calculate a difference between the grayscale average values of the first region and the second region, and determine whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, and obtain a determination result;
  • the first area and the second area are any of the N ⁇ M areas, and the first area and the second area are separated by a third area.
  • the determining whether the gray level average of the first area and the second area meets the preset condition comprises: determining whether the gray level average of the first area and the second area is greater than a first threshold;
  • the first area is the area A m, n as an example (the area A m, n is the N ⁇ M areas divided by the first image, preset
  • the starting position starts the nth in the horizontal direction and the mth region in the vertical direction. Since the first region and the second region are separated by a region, the second region may be A m, n-2 Or the area A m-2,n . That is, in the detecting process, traversing from the preset starting position, detecting whether the average value of the gray levels of the two regions separated by one region is greater than a first threshold; wherein, any of the N ⁇ M regions
  • the area may be used as a preset starting position; preferably, as shown in FIG. 5, any one of A m,n , A 0,n , A m,0 , A 0,0 of the first image is used. The area is used as the starting detection position.
  • Step 504 When the result of the determination is that the difference between the gray average values of the first area and the second area is greater than a first threshold, determining that the first area corresponds to an image acquisition unit of the mobile terminal The first sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  • the gray level average of the first area and the second area meets a preset condition, that is, the gray level average of the first area and the second area is greater than the first threshold, Determining that the first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal or the second area corresponds to an abnormal state of a second sub-area of the image acquisition unit of the mobile terminal.
  • the determining that the first region corresponds to an abnormal state of the first sub-region of the image capturing unit of the mobile terminal including: determining a first location of the first region in the first image, Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit, determining The first sub-area of the image acquisition unit is in an abnormal state; correspondingly, the determining that the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit of the mobile terminal, including: determining the Determining, in a second position in the first image, a second relative positional relationship of the second region and the first image based on the second position; obtaining and in the image acquisition unit The second sub-region corresponding to the second relative positional relationship determines that the second sub-region of the image acquisition unit is in an abnormal state.
  • the first threshold may be greater than or equal to 3, such as 5.
  • the gray level average of the first area and the second area is greater than 5
  • the second sub-region of the module is in an abnormal state, such as a dirty state, a flower screen, or the like.
  • the technical solution of the embodiment of the present invention on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection.
  • the misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
  • FIG. 8 is a second schematic flowchart of an information processing method according to an embodiment of the present invention. As shown in FIG. 8, the method includes:
  • Step 601 Acquire a first image; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold.
  • the image collection area of the image acquisition unit of the user control mobile terminal is an area where the brightness is uniform and the brightness parameter meets the preset threshold.
  • a uniform light plate is preset, the uniform light plate has a fixed light emitting region, such as a rectangular light emitting region (as shown in FIG. 4); the uniform light plate can be emitted in a fixed light emitting region thereof.
  • the light having uniform brightness properties that is, the brightness values at each position in the fixed light-emitting region of the uniform light plate are equal.
  • the user controls the image acquisition unit of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image collection area of the image acquisition unit is included in the fixed illumination area, so that the mobile terminal collects
  • the first image obtained is an image of at least a portion of the fixed illumination area of the uniform spot.
  • the mobile terminal may pre-configure the image acquisition unit to be in an automatic exposure mode, and the surface brightness of the uniform light panel is about 1800 lux, that is, the surface brightness of the uniform light spot is between 1750 Lux and 1850 Lux.
  • the brightness of the image acquired by the unit is 128 to 135.
  • Step 602 Divide the first image into N ⁇ M regions, and obtain a gray average value of each region; N and M are positive integers.
  • the mobile terminal divides the first image into N ⁇ M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares,
  • the first image is divided into N ⁇ M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N ⁇ M. Areas.
  • the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal.
  • N ⁇ M is equivalent to 8 ⁇ 10; of course, M and N may be equal, for example, N and M are both set to 16, then N ⁇ M is equivalent to 16 ⁇ 16.
  • the horizontal side of the first image is divided into N parts, and the vertical side is divided into M parts, and the area of the first column of the first row is recorded as the area A 0,0 .
  • the area of the second row of the first row is denoted as the area A 0,1
  • the area of the Nth column of the first row is recorded as the area A 0,N
  • the area of the first column of the second row is recorded as the area A 1,0
  • the area of the first column of the Mth row is denoted as the area A M,0
  • the area of the Mth column and the Nth column is denoted as the area A M,N .
  • the average value of the gradation of each of the divided regions is obtained.
  • the first image is composed of three primary colors of red, green, and blue, and for each region, the RGB value of the region is first identified, and further obtained according to a preset algorithm.
  • the RGB values are subjected to calculation processing to obtain gradation average values corresponding to the regions.
  • the preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
  • Step 603 Determine whether the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, and/or determine the first area A m,n and Whether the difference of the gray average values of the second regions A m, n-2 is greater than a first threshold, obtaining a first determination result.
  • first area A m,n and the second area A m-2,n are separated from each other in the horizontal direction by the third area A m-1, n ; or the first area A m, n and the second region A m,n-2 are separated from each other in the vertical direction by a third region A m,n-1 ; wherein m and n are positive integers greater than or equal to 2, and n is less than or equal to N And m is less than or equal to M; the first area A m,n represents the nth, the mth area in the horizontal direction starting from the preset starting position in the N ⁇ M areas.
  • Step 604 When the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first Determining the difference between the gray average values of the first region and the second region when the difference between the grayscale average values of the regions Am,n and the second regions Am,n-2 is greater than the first threshold The value is greater than the first threshold.
  • Step 605 It is determined that the first sub-region corresponding to the image acquisition unit of the mobile terminal is in an abnormal state, or the second sub-region corresponding to the image acquisition unit of the mobile terminal is in the second region. Abnormal state.
  • the method further includes: determining The difference between the grayscale average values of the first region and the second region is not greater than the first threshold.
  • the first area A m,n is respectively separated by the second area A m-2,n of the one area and the gray of the second area A m,n-2 Comparing the average values, determining that the difference between the gray average values of the first region A m,n and the second region A m-2,n is not greater than the first threshold, and the first region Determining, when the difference between the gray average values of A m,n and the second region A m,n-2 is not greater than the first threshold, determining that the first region corresponds to image acquisition of the mobile terminal
  • the first sub-area of the unit is in a normal state.
  • determining that a difference between a gray average value of the first area A m, n and the second area A m-2, n is greater than the first threshold, or the first area Am, and the second region of the n a m, an average value of the gradation difference n-2 is greater than the first threshold value it may be determined the first region a m, n corresponding to the image acquisition of the mobile terminal
  • the first sub-area of the unit or the second area A m,n-2 or the second area A m-2,n corresponds to the second sub-area of the image acquisition unit of the mobile terminal being dirty or smeared status.
  • the determining that the first region corresponds to an abnormal state of the first sub-region of the image capturing unit of the mobile terminal including: determining a first location of the first region in the first image, Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit, determining The first sub-area of the image acquisition unit is in an abnormal state; correspondingly, the determining that the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit of the mobile terminal, including: determining the Determining, in a second position in the first image, a second relative positional relationship of the second region and the first image based on the second position; obtaining and in the image acquisition unit The second sub-region corresponding to the second relative positional relationship determines that the second sub-region of the image acquisition unit is in an abnormal state.
  • FIG. 6a is a schematic diagram of determining that the image capturing unit of the mobile terminal is in a normal state (ie, no dirt, no flower screen, etc.);
  • FIG. 6b is determining image capturing of the mobile terminal.
  • a schematic diagram of the unit in an abnormal state ie, dirty, with a flower screen, etc.).
  • the determination result of step 603 may further be: a difference between the gray average values of the first area A m, n and the second area A m-2, n is greater than a first threshold, and The difference between the gray level average values of the first area A m,n and the second area A m,n-2 is also greater than the first threshold, the method further comprising: determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
  • the first image is divided into 16 ⁇ 16 regions, and the grayscale average value of each region is identified as shown in Table 1.
  • the mean gray value is compared to n-2, Determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is not more than 5, and the first area Am,n and the second area
  • the difference between the gray average values of A m, n-2 is also not greater than 5, then it can be determined that the image acquisition unit of the mobile terminal is in a normal state, that is, the image acquisition unit is free of dirt, no flower screen, and the like.
  • the first image is divided into 16 ⁇ 16 regions, and the grayscale average value of each region is identified as shown in Table 2.
  • the mean gray value is compared to n-2, Determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than 4, or determining the first area A m,n and the second
  • the difference between the grayscale average values of the regions Am, n-2 is also greater than 4, as shown in Table 2, the 155 shown in the 12th row and the 3rd column and the 160 shown in the 12th column and the 5th column.
  • the difference is 5
  • the sub-area of the image acquisition unit corresponding to the area in the 12th row and the third column may have an abnormality; for example, the difference between the 163 shown in the 11th column of the 12th row and the 146 shown in the 13th column and the 13th column 17 and the 146 shown in the 12th column and the 13th column, the 164 shown in the 13th column and the 13th column, the difference between the two is 18, then the corresponding region of the 12th row and the 13th column can be determined.
  • Image Sub-region is set in an abnormal state unit.
  • the technical solution of the embodiment of the present invention on the one hand, it is not necessary to collect photos through the human eye. Observing whether there are abnormalities such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the misjudgment when the manual detection is performed, that is, avoiding abnormal conditions such as dirt in the mobile terminal and manually detecting It has not been discovered, and the product quality of the mobile terminal has been greatly improved, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated in one processing order.
  • each unit may be separately used as a unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware or a hardware plus software functional unit. Formal realization.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk.
  • optical disk A medium that can store program code.
  • the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
  • the embodiment of the present invention does not need to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reduces the human resources, shortens the detection time, improves the detection efficiency, and avoids the misjudgment when the manual detection is performed. That is to avoid abnormal conditions such as dirt on the mobile terminal.
  • the manual detection did not find out, and the product quality of the mobile terminal was greatly improved, thereby improving the user experience.
  • the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.

Landscapes

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

Abstract

Disclosed in embodiments of the present invention are a mobile terminal, an information processing method, and a computer storage medium. The mobile terminal comprises: an image collection unit, configured to collect a first image and send the first image to an image processing unit; the image processing unit, configured to divide the first image into N×M regions and acquire an average gray scale value of each region, N and M being both positive integers; and a determining unit, configured to calculate a difference between the average gray scale value of a first region and the average gray scale value of a second region, and determining whether the difference between the average gray scale value of the first region and the average gray scale value of the second region is greater than a first threshold, and obtain the determining result; when the determining result is that the difference between the average gray scale value of the first region and the average gray scale value of the second region is greater than the first threshold, and determine that a first subregion of the first region corresponding to the image collection unit of the mobile terminal is in an abnormal state, or a second subregion of the second region corresponding to the image collection unit of the mobile terminal is in an abnormal state.

Description

一种移动终端、信息处理方法及计算机存储介质Mobile terminal, information processing method and computer storage medium 技术领域Technical field
本发明涉及信息处理技术,具体涉及一种移动终端、信息处理方法及计算机存储介质。The present invention relates to information processing technologies, and in particular, to a mobile terminal, an information processing method, and a computer storage medium.
背景技术Background technique
移动终端镜头模组主要由镜片和互补金属氧化物半导体(CMOS,Complementary Metal Oxide Semiconductor)传感器(Sensor)组成,在将镜头模组装配到移动终端的过程中,由于作业条件的影响,可能会产生花屏、脏污等问题。具体表现是在移动终端的拍摄图像上出现色块、黑色斑点、或者黑色条纹状痕迹。当前技术中,通过移动终端对均匀光板拍照后再将图像传输到电脑上,在电脑上将图像放大用人工裸眼的方式检查图片脏污的情况,从而获知镜头模组是否出现花屏、脏污等问题。这种检测方法不仅需要消耗大量的人力资源,而且效率低,容易出现错误,并且由于人的主观性,很难对脏污的情况做出准确的判断。The mobile terminal lens module is mainly composed of a lens and a complementary metal oxide semiconductor (CMOS) sensor. In the process of assembling the lens module to the mobile terminal, it may be generated due to the influence of working conditions. Flower screen, dirty and other issues. The specific expression is that a color patch, a black spot, or a black stripe-like mark appears on the captured image of the mobile terminal. In the current technology, after the camera is photographed by the mobile terminal, the image is transmitted to the computer, and the image is enlarged on the computer to check the dirty state of the image by the naked eye, so as to know whether the lens module has a flower screen, dirt, etc. problem. This detection method not only consumes a lot of human resources, but also has low efficiency, is prone to errors, and it is difficult to make accurate judgments on the dirty situation due to human subjectivity.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种移动终端、信息处理方法及计算机存储介质,能够快速、准确的检测出移动终端中的镜头模组是否出现脏污、花屏等问题,减少人力资源,提高检测效率。In order to solve the existing technical problems, the embodiments of the present invention provide a mobile terminal, an information processing method, and a computer storage medium, which can quickly and accurately detect whether a lens module in a mobile terminal is dirty or a screen. Reduce human resources and improve detection efficiency.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种移动终端,所述移动终端包括:图像采集单元、图像处理单元和判定单元;其中,An embodiment of the present invention provides a mobile terminal, where the mobile terminal includes: an image acquisition unit, an image processing unit, and a determination unit;
所述图像采集单元,配置为采集第一图像,将所述第一图像发送至所 述图像处理单元;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;The image acquisition unit is configured to acquire a first image, and send the first image to the An image processing unit; the image acquisition area corresponding to the first image is uniform in brightness and the brightness parameter meets a preset threshold;
所述图像处理单元,配置为将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;The image processing unit is configured to divide the first image into N×M regions, and obtain a gray average value of each region; N and M are positive integers;
所述判定单元,配置为计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。The determining unit is configured to calculate a difference between the grayscale average values of the first region and the second region, and determine whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, Obtaining a judgment result; wherein the first area and the second area are any one of the N×M areas, and the first area and the second area are separated by a third area; When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal The sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
作为一种实施方式,所述第一区域Am,n和所述第二区域Am-2,n之间在竖直方向上相隔第三区域Am-1,n;或者,所述第一区域Am,n和所述第二区域Am,n-2之间在水平方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域。As an embodiment, the first region A m, n, and the second region A m-2, n between the spaced apart in the vertical direction of the third region A m-1, n; or, the first a region A m,n and the second region A m,n-2 are spaced apart from each other in the horizontal direction by a third region A m,n-1 ; wherein m and n are positive integers greater than or equal to 2, and n is less than or equal to N, and m is less than or equal to M; the first region A m,n represents the nth and the mth region in the horizontal direction starting from the preset starting position in the N×M regions.
作为一种实施方式,所述判定单元,配置为判断所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值是否大于第一阈值,获得第一判断结果;当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常 状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。As an embodiment, the determining unit is configured to determine whether a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than a first threshold, and Or determining whether the difference between the gray average values of the first area A m,n and the second area A m,n-2 is greater than a first threshold, obtaining a first determination result; when the first The result of the determination is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area Am,n and the the second region a m, an average value of the gradation difference n-2 is greater than a first threshold value, determining that the first area corresponds to a first sub-region of the image acquisition unit of the mobile terminal is in an abnormal state, or the The second area corresponding to the second sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
作为一种实施方式,所述判定单元,配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。In one embodiment, the determining unit is configured to: when the first determination result is a difference between a gray average value of the first area A m,n and the second area A m-2,n When the difference between the gray level average of the first area Am,n and the second area Am,n-2 is greater than the first threshold, determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
作为一种实施方式,所述判定单元,还配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值不大于所述第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于正常状态。In an embodiment, the determining unit is further configured to: when the first determination result is a difference between the gray average values of the first area A m,n and the second area A m-2,n The value is not greater than the first threshold, and when the difference between the gray level average values of the first area A m,n and the second area A m,n-2 is not greater than the first threshold, determining The first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal in a normal state.
作为一种实施方式,所述判定单元确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态。As an implementation manner, the determining unit determines that the first sub-region corresponding to the image acquiring unit of the mobile terminal is in an abnormal state, and includes: determining that the first region is in the first image a first position, determining a first relative positional relationship of the first region and the first image based on the first position; obtaining a first corresponding to the first relative positional relationship in the image acquisition unit a sub-area, determining that the first sub-area of the image acquisition unit is in an abnormal state.
作为一种实施方式,所述判定单元确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。As an implementation manner, the determining unit determines that the second area corresponding to the second sub-area of the image acquiring unit of the mobile terminal is in an abnormal state, and includes: determining that the second area is in the first image a second position, determining a second relative positional relationship of the second region and the first image based on the second position; obtaining a second corresponding to the second relative positional relationship in the image acquisition unit The two sub-areas determine that the second sub-area of the image acquisition unit is in an abnormal state.
作为一种实施方式,所述图像处理单元,配置为识别每个区域的红绿 蓝(RGB)值;基于所述每个区域的RGB值按照预设算法进行计算处理获得所述每个区域的灰度平均值;其中,所述预设算法包括以下算法的其中之一:浮点算法、整数算法。As an embodiment, the image processing unit is configured to recognize red and green of each area a blue (RGB) value; performing a calculation process according to a preset algorithm based on the RGB values of each of the regions to obtain a grayscale average value of each of the regions; wherein the preset algorithm includes one of the following algorithms: floating Point algorithm, integer algorithm.
作为一种实施方式,所述第一图像对应的图像采集区域亮度均匀且亮度参数满足的预设阈值满足1750勒克斯(Lux)~1850Lux。As an implementation manner, the image capture area corresponding to the first image has uniform brightness and the preset threshold value that the brightness parameter meets satisfies 1750 lux (Lux) to 1850 Lux.
本发明实施例还提供了一种信息处理方法,所述方法包括:An embodiment of the present invention further provides an information processing method, where the method includes:
采集第一图像;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;Collecting a first image; the image capturing area corresponding to the first image is uniform in brightness and the brightness parameter meets a preset threshold;
将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;Dividing the first image into N×M regions, obtaining a gray average value of each region; N and M are positive integers;
计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;Calculating a difference between the grayscale average values of the first region and the second region, determining whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, and obtaining a determination result; The first area and the second area are any of the N×M areas, and the first area and the second area are separated by a third area;
当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal The sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
作为一种实施方式,所述第一区域Am,n和所述第二区域Am-2,n之间在水平方向上相隔第三区域Am-1,n;或者,所述第一区域Am,n和所述第二区域Am,n-2之间在竖直方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域。As an embodiment, the first area A m,n and the second area A m-2,n are separated from each other by a third area A m-1,n in the horizontal direction; or, the first area a m, n, and the second region a m, n-2 spaced between the third region in a vertical direction a m, n-1; wherein, m and n are positive integers greater than or equal to 2, and n is less than or equal to N, and m is less than or equal to M; the first region A m,n represents the nth and the mth region in the horizontal direction starting from the preset starting position in the N×M regions.
作为一种实施方式,所述判断所述第一区域和所述第二区域的灰度平 均值是否大于第一阈值,包括:As an implementation manner, the determining the gray level of the first area and the second area Whether the mean is greater than the first threshold, including:
判断所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值是否大于第一阈值,获得第一判断结果;Determining whether a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than a first threshold, and/or determining the first area A m,n And whether a difference between the gray average values of the second regions A m, n-2 is greater than a first threshold, obtaining a first determination result;
当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值;When the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area A m And determining, when n and the difference between the gray average values of the second regions A m, n-2 are greater than the first threshold, determining that the difference between the gray average values of the first region and the second region is greater than a threshold
相应的,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。Correspondingly, determining that the first area corresponds to an abnormal state of the first sub-area of the image acquisition unit of the mobile terminal, or that the second area is corresponding to the second sub-area of the image acquisition unit of the mobile terminal Abnormal state.
作为一种实施方式,当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am, n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,所述方法还包括:确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。As an embodiment, when the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than the first threshold, and When the difference between the gray level average values of the first area A m, n and the second area A m, n-2 is greater than the first threshold, the method further includes: determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
作为一种实施方式,当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值不大于所述第一阈值时,所述方法还包括:确定所述第一区域和所述第二区域的灰度平均值的差值不大于第一阈值;As an embodiment, when the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is not greater than the first threshold And, when the difference between the gray average values of the first area A m,n and the second area A m,n-2 is not greater than the first threshold, the method further includes: determining the a difference between a gray level average of the first area and the second area is not greater than a first threshold;
相应的,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于正常状态。Correspondingly, determining that the first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal is in a normal state.
作为一种实施方式,所述确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括: As an implementation manner, the determining that the first area corresponds to an abnormal state of the first sub-area of the image capturing unit of the mobile terminal, including:
确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态。Determining a first location of the first region in the first image, determining a first relative positional relationship of the first region and the first image based on the first location; in the image acquisition unit Obtaining a first sub-region corresponding to the first relative positional relationship, determining that the first sub-region of the image acquisition unit is in an abnormal state.
作为一种实施方式,所述确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态,包括:As an implementation manner, the determining that the second area corresponds to an abnormal state of the second sub-area of the image collection unit of the mobile terminal includes:
确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。Determining a second position of the second region in the first image, determining a second relative positional relationship of the second region and the first image based on the second position; in the image acquisition unit Obtaining a second sub-region corresponding to the second relative positional relationship, determining that the second sub-region of the image acquisition unit is in an abnormal state.
作为一种实施方式,所述获得每个区域的灰度平均值,包括:识别每个区域的红绿蓝(RGB)值;基于所述每个区域的RGB值按照预设算法进行计算处理获得所述每个区域的灰度平均值;其中,所述预设算法包括以下算法的其中之一:浮点算法、整数算法。As an implementation manner, the obtaining a gray average value of each region includes: identifying red, green, and blue (RGB) values of each region; and performing calculation processing according to a preset algorithm based on RGB values of each of the regions The grayscale average of each region; wherein the preset algorithm includes one of the following algorithms: a floating point algorithm, an integer algorithm.
作为一种实施方式,所述第一图像对应的图像采集区域亮度均匀且亮度参数满足的预设阈值满足1750勒克斯(Lux)~1850Lux。As an implementation manner, the image capture area corresponding to the first image has uniform brightness and the preset threshold value that the brightness parameter meets satisfies 1750 lux (Lux) to 1850 Lux.
作为一种实施方式,所述N和M依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元像素参数中的至少一种参数预先配置。As an implementation manner, the N and M are pre-configured according to at least one of a screen resolution, a screen pixel density, and an image acquisition unit pixel parameter of the mobile terminal.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的信息处理方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the information processing method according to the embodiment of the invention.
本发明实施例提供的移动终端、信息处理方法及计算机存储介质,所述移动终端包括:图像采集单元、图像处理单元和判定单元;其中,所述图像采集单元,配置为采集第一图像,将所述第一图像发送至所述图像处理单元;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设 阈值;所述图像处理单元,配置为将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;所述判定单元,配置为计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。采用本发明实施例的技术方案,一方面无需通过人眼对采集照片进行观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。The mobile terminal, the information processing method, and the computer storage medium provided by the embodiment of the present invention, the mobile terminal includes: an image acquisition unit, an image processing unit, and a determination unit; wherein the image acquisition unit is configured to collect the first image, and Sending the first image to the image processing unit; the image capturing area corresponding to the first image is uniform in brightness and the brightness parameter meets the preset a threshold value; the image processing unit configured to divide the first image into N×M regions, obtain a gray average value of each region; N and M are positive integers; and the determining unit is configured to calculate a difference between a gray average value of the first area and the second area, determining whether a difference between the gray average values of the first area and the second area is greater than a first threshold, and obtaining a determination result; The first area and the second area are any of the N×M areas, and the first area and the second area are separated by a third area; when the determination result is the When the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to an abnormal state of the first sub-region of the image acquisition unit of the mobile terminal, or The second area corresponding to the second sub-area of the image acquisition unit of the mobile terminal is in an abnormal state. According to the technical solution of the embodiment of the present invention, on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection. The misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
附图说明DRAWINGS
图1为实现本发明各个实施例的一个可选的移动终端的硬件结构示意图;1 is a schematic structural diagram of hardware of an optional mobile terminal embodying various embodiments of the present invention;
图2为如图1所示的移动终端的无线通信系统示意图;2 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 1;
图3为本发明实施例的移动终端的组成结构示意图;3 is a schematic structural diagram of a structure of a mobile terminal according to an embodiment of the present invention;
图4为本发明实施例的移动终端应用场景示意图;4 is a schematic diagram of an application scenario of a mobile terminal according to an embodiment of the present invention;
图5为本发明实施例中将第一图像划分为N×M个区域的示意图;FIG. 5 is a schematic diagram of dividing a first image into N×M regions according to an embodiment of the present invention; FIG.
图6a和图6b为本发明实施例中第一图像的显示示意图;6a and 6b are schematic diagrams showing display of a first image according to an embodiment of the present invention;
图7为本发明实施例的信息处理方法的第一种流程示意图; FIG. 7 is a schematic diagram of a first process of an information processing method according to an embodiment of the present invention; FIG.
图8为本发明实施例的信息处理方法的第二种流程示意图;FIG. 8 is a second schematic flowchart diagram of an information processing method according to an embodiment of the present invention;
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,"模块"与"部件"可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminal described in the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet), a PMP (Portable Multimedia Player), a navigation device, etc. Mobile terminals and fixed terminals such as digital TVs, desktop computers, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
图1为实现本发明各个实施例的移动终端的硬件结构示意。FIG. 1 is a schematic diagram showing the hardware structure of a mobile terminal embodying various embodiments of the present invention.
移动终端100可以包括无线通信单元110、A/V(音频/视频)输入单元120、用户输入单元130、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。The mobile terminal 100 may include a wireless communication unit 110, an A/V (Audio/Video) input unit 120, a user input unit 130, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, and the like. Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端100与无线通信系统或网络之间的无线电通信。 Wireless communication unit 110 typically includes one or more components that permit radio communication between mobile terminal 100 and a wireless communication system or network.
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121,相机121对在视频捕获模式或图像捕获模式中由图像捕获装置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机121。The A/V input unit 120 is for receiving an audio or video signal. The A/V input unit 120 may include a camera 121 that processes image data of still pictures or video obtained by an image capturing device in a video capturing mode or an image capturing mode. The processed image frame can be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the configuration of the mobile terminal.
用户输入单元130可以根据用户输入的命令生成键输入数据以控制移动终端的各种操作。用户输入单元130允许用户输入各种类型的信息,并且可以包括键盘、锅仔片、触摸板(例如,检测由于被接触而导致的电阻、压力、电容等等的变化的触敏组件)、滚轮、摇杆等等。特别地,当触摸板以层的形式叠加在显示单元151上时,可以形成触摸屏。The user input unit 130 may generate key input data according to a command input by the user to control various operations of the mobile terminal. The user input unit 130 allows the user to input various types of information, and may include a keyboard, a pot, a touch pad (eg, a touch sensitive component that detects changes in resistance, pressure, capacitance, etc. due to contact), a scroll wheel , rocker, etc. In particular, when the touch panel is superimposed on the display unit 151 in the form of a layer, a touch screen can be formed.
接口单元170用作至少一个外部装置与移动终端100连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端100的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM)等等。另外,具有识别模块的装置(下面称为“识别装置”)可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端100连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端100内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more. The identification module may be stored to verify various information used by the user using the mobile terminal 100 and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identity Module (USIM), and the like. In addition, the device having the identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus the identification device may be connected to the mobile terminal 100 via a port or other connection device. The interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal 100 or can be used at the mobile terminal and external device Transfer data between.
另外,当移动终端100与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端100的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种 命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。输出单元150被构造为以视觉、音频和/或触觉方式提供输出信号(例如,音频信号、视频信号、警报信号、振动信号等等)。输出单元150可以包括显示单元151等等。In addition, when the mobile terminal 100 is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal 100 or may be used as a transmission of various command signals allowing input from the base to the mobile terminal 100 The path to the terminal. Various types of input from the base The command signal or power can be used as a signal for identifying whether the mobile terminal is accurately mounted on the base. Output unit 150 is configured to provide an output signal (eg, an audio signal, a video signal, an alarm signal, a vibration signal, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151 and the like.
显示单元151可以显示在移动终端100中处理的信息。例如,当移动终端100处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端100处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or image and related functions, and the like.
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端100可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出)和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display unit 151 and the touch panel are superposed on each other in the form of a layer to form a touch screen, the display unit 151 can function as an input device and an output device. The display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown) . The touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪 存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端100可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。The memory 160 may include at least one type of storage medium including a flash Memory, hard disk, multimedia card, card type memory (eg SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read only memory (ROM), electrically erasable programmable only Read memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal 100 can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。另外,控制器180可以包括用于再现(或回放)多媒体数据的多媒体模块181,多媒体模块181可以构造在控制器180内,或者可以构造为与控制器180分离。控制器180可以执行模式识别处理,以将在触摸屏上执行的手写输入或者图片绘制输入识别为字符或图像。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, which may be constructed within the controller 180 or may be configured to be separate from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, which can be stored in memory 160 and executed by controller 180.
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动 终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, various types of movement such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described. A sliding type mobile terminal in the terminal is taken as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
如图1中所示的移动终端100可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The mobile terminal 100 as shown in FIG. 1 may be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
现在将参考图2描述其中根据本发明的移动终端能够操作的通信系统。A communication system in which a mobile terminal according to the present invention can be operated will now be described with reference to FIG.
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。Such communication systems may use different air interfaces and/or physical layers. For example, air interfaces used by communication systems include, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), Code Division Multiple Access (CDMA), and Universal Mobile Telecommunications System (UMTS) (in particular, Long Term Evolution (LTE)). ), Global System for Mobile Communications (GSM), etc. As a non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
参考图2,CDMA无线通信系统可以包括多个移动终端100、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干已知的接口中的任一种来构造,所述接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图2中所示的系统可以包括多个BSC275。Referring to FIG. 2, a CDMA wireless communication system can include a plurality of mobile terminals 100, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280. The MSC 280 is configured to interface with a public switched telephone network (PSTN) 290. The MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line. The backhaul line can be constructed in accordance with any of a number of known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be appreciated that the system as shown in FIG. 2 can include multiple BSCs 275.
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语"基站"可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。 The intersection of partitioning and frequency allocation can be referred to as a CDMA channel. BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" can be used to generally refer to a single BSC 275 and at least one BS 270. A base station can also be referred to as a "cell station." Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
如图2中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端100。如图1中所示的广播接收模块111被设置在移动终端100处以接收由BT295发送的广播信号。在图2中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端100中的至少一个。As shown in FIG. 2, a broadcast transmitter (BT) 295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module 111 as shown in FIG. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In Figure 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 helps locate at least one of the plurality of mobile terminals 100.
在图2中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。In Figure 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites. The GPS module 115 as shown in Figure 1 is typically configured to cooperate with the satellite 300 to obtain desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端100的反向链路信号。移动终端100通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端100。As a typical operation of a wireless communication system, BS 270 receives reverse link signals from various mobile terminals 100. Mobile terminal 100 typically participates in calls, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within a particular BS 270. The obtained data is forwarded to the relevant BSC 275. The BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270. The BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to mobile terminal 100.
实施例一 Embodiment 1
本发明实施例提供了一种移动终端。图3为本发明实施例的移动终端的组成结构示意图;如图3所示,所述移动终端包括:图像采集单元31、图像处理单元32和判定单元33;其中,The embodiment of the invention provides a mobile terminal. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention; as shown in FIG. 3, the mobile terminal includes: an image collecting unit 31, an image processing unit 32, and a determining unit 33;
所述图像采集单元31,配置为采集第一图像,将所述第一图像发送至所述图像处理单元32;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;The image acquisition unit 31 is configured to acquire a first image, and send the first image to the image processing unit 32; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold;
所述图像处理单元32,配置为将所述第一图像分为N×M个区域,获 得每个区域的灰度平均值;N和M均为正整数;The image processing unit 32 is configured to divide the first image into N×M regions, and obtain The average value of the gray scale of each region; N and M are positive integers;
所述判定单元33,配置为计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元31的第二子区域处于异常状态。The determining unit 33 is configured to calculate a difference between the gray average values of the first area and the second area, and determine whether a difference between the gray average values of the first area and the second area is greater than a first threshold Obtaining a judgment result; wherein the first area and the second area are any one of the N×M areas, and the first area and the second area are separated by a third area When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the image acquisition unit 31 of the mobile terminal The first sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state.
本实施例中,用户控制移动终端的图像采集单元31的图像采集区域为亮度均匀且亮度参数满足预设阈值的区域。作为一种实施方式,图4为本发明实施例的移动终端应用场景示意图;如图4所示,所述应用场景包括移动终端41和均匀光板42;所述移动终端41的图像采集单元31朝向所述均匀光板42,以使所述图像采集单元31的图像采集区域在所述均匀光板中。所述均匀光板具有一固定发光区域,所述固定发光区域例如矩形发光区域(如图4所示);所述均匀光板能够在其固定发光区域发出亮度属性均匀的光线,也即所述均匀光板的固定发光区域中每个位置的亮度值均相等。在实际应用中,用户控制所述移动终端的图像采集单元31朝向所述均匀光板的固定发光区域,即所述图像采集单元31的图像采集区域包含在所述固定发光区域中,使得所述移动终端采集到的第一图像为所述均匀光斑的固定发光区域中的至少部分区域的图像。In this embodiment, the image collection area of the image acquisition unit 31 of the user control mobile terminal is an area where the brightness is uniform and the brightness parameter meets a preset threshold. FIG. 4 is a schematic diagram of a mobile terminal application scenario according to an embodiment of the present invention; as shown in FIG. 4, the application scenario includes a mobile terminal 41 and a uniform light panel 42; and the image acquisition unit 31 of the mobile terminal 41 faces The uniform light plate 42 is such that an image acquisition area of the image acquisition unit 31 is in the uniform light plate. The uniform light panel has a fixed light emitting area, such as a rectangular light emitting area (as shown in FIG. 4); the uniform light board can emit light having uniform brightness properties in its fixed light emitting area, that is, the uniform light board The luminance values of each position in the fixed illumination area are equal. In an actual application, the user controls the image acquisition unit 31 of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image acquisition area of the image acquisition unit 31 is included in the fixed illumination area, so that the movement The first image acquired by the terminal is an image of at least a portion of the fixed illumination area of the uniform spot.
具体的,在实际应用中,所述移动终端可预先配置图像采集单元31处于自动曝光模式,在均匀光板的表面亮度处于1800勒克斯(Lux)左右,即所述均匀光斑的表面亮度在1750Lux~1850Lux之间时,使得所述图像采集单元31采集到的图像的亮度为128至135。 Specifically, in a practical application, the mobile terminal may pre-configure the image capturing unit 31 to be in an automatic exposure mode, and the surface brightness of the uniform light plate is about 1800 lux, that is, the surface brightness of the uniform spot is 1750 Lux to 1850 Lux. The brightness of the image acquired by the image acquisition unit 31 is made 128 to 135.
本实施例中,所述移动终端将所述第一图像划分为N×M个区域,可以理解为,将所述第一图像的短边划分为N份,长边划分为M份,将所述第一图像划分为N×M个区域;当然,也可以为,将所述第一图像的长边划分为N份,短边划分为M份,将所述第一图像划分为N×M个区域。这里,所述N和M可依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元31像素参数(如800万像素)中的至少一种参数预先配置。其中,M和N可以不相等,如N设置为8,M设置为10,则N×M相当于8×10;当然,M和N也可以相等,如N和M均设置为16,则N×M相当于16×16。In this embodiment, the mobile terminal divides the first image into N×M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N×M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N×M. Areas. Here, the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit 31 pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N×M is equivalent to 8×10; of course, M and N may be equal, for example, N and M are both set to 16, then N ×M is equivalent to 16×16.
具体的,图5为本发明实施例中将第一图像划分为N×M个区域的示意图;如图所示,以将所述第一图像的水平边划分为N份,将竖直边划分为M份,则第一行第一列的区域记为区域A0,0,第一行第二列的区域记为区域A0,1,相应的,第一行第N列的区域记为区域A0,N;相应的,第二行第一列的区域记为区域A1,0;第M行第一列的区域记为区域AM,0,则第M行第N列的区域记为区域AM,NSpecifically, FIG. 5 is a schematic diagram of dividing a first image into N×M regions according to an embodiment of the present invention; as shown in the figure, dividing a horizontal edge of the first image into N shares, and dividing the vertical edge For M parts, the area of the first column of the first row is recorded as the area A 0,0 , and the area of the second row of the first row is recorded as the area A 0,1 , and correspondingly, the area of the first row and the Nth column is recorded as The area A 0,N ; correspondingly, the area of the first row of the second row is denoted as the area A 1,0 ; the area of the first column of the Mth row is denoted as the area A M,0 , then the area of the Mth row and the Nth column Recorded as area A M,N .
进一步地,所述图像处理单元32获得所划分的每个区域的灰度平均值。具体的,所述第一图像由红色(Red)、绿色(Green)和蓝色(Blue)三原色组成,则对于每个区域,所述图像处理单元32首先识别出该区域的RGB值,进一步按照预设算法对获得的RGB值进行计算处理获得所述区域对应的灰度平均值。其中,所述预设算法可参照现有技术中任何转换算法,例如,浮点算法:灰度平均值=R×0.3+G×0.59+B×0.11;或者整数算法:灰度平均值=(R×30+G×59+B×11)/100;或者平均算法:灰度平均值=(R+G+B)/3,等等。本实施例中所述的预设算法不限于上述算法。其中,R表征识别出的对应区域的红色分量;G表征识别出的对应区域的绿色分量;B表征识别出的对应区域的蓝色分量。 Further, the image processing unit 32 obtains a grayscale average value of each of the divided regions. Specifically, the first image is composed of three primary colors of red, green, and blue. For each region, the image processing unit 32 first identifies the RGB value of the region, and further follows The preset algorithm performs a calculation process on the obtained RGB values to obtain a gray average value corresponding to the region. The preset algorithm may refer to any conversion algorithm in the prior art, for example, a floating point algorithm: gray average value=R×0.3+G×0.59+B×0.11; or integer algorithm: gray average value=( R × 30 + G × 59 + B × 11) / 100; or averaging algorithm: gray average value = (R + G + B) / 3, and so on. The preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
本实施例中,可参照图5所示,以所述第一区域为区域Am,n为例(区域Am,n为所述第一图像划分的N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域),由于所述第一区域和所述第二区域之间相隔一区域,则所述第二区域可以为Am,n-2或者区域Am-2,n。也就是说,在检测过程中,从预设起始位置开始遍历检测每相隔一个区域的两个区域的灰度平均值是否大于第一阈值;其中,所述N×M个区域中的任一区域可以作为预设起始位置;优选地,以图5所示为例,将所述第一图像的Am,n、A0,n、Am,0、A0,0中的任一区域作为预设起始位置。In this embodiment, as shown in FIG. 5, the first area is the area A m, n as an example (the area A m, n is the N×M areas divided by the first image, preset The starting position starts the nth in the horizontal direction and the mth region in the vertical direction. Since the first region and the second region are separated by a region, the second region may be A m, n-2 Or the area A m-2,n . That is, in the detecting process, traversing from the preset starting position, detecting whether the average value of the gray levels of the two regions separated by one region is greater than a first threshold; wherein, any of the N×M regions The area may be used as a preset starting position; preferably, as shown in FIG. 5, any one of A m,n , A 0,n , A m,0 , A 0,0 of the first image is used. The area is used as the default starting position.
本实施例中,当所述第一区域和所述第二区域的灰度平均值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域或所述第二区域对应于所述移动终端的图像采集单元31的第二子区域处于异常状态。所述判定单元33确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元31中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元31的第一子区域处于异常状态;相应的,所述判定单元33确定所述第二区域对应于所述移动终端的图像采集单元31的第二子区域处于异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元31中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元31的第二子区域处于异常状态。其中,所述第一阈值可以为大于等于3,例如5。例如当所述第一区域和所述第二区域的灰度平均值大于5时,则确定所述第一区域对应于所述图像采集单元31(镜头模组)的第一子区域或者第二区域对应于所述图像采集单元31(镜头模组)的第二子区域处于异 常状态,所述异常状态例如脏污、花屏等。In this embodiment, when the gray level average of the first area and the second area is greater than the first threshold, determining that the first area corresponds to the first sub-area of the image collecting unit 31 of the mobile terminal Or the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit 31 of the mobile terminal. Determining, by the determining unit 33, that the first area corresponding to the first sub-area of the image collecting unit 31 of the mobile terminal is in an abnormal state, comprising: determining a first position of the first area in the first image Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit 31 Determining that the first sub-area of the image acquisition unit 31 is in an abnormal state; correspondingly, the determining unit 33 determines that the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state. Determining: determining a second location of the second region in the first image, determining a second relative positional relationship of the second region and the first image based on the second location; A second sub-region corresponding to the second relative positional relationship is obtained in the acquisition unit 31, and the second sub-region of the image acquisition unit 31 is determined to be in an abnormal state. The first threshold may be greater than or equal to 3, such as 5. For example, when the gray level average of the first area and the second area is greater than 5, it is determined that the first area corresponds to the first sub-area or the second of the image capturing unit 31 (lens module) The area corresponding to the second sub-area of the image acquisition unit 31 (lens module) is different In a normal state, the abnormal state is, for example, dirty, a flower screen, or the like.
采用本发明实施例的技术方案,一方面无需通过人眼对采集照片进行观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。According to the technical solution of the embodiment of the present invention, on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection. The misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
实施例二 Embodiment 2
本发明实施例还提供了一种移动终端,具体可参照图3所示,所述移动终端包括:图像采集单元31、图像处理单元32和判定单元33;其中,The embodiment of the present invention further provides a mobile terminal. Specifically, as shown in FIG. 3, the mobile terminal includes: an image collection unit 31, an image processing unit 32, and a determination unit 33;
所述图像采集单元31,配置为采集第一图像,将所述第一图像发送至所述图像处理单元32;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;The image acquisition unit 31 is configured to acquire a first image, and send the first image to the image processing unit 32; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold;
所述图像处理单元32,配置为将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;其中,第一区域Am,n和第二区域Am-2,n之间在水平方向上相隔第三区域Am-1,n;或者,第一区域Am, n和第二区域Am,n-2之间在竖直方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域;The image processing unit 32 is configured to divide the first image into N×M regions, and obtain a gray average value of each region; N and M are positive integers; wherein, the first region A m,n And the third region A m-2,n is separated from the second region A m-1,n in the horizontal direction; or, the first region A m, n and the second region A m,n-2 are vertically The third region A m,n-1 is separated in the straight direction; wherein m and n are both positive integers greater than or equal to 2, and n is less than or equal to N, and m is less than or equal to M; the first region A m,n represents In the N×M regions, the mth region in the horizontal direction and the mth region in the vertical direction are started with a preset starting position;
所述判定单元33,配置为计算每相隔一个区域的任意两个区域的灰度平均值的差值,判断所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值是否大于第一阈值,获得第一判断结果;当 所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元31的第二子区域处于异常状态。The determining unit 33 is configured to calculate a difference value of the gray average values of any two regions separated by one region, and determine the first region A m,n and the second region A m-2,n Whether the difference of the gray average values is greater than the first threshold, and/or determining whether the difference between the gray average values of the first area A m,n and the second area A m,n-2 is greater than a threshold value, obtaining a first determination result; when the first determination result is that the difference between the gray level average values of the first area A m,n and the second area A m-2,n is greater than the first threshold Or determining that the first region corresponds to the mobile terminal when a difference between a gray average value of the first region A m,n and the second region A m,n-2 is greater than a first threshold The first sub-area of the image acquisition unit 31 is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit 31 of the mobile terminal is in an abnormal state.
进一步地,所述判定单元33,配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。Further, the determining unit 33 is configured to: when the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than the first Determining that the first region corresponds to the movement when a threshold value and a difference between a gray average value of the first region A m,n and the second region A m,n-2 is greater than a first threshold The first sub-area of the image acquisition unit of the terminal is in an abnormal state.
作为另一种实施方式,所述判定单元33,还配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值不大于所述第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于正常状态。As another implementation manner, the determining unit 33 is further configured to: when the first determination result is a gray average value of the first area A m,n and the second area A m-2,n The difference is not greater than the first threshold, and the difference between the gray average values of the first region A m,n and the second region A m,n-2 is not greater than the first threshold Determining that the first area corresponds to the first sub-area of the image acquisition unit 31 of the mobile terminal is in a normal state.
本实施例中,用户控制移动终端的图像采集单元31的图像采集区域为亮度均匀且亮度参数满足预设阈值的区域。作为一种实施方式,如图4所示,所述应用场景包括移动终端41和均匀光板42;所述移动终端41的图像采集单元31朝向所述均匀光板42,以使所述图像采集单元31的图像采集区域在所述均匀光板中。所述均匀光板具有一固定发光区域,所述固定发光区域例如矩形发光区域(如图4所示);所述均匀光板能够在其固定发光区域发出亮度属性均匀的光线,也即所述均匀光板的固定发光区域中每个位置的亮度值均相等。在实际应用中,用户控制所述移动终端的图像采集单元31朝向所述均匀光板的固定发光区域,即所述图像采集单元31的图像采集区域包含在所述固定发光区域中,使得所述移动终端采集到的第 一图像为所述均匀光斑的固定发光区域中的至少部分区域的图像。In this embodiment, the image collection area of the image acquisition unit 31 of the user control mobile terminal is an area where the brightness is uniform and the brightness parameter meets a preset threshold. As an embodiment, as shown in FIG. 4, the application scenario includes a mobile terminal 41 and a uniform light panel 42; the image acquisition unit 31 of the mobile terminal 41 faces the uniform light panel 42 such that the image acquisition unit 31 The image acquisition area is in the uniform light panel. The uniform light panel has a fixed light emitting area, such as a rectangular light emitting area (as shown in FIG. 4); the uniform light board can emit light having uniform brightness properties in its fixed light emitting area, that is, the uniform light board The luminance values of each position in the fixed illumination area are equal. In an actual application, the user controls the image acquisition unit 31 of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image acquisition area of the image acquisition unit 31 is included in the fixed illumination area, so that the movement The number collected by the terminal An image is an image of at least a portion of the fixed illumination area of the uniform spot.
具体的,在实际应用中,所述移动终端可预先配置图像采集单元31处于自动曝光模式,在均匀光板的表面亮度处于1800勒克斯(Lux)左右,即所述均匀光斑的表面亮度在1750Lux~1850Lux之间时,使得所述图像采集单元31采集到的图像的亮度为128至135。Specifically, in a practical application, the mobile terminal may pre-configure the image capturing unit 31 to be in an automatic exposure mode, and the surface brightness of the uniform light plate is about 1800 lux, that is, the surface brightness of the uniform spot is 1750 Lux to 1850 Lux. The brightness of the image acquired by the image acquisition unit 31 is made 128 to 135.
本实施例中,所述移动终端将所述第一图像划分为N×M个区域,可以理解为,将所述第一图像的短边划分为N份,长边划分为M份,将所述第一图像划分为N×M个区域;当然,也可以为,将所述第一图像的长边划分为N份,短边划分为M份,将所述第一图像划分为N×M个区域。这里,所述N和M可依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元31像素参数(如800万像素)中的至少一种参数预先配置。其中,M和N可以不相等,如N设置为8,M设置为10,则N×M相当于8×10;当然,M和N也可以相等,如N和M均设置为16,则N×M相当于16×16。In this embodiment, the mobile terminal divides the first image into N×M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N×M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N×M. Areas. Here, the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit 31 pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N×M is equivalent to 8×10; of course, M and N may be equal, for example, N and M are both set to 16, then N ×M is equivalent to 16×16.
具体的,如图5所示,以将所述第一图像的水平边划分为N份,将竖直边划分为M份,则第一行第一列的区域记为区域A0,0,第一行第二列的区域记为区域A0,1,相应的,第一行第N列的区域记为区域A0,N;相应的,第二行第一列的区域记为区域A1,0;第M行第一列的区域记为区域AM,0,则第M行第N列的区域记为区域AM,NSpecifically, as shown in FIG. 5, the horizontal side of the first image is divided into N parts, and the vertical side is divided into M parts, and the area of the first column of the first row is recorded as the area A 0,0 . The area of the second row of the first row is denoted as the area A 0,1 , and correspondingly, the area of the Nth column of the first row is recorded as the area A 0,N ; correspondingly, the area of the first column of the second row is recorded as the area A 1,0 ; the area of the first column of the Mth row is denoted as the area A M,0 , and the area of the Mth column and the Nth column is denoted as the area A M,N .
进一步地,所述图像处理单元32获得所划分的每个区域的灰度平均值。具体的,所述第一图像由红色(Red)、绿色(Green)和蓝色(Blue)三原色组成,则对于每个区域,所述图像处理单元32首先识别出该区域的RGB值,进一步按照预设算法对获得的RGB值进行计算处理获得所述区域对应的灰度平均值。其中,所述预设算法可参照现有技术中任何转换算法,例如,浮点算法:灰度平均值=R×0.3+G×0.59+B×0.11;或者整数算法:灰 度平均值=(R×30+G×59+B×11)/100;或者平均算法:灰度平均值=(R+G+B)/3,等等。本实施例中所述的预设算法不限于上述算法。其中,R表征识别出的对应区域的红色分量;G表征识别出的对应区域的绿色分量;B表征识别出的对应区域的蓝色分量。Further, the image processing unit 32 obtains a grayscale average value of each of the divided regions. Specifically, the first image is composed of three primary colors of red, green, and blue. For each region, the image processing unit 32 first identifies the RGB value of the region, and further follows The preset algorithm performs a calculation process on the obtained RGB values to obtain a gray average value corresponding to the region. The preset algorithm may refer to any conversion algorithm in the prior art, for example, a floating point algorithm: gray average value=R×0.3+G×0.59+B×0.11; or integer algorithm: gray Degree average = (R × 30 + G × 59 + B × 11) / 100; or average algorithm: gray average value = (R + G + B) / 3, and so on. The preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
具体的,本实施例中,所述判定单元33将所述第一区域Am,n分别于与之相隔一个区域的第二区域Am-2,n和第二区域Am,n-2的灰度平均值进行比较,确定所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值也不大于所述第一阈值时,则确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于正常状态。相应的,确定所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于所述第一阈值,或者,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于所述第一阈值时,则可以确定所述第一区域Am,n对应于所述移动终端的图像采集单元31的第一子区域或所述第二区域Am,n-2或者所述第二区域Am-2,n对应于所述移动终端的图像采集单元31的第二子区域处于脏污或花屏状态。具体的,所述判定单元33确定所述第一区域对应于所述移动终端的图像采集单元31的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元31中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元31的第一子区域处于异常状态;相应的,所述判定单元33确定所述第二区域对应于所述移动终端的图像采集单元31的第二子区域处于异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元31中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集 单元31的第二子区域处于异常状态。Specifically, in this embodiment, the determining unit 33 separates the first area A m,n from the second area A m-2,n and the second area A m,n-2 respectively separated by a region Comparing the grayscale average values, determining that the difference between the grayscale average values of the first region Am,n and the second region Am-2,n is not greater than the first threshold, and the Determining that the first region corresponds to the mobile terminal when a difference between a gray level average of an area A m,n and the second area A m,n-2 is not greater than the first threshold The first sub-area of the image acquisition unit 31 is in a normal state. Correspondingly, determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than the first threshold, or the first area Am, and the second region of the n a m, an average value of the gradation difference n-2 is greater than the first threshold value, it may be determined the first region a m, n corresponding to the image acquisition of the mobile terminal The first sub-area of the unit 31 or the second area A m,n-2 or the second area A m-2,n corresponds to the second sub-area of the image acquisition unit 31 of the mobile terminal being dirty Or flower screen status. Specifically, the determining unit 33 determines that the first sub-region corresponding to the first region of the image acquiring unit 31 of the mobile terminal is in an abnormal state, and includes: determining that the first region is in the first image. a first position, determining a first relative positional relationship of the first region and the first image based on the first position; obtaining a first corresponding to the first relative positional relationship in the image acquisition unit 31 a sub-region, determining that the first sub-region of the image acquisition unit 31 is in an abnormal state; correspondingly, the determining unit 33 determines that the second region corresponds to the second sub-region of the image acquisition unit 31 of the mobile terminal In an abnormal state, comprising: determining a second position of the second area in the first image, determining a second relative positional relationship of the second area and the first image based on the second position; A second sub-region corresponding to the second relative positional relationship is obtained in the image acquisition unit 31, and the second sub-region of the image acquisition unit 31 is determined to be in an abnormal state.
图6a和图6b为本发明实施例中第一图像的显示示意图;其中,图6a为确定所述移动终端的图像采集单元处于正常状态(即无脏污、无花屏等)的示意图;图6b为确定所述移动终端的图像采集单元处于异常状态(即有脏污、有花屏等)的示意图。6a and FIG. 6b are schematic diagrams showing the display of the first image in the embodiment of the present invention; wherein FIG. 6a is a schematic diagram of determining that the image acquisition unit of the mobile terminal is in a normal state (ie, no stain, no flower screen, etc.); A schematic diagram for determining that the image acquisition unit of the mobile terminal is in an abnormal state (ie, there is dirt, a flower screen, etc.).
采用本发明实施例的技术方案,一方面无需通过人眼对采集照片进行观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。According to the technical solution of the embodiment of the present invention, on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection. The misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
在本发明实施例中,所述移动终端在实际应用中,可由具有摄像头的手机、平板电脑、笔记本电脑等便携终端实现。所述移动终端中的图像处理单元32和判定单元33,在实际应用中均可由所述移动终端中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程门阵列(FPGA,Field-Programmable Gate Array)实现;所述移动终端中的图像采集单元31,在实际应用中可由所述移动终端的摄像头实现。In the embodiment of the present invention, the mobile terminal may be implemented by a mobile terminal such as a mobile phone, a tablet computer, or a notebook computer having a camera in an actual application. The image processing unit 32 and the determining unit 33 in the mobile terminal may be used by a central processing unit (CPU), a digital signal processor (DSP), or a digital signal processor (DSP) in the mobile terminal. The Field-Programmable Gate Array (FPGA) is implemented; the image acquisition unit 31 in the mobile terminal can be implemented by a camera of the mobile terminal in an actual application.
实施例三Embodiment 3
本发明实施例还提供了一种信息处理方法。图7为本发明实施例的信息处理方法的第一种流程示意图;如图7所示,所述方法包括:The embodiment of the invention also provides an information processing method. FIG. 7 is a schematic diagram of a first process of an information processing method according to an embodiment of the present invention; as shown in FIG. 7, the method includes:
步骤501:采集第一图像;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值。Step 501: Acquire a first image; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold.
本实施例中,用户控制移动终端的图像采集单元的图像采集区域为亮 度均匀且亮度参数满足预设阈值的区域。作为一种实施方式,预置一均匀光板,所述均匀光板具有一固定发光区域,所述固定发光区域例如矩形发光区域(如图4所示);所述均匀光板能够在其固定发光区域发出亮度属性均匀的光线,也即所述均匀光板的固定发光区域中每个位置的亮度值均相等。在实际应用中,用户控制所述移动终端的图像采集单元朝向所述均匀光板的固定发光区域,即所述图像采集单元的图像采集区域包含在所述固定发光区域中,使得所述移动终端采集到的第一图像为所述均匀光斑的固定发光区域中的至少部分区域的图像。In this embodiment, the image acquisition area of the image acquisition unit controlled by the user to the mobile terminal is bright. An area where the degree is uniform and the brightness parameter meets the preset threshold. As an embodiment, a uniform light plate is preset, the uniform light plate has a fixed light emitting region, such as a rectangular light emitting region (as shown in FIG. 4); the uniform light plate can be emitted in a fixed light emitting region thereof. The light having uniform brightness properties, that is, the brightness values at each position in the fixed light-emitting region of the uniform light plate are equal. In an actual application, the user controls the image acquisition unit of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image collection area of the image acquisition unit is included in the fixed illumination area, so that the mobile terminal collects The first image obtained is an image of at least a portion of the fixed illumination area of the uniform spot.
具体的,在实际应用中,所述移动终端可预先配置图像采集单元处于自动曝光模式,在均匀光板的表面亮度处于1800勒克斯(Lux)左右,即所述均匀光斑的表面亮度在1750Lux~1850Lux之间时,使得所述图像采集单元采集到的图像的亮度为128Lux至135Lux。Specifically, in a practical application, the mobile terminal may pre-configure the image acquisition unit to be in an automatic exposure mode, and the surface brightness of the uniform light panel is about 1800 lux, that is, the surface brightness of the uniform light spot is between 1750 Lux and 1850 Lux. The brightness of the image acquired by the image acquisition unit is 128Lux to 135Lux.
步骤502:将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数。Step 502: Divide the first image into N×M regions, and obtain a gray average value of each region; N and M are both positive integers.
本实施例中,所述移动终端将所述第一图像划分为N×M个区域,可以理解为,将所述第一图像的短边划分为N份,长边划分为M份,将所述第一图像划分为N×M个区域;当然,也可以为,将所述第一图像的长边划分为N份,短边划分为M份,将所述第一图像划分为N×M个区域。这里,所述N和M可依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元像素参数(如800万像素)中的至少一种参数预先配置。其中,M和N可以不相等,如N设置为8,M设置为10,则N×M相当于8×10;当然,M和N也可以相等,如N和M均设置为16,则N×M相当于16×16。具体的,如图5所示,以将所述第一图像的水平边划分为N份,将竖直边划分为M份,则第一行第一列的区域记为区域A0,0,第一行第二列的区域记为区域A0,1,相应的,第一行第N列的区域记为区域A0,N;相应的, 第二行第一列的区域记为区域A1,0;第M行第一列的区域记为区域AM,0,则第M行第N列的区域记为区域AM,NIn this embodiment, the mobile terminal divides the first image into N×M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N×M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N×M. Areas. Here, the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N×M is equivalent to 8×10; of course, M and N may be equal, for example, N and M are both set to 16, then N ×M is equivalent to 16×16. Specifically, as shown in FIG. 5, to the level of the first side of the image divided into N parts, the vertical side is divided into M parts, the first column of the first row area is an area A 0,0, The area of the first row and the second column is denoted as the area A 0,1 , and correspondingly, the area of the first row and the Nth column is recorded as the area A 0,N ; correspondingly, the area of the second row and the first column is recorded as the area A 1,0 ; the area of the first column of the Mth row is denoted as the area A M,0 , and the area of the Mth column and the Nth column is denoted as the area A M,N .
进一步地,获得所划分的每个区域的灰度平均值。具体的,所述第一图像由红色(Red)、绿色(Green)和蓝色(Blue)三原色组成,则对于每个区域,首先识别出该区域的RGB值,进一步按照预设算法对获得的RGB值进行计算处理获得所述区域对应的灰度平均值。其中,所述预设算法可参照现有技术中任何转换算法,例如,浮点算法:灰度平均值=R×0.3+G×0.59+B×0.11;或者整数算法:灰度平均值=(R×30+G×59+B×11)/100;或者平均算法:灰度平均值=(R+G+B)/3,等等。本实施例中所述的预设算法不限于上述算法。其中,R表征识别出的对应区域的红色分量;G表征识别出的对应区域的绿色分量;B表征识别出的对应区域的蓝色分量。Further, the average value of the gradation of each of the divided regions is obtained. Specifically, the first image is composed of three primary colors of red, green, and blue, and for each region, the RGB value of the region is first identified, and further obtained according to a preset algorithm. The RGB values are subjected to calculation processing to obtain gradation average values corresponding to the regions. The preset algorithm may refer to any conversion algorithm in the prior art, for example, a floating point algorithm: gray average value=R×0.3+G×0.59+B×0.11; or integer algorithm: gray average value=( R × 30 + G × 59 + B × 11) / 100; or averaging algorithm: gray average value = (R + G + B) / 3, and so on. The preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
步骤503:计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域。Step 503: Calculate a difference between the grayscale average values of the first region and the second region, and determine whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, and obtain a determination result; The first area and the second area are any of the N×M areas, and the first area and the second area are separated by a third area.
这里,所述判断第一区域和第二区域的灰度平均值是否满足预设条件,包括:判断所述第一区域和所述第二区域的灰度平均值是否大于第一阈值;Here, the determining whether the gray level average of the first area and the second area meets the preset condition comprises: determining whether the gray level average of the first area and the second area is greater than a first threshold;
当所述判断结果为所述第一区域和所述第二区域的灰度平均值大于第一阈值时,确定所述第一区域和第二区域的灰度平均值满足预设条件;When the result of the determination is that the gray level average of the first area and the second area is greater than the first threshold, determining that the gray level average of the first area and the second area meets a preset condition;
当所述判断结果为所述第一区域和所述第二区域的灰度平均值不大于第一阈值时,确定所述第一区域和第二区域的灰度平均值不满足预设条件。When the result of the determination is that the gray level average of the first area and the second area is not greater than the first threshold, determining that the gray level average of the first area and the second area does not satisfy the preset condition.
本实施例中,可参照图5所示,以所述第一区域为区域Am,n为例(区域Am,n为所述第一图像划分的N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域),由于所述第一区域和所述第二区域之间相隔一区域,则所述第二区域可以为Am,n-2或者区域Am-2,n。也就是说,在 检测过程中,从预设起始位置开始遍历检测每相隔一个区域的两个区域的灰度平均值是否大于第一阈值;其中,所述N×M个区域中的任一区域可以作为预设起始位置;优选地,以图5所示为例,将所述第一图像的Am,n、A0,n、Am,0、A0,0中的任一区域作为起始检测位置。In this embodiment, as shown in FIG. 5, the first area is the area A m, n as an example (the area A m, n is the N×M areas divided by the first image, preset The starting position starts the nth in the horizontal direction and the mth region in the vertical direction. Since the first region and the second region are separated by a region, the second region may be A m, n-2 Or the area A m-2,n . That is, in the detecting process, traversing from the preset starting position, detecting whether the average value of the gray levels of the two regions separated by one region is greater than a first threshold; wherein, any of the N×M regions The area may be used as a preset starting position; preferably, as shown in FIG. 5, any one of A m,n , A 0,n , A m,0 , A 0,0 of the first image is used. The area is used as the starting detection position.
步骤504:当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。Step 504: When the result of the determination is that the difference between the gray average values of the first area and the second area is greater than a first threshold, determining that the first area corresponds to an image acquisition unit of the mobile terminal The first sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
本实施例中,当所述第一区域和所述第二区域的灰度平均值满足预设条件,即所述第一区域和所述第二区域的灰度平均值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。具体的,所述确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态;相应的,所述确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。其中,所述第一阈值可以为大于等于3,例如5。例如当所述第一区域和所述第二区域的灰度平均值大于5时,则确定所述第一区域对应于所述图像采集单元(镜头模组)的第一子区域或者第二区域对应于所述图像采集单元(镜头 模组)的第二子区域处于异常状态,所述异常状态例如脏污、花屏等。In this embodiment, when the gray level average of the first area and the second area meets a preset condition, that is, the gray level average of the first area and the second area is greater than the first threshold, Determining that the first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal or the second area corresponds to an abnormal state of a second sub-area of the image acquisition unit of the mobile terminal. Specifically, the determining that the first region corresponds to an abnormal state of the first sub-region of the image capturing unit of the mobile terminal, including: determining a first location of the first region in the first image, Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit, determining The first sub-area of the image acquisition unit is in an abnormal state; correspondingly, the determining that the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit of the mobile terminal, including: determining the Determining, in a second position in the first image, a second relative positional relationship of the second region and the first image based on the second position; obtaining and in the image acquisition unit The second sub-region corresponding to the second relative positional relationship determines that the second sub-region of the image acquisition unit is in an abnormal state. The first threshold may be greater than or equal to 3, such as 5. For example, when the gray level average of the first area and the second area is greater than 5, it is determined that the first area corresponds to the first sub-area or the second area of the image capturing unit (lens module) Corresponding to the image acquisition unit (lens) The second sub-region of the module is in an abnormal state, such as a dirty state, a flower screen, or the like.
采用本发明实施例的技术方案,一方面无需通过人眼对采集照片进行观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。According to the technical solution of the embodiment of the present invention, on the one hand, it is not necessary to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the manual detection. The misjudgment situation avoids the abnormal situation such as dirt in the mobile terminal and is not found when manually detected, and also greatly improves the product quality of the mobile terminal, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
实施例四Embodiment 4
本发明实施例还提供了一种信息处理方法。图8为本发明实施例的信息处理方法的第二种流程示意图;如图8所示,所述方法包括:The embodiment of the invention also provides an information processing method. FIG. 8 is a second schematic flowchart of an information processing method according to an embodiment of the present invention; as shown in FIG. 8, the method includes:
步骤601:采集第一图像;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值。Step 601: Acquire a first image; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold.
本实施例中,用户控制移动终端的图像采集单元的图像采集区域为亮度均匀且亮度参数满足预设阈值的区域。作为一种实施方式,预置一均匀光板,所述均匀光板具有一固定发光区域,所述固定发光区域例如矩形发光区域(如图4所示);所述均匀光板能够在其固定发光区域发出亮度属性均匀的光线,也即所述均匀光板的固定发光区域中每个位置的亮度值均相等。在实际应用中,用户控制所述移动终端的图像采集单元朝向所述均匀光板的固定发光区域,即所述图像采集单元的图像采集区域包含在所述固定发光区域中,使得所述移动终端采集到的第一图像为所述均匀光斑的固定发光区域中的至少部分区域的图像。In this embodiment, the image collection area of the image acquisition unit of the user control mobile terminal is an area where the brightness is uniform and the brightness parameter meets the preset threshold. As an embodiment, a uniform light plate is preset, the uniform light plate has a fixed light emitting region, such as a rectangular light emitting region (as shown in FIG. 4); the uniform light plate can be emitted in a fixed light emitting region thereof. The light having uniform brightness properties, that is, the brightness values at each position in the fixed light-emitting region of the uniform light plate are equal. In an actual application, the user controls the image acquisition unit of the mobile terminal to face the fixed illumination area of the uniform light panel, that is, the image collection area of the image acquisition unit is included in the fixed illumination area, so that the mobile terminal collects The first image obtained is an image of at least a portion of the fixed illumination area of the uniform spot.
具体的,在实际应用中,所述移动终端可预先配置图像采集单元处于自动曝光模式,在均匀光板的表面亮度处于1800勒克斯(Lux)左右,即所述均匀光斑的表面亮度在1750Lux~1850Lux之间时,使得所述图像采集 单元采集到的图像的亮度为128至135。Specifically, in a practical application, the mobile terminal may pre-configure the image acquisition unit to be in an automatic exposure mode, and the surface brightness of the uniform light panel is about 1800 lux, that is, the surface brightness of the uniform light spot is between 1750 Lux and 1850 Lux. Making the image acquisition The brightness of the image acquired by the unit is 128 to 135.
步骤602:将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数。Step 602: Divide the first image into N×M regions, and obtain a gray average value of each region; N and M are positive integers.
本实施例中,所述移动终端将所述第一图像划分为N×M个区域,可以理解为,将所述第一图像的短边划分为N份,长边划分为M份,将所述第一图像划分为N×M个区域;当然,也可以为,将所述第一图像的长边划分为N份,短边划分为M份,将所述第一图像划分为N×M个区域。这里,所述N和M可依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元像素参数(如800万像素)中的至少一种参数预先配置。其中,M和N可以不相等,如N设置为8,M设置为10,则N×M相当于8×10;当然,M和N也可以相等,如N和M均设置为16,则N×M相当于16×16。具体的,如图5所示,以将所述第一图像的水平边划分为N份,将竖直边划分为M份,则第一行第一列的区域记为区域A0,0,第一行第二列的区域记为区域A0,1,相应的,第一行第N列的区域记为区域A0,N;相应的,第二行第一列的区域记为区域A1,0;第M行第一列的区域记为区域AM,0,则第M行第N列的区域记为区域AM,NIn this embodiment, the mobile terminal divides the first image into N×M regions, which may be understood as: dividing the short side of the first image into N shares, and dividing the long side into M shares, The first image is divided into N×M regions; of course, the long side of the first image may be divided into N parts, the short side is divided into M parts, and the first image is divided into N×M. Areas. Here, the N and M may be pre-configured according to at least one of a screen resolution of the mobile terminal, a screen pixel density, and an image acquisition unit pixel parameter (eg, 8 million pixels). Wherein, M and N may not be equal. For example, if N is set to 8, and M is set to 10, then N×M is equivalent to 8×10; of course, M and N may be equal, for example, N and M are both set to 16, then N ×M is equivalent to 16×16. Specifically, as shown in FIG. 5, the horizontal side of the first image is divided into N parts, and the vertical side is divided into M parts, and the area of the first column of the first row is recorded as the area A 0,0 . The area of the second row of the first row is denoted as the area A 0,1 , and correspondingly, the area of the Nth column of the first row is recorded as the area A 0,N ; correspondingly, the area of the first column of the second row is recorded as the area A 1,0 ; the area of the first column of the Mth row is denoted as the area A M,0 , and the area of the Mth column and the Nth column is denoted as the area A M,N .
进一步地,获得所划分的每个区域的灰度平均值。具体的,所述第一图像由红色(Red)、绿色(Green)和蓝色(Blue)三原色组成,则对于每个区域,首先识别出该区域的RGB值,进一步按照预设算法对获得的RGB值进行计算处理获得所述区域对应的灰度平均值。其中,所述预设算法可参照现有技术中任何转换算法,例如,浮点算法:灰度平均值=R×0.3+G×0.59+B×0.11;或者整数算法:灰度平均值=(R×30+G×59+B×11)/100;或者平均算法:灰度平均值=(R+G+B)/3,等等。本实施例中所述的预设算法不限于上述算法。其中,R表征识别出的对应区域的红色分量;G表征识别出的对应区域的绿色分量;B表征识别出的对应区域的蓝色分量。 Further, the average value of the gradation of each of the divided regions is obtained. Specifically, the first image is composed of three primary colors of red, green, and blue, and for each region, the RGB value of the region is first identified, and further obtained according to a preset algorithm. The RGB values are subjected to calculation processing to obtain gradation average values corresponding to the regions. The preset algorithm may refer to any conversion algorithm in the prior art, for example, a floating point algorithm: gray average value=R×0.3+G×0.59+B×0.11; or integer algorithm: gray average value=( R × 30 + G × 59 + B × 11) / 100; or averaging algorithm: gray average value = (R + G + B) / 3, and so on. The preset algorithm described in this embodiment is not limited to the above algorithm. Where R represents the red component of the identified corresponding region; G represents the green component of the identified corresponding region; and B represents the blue component of the identified corresponding region.
步骤603:判断第一区域Am,n和第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值是否大于第一阈值,获得第一判断结果。其中,所述第一区域Am,n和所述第二区域Am-2,n之间在水平方向上相隔第三区域Am-1, n;或者,所述第一区域Am,n和所述第二区域Am,n-2之间在竖直方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域。Step 603: Determine whether the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, and/or determine the first area A m,n and Whether the difference of the gray average values of the second regions A m, n-2 is greater than a first threshold, obtaining a first determination result. Wherein the first area A m,n and the second area A m-2,n are separated from each other in the horizontal direction by the third area A m-1, n ; or the first area A m, n and the second region A m,n-2 are separated from each other in the vertical direction by a third region A m,n-1 ; wherein m and n are positive integers greater than or equal to 2, and n is less than or equal to N And m is less than or equal to M; the first area A m,n represents the nth, the mth area in the horizontal direction starting from the preset starting position in the N×M areas.
步骤604:当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值。Step 604: When the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first Determining the difference between the gray average values of the first region and the second region when the difference between the grayscale average values of the regions Am,n and the second regions Am,n-2 is greater than the first threshold The value is greater than the first threshold.
步骤605:确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。Step 605: It is determined that the first sub-region corresponding to the image acquisition unit of the mobile terminal is in an abnormal state, or the second sub-region corresponding to the image acquisition unit of the mobile terminal is in the second region. Abnormal state.
作为另一种实施方式,当步骤603的判断结果为:所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值不大于所述第一阈值时,所述方法还包括:确定所述第一区域和所述第二区域的灰度平均值的差值不大于第一阈值。As another implementation manner, when the determination result in step 603 is: the difference between the gray average values of the first area A m,n and the second area A m-2,n is not greater than the first a threshold, and when a difference between a gray average value of the first area A m,n and the second area A m,n-2 is not greater than the first threshold, the method further includes: determining The difference between the grayscale average values of the first region and the second region is not greater than the first threshold.
具体的,以图5所示为例,将所述第一区域Am,n分别于与之相隔一个区域的第二区域Am-2,n和第二区域Am,n-2的灰度平均值进行比较,确定所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值也不大于所述第一阈值时,则确定所述第一区域对应于所述移动终端的 图像采集单元的第一子区域处于正常状态。相应的,确定所述第一区域Am, n和所述第二区域Am-2,n的灰度平均值的差值大于所述第一阈值,或者,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于所述第一阈值时,则可以确定所述第一区域Am,n对应于所述移动终端的图像采集单元的第一子区域或所述第二区域Am,n-2或者所述第二区域Am-2,n对应于所述移动终端的图像采集单元的第二子区域处于脏污或花屏状态。具体的,所述确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态;相应的,所述确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。具体可参照图6a和图6b所示,图6a为确定所述移动终端的图像采集单元处于正常状态(即无脏污、无花屏等)的示意图;图6b为确定所述移动终端的图像采集单元处于异常状态(即有脏污、有花屏等)的示意图。Specifically, taking the example shown in FIG. 5, the first area A m,n is respectively separated by the second area A m-2,n of the one area and the gray of the second area A m,n-2 Comparing the average values, determining that the difference between the gray average values of the first region A m,n and the second region A m-2,n is not greater than the first threshold, and the first region Determining, when the difference between the gray average values of A m,n and the second region A m,n-2 is not greater than the first threshold, determining that the first region corresponds to image acquisition of the mobile terminal The first sub-area of the unit is in a normal state. Correspondingly, determining that a difference between a gray average value of the first area A m, n and the second area A m-2, n is greater than the first threshold, or the first area Am, and the second region of the n a m, an average value of the gradation difference n-2 is greater than the first threshold value, it may be determined the first region a m, n corresponding to the image acquisition of the mobile terminal The first sub-area of the unit or the second area A m,n-2 or the second area A m-2,n corresponds to the second sub-area of the image acquisition unit of the mobile terminal being dirty or smeared status. Specifically, the determining that the first region corresponds to an abnormal state of the first sub-region of the image capturing unit of the mobile terminal, including: determining a first location of the first region in the first image, Determining a first relative positional relationship of the first area and the first image based on the first position; obtaining a first sub-area corresponding to the first relative positional relationship in the image acquisition unit, determining The first sub-area of the image acquisition unit is in an abnormal state; correspondingly, the determining that the second area corresponds to an abnormal state of the second sub-area of the image acquisition unit of the mobile terminal, including: determining the Determining, in a second position in the first image, a second relative positional relationship of the second region and the first image based on the second position; obtaining and in the image acquisition unit The second sub-region corresponding to the second relative positional relationship determines that the second sub-region of the image acquisition unit is in an abnormal state. For details, refer to FIG. 6a and FIG. 6b. FIG. 6a is a schematic diagram of determining that the image capturing unit of the mobile terminal is in a normal state (ie, no dirt, no flower screen, etc.); FIG. 6b is determining image capturing of the mobile terminal. A schematic diagram of the unit in an abnormal state (ie, dirty, with a flower screen, etc.).
作为一种实施方式,步骤603的判断结果还可以为:所述第一区域Am, n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值也大于第一阈值,所述方法还包括:确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。As an implementation manner, the determination result of step 603 may further be: a difference between the gray average values of the first area A m, n and the second area A m-2, n is greater than a first threshold, and The difference between the gray level average values of the first area A m,n and the second area A m,n-2 is also greater than the first threshold, the method further comprising: determining that the first area corresponds to the The first sub-area of the image acquisition unit of the mobile terminal is in an abnormal state.
下面结合具体实施方式对本发明实施例进行详细说明。 The embodiments of the present invention are described in detail below in conjunction with the specific embodiments.
实施方式一 Embodiment 1
以图6a所示的第一图像为例,将所述第一图像划分为16×16的区域,识别出每个区域的灰度平均值如表1所示。遍历每个区域,即将所述第一区域Am,n分别于与之相隔一个区域的第二区域Am-2,n和第二区域Am,n-2的灰度平均值进行比较,确定所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于5,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值也不大于5,则可以确定所述移动终端的图像采集单元处于正常状态,即所述图像采集单元无脏污、无花屏等。Taking the first image shown in FIG. 6a as an example, the first image is divided into 16×16 regions, and the grayscale average value of each region is identified as shown in Table 1. Traversing each zone, i.e. the first region A m, n respectively, spaced with a second region of the region A m-2, n A m and the second region, the mean gray value is compared to n-2, Determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is not more than 5, and the first area Am,n and the second area The difference between the gray average values of A m, n-2 is also not greater than 5, then it can be determined that the image acquisition unit of the mobile terminal is in a normal state, that is, the image acquisition unit is free of dirt, no flower screen, and the like.
158158 160160 159159 158158 158158 159159 159159 159159 160160 160160 160160 161161 163163 165165 165165 162162
160160 160160 158158 158158 158158 158158 159159 159159 160160 160160 160160 161161 162162 164164 165165 164164
160160 159159 158158 158158 159159 159159 160160 160160 160160 161161 161161 162162 162162 163163 165165 166166
160160 159159 158158 158158 159159 159159 160160 160160 160160 161161 161161 162162 162162 163163 165165 166166
160160 158158 158158 158158 159159 159159 160160 160160 161161 161161 161161 162162 162162 163163 164164 166166
159159 158158 158158 158158 159159 159159 159159 160160 160160 161161 161161 161161 162162 162162 164164 166166
158158 158158 158158 158158 159159 159159 159159 160160 160160 160160 161161 161161 162162 162162 163163 165165
159159 158158 158158 159159 159159 159159 160160 161161 161161 161161 161161 162162 162162 163163 164164 166166
159159 158158 159159 159159 159159 159159 160160 161161 161161 161161 161161 162162 162162 163163 164164 166166
160160 159159 159159 159159 159159 160160 160160 161161 161161 161161 161161 162162 163163 163163 164164 166166
160160 159159 158158 159159 159159 159159 160160 160160 160160 161161 161161 162162 162162 163163 164164 166166
160160 159159 158158 158158 159159 159159 159159 160160 160160 160160 161161 161161 162162 163163 164164 166166
161161 160160 159159 159159 159159 160160 160160 160160 161161 161161 161161 162162 163163 163163 165165 166166
161161 161161 160160 160160 160160 160160 160160 161161 161161 161161 161161 162162 163163 164164 166166 165165
161161 162162 161161 160160 160160 160160 160160 161161 161161 162162 162162 163163 164164 165165 166166 164164
158158 162162 161161 161161 160160 160160 160160 161161 161161 162162 162162 163163 165165 166166 165165 163163
表1Table 1
实施方式二 Embodiment 2
以图6b所示的第一图像为例,将所述第一图像划分为16×16的区域,识别出每个区域的灰度平均值如表2所示。遍历每个区域,即将所述第一区域Am,n分别于与之相隔一个区域的第二区域Am-2,n或第二区域Am,n-2的 灰度平均值进行比较,确定所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于4,或者,确定所述第一区域Am,n和所述第二区域Am, n-2的灰度平均值的差值也大于4,如表2中所示,第12行第3列所示的155与第12行第5列所示的160,二者的差值为5,则可以确定所述第12行第3列或所述第12行第5列所在区域对应的图像采集单元的子区域可能存在异常,再进一步进行检测,则可确定所述第12行第3列所在区域对应的图像采集单元的子区域可能存在异常;再例如,第12行第11列所示的163与第12行第13列所示的146,二者的差值为17,以及第12行第13列所示的146与第10行第13列所示的164,二者的差值为18,则可以确定所述第12行第13列所在区域对应的所述图像采集单元的子区域处于异常状态。Taking the first image shown in FIG. 6b as an example, the first image is divided into 16×16 regions, and the grayscale average value of each region is identified as shown in Table 2. Traversing each zone, i.e. the first region A m, n respectively, spaced with a second region of the region A m-2, n A m or the second region, the mean gray value is compared to n-2, Determining that a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than 4, or determining the first area A m,n and the second The difference between the grayscale average values of the regions Am, n-2 is also greater than 4, as shown in Table 2, the 155 shown in the 12th row and the 3rd column and the 160 shown in the 12th column and the 5th column. If the difference is 5, it may be determined that there may be an abnormality in the sub-area of the image capturing unit corresponding to the area of the 12th row, the 3rd column, or the 12th row and the 5th column, and further detecting, the determining may be performed. The sub-area of the image acquisition unit corresponding to the area in the 12th row and the third column may have an abnormality; for example, the difference between the 163 shown in the 11th column of the 12th row and the 146 shown in the 13th column and the 13th column 17 and the 146 shown in the 12th column and the 13th column, the 164 shown in the 13th column and the 13th column, the difference between the two is 18, then the corresponding region of the 12th row and the 13th column can be determined. Image Sub-region is set in an abnormal state unit.
152152 155155 156156 157157 158158 159159 160160 160160 161161 161161 161161 161161 161161 160160 159159 157157
153153 155155 156156 158158 159159 160160 160160 161161 161161 161161 161161 161161 161161 161161 160160 158158
154154 156156 157157 158158 159159 160160 161161 162162 162162 162162 162162 162162 161161 161161 160160 159159
155155 156156 158158 159159 160160 161161 162162 163163 163163 163163 163163 163163 162162 162162 161161 160160
156156 157157 159159 160160 161161 162162 163163 164164 164164 164164 164164 164164 163163 163163 162162 161161
156156 157157 159159 160160 161161 162162 163163 163163 164164 164164 164164 164164 163163 163163 162162 161161
155155 157157 158158 160160 161161 162162 162162 163163 164164 164164 163163 163163 163163 162162 161161 161161
155155 157157 158158 160160 161161 162162 163163 164164 164164 163163 163163 163163 163163 162162 161161 161161
156156 157157 159159 160160 161161 162162 163163 164164 164164 164164 164164 164164 163163 163163 162162 161161
156156 158158 159159 161161 162162 163163 163163 164164 164164 164164 164164 164164 164164 163163 162162 162162
156156 158158 158158 160160 161161 162162 162162 163163 164164 164164 164164 164164 162162 162162 162162 161161
155155 157157 155155 158158 160160 161161 162162 163163 163163 163163 163163 163163 146146 162162 161161 160160
155155 156156 157157 158158 160160 161161 161161 162162 162162 162162 162162 162162 161161 161161 160160 159159
154154 156156 158158 159159 160160 161161 161161 162162 162162 162162 162162 162162 162162 161161 161161 159159
154154 156156 157157 158158 159159 160160 161161 162162 162162 162162 162162 162162 162162 161161 160160 158158
150150 155155 156156 157157 158158 159159 160160 160160 161161 161161 161161 161161 161161 160160 158158 157157
表2Table 2
采用本发明实施例的技术方案,一方面无需通过人眼对采集照片进行 观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。According to the technical solution of the embodiment of the present invention, on the one hand, it is not necessary to collect photos through the human eye. Observing whether there are abnormalities such as dirt, greatly reducing human resources, shortening the detection time, improving the detection efficiency, and avoiding the misjudgment when the manual detection is performed, that is, avoiding abnormal conditions such as dirt in the mobile terminal and manually detecting It has not been discovered, and the product quality of the mobile terminal has been greatly improved, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理单 元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated in one processing order. In the meta element, each unit may be separately used as a unit, or two or more units may be integrated into one unit; the integrated unit may be implemented in the form of hardware or a hardware plus software functional unit. Formal realization.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage device includes the following steps: the foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
或者,本发明上述集成的单元如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:移动存储设备、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Alternatively, the above-described integrated unit of the present invention may be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a standalone product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a mobile storage device, a ROM, a RAM, a magnetic disk, or an optical disk.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
本发明实施例一方面无需通过人眼对采集照片进行观察是否存在脏污等异常,大大减少了人力资源,缩短了检测时间,提高了检测效率,同时也避免了人工检测时的误判情况,即避免了移动终端存在脏污等异常状况 而人工检测时并未发现,也大大提升了移动终端的产品质量,从而提升了用户的体验。另一方面,本发明实施例的技术方案能够快速、准确的检测出移动终端的图像采集单元是否出现脏污、花屏等异常状况,缩短了检测时间,大大提高了检测效率。 On the one hand, the embodiment of the present invention does not need to observe the collected photos through the human eye, whether there is abnormality such as dirt, greatly reduces the human resources, shortens the detection time, improves the detection efficiency, and avoids the misjudgment when the manual detection is performed. That is to avoid abnormal conditions such as dirt on the mobile terminal. The manual detection did not find out, and the product quality of the mobile terminal was greatly improved, thereby improving the user experience. On the other hand, the technical solution of the embodiment of the invention can quickly and accurately detect whether the image acquisition unit of the mobile terminal has abnormal conditions such as dirt and flower screen, shorten the detection time, and greatly improve the detection efficiency.

Claims (20)

  1. 一种移动终端,所述移动终端包括:图像采集单元、图像处理单元和判定单元;其中,A mobile terminal, comprising: an image acquisition unit, an image processing unit, and a determination unit; wherein
    所述图像采集单元,配置为采集第一图像,将所述第一图像发送至所述图像处理单元;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;The image acquisition unit is configured to acquire a first image, and send the first image to the image processing unit; the image collection area corresponding to the first image has uniform brightness and the brightness parameter meets a preset threshold;
    所述图像处理单元,配置为将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;The image processing unit is configured to divide the first image into N×M regions, and obtain a gray average value of each region; N and M are positive integers;
    所述判定单元,配置为计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。The determining unit is configured to calculate a difference between the grayscale average values of the first region and the second region, and determine whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, Obtaining a judgment result; wherein the first area and the second area are any one of the N×M areas, and the first area and the second area are separated by a third area; When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal The sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  2. 根据权利要求1所述的移动终端,其中,所述第一区域Am,n和所述第二区域Am-2,n之间在竖直方向上相隔第三区域Am-1,n;或者,所述第一区域Am,n和所述第二区域Am,n-2之间在水平方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域。The mobile terminal of claim 1, wherein the first area Am,n and the second area Am-2,n are separated from each other by a third area Am-1, n in a vertical direction Or the first region A m,n and the second region A m,n-2 are separated from each other in the horizontal direction by a third region A m,n-1 ; wherein m and n are both greater than or equal to a positive integer of 2, and n is less than or equal to N, m is less than or equal to M; the first region A m,n represents the nth, vertical direction in the horizontal direction starting from the preset starting position in the N×M regions The mth area.
  3. 根据权利要求1所述的移动终端,其中,所述判定单元,配置为判断所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平 均值的差值是否大于第一阈值,获得第一判断结果;当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。The mobile terminal according to claim 1, wherein the determining unit is configured to determine whether a difference between the gradation average values of the first area A m,n and the second area A m-2,n is Or greater than the first threshold, and/or determining whether the difference between the grayscale average values of the first region A m,n and the second region A m,n-2 is greater than a first threshold, obtaining a first determination result When the first determination result is that the difference between the gray level average of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area A Determining, when the difference between the gray average values of m, n and the second region A m,n-2 is greater than the first threshold, determining that the first region corresponds to the first sub-region of the image acquisition unit of the mobile terminal In an abnormal state, or the second sub-region of the second region corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  4. 根据权利要求3所述的移动终端,其中,所述判定单元,配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。The mobile terminal according to claim 3, wherein the determining unit is configured to: when the first determination result is the gray of the first area A m,n and the second area A m-2,n Determining that the difference between the average values of the degrees is greater than the first threshold, and the difference between the gray average values of the first region A m,n and the second region A m,n-2 is greater than the first threshold The first area corresponds to an abnormal state of the first sub-area of the image acquisition unit of the mobile terminal.
  5. 根据权利要求3所述的移动终端,其中,The mobile terminal of claim 3, wherein
    所述判定单元,还配置为当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值不大于所述第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于正常状态。The determining unit is further configured to: when the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is not greater than the first a threshold value, and when the difference between the gray level average values of the first area Am,n and the second area Am,n-2 is not greater than the first threshold, determining that the first area corresponds to The first sub-area of the image acquisition unit of the mobile terminal is in a normal state.
  6. 根据权利要求1至5任一项所述的移动终端,其中,所述判定单元确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括:确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态;The mobile terminal according to any one of claims 1 to 5, wherein the determining unit determines that the first sub-region corresponding to the image capturing unit of the mobile terminal is in an abnormal state, and includes: determining Determining, in a first position in the first image, a first relative positional relationship of the first region and the first image based on the first location; obtaining and acquiring in the image acquisition unit Determining, in the first sub-region corresponding to the first relative positional relationship, that the first sub-region of the image collecting unit is in an abnormal state;
  7. 根据权利要求1至5任一项所述的移动终端,其中,所述判定单元确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于 异常状态,包括:确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。The mobile terminal according to any one of claims 1 to 5, wherein the determining unit determines that the second sub-region of the second region corresponding to the image capturing unit of the mobile terminal is An abnormal state, comprising: determining a second position of the second area in the first image, and determining a second relative positional relationship of the second area and the first image based on the second position; A second sub-region corresponding to the second relative positional relationship is obtained in the image acquisition unit, and the second sub-region of the image acquisition unit is determined to be in an abnormal state.
  8. 根据权利要求1所述的移动终端,其中,所述图像处理单元,配置为识别每个区域的红绿蓝RGB值;基于所述每个区域的RGB值按照预设算法进行计算处理获得所述每个区域的灰度平均值;其中,所述预设算法包括以下算法的其中之一:浮点算法、整数算法。The mobile terminal according to claim 1, wherein the image processing unit is configured to identify red, green and blue RGB values of each region; and perform calculation processing according to a preset algorithm based on RGB values of each of the regions A grayscale average of each region; wherein the preset algorithm includes one of the following algorithms: a floating point algorithm, an integer algorithm.
  9. 根据权利要求1所述的移动终端,其中,所述第一图像对应的图像采集区域亮度均匀且亮度参数满足的预设阈值满足1750勒克斯Lux~1850Lux。The mobile terminal according to claim 1, wherein the image capturing area corresponding to the first image has uniform brightness and the preset threshold of the brightness parameter satisfies 1750 lux Lux ~ 1850 Lux.
  10. 一种信息处理方法,所述方法包括:An information processing method, the method comprising:
    采集第一图像;所述第一图像对应的图像采集区域亮度均匀且亮度参数满足预设阈值;Collecting a first image; the image capturing area corresponding to the first image is uniform in brightness and the brightness parameter meets a preset threshold;
    将所述第一图像分为N×M个区域,获得每个区域的灰度平均值;N和M均为正整数;Dividing the first image into N×M regions, obtaining a gray average value of each region; N and M are positive integers;
    计算第一区域和第二区域的灰度平均值的差值,判断所述第一区域和所述第二区域的灰度平均值的差值是否大于第一阈值,获得判断结果;其中,所述第一区域和所述第二区域为所述N×M个区域中的任何区域,并且,所述第一区域和所述第二区域之间相隔第三区域;Calculating a difference between the grayscale average values of the first region and the second region, determining whether a difference between the grayscale average values of the first region and the second region is greater than a first threshold, and obtaining a determination result; The first area and the second area are any of the N×M areas, and the first area and the second area are separated by a third area;
    当所述判断结果为所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值时,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。When the result of the determination is that the difference between the grayscale average values of the first region and the second region is greater than the first threshold, determining that the first region corresponds to the first of the image acquisition unit of the mobile terminal The sub-area is in an abnormal state, or the second sub-area of the second area corresponding to the image acquisition unit of the mobile terminal is in an abnormal state.
  11. 根据权利要求10所述的方法,其中,所述第一区域Am,n和所述 第二区域Am-2,n之间在水平方向上相隔第三区域Am-1,n;或者,所述第一区域Am,n和所述第二区域Am,n-2之间在竖直方向上相隔第三区域Am,n-1;其中,m和n均为大于等于2的正整数,且n小于等于N,m小于等于M;所述第一区域Am,n表示所述N×M个区域中以预设起始位置开始水平方向第n个、竖直方向第m个区域。The method according to claim 10, wherein said first area A m,n and said second area A m-2,n are spaced apart from each other by a third area A m-1,n in a horizontal direction; or The first region A m,n and the second region A m,n-2 are separated from each other in the vertical direction by a third region A m,n-1 ; wherein m and n are both greater than or equal to 2 a positive integer, and n is less than or equal to N, m is less than or equal to M; the first region A m,n represents the nth, vertical direction in the horizontal direction starting from the preset starting position in the N×M regions m areas.
  12. 根据权利要求11所述的方法,其中,所述判断所述第一区域和所述第二区域的灰度平均值是否大于第一阈值,包括:The method according to claim 11, wherein the determining whether the gray level average of the first area and the second area is greater than a first threshold comprises:
    判断所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值是否大于第一阈值,和/或,判断所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值是否大于第一阈值,获得第一判断结果;Determining whether a difference between a gray average value of the first area A m,n and the second area A m-2,n is greater than a first threshold, and/or determining the first area A m,n And whether a difference between the gray average values of the second regions A m, n-2 is greater than a first threshold, obtaining a first determination result;
    当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,或者所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,确定所述第一区域和所述第二区域的灰度平均值的差值大于第一阈值;When the first determination result is that the difference between the gray average values of the first area A m,n and the second area A m-2,n is greater than a first threshold, or the first area A m And determining, when n and the difference between the gray average values of the second regions A m, n-2 are greater than the first threshold, determining that the difference between the gray average values of the first region and the second region is greater than a threshold
    相应的,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,或所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态。Correspondingly, determining that the first area corresponds to an abnormal state of the first sub-area of the image acquisition unit of the mobile terminal, or that the second area is corresponding to the second sub-area of the image acquisition unit of the mobile terminal Abnormal state.
  13. 根据权利要求12所述的方法,其中,当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值大于第一阈值,并且所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差值大于第一阈值时,所述方法还包括:确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态。The method according to claim 12, wherein when said first determination result is that the difference between the gray average values of said first area A m,n and said second area A m-2,n is greater than a threshold, and when the difference between the gray average values of the first area A m,n and the second area A m,n-2 is greater than the first threshold, the method further includes: determining the first The first sub-area of the image acquisition unit corresponding to the mobile terminal is in an abnormal state.
  14. 根据权利要求12所述的方法,其中,当所述第一判断结果为所述第一区域Am,n和所述第二区域Am-2,n的灰度平均值的差值不大于所述第一阈值,以及,所述第一区域Am,n和所述第二区域Am,n-2的灰度平均值的差 值不大于所述第一阈值时,所述方法还包括:确定所述第一区域和所述第二区域的灰度平均值的差值不大于第一阈值;The method according to claim 12, wherein when said first judgment result is that the difference between the gray average values of said first area A m,n and said second area A m-2,n is not greater than The first threshold, and when the difference between the gray average values of the first area Am,n and the second area Am,n-2 is not greater than the first threshold, the method further The method includes: determining that a difference between grayscale average values of the first region and the second region is not greater than a first threshold;
    相应的,确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于正常状态。Correspondingly, determining that the first area corresponds to a first sub-area of the image acquisition unit of the mobile terminal is in a normal state.
  15. 根据权利要求10至15任一项所述的方法,其中,所述确定所述第一区域对应于所述移动终端的图像采集单元的第一子区域处于异常状态,包括:The method according to any one of claims 10 to 15, wherein the determining that the first area corresponds to an abnormal state of the first sub-area of the image acquisition unit of the mobile terminal comprises:
    确定所述第一区域在所述第一图像中的第一位置,基于所述第一位置确定所述第一区域和所述第一图像的第一相对位置关系;在所述图像采集单元中获得与所述第一相对位置关系相对应的第一子区域,确定所述图像采集单元的第一子区域处于异常状态;Determining a first location of the first region in the first image, determining a first relative positional relationship of the first region and the first image based on the first location; in the image acquisition unit Obtaining a first sub-region corresponding to the first relative positional relationship, determining that the first sub-region of the image acquisition unit is in an abnormal state;
  16. 根据权利要求10至15任一项所述的方法,其中,所述确定所述第二区域对应于所述移动终端的图像采集单元的第二子区域处于异常状态,包括:The method according to any one of claims 10 to 15, wherein the determining that the second region corresponds to an abnormal state of the second sub-region of the image acquisition unit of the mobile terminal comprises:
    确定所述第二区域在所述第一图像中的第二位置,基于所述第二位置确定所述第二区域和所述第一图像的第二相对位置关系;在所述图像采集单元中获得与所述第二相对位置关系相对应的第二子区域,确定所述图像采集单元的第二子区域处于异常状态。Determining a second position of the second region in the first image, determining a second relative positional relationship of the second region and the first image based on the second position; in the image acquisition unit Obtaining a second sub-region corresponding to the second relative positional relationship, determining that the second sub-region of the image acquisition unit is in an abnormal state.
  17. 根据权利要求10所述的方法,其中,所述获得每个区域的灰度平均值,包括:识别每个区域的红绿蓝RGB值;基于所述每个区域的RGB值按照预设算法进行计算处理获得所述每个区域的灰度平均值;其中,所述预设算法包括以下算法的其中之一:浮点算法、整数算法。The method according to claim 10, wherein said obtaining a grayscale average value of each region comprises: identifying red, green and blue RGB values of each region; and performing RGB values based on said each region according to a preset algorithm The calculation process obtains a gray average value of each of the regions; wherein the preset algorithm includes one of the following algorithms: a floating point algorithm, an integer algorithm.
  18. 根据权利要求10所述的方法,其中,所述第一图像对应的图像采集区域亮度均匀且亮度参数满足的预设阈值满足1750勒克斯Lux~1850Lux。 The method according to claim 10, wherein the image acquisition area corresponding to the first image has uniform brightness and the preset threshold value satisfying the brightness parameter satisfies 1750 lux Lux ~ 1850 Lux.
  19. 根据权利要求10所述的方法,其中,所述N和M依据所述移动终端的屏幕分辨率、屏幕像素密度、图像采集单元像素参数中的至少一种参数预先配置。The method of claim 10, wherein the N and M are pre-configured according to at least one of a screen resolution, a screen pixel density, and an image acquisition unit pixel parameter of the mobile terminal.
  20. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求11至19任一项所述的信息处理方法。 A computer storage medium having computer executable instructions stored therein, the computer executable instructions being configured to perform the information processing method of any one of claims 11 to 19.
PCT/CN2016/101594 2015-11-24 2016-10-09 Mobile terminal, information processing method, and computer storage medium WO2017088594A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510827088.9A CN105491372A (en) 2015-11-24 2015-11-24 Mobile terminal and information processing method
CN201510827088.9 2015-11-24

Publications (1)

Publication Number Publication Date
WO2017088594A1 true WO2017088594A1 (en) 2017-06-01

Family

ID=55678046

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101594 WO2017088594A1 (en) 2015-11-24 2016-10-09 Mobile terminal, information processing method, and computer storage medium

Country Status (2)

Country Link
CN (1) CN105491372A (en)
WO (1) WO2017088594A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109008841A (en) * 2017-06-09 2018-12-18 河北卓达建材研究院有限公司 A kind of metope repair robot by different level

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491372A (en) * 2015-11-24 2016-04-13 努比亚技术有限公司 Mobile terminal and information processing method
CN107909569B (en) * 2017-11-10 2020-12-25 Oppo广东移动通信有限公司 Screen-patterned detection method, screen-patterned detection device and electronic equipment
CN110889801B (en) * 2018-08-16 2023-10-20 九阳股份有限公司 Camera decontamination optimization method of smoke kitchen system and smoke kitchen system
CN111669574A (en) * 2020-06-19 2020-09-15 新华三大数据技术有限公司 Video playing quality detection method and device
CN112710250B (en) * 2020-11-23 2022-12-23 武汉光谷卓越科技股份有限公司 Three-dimensional measurement method based on line structured light and sensor
CN113532801A (en) * 2021-06-24 2021-10-22 四川九洲电器集团有限责任公司 High/multispectral camera dead pixel detection method and system based on distribution quantile
CN113378797B (en) * 2021-07-14 2024-06-11 江苏邦融微电子有限公司 Water drop detection method of fingerprint acquisition head

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050063603A1 (en) * 2003-09-24 2005-03-24 Chao-Ming Wang Video data enhancement method
CN101212703A (en) * 2006-12-29 2008-07-02 华晶科技股份有限公司 Real-time bad image pixel detection method
CN102413354A (en) * 2011-10-05 2012-04-11 深圳市联德合微电子有限公司 Automatic optical detection method, device and system of mobile phone camera module
CN104093016A (en) * 2014-06-12 2014-10-08 华南理工大学 Camera module smudginess detection method and system
CN105491372A (en) * 2015-11-24 2016-04-13 努比亚技术有限公司 Mobile terminal and information processing method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179428A (en) * 2011-12-23 2013-06-26 鸿富锦精密工业(深圳)有限公司 System and method for testing camera module stains
CN104638204A (en) * 2013-11-12 2015-05-20 昆山国显光电有限公司 Quantitative repairing device and automatic image repairing method
CN104135660B (en) * 2014-08-14 2016-05-04 广东光阵光电科技有限公司 A kind of dirty detection method of camera module and detection system
CN104349161B (en) * 2014-09-17 2016-05-18 常熟实盈光学科技有限公司 The dirty decision method of camera module image
CN104539937B (en) * 2014-11-24 2017-03-29 歌尔科技有限公司 A kind of method and apparatus of camera module dust detection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050063603A1 (en) * 2003-09-24 2005-03-24 Chao-Ming Wang Video data enhancement method
CN101212703A (en) * 2006-12-29 2008-07-02 华晶科技股份有限公司 Real-time bad image pixel detection method
CN102413354A (en) * 2011-10-05 2012-04-11 深圳市联德合微电子有限公司 Automatic optical detection method, device and system of mobile phone camera module
CN104093016A (en) * 2014-06-12 2014-10-08 华南理工大学 Camera module smudginess detection method and system
CN105491372A (en) * 2015-11-24 2016-04-13 努比亚技术有限公司 Mobile terminal and information processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109008841A (en) * 2017-06-09 2018-12-18 河北卓达建材研究院有限公司 A kind of metope repair robot by different level

Also Published As

Publication number Publication date
CN105491372A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
WO2017088594A1 (en) Mobile terminal, information processing method, and computer storage medium
US8780258B2 (en) Mobile terminal and method for generating an out-of-focus image
CN106131450B (en) Image processing method and device and terminal
EP2843499B1 (en) Display device and method of controlling the same
WO2017067390A1 (en) Method and terminal for obtaining depth information of low-texture regions in image
WO2016169524A1 (en) Method and device for quickly adjusting screen brightness, mobile terminal and storage medium
WO2017050115A1 (en) Image synthesis method
WO2016180325A1 (en) Image processing method and device
WO2017206657A1 (en) Image processing method and device, mobile terminal, and computer storage medium
US20180011600A1 (en) Method and apparatus for preventing accidental touch operation on mobile terminals
WO2016169480A1 (en) Mobile terminal control method and device and computer storage medium
WO2018019122A1 (en) Focusing method, terminal, and computer storage medium
CN106713716B (en) Shooting control method and device for double cameras
WO2017088680A1 (en) Image processing apparatus and method
WO2018076938A1 (en) Method and device for processing image, and computer storage medium
WO2017071542A1 (en) Image processing method and apparatus
CN105704282A (en) Detection method and apparatus for camera
WO2017071475A1 (en) Image processing method, and terminal and storage medium
WO2017041714A1 (en) Method and device for acquiring rgb data
WO2018019128A1 (en) Method for processing night scene image and mobile terminal
WO2017045647A1 (en) Method and mobile terminal for processing image
CN106331499A (en) Focusing method and shooting equipment
WO2017088618A1 (en) Picture synthesis method and device
WO2018045961A1 (en) Image processing method, and terminal and storage medium
CN106534696A (en) Focusing apparatus and method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16867821

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16867821

Country of ref document: EP

Kind code of ref document: A1