WO2017096782A1 - 防止拍照遮挡的方法及装置 - Google Patents

防止拍照遮挡的方法及装置 Download PDF

Info

Publication number
WO2017096782A1
WO2017096782A1 PCT/CN2016/087490 CN2016087490W WO2017096782A1 WO 2017096782 A1 WO2017096782 A1 WO 2017096782A1 CN 2016087490 W CN2016087490 W CN 2016087490W WO 2017096782 A1 WO2017096782 A1 WO 2017096782A1
Authority
WO
WIPO (PCT)
Prior art keywords
preset
image feature
area
edge region
continuous
Prior art date
Application number
PCT/CN2016/087490
Other languages
English (en)
French (fr)
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 WO2017096782A1 publication Critical patent/WO2017096782A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/20Analysis of motion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/1347Preprocessing; Feature extraction
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B7/00Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00
    • G08B7/06Signalling systems according to more than one of groups G08B3/00 - G08B6/00; Personal calling systems according to more than one of groups G08B3/00 - G08B6/00 using electric transmission, e.g. involving audible and visible signalling through the use of sound and light sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30241Trajectory

Definitions

  • the present disclosure relates to communication technologies, and in particular, to a method and apparatus for preventing photo occlusion.
  • the camera function is built into the current smartphone, and users can take photos using the camera function in the phone.
  • the hand when a user takes a photo with a mobile phone, the hand may block the camera, and in some cases, the user cannot find that the camera is blocked in time, for example, when capturing, thereby affecting the shooting effect of the captured photo.
  • the present disclosure provides a method and apparatus for preventing photo occlusion.
  • a method for preventing photo occlusion including:
  • an image feature of an edge region in a picture captured by the camera includes at least an image color and an image area of consecutive identical image colors
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: by acquiring an image feature value of an edge region of a picture captured by a camera, and comparing the image feature value with a preset image feature condition, if matching, It is judged that the screen is blocked, so that the user is promptly reminded to adjust the operation posture, thereby ensuring that the effect of the shooting picture is not affected.
  • the determining whether the image feature of the edge region satisfies a preset image feature condition comprises:
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: determining whether the picture is occluded by determining whether the edge area includes a preset color value and whether the area formed by the preset color value reaches a preset area, thereby improving recognition.
  • the accuracy of the obstruction may include the following beneficial effects: determining whether the picture is occluded by determining whether the edge area includes a preset color value and whether the area formed by the preset color value reaches a preset area, thereby improving recognition. The accuracy of the obstruction.
  • the determining whether the image feature of the edge region meets a preset image feature condition further includes:
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: under the premise that the preset color value and the preset area range are met, the terminal further determines whether the picture of the edge area satisfies a preset light parameter, and if satisfied, considers that The picture is occluded, further improving the accuracy of identifying the occlusion.
  • the determining whether the image feature of the edge region satisfies a preset image feature condition further includes:
  • the terminal further determines whether the motion track of the edge region is consistent with the motion track of the terminal, if consistent with the preset color value and the preset area range, if consistent, The picture is considered to be occluded, thereby further improving the accuracy of identifying the occlusion.
  • the determining whether the image feature of the edge region satisfies a preset image feature condition further includes:
  • Determining whether the image feature of the edge region satisfies a preset image feature condition further includes:
  • the technical solution provided by the embodiment of the present disclosure may include the following effects: the preset color value and the preset area are met. Under the premise of the range, the terminal further determines the difference between the brightness value of the edge area and the brightness value of the rest of the picture. If the difference is too large, the picture is considered to be occluded, thereby further improving the accuracy of identifying the occlusion.
  • the determining whether the image feature of the edge region satisfies a preset image feature condition further includes:
  • the image feature of the edge area satisfies the preset image feature condition.
  • the terminal further determines whether the fingerprint content of the edge region includes the fingerprint feature, and if the image is included, the screen is considered to be It is occluded to further improve the accuracy of identifying the occlusion.
  • an apparatus for preventing photo occlusion including:
  • An acquiring module configured to acquire an image feature of an edge region in a picture captured by the camera; the image feature includes at least an image color and an image area of consecutive identical image colors;
  • a determining module configured to determine whether an image feature of the edge region satisfies a preset image feature condition
  • a determining module configured to: when the image feature of the edge region satisfies a preset image feature condition, determine that the image captured by the camera includes an occlusion and issue a prompt message.
  • the determining module includes:
  • a first determining unit configured to determine whether a preset color value exists in a pixel block color value of the edge region
  • a first acquiring unit configured to obtain, when the preset color value exists in a pixel block color value of the edge region, obtain a continuous pixel formed by a pixel block whose color value is the preset color value in the edge region Area area
  • a second determining unit configured to determine whether the area of the continuous area meets a preset area range
  • a first determining unit configured to determine that an image feature of the edge region satisfies the preset image feature condition when the continuous region area satisfies the preset area range.
  • the determining module further includes:
  • a third determining unit configured to determine, when the continuous area of the area meets the preset area, whether an edge of the continuous area meets a preset optical parameter
  • a second determining unit configured to determine that an image feature of the edge region satisfies the preset image feature condition when an edge of the continuous region meets the preset light parameter.
  • the determining module further includes:
  • a fourth determining unit configured to determine the continuous when the continuous area of the area meets the preset area Whether the motion trajectory of the region is consistent with the motion trajectory of the terminal;
  • a third determining unit configured to determine that an image feature of the edge region satisfies the preset image feature condition when a motion trajectory of the continuous region is consistent with a motion trajectory of the terminal.
  • the determining module further includes:
  • a fifth determining unit configured to determine, when the continuous area of the area meets the preset area range, a brightness value of the continuous area and a picture other than the continuous area in the picture captured by the camera Whether the difference of the brightness values of the area is greater than a preset value
  • a fourth determining unit configured to determine that an image feature of the edge region satisfies the preset image feature condition when a difference of the brightness value is greater than the preset value.
  • the determining module further includes:
  • a sixth determining unit configured to determine, when the continuous area area meets the preset area range, whether the screen content of the continuous area includes a fingerprint feature
  • a fifth determining unit configured to determine that an image feature of the edge region satisfies the preset image feature condition when the screen content of the continuous region includes the fingerprint feature.
  • an apparatus for preventing photo occlusion comprising:
  • a memory for storing the processor executable instructions
  • processor is configured to:
  • an image feature of an edge region in a picture captured by the camera includes at least an image color and an image area of consecutive identical image colors
  • FIG. 1 is a flowchart of a method for preventing photo occlusion according to an exemplary embodiment
  • FIG. 2 is a flow chart showing a method of preventing photo occlusion according to another exemplary embodiment
  • FIG. 3 is a flowchart illustrating a method of preventing photo occlusion according to still another exemplary embodiment
  • FIG. 4 is a flowchart of a method for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 5 is a flowchart of a method for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 6 is a flowchart of a method for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 7 is a block diagram of a device for preventing photo occlusion according to an exemplary embodiment
  • FIG. 8 is a block diagram of an apparatus for preventing photo occlusion according to another exemplary embodiment
  • FIG. 9 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment.
  • FIG. 10 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 11 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 12 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment
  • FIG. 13 is a block diagram showing an entity of a terminal according to an exemplary embodiment
  • FIG. 14 is a block diagram of an apparatus 800 for preventing photo occlusion, according to an exemplary embodiment.
  • FIG. 1 is a flowchart of a method for preventing photo occlusion according to an exemplary embodiment. As shown in FIG. 1 , the method is used in a terminal, and includes the following steps:
  • step S101 an image feature of an edge region in a picture captured by a camera is acquired, wherein the image feature includes at least an image color and an image area of consecutive identical image colors.
  • the edge area refers to an area formed by radiating a preset distance to the inside of the screen by a boundary line of the picture captured by the camera.
  • the preset distance may be set to be different.
  • the lower edge of the picture captured by the camera is more easily occluded, so the preset distance at the lower edge can be set relatively large.
  • it can sense the angle of the mobile phone according to the gravity of the user, and judge the lower edge according to the angle of the mobile phone. In the horizontal mode, it can be determined by gravity sensing whether the left side or the right side of the terminal is at the lower edge.
  • the pictures formed in the picture captured by the camera have some common features. For example, the colors of these pictures conform to a specific color, and these pictures conforming to a specific color form a continuous Area.
  • step S102 it is determined whether the image feature of the edge region satisfies a preset image feature condition.
  • the picture formed by the hand occlusion has a fixed feature, when the camera captures the picture, it can be judged whether the picture of the edge area matches the preset image feature condition with a certain fixed feature.
  • step S103 when the image feature of the edge region satisfies a preset image feature condition, it is determined that the image captured by the camera includes an occlusion and a prompt message is issued.
  • the terminal may promptly send a prompt message to the user, for example, popping up a prompt message or prompting a sound, so that the user adjusts the operation posture in time. To ensure the effect of the shooting picture.
  • the image feature value of the edge region of the screen captured by the camera is obtained, and the image feature value is compared with the preset image feature condition. If the image is matched, the image is occluded, thereby promptly reminding the user. Adjust the operating posture to ensure that the effect of the shot is not affected.
  • FIG. 2 is a flowchart of a method for preventing photo occlusion according to another exemplary embodiment. As shown in FIG. 2, the foregoing step S102 specifically includes:
  • step S201 it is determined whether a preset color value exists in the pixel block color value of the edge region.
  • the pictures formed in the picture captured by the camera have some common features, for example, the colors of these pictures conform to a specific color, and these conform to a specific color.
  • the picture will form a continuous area.
  • the terminal first determines whether there is a preset color value in the pixel block color value of the edge region, wherein the preset color value may be a color value corresponding to pink or a color value corresponding to gray.
  • step S202 when there is a preset color value in the pixel block color value of the edge region, a continuous region area formed by the pixel block whose color value is the preset color value in the edge region is obtained.
  • the continuous area is formed by splicing adjacent pixel blocks, and the color values of the pixel blocks are preset color values. That is, the pixel blocks in the continuous region that cannot be doped with other color values.
  • step S203 it is determined whether the area of the continuous area satisfies the preset area range.
  • the continuous area is the area formed by the accumulation of adjacent pixel blocks that match the preset color value. When the formed area reaches the preset area, the picture can be considered to be occluded.
  • the preset area range may be set to be different, for example, for the lower edge, it may be set larger than the preset area of the upper edge.
  • step S204 when the continuous area of the area satisfies the preset area range, it is determined that the image feature of the edge area satisfies the preset image feature condition.
  • the area formed by determining whether the edge area includes the preset color value and the preset color value is Whether the preset area is reached to determine whether the picture is occluded, thereby improving the accuracy of identifying the occlusion.
  • FIG. 3 is a flowchart of a method for preventing photo occlusion according to another exemplary embodiment. As shown in FIG. 3, based on the judging method shown in FIG. 2, the following judging method may also be added:
  • step S301 when the continuous area of the area satisfies the preset area range, it is determined whether the edge of the continuous area conforms to the preset light parameter.
  • the edge of the formed occlusion sub-picture conforms to the diffraction characteristic of the light, that is, it conforms to the specific optical parameter, and in this step, it is determined whether the edge of the continuous area conforms to the preset optical parameter.
  • step S302 when the edge of the continuous region conforms to the preset light parameter, it is determined that the image feature of the edge region satisfies the preset image feature condition.
  • the terminal further determines whether the image of the edge region satisfies the preset optical parameter on the premise of the preset color value and the preset area range. If the image is met, the image is considered to be blocked, thereby further improving the recognition obstruction. Accuracy.
  • FIG. 4 is a flowchart of a method for preventing photo occlusion according to another exemplary embodiment. As shown in FIG. 4, based on the judging method shown in FIG. 2, the following judging method may also be added:
  • step S401 when the continuous area of the area satisfies the preset area range, it is determined whether the motion trajectory of the continuous area is consistent with the motion trajectory of the terminal.
  • the captured picture When the user takes a picture, the captured picture is either in a stationary state, or it has a motion track different from the terminal, and if the motion track of the edge area in the captured picture is consistent with the terminal, the edge area can be considered as being The user's hand is occluded.
  • the acquisition method or the like can be used for acquisition.
  • step S402 when the motion trajectory of the continuous region coincides with the motion trajectory of the terminal, it is determined that the image feature of the edge region satisfies the preset image feature condition.
  • the terminal further determines whether the motion track of the edge region is consistent with the motion track of the terminal, if the frame is consistent with the motion track of the terminal, and if the frame is occluded, the recognition block is further improved. The accuracy of the object.
  • FIG. 5 is a flowchart of a method for preventing photo occlusion according to another exemplary embodiment. As shown in FIG. 5, based on the judging method shown in FIG. 2, the following judging method may also be added:
  • step S501 when the continuous area of the area satisfies the preset area range, it is determined whether the difference between the brightness value of the continuous area and the brightness value of the picture area other than the continuous area in the picture captured by the camera is greater than a preset. value.
  • the picture captured by the camera will have a uniform or a certain range of brightness, and if the picture is occluded, the brightness of the occluded part will be significantly different from the picture being captured.
  • it is determined whether the continuous region is occluded by detecting the difference between the luminance value of the continuous region and the luminance value of the remaining portion of the picture captured by the camera.
  • step S502 when the difference value of the brightness values is greater than the preset value, it is determined that the image features of the edge regions satisfy the preset image feature conditions.
  • the preset value can be obtained based on experimental or empirical data.
  • the terminal further determines the difference between the brightness value of the edge area and the brightness value of the rest of the picture. If the difference is too large, the picture is considered to be Occlusion to further improve the accuracy of identifying obstructions.
  • FIG. 6 is a flowchart of a method for preventing photo occlusion according to another exemplary embodiment. As shown in FIG. 6, on the basis of the judging method shown in FIG. 2, the following judging method may also be added:
  • step S601 when the continuous area of the area satisfies the preset area range, it is determined whether the screen content of the continuous area includes the fingerprint feature.
  • the continuous area is occluded by the user's hand, a picture conforming to the fingerprint feature appears, and by detecting whether the picture content includes the fingerprint feature, it can be determined whether the continuous area is occluded.
  • step S602 when the screen content of the continuous region includes the fingerprint feature, it is determined that the image feature of the edge region satisfies the preset image feature condition.
  • the terminal further determines whether the fingerprint content of the edge region includes the fingerprint feature on the premise that the preset color value and the preset area range are met, and if included, the screen is considered to be occluded, thereby further improving the recognition of the obstruction. Accuracy.
  • FIG. 7 is a block diagram of a device for preventing photo occlusion according to an exemplary embodiment.
  • the apparatus includes an acquisition module 701, a determination module 702, and a determination module 703.
  • An obtaining module 701 configured to acquire an image feature of an edge region in a picture captured by a camera, where the image feature An image area that includes at least the color of the image and the continuous color of the same image.
  • the determining module 702 is configured to determine whether the image feature of the edge region satisfies a preset image feature condition.
  • the determining module 703 is configured to determine that the image captured by the camera includes an occlusion when the image feature of the edge region satisfies the preset image feature condition, and issues a prompt message.
  • FIG. 8 is a block diagram of an apparatus for preventing photo occlusion according to another exemplary embodiment.
  • the determining module 702 includes: a first determining unit 7021 , a first obtaining unit 7022 , a second determining unit 7023 , and a first determining unit 7024 .
  • the first determining unit 7021 is configured to determine whether a preset color value exists in the pixel block color value of the edge region.
  • the first obtaining unit 7022 is configured to obtain, when the preset color value exists in the pixel block color value of the edge region, obtain a continuous region area formed by the pixel block whose color value is the preset color value in the edge region.
  • the second determining unit 7023 is configured to determine whether the area of the continuous area meets the preset area range.
  • the first determining unit 7024 is configured to determine that an image feature of the edge region satisfies a preset image feature condition when the continuous area of the area satisfies the preset area.
  • FIG. 9 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment.
  • the determining module 702 further includes: a third determining unit 7025 and a second determining unit 7026.
  • the third determining unit 7025 is configured to determine whether the edge of the continuous area meets the preset light parameter when the continuous area of the area satisfies the preset area.
  • the second determining unit 7026 is configured to determine that an image feature of the edge region satisfies a preset image feature condition when an edge of the continuous region conforms to the preset light parameter.
  • FIG. 10 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment.
  • the determining module 702 further includes: a fourth determining unit 7027 and a third determining unit 7028.
  • the fourth determining unit 7027 is configured to determine whether the motion track of the continuous area is consistent with the motion track of the terminal when the continuous area of the area satisfies the preset area.
  • the third determining unit 7028 is configured to determine that the image feature of the edge region satisfies a preset image feature condition when the motion track of the continuous region is consistent with the motion track of the terminal.
  • FIG. 11 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment.
  • the determining module 702 further includes: a fifth determining unit 7029 and a fourth determining unit 70210.
  • the fifth determining unit 7029 is configured to determine, when the continuous area of the area meets the preset area range, whether the difference between the brightness value of the continuous area and the brightness value of the picture area other than the continuous area in the picture captured by the camera is greater than default value.
  • the fourth determining unit 70210 is configured to determine that an image feature of the edge region satisfies a preset image feature condition when a difference value of the brightness value is greater than a preset value.
  • FIG. 12 is a block diagram of an apparatus for preventing photo occlusion according to still another exemplary embodiment.
  • the determining module 702 further includes: a sixth determining unit 70211 and a fifth determining unit 70212.
  • the sixth determining unit 70211 is configured to determine whether the screen content of the continuous area includes the fingerprint feature when the continuous area area satisfies the preset area range.
  • the fifth determining unit 70212 is configured to determine that an image feature of the edge region satisfies a preset image feature condition when the screen content of the continuous region includes the fingerprint feature.
  • FIG. 13 is a block diagram showing an entity of a terminal according to an exemplary embodiment. As shown in FIG. 13, the terminal includes: a memory 71 and a processor. 72.
  • the memory 71 is configured to store processor executable instructions.
  • the processor 72 is configured to:
  • an image feature of an edge region in a picture captured by the camera wherein the image feature includes at least an image color and an image area of consecutive identical image colors.
  • the image feature of the edge region satisfies the preset image feature condition, it is determined that the image captured by the camera includes the occlusion and issues a prompt message.
  • the processor 72 may be a central processing unit (English: Central Processing Unit, CPU for short), or may be other general-purpose processors, digital signal processors (English: Digital Signal Processor, Abbreviation: DSP), Application Specific Integrated Circuit (English: Application Specific Integrated Circuit, ASIC for short).
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the foregoing memory may be a read-only memory (English: read-only memory, abbreviation: ROM), a random access memory (English) :random access memory (abbreviation: RAM), flash memory, hard disk or solid state disk.
  • the SIM card is also called a user identification card, a smart card, and the digital mobile phone must be equipped with this card to be used.
  • On the computer chip The information of the digital mobile phone customer, the encrypted key, and the user's phone book are stored.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • FIG. 14 is a block diagram of an apparatus 800 for preventing photo occlusion, according to an exemplary embodiment.
  • device 800 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • device 800 can include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, And a communication component 816.
  • Processing component 802 typically controls the overall operation of device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 802 can include one or more processors 820 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 802 can include one or more modules to facilitate interaction between component 802 and other components.
  • processing component 802 can include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
  • Memory 804 is configured to store various types of data to support operation at device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Electrically erasable programmable read only memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 806 provides power to various components of device 800.
  • Power component 806 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 800.
  • the multimedia component 808 includes a screen between the device 800 and the user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 808 includes a front camera and/or a rear camera. When the device 800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 810 is configured to output and/or input an audio signal.
  • the audio component 810 includes a microphone (MIC) that is configured to receive an external audio signal when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 804 or transmitted via communication component 816.
  • the audio component 810 also includes a speaker for outputting an audio signal.
  • the I/O interface 812 provides an interface between the processing component 802 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 814 includes one or more sensors for providing device 800 with a status assessment of various aspects.
  • sensor assembly 814 can detect an open/closed state of device 800, a relative positioning of components, such as the display and keypad of device 800, and sensor component 814 can also detect a change in position of one component of device 800 or device 800. The presence or absence of user contact with device 800, device 800 orientation or acceleration/deceleration, and temperature variation of device 800.
  • Sensor assembly 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 814 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 816 is configured to facilitate wired or wireless communication between device 800 and other devices.
  • the device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 816 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 816 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 804 comprising instructions executable by processor 820 of apparatus 800 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of preventing photo occlusion, the method comprising:
  • an image feature of an edge region in a picture captured by the camera wherein the image feature includes at least an image color and an image area of consecutive identical image colors.
  • the image feature of the edge region satisfies the preset image feature condition, it is determined that the image captured by the camera includes the occlusion and issues a prompt message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Telephone Function (AREA)

