CN106454336B - The method and device and terminal that detection terminal camera is blocked - Google Patents
The method and device and terminal that detection terminal camera is blocked Download PDFInfo
- Publication number
- CN106454336B CN106454336B CN201611050575.XA CN201611050575A CN106454336B CN 106454336 B CN106454336 B CN 106454336B CN 201611050575 A CN201611050575 A CN 201611050575A CN 106454336 B CN106454336 B CN 106454336B
- Authority
- CN
- China
- Prior art keywords
- blocked
- camera
- display
- module
- prompt information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/40—Analysis of texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10141—Special mode during image acquisition
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure is directed to a kind of method and devices and terminal that detection terminal camera is blocked, wherein the method that detection terminal camera is blocked includes: the image information obtained when in preceding camera view-finder;The predeterminable area of above-mentioned image information is analyzed, to obtain the picture contrast of predeterminable area;If picture contrast reaches preset threshold, the prompt information that display is blocked when preceding camera.The embodiment of the present disclosure, it is analyzed by the predeterminable area of the image information to acquisition, obtain the picture contrast of predeterminable area, and when picture contrast reaches preset threshold, the prompt information that display is blocked when preceding camera, so as to remind user when camera is blocked, and then improve the experience of taking pictures of user.
Description
Technical field
This disclosure relates to image identification technical field more particularly to a kind of method that detection terminal camera is blocked and dress
It sets and terminal.
Background technique
With the fast development of mobile terminal technology, various intelligent terminals such as mobile phone is very universal, also, function day
Benefit is powerful.It takes pictures for example, user can use the intelligent terminals such as mobile phone.
Currently, camera is generally all disposed within the edge of equipment in the intelligent terminals such as mobile phone.In this way, people exist
It often will appear the case where covering camera with hand when taking pictures, and whether how to detect camera and be blocked is to need to solve at present
One of the technical issues of.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provide a kind of method that is blocked of detection terminal camera and
Device and terminal.
According to the first aspect of the embodiments of the present disclosure, a kind of method that detection terminal camera is blocked is provided, comprising:
It obtains when the image information in preceding camera view-finder;
The predeterminable area of described image information is analyzed, to obtain the picture contrast of the predeterminable area;
If described image contrast reaches preset threshold, the display prompt information being blocked when preceding camera.
In one embodiment, after described image contrast reaches preset threshold, the method also includes:
Contour of object in the predeterminable area is identified, to obtain body outline;
If the body outline is discontinuous, the display prompt information being blocked when preceding camera.
In one embodiment, described in the display after prompt information that preceding camera is blocked, the method is also
Include:
Record the display time span of the prompt information;
If the display time span reaches default value, the prompt information is removed.
In one embodiment, described in the display after prompt information that preceding camera is blocked, the method is also
Include:
Out code is received, and the prompt information is closed according to the out code.
In one embodiment, in the acquisition before the image information in preceding camera view-finder, the method is also wrapped
It includes:
Display reminding option, the prompt options are described when preceding camera is blocked for prompting the user to choose whether to open
Detection request;
Receive the unlatching detection request of user's selection.
According to the second aspect of an embodiment of the present disclosure, a kind of device that detection terminal camera is blocked is provided, comprising:
Module is obtained, is configured as obtaining the image information when in preceding camera view-finder;
Analysis module, the predeterminable area for being configured as the described image information obtained to the acquisition module are analyzed,
To obtain the picture contrast of the predeterminable area;
First determines display module, if being configured as the described image contrast that the analysis module analysis obtains reaches pre-
If threshold value, then when the prompt information that preceding camera is blocked described in display.
In one embodiment, described device further include:
Identification module, the described image contrast for being configured as determining that display module determines described first reach default threshold
After value, the contour of object in the predeterminable area is identified, to obtain body outline;
Second determines display module, if the body outline for being configured as the identification module acquisition is discontinuous,
The display prompt information being blocked when preceding camera.
In one embodiment, described device further include:
Logging modle, be configured as described first determine display module or described second determine that display module shows described in
After the prompt information that preceding camera is blocked, the display time span of the prompt information is recorded;
It determines and removes module, if the display time span for being configured as the logging modle record reaches present count
Value, then remove the prompt information.
In one embodiment, described device further include:
Closedown module is received, is configured to determine display module or the second determining display described first
Module shows described after the prompt information that preceding camera is blocked, reception out code, and is closed according to the out code
Close the prompt information.
In one embodiment, described device further include:
Option display module, be configured as the acquisition module obtain image information in the preceding camera view-finder it
Before, display reminding option, the prompt options are used to prompt the user to choose whether to open the inspection being blocked when preceding camera
Survey request;
Receiving module is configured as receiving what user was selected based on the prompt options that the option display module is shown
Open the detection request.
According to the third aspect of an embodiment of the present disclosure, a kind of terminal is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
It obtains when the image information in preceding camera view-finder;
The predeterminable area of described image information is analyzed, to obtain the picture contrast of the predeterminable area;
If described image contrast reaches preset threshold, the display prompt information being blocked when preceding camera.
The technical scheme provided by this disclosed embodiment can include the following benefits: pass through the image information to acquisition
Predeterminable area analyzed, obtain the picture contrast of predeterminable area, and when picture contrast reaches preset threshold, show
When the prompt information that preceding camera is blocked, so as to remind user when camera is blocked, and then the bat of user is improved
According to experience.
By obtaining body outline, and when body outline is discontinuous, the prompt that preceding camera is blocked is worked as in display
Information substantially increases Detection accuracy.
By recording the display time span of prompt information, and when showing that time span reaches default value, removing is mentioned
Show information, is blocked to avoid erroneous judgement camera.
Prompt information is closed by receiving out code, and according to out code, after erroneous judgement camera is blocked
Close prompt information.
By display reminding option, it can according to need user to choose whether open detection request.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is a kind of flow chart of method that detection terminal camera is blocked shown according to an exemplary embodiment.
Fig. 2A is a kind of schematic diagram of predeterminable area shown according to an exemplary embodiment.
Fig. 2 B is a kind of schematic diagram of predeterminable area shown according to an exemplary embodiment.
Fig. 3 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Fig. 4 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Fig. 5 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Fig. 6 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Fig. 7 is a kind of block diagram of device that detection terminal camera is blocked shown according to an exemplary embodiment.
Fig. 8 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked.
Fig. 9 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked.
Figure 10 A is the frame for the device that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Figure 10 B is the frame for the device that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure.
Figure 11 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked.
Figure 12 is a kind of block diagram of device suitable for terminal shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Fig. 1 is a kind of flow chart of method that detection terminal camera is blocked shown according to an exemplary embodiment,
As shown in Figure 1, the method that the detection terminal camera is blocked can be applied in terminal, which may include but is not limited to
Mobile phone, tablet computer (PAD) etc., this approach includes the following steps S101-S103:
In step s101, it obtains when the image information in preceding camera view-finder.
In this embodiment, when the camera on such as mobile phone that opens a terminal, terminal is available when preceding camera is found a view
Image information in frame.
In step s 102, the predeterminable area of above-mentioned image information is analyzed, to obtain the image pair of predeterminable area
Degree of ratio.
Wherein, predeterminable area can be fringe region, as shown in Figure 2 A, or rectangular area where image information
Four angles, as shown in Figure 2 B.
In this embodiment it is possible to analyze the image in predeterminable area, the brightness of each pixel in image is obtained,
And then the light and shade change information namely picture contrast of image can be obtained according to the brightness of pixel each in image.
In step s 103, if picture contrast reaches preset threshold, the prompt letter that display is blocked when preceding camera
Breath.
Wherein, preset threshold can according to need flexible setting, such as can be 20% or 30% etc..
It in this embodiment, can if the light and shade variable quantity of the picture contrast of predeterminable area namely image reaches 20%
It is blocked with determining when preceding camera, it therefore, can be with display reminding information.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by the predeterminable area of the image information to acquisition into
Row analysis, obtains the picture contrast of predeterminable area, and when picture contrast reaches preset threshold, and preceding camera quilt is worked as in display
The prompt information blocked so as to remind user when camera is blocked, and then improves the experience of taking pictures of user.
Fig. 3 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure, as shown in figure 3, this method may include steps of:
In step S301, obtain when the image information in preceding camera view-finder.
In step s 302, the predeterminable area of above-mentioned image information is analyzed, to obtain the image pair of predeterminable area
Degree of ratio.
In step S303, if picture contrast reaches preset threshold, the contour of object in predeterminable area is known
Not, to obtain body outline.
In order to improve Detection accuracy, can be tied on the basis of picture contrast reaches preset threshold in the embodiment
Contour of object is closed to detect when whether preceding camera is blocked.
Wherein it is possible to identify contour of object using various ways, for example, can by by the picture of predeterminable area from RGB
Color space conversion is split picture color at LUV color space, and in LUV color space, then in picture segmentation
On the basis of picture is converted into grayscale image, edge detection finally is carried out to grayscale image and obtains body outline.
In step s 304, if body outline is discontinuous, the prompt information that preceding camera is blocked is worked as in display.
After obtaining body outline, whether can continuously be determined by detection object contour line camera whether by
It blocks, if body outline is continuous, shows not to be blocked when preceding camera, if body outline discontinuously interrupts,
Then show to be blocked when preceding camera.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by obtaining body outline, and in contour of object
When line is discontinuous, the prompt information that display is blocked when preceding camera substantially increases Detection accuracy.
Fig. 4 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure, as shown in figure 4, this method can also include the following steps: after above-mentioned steps S103 or step S304
In step S401, the display time span of prompt information is recorded.
In step S402, if display time span reaches default value, prompt information is removed.
Wherein, default value can according to need setting, such as can be 2 minutes or 3 minutes etc..
In this embodiment, it judges by accident in order to prevent, it, can be with when prompt information display a period of time reaching default value
Prompt information is removed, i.e. prompt information disappears automatically.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by recording the display time span of prompt information,
And when showing that time span reaches default value, prompt information is removed, is blocked to avoid erroneous judgement camera.
Fig. 5 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure, as shown in figure 5, this method can also include the following steps: after above-mentioned steps S103
In step S104, out code is received, and prompt information is closed according to out code.
It judges by accident in order to prevent, can permit user and close prompt information.
In addition, after step s 304 described above, also may include step S104, being not shown in the figure.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by receiving out code, and according to out code
Prompt information is closed, to close prompt information after erroneous judgement camera is blocked.
Fig. 6 is the process for the method that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure, as shown in fig. 6, this method can also include the following steps: before above-mentioned steps S101
In step s 601, display reminding option, the prompt options are for prompting the user to choose whether to open current camera shooting
The detection request that head is blocked.
In this embodiment, user, which can choose, opens detection request, also can choose and closes detection request.
In step S602, unlatching detection request of user's selection is received.
In this embodiment, after user selects to open detection request, above-mentioned steps S101-103 can just be executed.
Certainly, user also can according to need selection and close detection request, but if user closes detection request, then terminal can not
The prompt information that display is blocked when preceding camera.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by display reminding option, allow user according to
It needs to choose whether open detection request.
Corresponding with the embodiment of the method that aforementioned detection terminal camera is blocked, the disclosure additionally provides detection terminal and takes the photograph
The device and terminal embodiment being blocked as head.
Fig. 7 is a kind of block diagram of device that detection terminal camera is blocked shown according to an exemplary embodiment, such as
Shown in Fig. 7, the device that detection terminal camera is blocked includes: to obtain module 71, analysis module 72 and the first determining display mould
Block 73.
Module 71 is obtained to be configured as obtaining the image information when in preceding camera view-finder.
In this embodiment, when the camera on such as mobile phone that opens a terminal, terminal is available when preceding camera is found a view
Image information in frame.
Analysis module 72 is configured as analyzing the predeterminable area for obtaining the image information that module 71 obtains, to obtain
The picture contrast of predeterminable area.
Wherein, predeterminable area can be fringe region, as shown in Figure 2 A, or rectangular area where image information
Four angles, as shown in Figure 2 B.
In this embodiment it is possible to analyze the image in predeterminable area, the brightness of each pixel in image is obtained,
And then the light and shade change information namely picture contrast of image can be obtained according to the brightness of pixel each in image.
If first determines that display module 73 is configured as the picture contrast that the analysis of analysis module 72 obtains and reaches default threshold
Value, the then prompt information that display is blocked when preceding camera.
Wherein, preset threshold can according to need flexible setting, such as can be 20% or 30% etc..
It in this embodiment, can if the light and shade variable quantity of the picture contrast of predeterminable area namely image reaches 20%
It is blocked with determining when preceding camera, it therefore, can be with display reminding information.
For device as shown in Figure 7 for realizing above-mentioned method flow as shown in Figure 1, the related content being related to describes phase
Together, it does not repeat herein.
The Installation practice that above-mentioned detection terminal camera is blocked, by the predeterminable area of the image information to acquisition into
Row analysis, obtains the picture contrast of predeterminable area, and when picture contrast reaches preset threshold, and preceding camera quilt is worked as in display
The prompt information blocked so as to remind user when camera is blocked, and then improves the experience of taking pictures of user.
Fig. 8 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked,
As shown in figure 8, the device can also include: that identification module 74 and second are determining aobvious on the basis of above-mentioned embodiment illustrated in fig. 7
Show module 75.
Identification module 74 be configured as first determine display module 73 determine picture contrast reach preset threshold it
Afterwards, the contour of object in predeterminable area is identified, to obtain body outline.
In order to improve Detection accuracy, can be tied on the basis of picture contrast reaches preset threshold in the embodiment
Contour of object is closed to detect when whether preceding camera is blocked.
Wherein it is possible to identify contour of object using various ways, for example, can by by the picture of predeterminable area from RGB
Color space conversion is split picture color at LUV color space, and in LUV color space, then in picture segmentation
On the basis of picture is converted into grayscale image, edge detection finally is carried out to grayscale image and obtains body outline.
If the body outline that the second determining display module 75 is configured as the acquisition of identification module 74 is discontinuous, display is worked as
The prompt information that preceding camera is blocked.
After obtaining body outline, whether can continuously be determined by detection object contour line camera whether by
It blocks, if body outline is continuous, shows not to be blocked when preceding camera, if body outline discontinuously interrupts,
Then show to be blocked when preceding camera.
For device as shown in Figure 8 for realizing above-mentioned method flow as shown in Figure 3, the related content being related to describes phase
Together, it does not repeat herein.
The Installation practice that above-mentioned detection terminal camera is blocked, by obtaining body outline, and in contour of object
When line is discontinuous, the prompt information that display is blocked when preceding camera substantially increases Detection accuracy.
Fig. 9 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked,
As shown in figure 9, the device can also include: logging modle 76 and determine on the basis of above-mentioned Fig. 7 or embodiment illustrated in fig. 8
Remove module 77.
Logging modle 76 is configured as determining display module 73 or the second determining display of display module 75 when proactive first
After the prompt information being blocked as head, the display time span of prompt information is recorded.
If determining, removing module 77 is configured as the display time span that logging modle 76 records and reaches default value, clearly
Except prompt information.
Wherein, default value can according to need setting, such as can be 2 minutes or 3 minutes etc..
In this embodiment, it judges by accident in order to prevent, it, can be with when prompt information display a period of time reaching default value
Prompt information is removed, i.e. prompt information disappears automatically.
For device as shown in Figure 9 for realizing above-mentioned method flow as shown in Figure 4, the related content being related to describes phase
Together, it does not repeat herein.
The Installation practice that above-mentioned detection terminal camera is blocked, by recording the display time span of prompt information,
And when showing that time span reaches default value, prompt information is removed, is blocked to avoid erroneous judgement camera.
Figure 10 A is the frame for the device that another detection terminal camera shown according to an exemplary embodiment is blocked
Figure, as shown in Figure 10 A, on the basis of above-mentioned embodiment illustrated in fig. 7, which, which may also include that, receives closedown module 78.
Closedown module 78 is received to be configured to determine the display of display module 73 when preceding camera is hidden first
After the prompt information of gear, out code is received, and prompt information is closed according to out code.
It is also configured to determine the display of display module 75 when preceding camera is hidden second in addition, receiving closedown module 78
After the prompt information of gear, out code is received, and prompt information is closed according to out code, as shown in Figure 10 B.
It judges by accident in order to prevent, can permit user and close prompt information.
For realizing above-mentioned method flow as shown in Figure 5, the related content being related to is described device as shown in Figure 10 A
It is identical, it does not repeat herein.
The embodiment of the method that above-mentioned detection terminal camera is blocked, by receiving out code, and according to out code
Prompt information is closed, to close prompt information after erroneous judgement camera is blocked.
Figure 11 is the block diagram for the device that another detection terminal camera shown according to an exemplary embodiment is blocked,
As shown in figure 11, on the basis of above-mentioned embodiment illustrated in fig. 7, which may also include that option display module 81 and receives mould
Block 82.
Option display module 81 is configured as before obtaining module and obtaining the image information worked as in preceding camera view-finder,
Display reminding option, prompt options are used to prompt the user to choose whether to open the detection request when preceding camera is blocked.
In this embodiment, user, which can choose, opens detection request, also can choose and closes detection request.
Receiving module 82 is configured as receiving the unlatching for the prompt options selection that user is shown based on option display module 81
Detection request.
In this embodiment, user can according to need selection and close detection request, but if user closes the detection
Request, then terminal can not show the prompt information when preceding camera is blocked.
For realizing above-mentioned method flow as shown in FIG. 6, the related content being related to is described device as shown in figure 11
It is identical, it does not repeat herein.
The Installation practice that above-mentioned detection terminal camera is blocked, by display reminding option, allow user according to
It needs to choose whether open detection request.
About the device in above-described embodiment, the concrete mode that wherein modules, submodule execute operation is having
It closes and is described in detail in the embodiment of this method, no detailed explanation will be given here.
Figure 12 is a kind of device being blocked suitable for detecting terminal camera shown according to an exemplary embodiment
Block diagram.For example, device 1200 can be mobile phone, and computer, digital broadcasting terminal, messaging device, game console,
Tablet device, Medical Devices, body-building equipment, personal digital assistant, aircraft etc..
Referring to Fig.1 2, device 1200 may include following one or more components: processing component 1202, memory 1204,
Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module
1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing element 1202 may include one or more processors 1220 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds
Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module,
To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data
Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data,
Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1206 provides electric power for the various assemblies of device 1200.Power supply module 1206 may include power management
System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between described device 1200 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1208 includes a front camera and/or rear camera.When equipment 1200 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat
Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication
Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented
Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as institute
The display and keypad that component is device 1200 are stated, sensor module 1214 can be with detection device 1200 or device 1,200 1
The position change of a component, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and dress
Set 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1216 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 1220 of device 1200 to complete the above method.Example
Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft
Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
Claims (9)
1. a kind of method that detection terminal camera is blocked, which is characterized in that the described method includes:
It obtains when the image information in preceding camera view-finder;
The predeterminable area of described image information is analyzed, to obtain the picture contrast of the predeterminable area;
If described image contrast reaches preset threshold, the contour of object in the predeterminable area is identified, to obtain object
Body contour line;
If the body outline is discontinuous, the display prompt information being blocked when preceding camera.
2. the method that detection terminal camera according to claim 1 is blocked, which is characterized in that described in the display
After the prompt information that preceding camera is blocked, the method also includes:
Record the display time span of the prompt information;
If the display time span reaches default value, the prompt information is removed.
3. the method that detection terminal camera according to claim 1 is blocked, which is characterized in that described in the display
After the prompt information that preceding camera is blocked, the method also includes:
Out code is received, and the prompt information is closed according to the out code.
4. the method that detection terminal camera according to claim 1 is blocked, which is characterized in that obtained currently described
Before image information in camera view-finder, the method also includes:
Display reminding option, the prompt options are used to prompt the user to choose whether to open the inspection being blocked when preceding camera
Survey request;
Receive the unlatching detection request of user's selection.
5. a kind of device that detection terminal camera is blocked, which is characterized in that described device includes: to obtain module, analysis mould
Block, first determine display module, identification module and the second determining display module;Wherein, the acquisition module, is configured as obtaining
It takes when the image information in preceding camera view-finder;
The analysis module, the predeterminable area for being configured as the described image information obtained to the acquisition module are analyzed,
To obtain the picture contrast of the predeterminable area;
The identification module, if being configured as described first determines that display module determines that the described image contrast obtained reaches pre-
If threshold value, then the contour of object in the predeterminable area is identified, to obtain body outline;
Described second determines display module, if the body outline for being configured as the identification module acquisition is discontinuous,
The display prompt information being blocked when preceding camera.
6. the device that detection terminal camera according to claim 5 is blocked, which is characterized in that described device is also wrapped
It includes:
Logging modle is configured as determining that display module shows the prompt information being blocked when preceding camera described second
Later, the display time span of the prompt information is recorded;
It determines and removes module, if the display time span for being configured as the logging modle record reaches default value,
Remove the prompt information.
7. the device that detection terminal camera according to claim 5 is blocked, which is characterized in that described device is also wrapped
It includes:
Closedown module is received, is configured to determine that display module shows that the preceding camera of working as is hidden described second
After the prompt information of gear, out code is received, and the prompt information is closed according to the out code.
8. the device that detection terminal camera according to claim 5 is blocked, which is characterized in that described device is also wrapped
It includes:
Option display module is configured as obtaining before the image information in preceding camera view-finder in the acquisition module,
Display reminding option, the prompt options are used to prompt the user to choose whether to open the detection being blocked when preceding camera and ask
It asks;
Receiving module is configured as receiving the unlatching for the prompt options selection that user is shown based on the option display module
The detection request.
9. a kind of terminal characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
It obtains when the image information in preceding camera view-finder;
The predeterminable area of described image information is analyzed, to obtain the picture contrast of the predeterminable area;
If described image contrast reaches preset threshold, the contour of object in the predeterminable area is identified, to obtain object
Body contour line;
If the body outline is discontinuous, the display prompt information being blocked when preceding camera.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611050575.XA CN106454336B (en) | 2016-11-23 | 2016-11-23 | The method and device and terminal that detection terminal camera is blocked |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611050575.XA CN106454336B (en) | 2016-11-23 | 2016-11-23 | The method and device and terminal that detection terminal camera is blocked |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106454336A CN106454336A (en) | 2017-02-22 |
CN106454336B true CN106454336B (en) | 2019-10-25 |
Family
ID=58219662
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611050575.XA Active CN106454336B (en) | 2016-11-23 | 2016-11-23 | The method and device and terminal that detection terminal camera is blocked |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106454336B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108347601B (en) * | 2018-03-19 | 2020-06-19 | 云丁网络技术(北京)有限公司 | Video occlusion detection method and related equipment |
CN108765380A (en) * | 2018-05-14 | 2018-11-06 | Oppo广东移动通信有限公司 | Image processing method, device, storage medium and mobile terminal |
US20190378269A1 (en) * | 2018-06-07 | 2019-12-12 | GM Global Technology Operations LLC | System and method for monitoring a camera wash cycle |
CN109639896A (en) * | 2018-12-19 | 2019-04-16 | Oppo广东移动通信有限公司 | Block object detecting method, device, storage medium and mobile terminal |
CN109445267B (en) * | 2018-12-29 | 2021-06-25 | 北京金山安全软件有限公司 | Intelligent watch |
CN110049320B (en) * | 2019-05-23 | 2020-12-08 | 北京猎户星空科技有限公司 | Camera shielding detection method and device, electronic equipment and storage medium |
WO2021031608A1 (en) * | 2019-08-18 | 2021-02-25 | 海信视像科技股份有限公司 | Displaying method and device for locking state of camera physical switch |
CN110519515B (en) * | 2019-08-28 | 2021-03-19 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN110691235B (en) * | 2019-09-11 | 2021-02-23 | 华为技术有限公司 | Detection method, device and equipment |
CN113573124B (en) * | 2020-04-29 | 2023-05-09 | 海信视像科技股份有限公司 | Display device and camera detection method |
CN114079766B (en) * | 2020-08-10 | 2023-08-11 | 珠海格力电器股份有限公司 | Under-screen camera shielding prompting method, storage medium and terminal equipment |
CN112422953B (en) * | 2020-10-22 | 2023-03-03 | 深圳云天励飞技术股份有限公司 | Method and device for identifying whether camera is shielded or not and terminal equipment |
CN113301250A (en) * | 2021-05-13 | 2021-08-24 | Oppo广东移动通信有限公司 | Image recognition method and device, computer readable medium and electronic equipment |
CN113503807B (en) * | 2021-08-05 | 2024-02-27 | 维沃移动通信有限公司 | Electronic device and detection method |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491289A (en) * | 2015-12-08 | 2016-04-13 | 小米科技有限责任公司 | Method and device for preventing photographing occlusion |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103179428A (en) * | 2011-12-23 | 2013-06-26 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing camera module stains |
US9319637B2 (en) * | 2012-03-27 | 2016-04-19 | Magna Electronics Inc. | Vehicle vision system with lens pollution detection |
CN105611188B (en) * | 2015-12-23 | 2019-06-04 | 北京奇虎科技有限公司 | Camera occlusion detection method and device based on automatic exposure |
CN105744268A (en) * | 2016-05-04 | 2016-07-06 | 深圳众思科技有限公司 | Camera shielding detection method and device |
-
2016
- 2016-11-23 CN CN201611050575.XA patent/CN106454336B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105491289A (en) * | 2015-12-08 | 2016-04-13 | 小米科技有限责任公司 | Method and device for preventing photographing occlusion |
Also Published As
Publication number | Publication date |
---|---|
CN106454336A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106454336B (en) | The method and device and terminal that detection terminal camera is blocked | |
CN105491289B (en) | Prevent from taking pictures the method and device blocked | |
US10452890B2 (en) | Fingerprint template input method, device and medium | |
CN104182313B (en) | Be delayed the method and apparatus taken pictures | |
CN107122679A (en) | Image processing method and device | |
CN106951884A (en) | Gather method, device and the electronic equipment of fingerprint | |
CN104486451B (en) | Application program recommends method and device | |
CN104243819A (en) | Photo acquiring method and device | |
CN105430262A (en) | Photographing control method and photographing control device | |
CN105760884B (en) | The recognition methods of picture type and device | |
CN105487680B (en) | Method, apparatus and terminal for terminal screenshotss | |
CN105208284B (en) | Shoot based reminding method and device | |
CN105301183B (en) | Detection of Air Quality method and apparatus | |
CN106339695A (en) | Face similarity detection method, device and terminal | |
CN104243829A (en) | Self-shooting method and self-shooting device | |
CN104980662A (en) | Method for adjusting imaging style in shooting process, device thereof and imaging device | |
CN107911576A (en) | Image processing method, device and storage medium | |
CN106303260A (en) | Photographic head changing method, device and terminal unit | |
CN105203456A (en) | Plant species identification method and apparatus thereof | |
CN105183755B (en) | A kind of display methods and device of picture | |
CN104407769A (en) | Picture processing method, device and equipment | |
CN104020628A (en) | Flash lamp prompting method and device thereof | |
CN105516588A (en) | Photographic processing method and device | |
CN105357449A (en) | Shooting method and device, and image processing method and apparatus | |
CN107507128A (en) | Image processing method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |