Invention content
To solve the above-mentioned problems, the present invention provides a kind of convenient methods for adjusting volume, by portable device
Place environment carries out high-precision image data extraction, the present environmental form of portable device is determined, to send out interior
Environmental signal, outdoor environment signal, pocket carry environmental signal or dark surrounds signal, and select receiving close to human temperature
When spending signal, starts the poly-lens camera and ambient enviroment is imaged, receiving the pocket from data extraction device
When carrying environmental signal, control portable device is additionally operable to receiving far to improve the information notification voice of portable device
When from human body temperature signal, the poly-lens camera is closed.
According to an aspect of the present invention, a kind of convenient method for adjusting volume is provided, this method includes:
1) a kind of sound volume regulating system measured based on temperature is provided, the system comprises:
Poly-lens camera is adopted for carrying out image data acquiring to the environment residing for portable device with obtaining multiple scenes
Collect image, each collection in worksite image is originated from the imaging to the transmitted light from the magazine lens of poly-lens;Wherein,
The poly-lens camera includes multiple lens and imaging sensor;Information analyzing equipment is connect with the poly-lens camera, is used
In receiving the multiple collection in worksite image, information analysis is carried out to each collection in worksite image to determine that each scene is adopted
Collect the centre of form of image, information analysis also is carried out to determine the scape of each collection in worksite image to each collection in worksite image
It is deep;
Depth of field measuring apparatus is connect with described information analytical equipment, the depth of field for receiving each collection in worksite image, and
Processing is averaged to obtain the average depth of field to the depth of field of each collection in worksite image;Image output device, respectively with it is described
Information analyzing equipment is connected with the depth of field measuring apparatus, for executing following processing to each collection in worksite image:With every
Centered on the centre of form of one collection in worksite image, rectangle subgraph is obtained as radius using the average depth of field;Described image exports
Equipment splices the rectangle subgraph of corresponding multiple collection in worksite images to obtain according further to putting in order for multiple lens
It obtains and exports stitching image;
First amplitude of variation detection device, connect with image output device, for receiving stitching image, for stitching image
In each pixel pixel value, its pixel value is subtracted to the difference obtained after the pixel value of its same column downlink pixel and is done square
To obtain the first square value, its pixel value is subtracted to the difference obtained after the pixel value of its following pixel of going together and is done square to obtain
Second square value, it is being obtained after the first square value is added with the second square value and carry out evolution to obtain the first amplitude of variation,
Wherein, the first amplitude of variation of each pixel of last column of stitching image directly takes the of the same column pixel of lastrow
First amplitude of variation of one amplitude of variation, each pixel of last row of stitching image directly takes colleague's picture of previous column
First amplitude of variation of element;Second amplitude of variation detection device, connect with image output device, right for receiving stitching image
The pixel value of each pixel in stitching image takes absolutely after its pixel value to be subtracted to the pixel value of its same column downlink pixel
Value 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 with obtaining the first absolute value
It is being obtained after the first absolute value is added with the second absolute value and as the second amplitude of variation to value, wherein stitching image is most
The second amplitude of variation of each pixel of a line directly takes the second amplitude of variation of the same column pixel of lastrow, spliced map afterwards
Second amplitude of variation of each pixel of last row of picture directly takes the second amplitude of variation of colleague's pixel of previous column;
Amplitude of variation selects equipment, is detected respectively with the first amplitude of variation detection device and second amplitude of variation
Equipment connects, for the pixel value for each pixel in stitching image, by its first amplitude of variation and its second variation
Amplitude compares, and takes the maximum value amplitude of variation the most final between its first amplitude of variation and its second amplitude of variation;Variation
Amplitude processing equipment is connect with amplitude of variation selection equipment, for the pixel for each pixel in stitching image
Value, its final amplitude of variation is compared with default amplitude of variation threshold value, is more than or equal to default become for final amplitude of variation
The each pixel for changing amplitude threshold is sharpened processing with the pixel value that obtains that treated, to finally changing width to its pixel value
Degree is less than each pixel of default amplitude of variation threshold value, directly using its pixel value as treated pixel value, in stitching image
All pixels treated pixel value form the corresponding amplitude processed image of stitching image;
Temperature sensor, setting on portable devices and far from portable device heater element, for determine near
Whether temperature is close to human body temperature, correspondingly to send out close to human body temperature signal or far from human body temperature signal;Data are extracted
Equipment is connect with the amplitude of variation processing equipment, for carrying out image data extraction to amplitude processed image, to determine just
The present environmental form of portable device, with send out indoor environment signal, outdoor environment signal, pocket carry environmental signal or
Dark surrounds signal, the present environmental form of portable device include indoor environment, outdoor environment, pocket carry environment and
Dark surrounds;
Main control chip, for when receiving close to human body temperature signal, starting the poly-lens camera, and receiving
When pocket from data extraction device carries environmental signal, control portable device is notified with the information for improving portable device
Sound;Main control chip is additionally operable to, when receiving far from human body temperature signal, close the poly-lens camera;And
2) it is adjusted using the regulating system.
More specifically, in the sound volume regulating system measured based on temperature:Default variation is determined according to sharpening level
Amplitude threshold, sharpening level is higher, and it is smaller to preset amplitude of variation threshold value.
More specifically, in the sound volume regulating system measured based on temperature:The poly-lens camera further includes flash of light
Lamp, brightness detection device and flash of light control device, the brightness detection device is for detecting and exporting the poly-lens camera
Ambient brightness, the flash of light control device is connect with the flash lamp and the brightness detection device respectively, for connecing
The ambient brightness is received, and the flash lamp is turned on and off based on ambient brightness determination.
More specifically, in the sound volume regulating system measured based on temperature:The flash of light control device is based on described
Ambient brightness determination is turned on and off the flash lamp and further includes:When the ambient brightness is more than or equal to predetermined luminance
When threshold value, the flash of light control device closes the flash lamp.
More specifically, in the sound volume regulating system measured based on temperature:The flash of light control device is based on described
Ambient brightness determination is turned on and off the flash lamp and further includes:When the ambient brightness is less than predetermined luminance threshold value
When, the flash of light control device opens the flash lamp.
More specifically, in the sound volume regulating system measured based on temperature:Described in the flash of light control device is opened
When flash lamp, the flash of light control device determines the flash intensity that the flash lamp is sent out also according to the ambient brightness.
More specifically, in the sound volume regulating system measured based on temperature:The flash of light control device is also according to institute
Stating the flash intensity that ambient brightness determines that the flash lamp is sent out includes:The ambient brightness is smaller, the flash of light
The flash intensity that lamp is sent out is higher.
Specific implementation mode
The embodiment for the sound volume regulating system of the present invention measured based on temperature is carried out below with reference to accompanying drawings detailed
Explanation.
Portable device can meet a variety of demands of user anywhere or anytime.The exploitation needs of portable device use control
Part.For developer the problem of portable device platform can encounter interface and how interaction shows, control solves the problems, such as this.Phase
For traditional equipment, portable device supports the touching of hand, therefore portable device control also more focuses on that touch screen moves
Dynamic equipment and design function.Traditional control, such as button, textbox, date control are also increased to portable device platform
Support.
But as portable device platform becomes to become increasingly complex, the demand of people is also higher and higher.The interface more beautified,
It more succinctly efficiently operates, more easily control.More controls are come out on portable devices so that on portable device
Exploitation programs an easily thing.It is effective that user is helped to create mobile applications.
Portable device existing hardware can be utilized to be detected environment where portable device currently, also lacking one kind
Recognition mechanism, corresponding volume control can not be carried out.In order to overcome above-mentioned deficiency, the present invention to build a kind of convenient adjusting sound
The method of amount, this method include:1) a kind of sound volume regulating system measured based on temperature is provided;And 2) it is using the adjusting
It unites to be adjusted.
Fig. 1 be according to the block diagram of the sound volume regulating system measured based on temperature shown in embodiment of the present invention,
The system comprises:
Poly-lens camera, as shown in Fig. 2, for carrying out image data acquiring to the environment residing for portable device to obtain
Multiple collection in worksite images, each collection in worksite image are originated to the transmitted light from the magazine lens of poly-lens
Imaging;
Wherein, the poly-lens camera includes multiple lens and imaging sensor;
Information analyzing equipment is connect with the poly-lens camera, for receiving the multiple collection in worksite image, to each
A collection in worksite image carries out information analysis to determine the centre of form of each collection in worksite image, also to each collection in worksite figure
As carrying out information analysis to determine the depth of field of each collection in worksite image;
Depth of field measuring apparatus is connect with described information analytical equipment, the depth of field for receiving each collection in worksite image, and
Processing is averaged to obtain the average depth of field to the depth of field of each collection in worksite image;
Image output device is connect with described information analytical equipment and the depth of field measuring apparatus respectively, for each
A collection in worksite image executes following processing:Centered on the centre of form of each collection in worksite image, it is with the average depth of field
Radius obtains rectangle subgraph;Described image output equipment adopts corresponding multiple scenes according further to putting in order for multiple lens
The rectangle subgraph of collection image is spliced to obtain and export stitching image;
First amplitude of variation detection device, connect with image output device, for receiving stitching image, for stitching image
In each pixel pixel value, its pixel value is subtracted to the difference obtained after the pixel value of its same column downlink pixel and is done square
To obtain the first square value, its pixel value is subtracted to the difference obtained after the pixel value of its following pixel of going together and is done square to obtain
Second square value, it is being obtained after the first square value is added with the second square value and carry out evolution to obtain the first amplitude of variation,
Wherein, the first amplitude of variation of each pixel of last column of stitching image directly takes the of the same column pixel of lastrow
First amplitude of variation of one amplitude of variation, each pixel of last row of stitching image directly takes colleague's picture of previous column
First amplitude of variation of element;
Second amplitude of variation detection device, connect with image output device, for receiving stitching image, for stitching image
In each pixel pixel value, taken absolute value after its pixel value to be subtracted to the pixel value of its same column downlink pixel to obtain
One absolute value takes absolute value to obtain the second absolute value after its pixel value to be subtracted to the pixel value of its following pixel of going together, by
It is that one absolute value obtains after being added with the second absolute value and as the second amplitude of variation, wherein last column of stitching image
Second amplitude of variation of each pixel directly takes the second amplitude of variation of the same column pixel of lastrow, stitching image it is last
Second amplitude of variation of each pixel of one row directly takes the second amplitude of variation of colleague's pixel of previous column;
Amplitude of variation selects equipment, is detected respectively with the first amplitude of variation detection device and second amplitude of variation
Equipment connects, for the pixel value for each pixel in stitching image, by its first amplitude of variation and its second variation
Amplitude compares, and takes the maximum value amplitude of variation the most final between its first amplitude of variation and its second amplitude of variation;
Amplitude of variation processing equipment is connect with amplitude of variation selection equipment, for for each in stitching image
Its final amplitude of variation is compared by the pixel value of a pixel with default amplitude of variation threshold value, big for final amplitude of variation
In each pixel equal to default amplitude of variation threshold value, processing is sharpened to its pixel value with the pixel value that obtains that treated,
It is less than each pixel of default amplitude of variation threshold value to final amplitude of variation, directly using its pixel value as treated pixel
Value, treated that pixel value forms the corresponding amplitude processed image of stitching image for all pixels in stitching image;
Temperature sensor, setting on portable devices and far from portable device heater element, for determine near
Whether temperature is close to human body temperature, correspondingly to send out close to human body temperature signal or far from human body temperature signal;
Data extraction device is connect with the amplitude of variation processing equipment, for carrying out image to amplitude processed image
Data extract, to determine the present environmental form of portable device, with send out indoor environment signal, outdoor environment signal,
Pocket carries environmental signal or dark surrounds signal, and the present environmental form of portable device includes indoor environment, outdoor
Environment, pocket carry environment and dark surrounds;
Main control chip, for when receiving close to human body temperature signal, starting the poly-lens camera, and receiving
When pocket from data extraction device carries environmental signal, control portable device is notified with the information for improving portable device
Sound;Main control chip is additionally operable to, when receiving far from human body temperature signal, close the poly-lens camera.
Then, continue to carry out further the concrete structure for the sound volume regulating system of the present invention measured based on temperature
It is bright.
In the sound volume regulating system:
It is determined according to sharpening level and presets amplitude of variation threshold value, sharpening level is higher, and it is smaller to preset amplitude of variation threshold value.
In the sound volume regulating system:
The poly-lens camera further includes flash lamp, brightness detection device and flash of light control device, the brightness detection
Equipment is used to detect and export the ambient brightness of the poly-lens camera, the flash of light control device respectively with the flash of light
Lamp is connected with the brightness detection device, is determined for receiving the ambient brightness, and based on the ambient brightness
It is turned on and off the flash lamp.
In the sound volume regulating system:
The flash of light control device is turned on and off the flash lamp based on ambient brightness determination:When
When the ambient brightness is more than or equal to predetermined luminance threshold value, the flash of light control device closes the flash lamp.
In the sound volume regulating system:
The flash of light control device is turned on and off the flash lamp based on ambient brightness determination:When
When the ambient brightness is less than predetermined luminance threshold value, the flash of light control device opens the flash lamp.
In the sound volume regulating system:
When the flash of light control device opens the flash lamp, the flash of light control device is bright also according to the ambient enviroment
Degree determines the flash intensity that the flash lamp is sent out.
In the sound volume regulating system:
The flash of light control device determines the flash intensity packet that the flash lamp is sent out also according to the ambient brightness
It includes:The ambient brightness is smaller, and the flash intensity that the flash lamp is sent out is higher.
In addition, can also include frequency duplex communications equipment in the sound volume regulating system, be set with data extraction
Standby connection carries environmental signal for transmitting wirelessly the pocket from data extraction device.
Frequency division duplex refers to that the transmission of uplink and downlink carries out over different frequencies respectively.
In mode of frequency division duplexing, the transmission of uplink and downlink carries out over different frequencies respectively.It is former
Reason is as shown below.F1 and f2 is respectively carrying out the transmission frequency and receives frequency of a certain mobile station of business transmission.
In the first and second generation cellular system, it is substantially and duplex transmission is realized using FDD technologies.Especially
In generation cellular system, baseband signal is continuous due to transmission, it is necessary to the uplink and downlink of duplex is provided with different frequencies
Link channel.When transmitting continuous information using FDD technologies in first generation cellular system, transmitting-receiving two-end must all have generation different
The frequency synthesizer of carrier frequency, receiving terminal must also there are one prevent transmitting signals leakiness to receiver duplex filter
Device.In addition, for the ease of the making of duplexer, there is certain frequency interval between transmitting-receiving carrier frequency.In the second generation
In the systems such as GSM, IS-136 and IS-95, FDD technologies are also used.In such systems, due to information be with slotted mode into
Row transmission, transmitting-receiving can carry out in different time slots, and the transmitting signal of mobile station or base station will not generate this receiver
Interference.So although with FDD technologies, do not need expensive duplexer filter yet.
The characteristics of fdd mode is the system on two symmetrical frequency channels of separation (uplink and downlink frequency interval 190MHz)
It is received and is transmitted, reception and transmission channel are detached with protection frequency range.
Using technologies such as packet switch, the bottleneck of two generations development can be broken through, realizes high-speed data service, and frequency spectrum profit can be improved
With rate, increase power system capacity.But FDD must use pairs of frequency, i.e., third generation business is provided in the bandwidth of every 2x5MHz.
Which can make full use of the frequency spectrum of uplink and downlink, but in asymmetrical packet switch (internet) work when supporting symmetrical service
When making, the availability of frequency spectrum then substantially reduce (due to low ascending load, the availability of frequency spectrum is caused to reduce about 40%), in this regard,
The advantage that tdd mode has FDD incomparable.
The sound volume regulating system using the present invention measured based on temperature, for portable device volume control in the prior art
The technical issues of system solidification, introduces multiple targetedly rings while making full use of portable device existing hardware resource
Border image processing equipment further determines that portable device local environment to improve the precision of ambient image, is based on residing ring
Different volumes is formulated in border, to convenient for users to use.
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.