Abstract

本公开是关于一种防止拍照遮挡的方法及装置,该方法包括:获取摄像头捕获的画面中边缘区域的图像特征,该图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;判断边缘区域的图像特征是否满足预设的图像特征条件;当边缘区域的图像特征满足预设的图像特征条件时,确定摄像头捕获的画面中包含了遮挡物,并发出提示消息。该方法通过获取摄像头所捕捉的画面的边缘区域的图像特征值,并将图像特征值与预设的图像特征条件进行比较,如果匹配,则可以判断出画面被遮挡,从而及时提醒用户调整操作姿势,从而保证拍摄画面的效果不受影响。

Description

防止拍照遮挡的方法及装置
相关申请的交叉引用
本申请基于申请号为201510897800.2、申请日为2015年12月8日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及通信技术,尤其涉及一种防止拍照遮挡的方法及装置。
背景技术
目前的智能手机中都内置有相机功能,用户可以使用手机中的相机功能拍摄照片。
相关技术中,当用户使用手机拍摄照片时,手部可能会遮挡住摄像头,而有些情况下用户并不能及时的发现摄像头被遮挡,例如抓拍时,从而影响所拍摄的照片的拍摄效果。
发明内容
为克服相关技术中存在的问题,本公开提供一种防止拍照遮挡的方法及装置。
根据本公开实施例的第一方面,提供一种防止拍照遮挡的方法,包括:
获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
判断所述边缘区域的图像特征是否满足预设的图像特征条件;
当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
本公开的实施例提供的技术方案可以包括以下有益效果:通过获取摄像头所捕捉的画面的边缘区域的图像特征值,并将图像特征值与预设的图像特征条件进行比较,如果匹配,则可以判断出画面被遮挡,从而及时提醒用户调整操作姿势,从而保证拍摄画面的效果不受影响。
一实施例中,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,包括:
判断所述边缘区域的像素块颜色值中是否存在预设颜色值;
当所述边缘区域的像素块颜色值中存在所述预设颜色值时,获得所述边缘区域中由颜色值为所述预设颜色值的像素块形成的连续的区域面积;
判断所述连续的区域面积是否满足预设面积范围;
当所述连续的区域面积满足所述预设面积范围时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本公开的实施例提供的技术方案可以包括以下有益效果:通过判断边缘区域中是否包含预设颜色值以及预设颜色值所形成的面积是否达到预设面积来判断画面是否被遮挡,从而提高识别遮挡物的准确度。
另一实施例中,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的边缘是否符合预设光参数;
当所述连续的区域的边缘符合所述预设光参数时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本公开的实施例提供的技术方案可以包括以下有益效果:在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的画面是否满足预设的光参数,如果满足,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
又一实施例中,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的运动轨迹与所述终端的运动轨迹是否一致;
当所述连续的区域的运动轨迹与所述终端的运动轨迹一致时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本公开的实施例提供的技术方案可以包括以下有益效果:在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的运动轨迹是否与终端的运动轨迹一致,如果一致,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
又一实施例中,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的亮度值与所述摄像头捕获的画面中除所述连续的区域之外的画面区域的亮度值的差值是否大于预设值;
当所述亮度值的差值大于所述预设值时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本公开的实施例提供的技术方案可以包括以下有益效果:在符合预设颜色值和预设面积 范围的前提下,终端进一步判断边缘区域的亮度值与画面中其余部分的亮度值的差值,如果差值过大,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
又一实施例中,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的画面内容是否包括指纹特征;
当所述连续的区域的画面内容包括所述指纹特征时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本公开的实施例提供的技术方案可以包括以下有益效果:在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的画面内容中是否包含指纹特征,如果包含,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
根据本公开实施例的第二方面,提供一种防止拍照遮挡的装置,包括:
获取模块,用于获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
判断模块,用于判断所述边缘区域的图像特征是否满足预设的图像特征条件;
确定模块,用于当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
一实施例中,所述判断模块,包括:
第一判断单元,用于判断所述边缘区域的像素块颜色值中是否存在预设颜色值;
第一获取单元,用于当所述边缘区域的像素块颜色值中存在所述预设颜色值时,获得所述边缘区域中由颜色值为所述预设颜色值的像素块形成的连续的区域面积;
第二判断单元,用于判断所述连续的区域面积是否满足预设面积范围;
第一确定单元,用于当所述连续的区域面积满足所述预设面积范围时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
另一实施例中,所述判断模块,还包括:
第三判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的边缘是否符合预设光参数;
第二确定单元,用于当所述连续的区域的边缘符合所述预设光参数时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
又一实施例中,所述判断模块,还包括:
第四判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的 区域的运动轨迹与所述终端的运动轨迹是否一致;
第三确定单元,用于当所述连续的区域的运动轨迹与所述终端的运动轨迹一致时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
又一实施例中,所述判断模块,还包括:
第五判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的亮度值与所述摄像头捕获的画面中除所述连续的区域之外的画面区域的亮度值的差值是否大于预设值;
第四确定单元,用于当所述亮度值的差值大于所述预设值时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
又一实施例中,所述判断模块,还包括:
第六判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的画面内容是否包括指纹特征;
第五确定单元,用于当所述连续的区域的画面内容包括所述指纹特征时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
根据本公开实施例的第三方面,提供一种防止拍照遮挡的装置,包括:
处理器;
用于存储所述处理器可执行指令的存储器;
其中,所述处理器被配置为:
获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
判断所述边缘区域的图像特征是否满足预设的图像特征条件;
当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。
图1是根据一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图2是根据另一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图3是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图4是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图5是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图6是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图;
图7是根据一示例性实施例示出的一种防止拍照遮挡的装置框图;
图8是根据另一示例性实施例示出的一种防止拍照遮挡的装置框图;
图9是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图;
图10是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图;
图11是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图;
图12是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图;
图13是根据一示例性实施例示出的一种终端的实体的框图;
图14是根据一示例性实施例示出的一种防止拍照遮挡的装置800的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图1所示,该方法用于终端中,包括以下步骤:
在步骤S101中,获取摄像头捕获的画面中边缘区域的图像特征,其中,该图像特征至少包括图像色彩及连续的相同图像色彩的图像面积。
其中,边缘区域是指以摄像头捕获的画面的边界线为界向画面内部辐射预设距离所形成的区域,对于不同的边缘,预设距离可以设置为不同。例如,一般情况下,摄像头所捕获的画面的下边缘更容易被遮挡,因此,下边缘处的预设距离就可以设置的相对较大。而判断下边缘时可以根据用户的重力感应,感应出手机所处的角度,根据手机所处的角度来判断下边缘。如果是横拍模式,则可以通过重力感应判断出是终端的左侧还是右侧处于下边缘。
当用户的手部遮挡住摄像头时,在摄像头所捕捉的画面中所形成的画面具有一些共同的特征,例如,这些画面的颜色都符合特定的颜色,并且这些符合特定颜色的画面会形成一个连续的区域。
在步骤S102中,判断上述边缘区域的图像特征是否满足预设的图像特征条件。
由于手部遮挡所形成的画面具有固定的特点,因此,当摄像头捕获到画面时,可以判断边缘区域的画面是否与具有一定固定特点的预设图像特征条件相匹配。
在步骤S103中,当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
如果边缘区域的画面符合预设图像特征条件时,则可以确定出画面被遮挡,则终端会及时地向用户发出提示信息,例如,弹出提示消息,或者提示声音,以使用户及时调整操作姿势,以保证拍摄画面的效果。
本实施例中,通过获取摄像头所捕捉的画面的边缘区域的图像特征值,并将图像特征值与预设的图像特征条件进行比较,如果匹配,则可以判断出画面被遮挡,从而及时提醒用户调整操作姿势,从而保证拍摄画面的效果不受影响。
图2是根据另一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图2所示,上述步骤S102具体包括:
在步骤S201中,判断边缘区域的像素块颜色值中是否存在预设颜色值。
如前所述,如果当用户的手部遮挡住摄像头时,在摄像头所捕捉的画面中所形成的画面具有一些共同的特征,例如,这些画面的颜色都符合特定的颜色,并且这些符合特定颜色的画面会形成一个连续的区域。
本步骤中,终端会首先判断边缘区域的像素块颜色值中是否存在预设颜色值,其中,预设颜色值可以为粉色对应的颜色值或灰色对应的颜色值。
在步骤S202中,当边缘区域的像素块颜色值中存在预设颜色值时,获得边缘区域中由颜色值为预设颜色值的像素块形成的连续的区域面积。
该连续区域是由相邻像素块拼接形成的,且这些像素块的颜色值为预设颜色值。也即,该连续区域中不能掺杂有其它颜色值的像素块。
在步骤S203中,判断连续的区域面积是否满足预设面积范围。
连续的区域面积即统计符合预设颜色值的相邻像素块累加起来所形成的面积,当所形成的面积达到预设的面积时,则可以认为画面被遮挡。
其中,对于不同边缘,预设面积范围可以设置为不同,例如对于下边缘,其相比于上边缘的预设面积可以设置的大一些。
在步骤S204中,当所述连续的区域面积满足所述预设面积范围时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
本实施例中,通过判断边缘区域中是否包含预设颜色值以及预设颜色值所形成的面积是 否达到预设面积来判断画面是否被遮挡,从而提高识别遮挡物的准确度。
图3是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图3所示,在图2所示的判断方法的基础上,还可以增加如下判断方法:
在步骤S301中,当连续的区域面积满足预设面积范围时,判断连续的区域的边缘是否符合预设光参数。
如果画面被用户的手部遮挡,则所形成的遮挡子画面的边缘符合光的衍射特性,即符合特定的光参数,本步骤中则判断连续的区域的边缘是否符合预设的光参数。
在步骤S302中,当连续的区域的边缘符合预设光参数时,确定边缘区域的图像特征满足预设的图像特征条件。
本实施例中,在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的画面是否满足预设的光参数,如果满足,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
图4是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图4所示,在图2所示的判断方法的基础上,还可以增加如下判断方法:
在步骤S401中,当连续的区域面积满足预设面积范围时,判断连续的区域的运动轨迹与终端的运动轨迹是否一致。
当用户拍摄画面时,被拍摄的画面或者处于静止状态,或者,其具有区别于终端的运动轨迹,而如果被拍摄画面中的边缘区域的运动轨迹与终端一致,则可以认为这个边缘区域为被用户的手部遮挡。
在检测连续的区域的运动轨迹是否与终端的运动轨迹一致时,可以使用定位方法等进行获取。
在步骤S402中,当连续的区域的运动轨迹与终端的运动轨迹一致时,确定边缘区域的图像特征满足预设的图像特征条件。
当连续的区域的运动轨迹与终端的运动轨迹一致,也即连续区域随着终端的移动而移动,则可以确定出这个连续的区域被遮挡。
本实施例中,在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的运动轨迹是否与终端的运动轨迹一致,如果一致,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
图5是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图5所示,在图2所示的判断方法的基础上,还可以增加如下判断方法:
在步骤S501中,当连续的区域面积满足预设面积范围时,判断连续的区域的亮度值与摄像头捕获的画面中除该连续的区域之外的画面区域的亮度值的差值是否大于预设值。
当用户拍摄画面时,摄像头所捕捉的画面都会具有统一或者处于一定相近范围的亮度,而如果画面被遮挡,则被遮挡部分的亮度会明显区别于正在捕捉的画面。本步骤中,通过检测连续的区域的亮度值与摄像头所捕捉的画面中的其余部分的亮度值的差值,来判断连续的区域是否被遮挡。
在步骤S502中,当亮度值的差值大于预设值时,确定边缘区域的图像特征满足预设的图像特征条件。
其中,预设值可以根据实验或经验数据获得。
当亮度的差值大于预设值时,则可以确定出图像被遮挡。
本实施例中,在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的亮度值与画面中其余部分的亮度值的差值,如果差值过大,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
图6是根据又一示例性实施例示出的一种防止拍照遮挡的方法的流程图,如图6所示,在图2所示的判断方法的基础上,还可以增加如下判断方法:
在步骤S601中,当连续的区域面积满足预设面积范围时,判断连续的区域的画面内容是否包括指纹特征。
如果连续的区域被用户的手部遮挡,则会出现符合指纹特征的画面,通过检测画面内容是否包括指纹特征,可以确定出连续的区域是否被遮挡。
在步骤S602中,当连续的区域的画面内容包括指纹特征时,确定边缘区域的图像特征满足预设的图像特征条件。
本实施例中,在符合预设颜色值和预设面积范围的前提下,终端进一步判断边缘区域的画面内容中是否包含指纹特征,如果包含,则认为画面被遮挡,从而进一步提高识别遮挡物的准确度。
图7是根据一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图7,该装置包括获取模块701、判断模块702和确定模块703。
获取模块701,用于获取摄像头捕获的画面中边缘区域的图像特征,其中,该图像特征 至少包括图像色彩及连续的相同图像色彩的图像面积。
判断模块702,用于判断边缘区域的图像特征是否满足预设的图像特征条件。
确定模块703,用于当边缘区域的图像特征满足预设的图像特征条件时,确定摄像头捕获的画面中包含了遮挡物,并发出提示消息。
图8是根据另一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图8,判断模块702包括:第一判断单元7021、第一获取单元7022、第二判断单元7023以及第一确定单元7024。
第一判断单元7021,用于判断边缘区域的像素块颜色值中是否存在预设颜色值。
第一获取单元7022,用于当边缘区域的像素块颜色值中存在预设颜色值时,获得边缘区域中由颜色值为预设颜色值的像素块形成的连续的区域面积。
第二判断单元7023,用于判断连续的区域面积是否满足预设面积范围。
第一确定单元7024,用于当连续的区域面积满足预设面积范围时,确定边缘区域的图像特征满足预设的图像特征条件。
图9是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图9,判断模块702还包括:第三判断单元7025、第二确定单元7026。
第三判断单元7025,用于当连续的区域面积满足预设面积范围时,判断连续的区域的边缘是否符合预设光参数。
第二确定单元7026,用于当连续的区域的边缘符合预设光参数时,确定边缘区域的图像特征满足预设的图像特征条件。
图10是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图10,判断模块702还包括:第四判断单元7027、第三确定单元7028。
第四判断单元7027,用于当连续的区域面积满足预设面积范围时,判断连续的区域的运动轨迹与终端的运动轨迹是否一致。
第三确定单元7028,用于当连续的区域的运动轨迹与终端的运动轨迹一致时,确定边缘区域的图像特征满足预设的图像特征条件。
图11是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图11,判断模块702还包括:第五判断单元7029、第四确定单元70210。
第五判断单元7029,用于当连续的区域面积满足预设面积范围时,判断连续的区域的亮度值与摄像头捕获的画面中除连续的区域之外的画面区域的亮度值的差值是否大于预设值。
第四确定单元70210,用于当亮度值的差值大于预设值时,确定边缘区域的图像特征满足预设的图像特征条件。
图12是根据又一示例性实施例示出的一种防止拍照遮挡的装置框图。参照图12,判断模块702还包括:第六判断单元70211、第五确定单元70212。
第六判断单元70211,用于当连续的区域面积满足预设面积范围时,判断连续的区域的画面内容是否包括指纹特征。
第五确定单元70212,用于当连续的区域的画面内容包括指纹特征时,确定边缘区域的图像特征满足预设的图像特征条件。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
以上描述了防止拍照遮挡的装置的内部功能模块和结构示意,图13是根据一示例性实施例示出的一种终端的实体的框图,如图13所示,该终端包括:存储器71和处理器72。
存储器71,用于存储处理器可执行指令。
处理器72,用于:
获取摄像头捕获的画面中边缘区域的图像特征,其中,该图像特征至少包括图像色彩及连续的相同图像色彩的图像面积。
判断边缘区域的图像特征是否满足预设的图像特征条件。
当边缘区域的图像特征满足预设的图像特征条件时,确定摄像头捕获的画面中包含了遮挡物,并发出提示消息。
在上述终端的实施例中,应理解,处理器72可以是中央处理单元(英文:Central Processing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:Digital Signal Processor,简称:DSP)、专用集成电路(英文:Application Specific Integrated Circuit,简称:ASIC)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。SIM卡也称为用户身份识别卡、智能卡,数字移动电话机必须装上此卡方能使用。即在电脑芯片上 存储了数字移动电话客户的信息,加密的密钥以及用户的电话簿等内容。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。
图14是根据一示例性实施例示出的一种防止拍照遮挡的装置800的框图。例如,装置800可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图14,装置800可以包括以下一个或多个组件:处理组件802,存储器804,电力组件806,多媒体组件808,音频组件810,输入/输出(I/O)的接口812,传感器组件814,以及通信组件816。
处理组件802通常控制装置800的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件802可以包括一个或多个处理器820来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件802可以包括一个或多个模块,便于处理组件802和其他组件之间的交互。例如,处理组件802可以包括多媒体模块,以方便多媒体组件808和处理组件802之间的交互。
存储器804被配置为存储各种类型的数据以支持在设备800的操作。这些数据的示例包括用于在装置800上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器804可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件806为装置800的各种组件提供电力。电力组件806可以包括电源管理系统,一个或多个电源,及其他与为装置800生成、管理和分配电力相关联的组件。
多媒体组件808包括在所述装置800和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件808包括一个前置摄像头和/或后置摄像头。当设备800处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件810被配置为输出和/或输入音频信号。例如,音频组件810包括一个麦克风(MIC),当装置800处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器804或经由通信组件816发送。在一些实施例中,音频组件810还包括一个扬声器,用于输出音频信号。
I/O接口812为处理组件802和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件814包括一个或多个传感器,用于为装置800提供各个方面的状态评估。例如,传感器组件814可以检测到设备800的打开/关闭状态,组件的相对定位,例如所述组件为装置800的显示器和小键盘,传感器组件814还可以检测装置800或装置800一个组件的位置改变,用户与装置800接触的存在或不存在,装置800方位或加速/减速和装置800的温度变化。传感器组件814可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件814还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件814还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件816被配置为便于装置800和其他设备之间有线或无线方式的通信。装置800可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件816经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件816还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,装置800可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器804,上述指令可由装置800的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种防止拍照遮挡的方法,所述方法包括:
获取摄像头捕获的画面中边缘区域的图像特征,其中,该图像特征至少包括图像色彩及连续的相同图像色彩的图像面积。
判断边缘区域的图像特征是否满足预设的图像特征条件。
当边缘区域的图像特征满足预设的图像特征条件时,确定摄像头捕获的画面中包含了遮挡物,并发出提示消息。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。

