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 methods.
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 is big to be commonly called as, and 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 develops.
1958, Soviet Union engineer row held high Maimonides Ku Puliyang Milunovich and have invented Л К -1 type mobile phones, 1973 years
[3], Motorola of U.S. engineer Martin library pa 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, people when not in use, mobile phone is generally placed at table
It goes up or is placed in the pocket of people and carry.
Mobile phone is all to maintain same operation setting conversing and carry two states, this is not that it is desirable to see
, therefore, for the differentiation setting operated so that mobile phone meets the different demands of people under different conditions, first
It needs to integrate the electronic equipment that can detect mobile phone state at that time immediately on mobile phone, however, there is currently no such
Electronic equipment.
Invention content
To solve the above-mentioned problems, the present invention provides a kind of mobile phone scene adaptive analysis methods, can be based on high-precision
The image procossing of degree determines the scene type at the lower section of scene type and determining mobile phone at the top of mobile phone;
Wherein, the scene type at the lower section of the scene type at the top of mobile phone and mobile phone all includes indoor scene, room
Outer scene, pocket carry scene and dark scene, additionally it is possible to receive top without optical signal, lower section without optical signal, mobile phone
Scene type at top is that the scene type that pocket carries at scene and the lower section of mobile phone is that pocket carries scene
When, it sends out pocket carrying and judges signal, and when sending out pocket carrying and judging signal and receive rule motor message, 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, a kind of mobile phone scene adaptive analysis method is provided, the method includes using
Mobile phone scene adaptive analysis platform determines the different control models of cell phone incoming call, institute with the variation of the environment residing for mobile phone
Stating platform includes:Top optical sensor is arranged in 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 out top has optical signal, otherwise, sends out top without optical signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform further includes:Lower section optical sensor,
It is arranged in the lower section of mobile phone, for detecting the light luminance below mobile phone, and the light luminance below mobile phone is more than or equal in advance
If when luminance threshold, sending out lower section has optical signal, otherwise, lower section is sent out without optical signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform further includes:Acceleration detection is set
It is standby, it is arranged on mobile phone, whether the current kinetic track for detecting mobile phone is the movement locus for meeting rule, is then to send out
Otherwise rule motor message sends out non-rule motor message.
More specifically, in the mobile phone scene adaptive analysis platform, the platform further includes:First camera, if
It sets in the top of mobile phone, image data acquiring is carried out 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 further includes:
Second camera, is arranged in the lower section of mobile phone, and image data acquiring is carried out to obtain for the lower section scene to mobile phone
It obtains and exports 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 its same column downlink pixel
Taken absolute value after value to obtain the first absolute value, its pixel value is subtracted take 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 connect with the gradient extraction equipment, for for each pixel in input picture
Its gradient is compared by pixel value 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 that obtains that treated, each pixel of predetermined gradient threshold value is less than to gradient,
Directly using its pixel value as treated pixel value, treated that pixel value forms input for all pixels in input picture
The corresponding gradient of image handles image;Wherein, predetermined gradient threshold value is determined according to sharpening level, sharpening level is higher, presets ladder
It is smaller to spend threshold value;Benchmark brightness obtains equipment, connect with gradient processing equipment, for receiving gradient processing image, described in acquisition
Gradient handles the average brightness of image, and obtains brightness of image predicted value based on current time, is handled and is schemed by the gradient
The average brightness of picture is modified described image luma prediction value to obtain the Benchmark brightness value that the gradient handles image;
Luminance components detection device is connect with gradient processing equipment, is handled image for receiving gradient, is obtained the gradient
Handle the non-luminance components of the luminance components and gradient processing image of image;Gamma correction equipment, respectively with the benchmark
Luminance acquisition equipment is connected with the luminance components detection device, 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 ingredient, and by the correcting luminance ingredient 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 image,
The corresponding output image of second scene image is the second correction image;Scene Recognition equipment connect with gamma correction equipment, is used for
Analysis of image content is carried out to the first correction image to be additionally operable to second to determine the scene type at the top of mobile phone
It corrects image and 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 connect with acceleration detection equipment and scene Recognition equipment respectively, for unglazed above receiving
Signal, lower section without optical signal, mobile phone top at scene type be that pocket carries at the lower section of scene and mobile phone
Scene type be pocket carry scene when, send out pocket carrying judge signal;The dsp processor is additionally operable to sending out pocket
Carrying is when judging signal and receiving rule motor message, sends out user and walks about signal.
More specifically, in the mobile phone scene adaptive analysis platform, the platform further includes:Controller is assisted, is located at
On mobile phone, connect with the dsp processor, for receive user walk about signal when, the automatic incoming ring tone for improving mobile phone,
The vibration frequency of the automatic incoming call for improving mobile phone simultaneously.
More specifically, in the mobile phone scene adaptive analysis platform, the platform further includes:Real-time display equipment,
On mobile phone, connect 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 further includes:The dsp processor
It is integrated on one piece of integrated circuit board with association's controller.
Description of the drawings
Embodiment of the present invention is described below with reference to attached drawing, wherein:
Fig. 1 is the block diagram according to the mobile phone scene adaptive analysis platform shown in embodiment of the present invention.
Fig. 2 is the integrated circuit according to the control of the mobile phone scene adaptive analysis platform shown in embodiment of the present invention
The block diagram of plate.
Reference numeral: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
Specific implementation mode
The embodiment of 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 ratio non-smart mobile phone to get well, but non-smart mobile phone is stablized 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 (such as:Nokia's n81 dominant frequency has 369 megahertzs);And the dominant frequency of non-smart mobile phone is then relatively low,
The speed of service it is also slow (such as:5000 dominant frequency of Nokia is exactly 50 megahertzs).
Smart mobile phone (Smartphone) refers to having independent operating system, most of is big as PC
Screen machine, and be to touch capacitance plate, it is touch screens also to have part, and powerful practicability is high.It can be by user's voluntarily installation kit
The program that the third party service providers such as game provide is included, constantly the function of mobile phone is expanded by this class method, and can be with
The general name of so a kind of 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
The formula of single " 1+1=", " palm PC+mobile phone=smart mobile phone ".In a broad sense, smart mobile phone is in addition to having mobile phone
Outside call function, it is also equipped with most of function of PDA, especially personal information management and based on the clear of wireless data communication
Look at device and e-mail function.Smart mobile phone has provided enough screen size and bandwidth to the user, not only handy to carry about, but also
Wide stage is provided for running software and content service.Many value-added services can be with regard to this expansion, 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 can not formulate corresponding Setting pattern, and inconvenience is brought to the use of people.In order to overcome above-mentioned deficiency, the present invention to build
A kind of mobile phone scene adaptive analysis method, the method includes use mobile phone scene adaptive analysis platform with according to mobile phone
The variation of residing environment determines the different control models of cell phone incoming call.
Fig. 1 is the block diagram according to the mobile phone scene adaptive analysis platform shown in embodiment of the present invention, described
Platform includes:
Top optical sensor is arranged in 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 out top have optical signal, otherwise, send out 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 in 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 out lower section have optical signal, otherwise, send out lower section without optical signal.
The platform can also include:
Acceleration detection equipment is arranged on mobile phone, and whether the current kinetic track for detecting mobile phone is to meet rule
Movement locus, be then to send out rule motor message, otherwise, send out non-rule motor message.
The platform can also include:
First camera, is arranged in the top of mobile phone, and image data acquiring is carried out to obtain for the top scene to mobile phone
It obtains and exports the first scene image.
The platform can also include:
Second camera, is arranged in the lower section of mobile phone, and image data acquiring is carried out to obtain for the lower section scene to mobile phone
It obtains and exports the second scene image;
Gradient extraction equipment, for receiving the first scene image or the second scene image using as input picture, for defeated
The pixel value for entering each pixel in image, its pixel value is subtracted take absolute value after the pixel value of its same column downlink pixel with
The first absolute value is obtained, is taken absolute value after its pixel value to be subtracted to the pixel value of its following pixel of going together to obtain second absolutely
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 connect with the gradient extraction equipment, for for each pixel in input picture
Its gradient is compared by pixel value 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 that obtains that treated, each pixel of predetermined gradient threshold value is less than to gradient,
Directly using its pixel value as treated pixel value, treated that pixel value forms input for all pixels in input picture
The corresponding gradient of image handles image;Wherein, predetermined gradient threshold value is determined according to sharpening level, sharpening level is higher, presets ladder
It is smaller to spend threshold value;
Benchmark brightness obtains equipment, is connect with gradient processing equipment, handles image for receiving gradient, 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 described image luma prediction value to obtain the Benchmark brightness value that the gradient handles image;
Luminance components detection device is connect with gradient processing equipment, is handled image for receiving gradient, is obtained the gradient
Handle the non-luminance components of the luminance components and gradient processing image of image;
Gamma correction equipment obtains equipment with the Benchmark brightness respectively and the luminance components detection device is connect, uses
The luminance components that image is handled the gradient in the Benchmark brightness value for being handled image based on the gradient are corrected to obtain
Correcting luminance ingredient, and the correcting luminance ingredient is superimposed with the non-luminance components to obtain output image, wherein first
The corresponding output image of scene image is the first correction image, and the corresponding output image of the second scene image is the second correction chart
Picture;
Scene Recognition equipment is connect with gamma correction equipment, for carrying out analysis of image content to the first correction image, with
It determines the scene type at the top of mobile phone, is additionally operable to carry out analysis of image content to the second correction image, to determine hand
Scene type at the lower section of machine;Wherein, at the lower section of the scene type at the top of mobile phone and mobile phone
Scene type all includes indoor scene, outdoor scene, pocket carrying scene and dark scene;
Dsp processor is connect with acceleration detection equipment and scene Recognition equipment respectively, for unglazed above receiving
Signal, lower section without optical signal, mobile phone top at scene type be that pocket carries at the lower section of scene and mobile phone
Scene type be pocket carry scene when, send out pocket carrying judge signal;The dsp processor is additionally operable to sending out pocket
Carrying is when judging signal and receiving rule motor message, sends out user and walks about signal.
The platform can also include:
Assist controller, be located at mobile phone on, connect with the dsp processor, for receive user walk about signal when, oneself
The dynamic incoming ring tone for improving mobile phone, while the vibration frequency of the automatic incoming call for improving mobile phone.
The platform can also include:
Real-time display equipment is located on mobile phone, is connect 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 integrated circuit board.
In addition, the inside of dsp processor has special hardware multiplication using the separated Harvard structure of program and data
Device, widely used pile line operation provide special DSP instructions, can be used for quickly realizing that various Digital Signal Processing are calculated
Method.
According to the requirement of Digital Signal Processing, dsp processor generally 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 simultaneously access instruction sum number
According to.(3) there is quick RAM in piece, usually 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 executed parallel.(8) it supports pile line operation, makes fetching, translates
The operations such as code and execution can be with Overlapped Execution.
Classified according to the data format of dsp processor work.It is fixed that data are known as with the dsp chip that fixed point format works
Point dsp chip, such as TMS320C1X/C2X, TMS320C2XX/C5X, TMS320C54X/C62XX series of TI companies, AD companies
ADSP21XX series, the DSP16/16A of AT & T Corp., the MC56000 etc. of Motolora companies.The title to work in a floating-point format
For float-point DSP, the ADSP21XXX such as the TMS320C3X/C4X/C8X of TI companies, AD companies is serial, AT & T Corp.
The MC96002 etc. of DSP32/32C, Motolora company.
Mobile phone scene adaptive analysis platform using the present invention, for lacking in the prior art to the currently used shape of mobile phone
The technical issues of 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
It is measured in real time, is also integrated with dsp processor, association's controller to be based on above-mentioned testing result collaboration and judges that mobile phone is currently used
State has laid data basis for the subsequent differentiated setting of mobile phone.
It is understood that although the present invention has been disclosed in the preferred embodiments as above, above-described embodiment not to
Limit the present invention.For any person skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications all are 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 variation.Therefore, every content without departing from technical solution of the present invention is right according to the technical essence of the invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments still fall within the range of technical solution of the present invention protection
It is interior.