A kind of mobile phone scene adaptive analysis method
Technical field
The present invention relates to mobile phone control field, more particularly to a kind of mobile phone scene adaptive analysis method.
Background technology
Mobile phone, or be radio telephone, commonly referred to as mobile phone, it is a kind of communication tool originally, early stage has big again
Brother's being commonly called as greatly, is the portable telephone terminal that can be used in the broader context, is existed by AT&T Labs of the U.S. earliest
The battlefield mobile phone of manufacture in 1940 is developed.
1958, the high Maimonides Ku Puliyang Milunovich of Soviet Union engineer row invented Л К -1 type mobile phones, 1973 years
[3], Motorola of U.S. engineer Martin storehouse handkerchief has invented first commercialization mobile phone in the world.It has been developed to so far
The 4G epoch.
Currently, mobile phone has become the indispensable communication tool of people, usually carrying mobile phone discrepancy various places.In people
During use, mobile phone is located in carries out telephone operation on hand, and in people when not in use, mobile phone is generally placed at table
Go up or be placed in the pocket of people and carried with.
Mobile phone is all to maintain same operation setting conversing and carry with two states, and this is not that it is desirable to see
, therefore, in order to which the differentiation operated is set so that mobile phone meets the different demands of people under different conditions, first
Need it is integrated on mobile phone can detect the electronic equipment of mobile phone state at that time immediately, however, there is currently no such
Electronic equipment.
The content of the invention
In order to solve the above problems, the invention provides a kind of mobile phone scene adaptive analysis method, it can be based on high-precision
The image procossing of degree determines the scene type at the top of mobile phone and the scene type at the lower section of determination mobile phone;
Wherein, at the top of mobile phone the scene type at scene type and the lower section of mobile phone all includes indoor scene, room
Outer scene, pocket carry scene and dark scene, additionally it is possible to receiving top without optical signal, lower section without optical signal, mobile phone
Scene type at top is that pocket carries scene and the scene type at the lower section of mobile phone is that pocket carries scene
When, send pocket and carry and judge signal, and send pocket carry judge signal and receive rule motor message when, send out
Go out user to walk about signal, so as to identify the current different conditions of mobile phone in time.
According to an aspect of the present invention there is provided a kind of mobile phone scene adaptive analysis method, methods described including the use of
Mobile phone scene adaptive analysis platform determines the different control models of cell phone incoming call, institute with the change of the environment according to residing for mobile phone
Stating platform includes:Top optical sensor, is arranged on the top of mobile phone, for detecting the light luminance above mobile phone, and in mobile phone
When the light luminance of top is more than or equal to predetermined luminance threshold value, sending top has optical signal, otherwise, sends top without optical signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:Lower section optical sensor,
Be arranged on the lower section of mobile phone, for detecting the light luminance below mobile phone, and light luminance below mobile phone be more than or equal to it is pre-
If during luminance threshold, sending lower section has optical signal, otherwise, lower section is sent without optical signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:Acceleration detection is set
It is standby, it is arranged on mobile phone, for detecting whether the current kinetic track of mobile phone is the movement locus that meets rule, is then to send
Rule motor message, otherwise, sends non-rule motor message.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:First camera, if
Put in the top of mobile phone, carry out image data acquiring to obtain and export the first scene image for the top scene to mobile phone.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:
Second camera, is arranged on the lower section of mobile phone, carries out image data acquiring to obtain for the lower section scene to mobile phone
Obtain and export the second scene image;Gradient extraction equipment, for receiving the first scene image or the second scene image using as defeated
Enter image, for the pixel value of each pixel in input picture, its pixel value is subtracted to the pixel of the descending pixel of its same column
Taken absolute value after value to obtain the first absolute value, its pixel value is subtracted taken absolute value after the pixel value of its following pixel of going together with
The second absolute value is obtained, it is being obtained after the first absolute value is added with the second absolute value and as gradient, wherein, input picture
The gradient of each pixel of last column directly takes the gradient of the same column pixel of lastrow, last row of input picture
The gradient of each pixel directly takes the gradient of colleague's pixel of previous column;
Gradient processing equipment, is connected with the gradient extraction equipment, for for each pixel in input picture
Pixel value, its gradient is compared with predetermined gradient threshold value, and each pixel of predetermined gradient threshold value is more than or equal to for gradient,
Processing is sharpened to its pixel value with the pixel value after being handled, each pixel of predetermined gradient threshold value is less than to gradient,
Directly using its pixel value as the pixel value after processing, the pixel value formation input after the processing of all pixels in input picture
The corresponding gradient processing image of image;Wherein, predetermined gradient threshold value is determined according to sharpening level, sharpening level is higher, presets ladder
Spend threshold value smaller;Benchmark brightness obtains equipment, is connected with gradient processing equipment, for receiving gradient processing image, obtains described
Gradient handles the average brightness of image, and obtains brightness of image predicted value based on current time, is handled and schemed by the gradient
The average brightness of picture is modified to obtain the Benchmark brightness value that the gradient handles image to described image luma prediction value;
Luminance components detection device, is connected with gradient processing equipment, for receiving gradient processing image, obtains the gradient
The luminance components and the gradient for handling image handle the non-luminance components of image;Gamma correction equipment, respectively with the benchmark
Luminance acquisition equipment and luminance components detection device connection, the Benchmark brightness value pair for handling image based on the gradient
The luminance components of gradient processing image are corrected to obtain correcting luminance composition, and by the correcting luminance composition and institute
Non- luminance components superposition is stated to obtain output image, wherein, the corresponding output image of the first scene image is the first correction chart picture,
The corresponding output image of second scene image is the second correction chart picture;Scene Recognition equipment, is connected with gamma correction equipment, is used for
Analysis of image content is carried out to the first correction chart picture, to determine the scene type at the top of mobile phone, is additionally operable to second
Correction chart picture carries out analysis of image content, to determine the scene type at the lower section of mobile phone;Wherein, residing for the top of mobile phone
In scene type and mobile phone lower section at scene type all include indoor scene, outdoor scene, pocket carry scene
And dark scene,
DSP Processor, is connected with acceleration detection equipment and scene Recognition equipment respectively, for unglazed above receiving
Signal, lower section are that pocket is carried at the lower section of scene and mobile phone without the scene type at optical signal, the top of mobile phone
Scene type for pocket carry scene when, send pocket carry judge signal;The DSP Processor is additionally operable to sending pocket
Carrying is when judging signal and receiving rule motor message, sends user and walks about signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:Controller is assisted, is located at
On mobile phone, be connected with the DSP Processor, for receive user walk about signal when, the automatic incoming ring tone for improving mobile phone,
Improve the vibration frequency of the incoming call of mobile phone automatically simultaneously.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:Real-time display device,
On mobile phone, be connected with the DSP Processor, for receive user walk about signal when, automatic display is walked about with user
The corresponding character string of signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform also includes:The DSP Processor
It is integrated in association's controller on one piece of surface-mounted integrated circuit.
Brief description of the drawings
Embodiment of the present invention is described below with reference to accompanying drawing, wherein:
Fig. 1 is the block diagram of the mobile phone scene adaptive analysis platform according to embodiment of the present invention.
Fig. 2 is the integrated circuit of the control of the mobile phone scene adaptive analysis platform according to embodiment of the present invention
The block diagram of plate.
Reference:1 top optical sensor;2 lower section optical sensors;3 acceleration detection equipment;4 first cameras;5
Two cameras;6DSP processors;7 association's controllers
Embodiment
The embodiment to the mobile phone scene adaptive analysis platform of the present invention is described in detail below with reference to accompanying drawings.
Mobile phone is divided into smart mobile phone (Smart phone) and non-smart mobile phone (Feature phone), general intelligence mobile phone
Performance it is better than non-smart mobile phone, but non-smart mobile phone is more stable than smart mobile phone performance, most of non-smart mobile phones and intelligence
Energy mobile phone uses the CPU of Britain's ARM corporate structures.The dominant frequency of smart mobile phone is higher, and the speed of service is fast, and processing routine task is faster
Speed, daily enhanced convenience is (for example:Nokia's n81 dominant frequency has 369 megahertzs);And the dominant frequency of non-smart mobile phone is then than relatively low,
The speed of service is also slow (for example:The dominant frequency of Nokia 5000 is exactly 50 megahertzs).
Smart mobile phone (Smartphone), refers to as PC, with independent operating system, and most of is big
Screen machine, and be to touch capacitance plate, it is touch screens also to have part, and powerful practicality is high.Can be by user's voluntarily installation kit
The program that the third party service providers such as game provide is included, is expanded by this class method come the function constantly to mobile phone, it is possible to
The general name of such class mobile phone of wireless network access is realized by mobile communication network ".It is exactly some a letter to succeed in reaching an agreement custom
Single " 1+1=" formula, " palm PC+mobile phone=smart mobile phone ".In a broad sense, smart mobile phone is except possessing mobile phone
Outside call function, PDA most of function, particularly personal information management have been also equipped with and based on the clear of RFDC
Look at device and e-mail function.Smart mobile phone has provided the user enough screen sizes and bandwidth, both handy to carry about, again
Wide stage is provided for running software and content service.Many value-added services can deploy with regard to this, such as:Stock, news, day
Gas, traffic, commodity, application program download, the download of music picture etc..
Lack the testing mechanism that pocket carrier state or user's walking states are currently to mobile phone in the prior art, accordingly
Ground, it is impossible to formulate corresponding Setting pattern, the use given people brings inconvenience.In order to overcome above-mentioned deficiency, the present invention is built
A kind of mobile phone scene adaptive analysis method, methods described is including the use of mobile phone scene adaptive analysis platform with according to mobile phone
The change of residing environment determines the different control models of cell phone incoming call.
Fig. 1 is the block diagram of the mobile phone scene adaptive analysis platform according to embodiment of the present invention, described
Platform includes:
Top optical sensor, is arranged on the top of mobile phone, for detecting the light luminance above mobile phone, and above mobile phone
Light luminance be more than or equal to predetermined luminance threshold value when, send top have optical signal, otherwise, send top without optical signal.
Then, continue that the concrete structure of the mobile phone scene adaptive analysis platform of the present invention is further detailed.
The platform can also include:
Lower section optical sensor, is arranged on the lower section of mobile phone, for detecting the light luminance below mobile phone, and below mobile phone
Light luminance be more than or equal to predetermined luminance threshold value when, send lower section have optical signal, otherwise, send lower section without optical signal.
The platform can also include:
Acceleration detection equipment, is arranged on mobile phone, for detecting whether the current kinetic track of mobile phone is to meet rule
Movement locus, be then to send rule motor message, otherwise, send non-rule motor message.
The platform can also include:
First camera, is arranged on the top of mobile phone, carries out image data acquiring to obtain for the top scene to mobile phone
Obtain and export the first scene image.
The platform can also include:
Second camera, is arranged on the lower section of mobile phone, carries out image data acquiring to obtain for the lower section scene to mobile phone
Obtain and export the second scene image;
Gradient extraction equipment, for receiving the first scene image or the second scene image using as input picture, for defeated
Enter the pixel value of each pixel in image, its pixel value is subtracted taken absolute value after the pixel value of the descending pixel of its same column with
Obtain the first absolute value, its pixel value is subtracted taken absolute value after the pixel value of its following pixel of going together it is absolute to obtain second
Value, it is being obtained after the first absolute value is added with the second absolute value and as gradient, wherein, last column of input picture it is every
The gradient of one pixel directly takes the gradient of the same column pixel of lastrow, each pixel of last row of input picture
Gradient directly takes the gradient of colleague's pixel of previous column;
Gradient processing equipment, is connected with the gradient extraction equipment, for for each pixel in input picture
Pixel value, its gradient is compared with predetermined gradient threshold value, and each pixel of predetermined gradient threshold value is more than or equal to for gradient,
Processing is sharpened to its pixel value with the pixel value after being handled, each pixel of predetermined gradient threshold value is less than to gradient,
Directly using its pixel value as the pixel value after processing, the pixel value formation input after the processing of all pixels in input picture
The corresponding gradient processing image of image;Wherein, predetermined gradient threshold value is determined according to sharpening level, sharpening level is higher, presets ladder
Spend threshold value smaller;
Benchmark brightness obtains equipment, is connected with gradient processing equipment, for receiving gradient processing image, obtains the gradient
The average brightness of image is handled, and brightness of image predicted value is obtained based on current time, image is handled by the gradient
Average brightness is modified to obtain the Benchmark brightness value that the gradient handles image to described image luma prediction value;
Luminance components detection device, is connected with gradient processing equipment, for receiving gradient processing image, obtains the gradient
The luminance components and the gradient for handling image handle the non-luminance components of image;
Gamma correction equipment, obtains equipment with the Benchmark brightness respectively and the luminance components detection device is connected, use
The luminance components for handling image to the gradient in the Benchmark brightness value that image is handled based on the gradient are corrected to obtain
Correcting luminance composition, and the correcting luminance composition is superimposed to obtain output image with the non-luminance components, wherein, first
The corresponding output image of scene image is the first correction chart picture, and the corresponding output image of the second scene image is the second correction chart
Picture;
Scene Recognition equipment, is connected with gamma correction equipment, for carrying out analysis of image content to the first correction chart picture, with
The scene type at the top of mobile phone is determined, is additionally operable to carry out analysis of image content to the second correction chart picture, to determine hand
Scene type at the lower section of machine;Wherein, at the top of mobile phone at scene type and the lower section of mobile phone
Scene type all includes indoor scene, outdoor scene, pocket and carries scene and dark scene;
DSP Processor, is connected with acceleration detection equipment and scene Recognition equipment respectively, for unglazed above receiving
Signal, lower section are that pocket is carried at the lower section of scene and mobile phone without the scene type at optical signal, the top of mobile phone
Scene type for pocket carry scene when, send pocket carry judge signal;The DSP Processor is additionally operable to sending pocket
Carrying is when judging signal and receiving rule motor message, sends user and walks about signal.
The platform can also include:
Assist controller, on mobile phone, be connected with the DSP Processor, for receive user walk about signal when, oneself
The dynamic incoming ring tone for improving mobile phone, while improving the vibration frequency of the incoming call of mobile phone automatically.
The platform can also include:
Real-time display device, on mobile phone, is connected with the DSP Processor, for walking about signal receiving user
When, automatic display and user walk about the corresponding character string of signal.
And in the platform:
As shown in Fig. 2 the DSP Processor and association's controller are integrated on one piece of surface-mounted integrated circuit.
In addition, the inside of DSP Processor uses program and the separated Harvard structure of data, with special hardware multiplication
Device, widely used pile line operation, can be for quickly realizing that various Digital Signal Processing are calculated there is provided special DSP instructions
Method.
According to the requirement of Digital Signal Processing, DSP Processor typically has some following main features:(1) at one
A multiplication and a sub-addition can be completed in instruction cycle.(2) program and data space is separated, can be while access instruction sum
According to.(3) there is quick RAM in piece, generally can simultaneously be accessed in two pieces by independent data/address bus.(4) there is low overhead
Or without overhead loop and the hardware supported redirected.(5) quickly interrupt processing and Hardware I/O are supported.(6) have within the monocycle
Multiple hardware address generators of operation.(7) multiple operations can be performed parallel.(8) pile line operation is supported, makes fetching, translate
The operation such as code and execution can be with Overlapped Execution.
The data format that is worked according to DSP Processor is classified.The dsp chip that data are worked with fixed point format is referred to as fixed
Point dsp chip, TMS320C1X/C2X, TMS320C2XX/C5X, TMS320C54X/C62XX series of such as TI companies, AD companies
ADSP21XX series, the DSP16/16A of AT & T Corp., the MC56000 of Motolora companies etc..The title worked in a floating-point format
For the TMS320C3X/C4X/C8X of float-point DSP, such as TI companies, the ADSP21XXX series of AD companies, AT & T Corp.
MC96002 of DSP32/32C, Motolora company etc..
Using the mobile phone scene adaptive analysis platform of the present invention, for lacking in the prior art to the currently used shape of mobile phone
The technical problem of the testing mechanism of state, passes through integrated top optical sensor, lower section optical sensor, acceleration detection equipment, first
The electronic equipments such as camera, second camera are to the light quantity of mobile phone upper and lower and the scene of mobile phone acceleration and mobile phone upper and lower
Detected in real time, be also integrated with DSP Processor, association's controller to judge that mobile phone is currently used based on the collaboration of above-mentioned testing result
State, is that data basis has been laid in the follow-up differentiated setting of mobile phone.
Although it is understood that the present invention is disclosed as above with preferred embodiment, but above-described embodiment and being not used to
Limit the present invention.For any those skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible variations and modification are all made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of change.Therefore, every content without departing from technical solution of the present invention, the technical spirit pair according to the present invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.