Claims (13)

  1. 一种防止拍照遮挡的方法,其特征在于,包括:
    获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
    判断所述边缘区域的图像特征是否满足预设的图像特征条件;
    当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
  2. 根据权利要求1所述的方法,其特征在于,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,包括:
    判断所述边缘区域的像素块颜色值中是否存在预设颜色值;
    当所述边缘区域的像素块颜色值中存在所述预设颜色值时,获得所述边缘区域中由颜色值为所述预设颜色值的像素块形成的连续的区域面积;
    判断所述连续的区域面积是否满足预设面积范围;
    当所述连续的区域面积满足所述预设面积范围时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  3. 根据权利要求2所述的方法,其特征在于,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
    当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的边缘是否符合预设光参数;
    当所述连续的区域的边缘符合所述预设光参数时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  4. 根据权利要求2所述的方法,其特征在于,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
    当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的运动轨迹与所述终端的运动轨迹是否一致;
    当所述连续的区域的运动轨迹与所述终端的运动轨迹一致时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  5. 根据权利要求2所述的方法,其特征在于,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
    当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的亮度值与所述摄像头捕获的画面中除所述连续的区域之外的画面区域的亮度值的差值是否大于预设值;
    当所述亮度值的差值大于所述预设值时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  6. 根据权利要求2所述的方法,其特征在于,所述判断所述边缘区域的图像特征是否满足预设的图像特征条件,还包括:
    当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的画面内容是否包括指纹特征;
    当所述连续的区域的画面内容包括所述指纹特征时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  7. 一种防止拍照遮挡的装置,其特征在于,包括:
    获取模块,用于获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
    判断模块,用于判断所述边缘区域的图像特征是否满足预设的图像特征条件;
    确定模块,用于当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
  8. 根据权利要求7所述的装置,其特征在于,所述判断模块,包括:
    第一判断单元,用于判断所述边缘区域的像素块颜色值中是否存在预设颜色值;
    第一获取单元,用于当所述边缘区域的像素块颜色值中存在所述预设颜色值时,获得所述边缘区域中由颜色值为所述预设颜色值的像素块形成的连续的区域面积;
    第二判断单元,用于判断所述连续的区域面积是否满足预设面积范围;
    第一确定单元,用于当所述连续的区域面积满足所述预设面积范围时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  9. 根据权利要求8所述的装置,其特征在于,所述判断模块,还包括:
    第三判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的边缘是否符合预设光参数;
    第二确定单元,用于当所述连续的区域的边缘符合所述预设光参数时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  10. 根据权利要求8所述的装置,其特征在于,所述判断模块,还包括:
    第四判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的运动轨迹与所述终端的运动轨迹是否一致;
    第三确定单元,用于当所述连续的区域的运动轨迹与所述终端的运动轨迹一致时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  11. 根据权利要求8所述的装置,其特征在于,所述判断模块,还包括:
    第五判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的亮度值与所述摄像头捕获的画面中除所述连续的区域之外的画面区域的亮度值的差值是否大于预设值;
    第四确定单元,用于当所述亮度值的差值大于所述预设值时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  12. 根据权利要求8所述的装置,其特征在于,所述判断模块,还包括:
    第六判断单元,用于当所述连续的区域面积满足所述预设面积范围时,判断所述连续的区域的画面内容是否包括指纹特征;
    第五确定单元,用于当所述连续的区域的画面内容包括所述指纹特征时,确定所述边缘区域的图像特征满足所述预设的图像特征条件。
  13. 一种防止拍照遮挡的装置,其特征在于,包括:
    处理器;
    用于存储所述处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    获取摄像头捕获的画面中边缘区域的图像特征;所述图像特征至少包括图像色彩及连续的相同图像色彩的图像面积;
    判断所述边缘区域的图像特征是否满足预设的图像特征条件;
    当所述边缘区域的图像特征满足预设的图像特征条件时,确定所述摄像头捕获的画面中包含了遮挡物,并发出提示消息。
PCT/CN2016/087490 2015-12-08 2016-06-28 防止拍照遮挡的方法及装置 WO2017096782A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510897800.2A CN105491289B (zh) 2015-12-08 2015-12-08 防止拍照遮挡的方法及装置
CN201510897800.2 2015-12-08

Publications (1)

Publication Number Publication Date
WO2017096782A1 true WO2017096782A1 (zh) 2017-06-15

Family

ID=55677975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087490 WO2017096782A1 (zh) 2015-12-08 2016-06-28 防止拍照遮挡的方法及装置

Country Status (4)

Country Link
US (1) US10284773B2 (zh)
EP (1) EP3179711B1 (zh)
CN (1) CN105491289B (zh)
WO (1) WO2017096782A1 (zh)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105491289B (zh) * 2015-12-08 2019-10-01 小米科技有限责任公司 防止拍照遮挡的方法及装置
CN105744268A (zh) * 2016-05-04 2016-07-06 深圳众思科技有限公司 摄像头遮挡检测方法及装置
CN107347151B (zh) * 2016-05-04 2018-12-18 南昌黑鲨科技有限公司 双目摄像头遮挡检测方法及装置
CN106210522B (zh) * 2016-07-15 2019-06-14 Oppo广东移动通信有限公司 一种图像处理方法、装置、移动终端及可读存储介质
CN106454336B (zh) * 2016-11-23 2019-10-25 北京小米移动软件有限公司 检测终端摄像头被遮挡的方法及装置和终端
CN110232968A (zh) * 2017-04-23 2019-09-13 奥康科技有限公司 可穿戴装置和校正可穿戴图像传感器的安置的方法及介质
CN108765380A (zh) * 2018-05-14 2018-11-06 Oppo广东移动通信有限公司 图像处理方法、装置、存储介质及移动终端
CN109359572A (zh) * 2018-09-30 2019-02-19 联想(北京)有限公司 信息处理方法、装置和电子设备
CN109377884B (zh) * 2018-12-06 2020-12-11 厦门天马微电子有限公司 一种显示面板、显示装置及显示面板的驱动方法
CN110766745B (zh) * 2018-12-18 2023-11-03 极米科技股份有限公司 投影仪镜头前干扰物的检测方法、投影仪和存储介质
CN111368785B (zh) * 2020-03-17 2023-08-25 广东智媒云图科技股份有限公司 一种摄像头遮挡判断方法、装置、设备及存储介质
CN111753783B (zh) * 2020-06-30 2024-05-28 北京小米松果电子有限公司 手指遮挡图像检测方法、装置及介质
CN112598628A (zh) * 2020-12-08 2021-04-02 影石创新科技股份有限公司 一种图像遮挡检测方法、装置、拍摄设备及介质
CN112597952A (zh) * 2020-12-28 2021-04-02 深圳市捷顺科技实业股份有限公司 一种摄像机监控状态的识别方法、装置、系统及存储介质
US11683598B1 (en) * 2022-02-24 2023-06-20 Omnivision Technologies, Inc. Image sensor with on-chip occlusion detection and methods thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040012682A1 (en) * 2002-07-08 2004-01-22 Minolta Co., Ltd. Image capturing apparatus
CN102111532A (zh) * 2010-05-27 2011-06-29 周渝斌 相机镜头遮挡检测系统及方法
CN102156380A (zh) * 2010-02-04 2011-08-17 卡西欧计算机株式会社 摄像装置以及警告方法
CN102970477A (zh) * 2011-08-30 2013-03-13 三星电子株式会社 图像拍摄装置及其控制方法
CN103139547A (zh) * 2013-02-25 2013-06-05 昆山南邮智能科技有限公司 基于视频图像信号判定摄像镜头遮挡状态的方法
CN105491289A (zh) * 2015-12-08 2016-04-13 小米科技有限责任公司 防止拍照遮挡的方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007323517A (ja) * 2006-06-02 2007-12-13 Oki Electric Ind Co Ltd 自動取引装置
JP4462305B2 (ja) 2007-08-17 2010-05-12 ソニー株式会社 撮像装置、方法、およびプログラム
JP2012023546A (ja) 2010-07-14 2012-02-02 Jvc Kenwood Corp 制御装置、立体映像撮像装置、および制御方法
JP5750693B2 (ja) * 2011-03-22 2015-07-22 オリンパス株式会社 撮影機器
EP3089101A1 (en) * 2013-12-03 2016-11-02 Dacuda AG User feedback for real-time checking and improving quality of scanned image

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040012682A1 (en) * 2002-07-08 2004-01-22 Minolta Co., Ltd. Image capturing apparatus
CN102156380A (zh) * 2010-02-04 2011-08-17 卡西欧计算机株式会社 摄像装置以及警告方法
CN102111532A (zh) * 2010-05-27 2011-06-29 周渝斌 相机镜头遮挡检测系统及方法
CN102970477A (zh) * 2011-08-30 2013-03-13 三星电子株式会社 图像拍摄装置及其控制方法
CN103139547A (zh) * 2013-02-25 2013-06-05 昆山南邮智能科技有限公司 基于视频图像信号判定摄像镜头遮挡状态的方法
CN105491289A (zh) * 2015-12-08 2016-04-13 小米科技有限责任公司 防止拍照遮挡的方法及装置

Also Published As

Publication number Publication date
EP3179711A3 (en) 2017-06-21
EP3179711A2 (en) 2017-06-14
EP3179711B1 (en) 2021-07-07
US10284773B2 (en) 2019-05-07
CN105491289B (zh) 2019-10-01
CN105491289A (zh) 2016-04-13
US20170163883A1 (en) 2017-06-08

Similar Documents

Publication Publication Date Title
WO2017096782A1 (zh) 防止拍照遮挡的方法及装置
WO2021017561A1 (zh) 人脸识别方法及装置、电子设备和存储介质
US9674395B2 (en) Methods and apparatuses for generating photograph
WO2017088266A1 (zh) 图片处理方法及装置
JP6267363B2 (ja) 画像を撮影する方法および装置
WO2017059638A1 (zh) 指纹识别方法及装置
US10452890B2 (en) Fingerprint template input method, device and medium
WO2016023340A1 (zh) 一种切换摄像头的方法和装置
US9661223B2 (en) Method and device for photographing including camera shake
US20170034409A1 (en) Method, device, and computer-readable medium for image photographing
WO2017020486A1 (zh) 调节拍摄功能的控制方法、装置和设备
WO2016107030A1 (zh) 通知信息显示方法及装置
WO2017035994A1 (zh) 外接设备的连接方法及装置
US20170032725A1 (en) Method, device, and computer-readable medium for setting color gamut mode
WO2017113662A1 (zh) 虚拟sim卡的启用方法和装置
WO2016112699A1 (zh) 切换显示模式的方法及装置
US10216976B2 (en) Method, device and medium for fingerprint identification
WO2016023339A1 (zh) 延时拍照的方法和装置
WO2017092127A1 (zh) 视频归类方法及装置
WO2017088260A1 (zh) 睡眠状态检测方法、装置及系统
WO2016192325A1 (zh) 视频文件的标识处理方法及装置
WO2017140109A1 (zh) 压力检测方法和装置
KR101843447B1 (ko) 가상 버튼을 프로세싱 하기 위한 방법, 및 모바일 단말
WO2017201891A1 (zh) 控制触控屏状态的方法及装置、电子设备
WO2017088259A1 (zh) 屏幕保护方法及装置

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: 16871986

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: 16871986

Country of ref document: EP

Kind code of ref document: A1