CN104580832A - Terminal - Google Patents

Terminal Download PDF

Info

Publication number
CN104580832A
CN104580832A CN201410856530.6A CN201410856530A CN104580832A CN 104580832 A CN104580832 A CN 104580832A CN 201410856530 A CN201410856530 A CN 201410856530A CN 104580832 A CN104580832 A CN 104580832A
Authority
CN
China
Prior art keywords
image
described image
judging unit
resource
scene
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.)
Pending
Application number
CN201410856530.6A
Other languages
Chinese (zh)
Inventor
卢伟冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201410856530.6A priority Critical patent/CN104580832A/en
Publication of CN104580832A publication Critical patent/CN104580832A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention relates to the technical field of camera shooting and discloses a terminal. The terminal can comprise an acquisition unit, a first judging unit, a second judging unit and a first processing unit, wherein the acquisition unit is used for analyzing an image after the image is collected to obtain the scene type of the image, the first judging unit is used for judging whether enhancement processing needs to be carried out on the image according to the scene type of the image acquired by the acquisition unit, the second judging unit is used for judging whether resources for processing the image are available if the judgment result of the first judging unit is yes, and the first processing unit is used for carrying out the enhancement processing on the image aiming at the scene of the image when judgment result of the second judging unit is yes, so that the processed image is obtained. The terminal firstly judges whether resources for processing the image are available in the system before the enhancement processing is carried out on the image, the defect that in the prior art, a next image cannot be collected until scene pertinence processing is finished is overcome, and therefore the shooting efficiency of the terminal is improved.

Description

A kind of terminal
Technical field
The present invention relates to camera technique field, particularly relate to a kind of terminal.
Background technology
Along with the development of terminal technology, it is more and more convenient that terminal is carried, and user is taken by terminal mostly.In prior art, a kind of mode is that user manually arranges screening-mode, but for non-professional camera operator, due to the setting not having enough professional knowledge to implement screening-mode, screening-mode is manually set unaccommodated screening-mode may be caused to be falsely dropped.Another kind of mode is the function that terminal has scene and automatically processes, but this mode is after having gathered an image, usually need to wait for that image procossing terminates, just start to gather next image, and the amount of calculation of general pattern process is larger, and need waiting system resource, cause image procossing to postpone, and then affect the shooting efficiency of terminal.
Summary of the invention
The embodiment of the present invention provides a kind of terminal, for improving the efficiency of terminal taking.
Embodiments provide a kind of terminal, it can comprise:
Acquiring unit, for after collection image, analyzes described image, obtains the scene type of described image;
First judging unit, the scene type for the described image got according to described acquiring unit judges whether to need to carry out enhancing process to described image;
Second judging unit, for when described first judging unit is judged as YES, judges whether the resource for the treatment of described image;
First processing unit, for when described second judging unit is judged as YES, the scene for described image carries out enhancing process to described image, obtains the image after processing.
The embodiment of the present invention, after collection image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, scene then for described image carries out enhancing process to described image, obtain the image after processing, the embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the first embodiment of a kind of photographic method that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the second embodiment of a kind of photographic method that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the 3rd embodiment of a kind of photographic method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the first embodiment of a kind of terminal that Fig. 4 provides for the embodiment of the present invention;
The structural representation of the second embodiment of a kind of terminal that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the 3rd embodiment of a kind of terminal that Fig. 6 provides for this aspect embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The terminal mentioned in the embodiment of the present invention can comprise PC, smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palmtop PC, mobile internet device (Mobile Internet Devices, MID) or other equipment with shoot function etc.
Embodiments provide a kind of terminal and the enforceable a kind of photographic method of this terminal, be described in detail below in conjunction with accompanying drawing.
Refer to Fig. 1, the schematic flow sheet of the first embodiment of a kind of photographic method that Fig. 1 provides for the embodiment of the present invention, as shown in Figure 1, this photographic method can comprise the steps:
S101, collection image after, analyze described image, obtain the scene type of described image.
In the execution mode that some are feasible, first camera acquisition image is started, analyze above-mentioned picture material, obtain above-mentioned picture material, wherein, picture material includes but not limited to: personage, geographical position and light etc., the scene type of the above-mentioned image of scene classification Algorithm Analysis is adopted according to the picture material got, obtain the scene type of above-mentioned image, wherein, above-mentioned scene type includes but not limited to: backlight scene, have mist scene, cloudy scene and have face scene etc.
S102, according to the scene type of described image judge whether need to described image carry out enhancings process.
In the execution mode that some are feasible, terminal is according to the scene type of the above-mentioned image got, judge whether that needing to carry out scene to above-mentioned image strengthens process targetedly, such as, backlight scene needs to carry out BLC, there is mist scene to need to increase contrast, have face scene to need to carry out landscaping treatment etc. to face.
S103, if desired to described image carry out enhancing process, then judge whether the resource for the treatment of described image.
In the embodiment of the present invention, for the treatment of the resource of image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: CPU (Central Processing Unit, central processing unit) resource, GPU (Graphic Processing Unit, graphic process unit) resource and/or DSP (Digital Signal Process, digital signal processor) resource.
In the execution mode that some are feasible, after the above-mentioned image of terminal judges needs to strengthen process, the resource for the treatment of above-mentioned image whether is had according to the resource consumption condition adjudgement for the treatment of system, wherein, the resource of resource for immediately processing image and delay disposal image is comprised for the treatment of the resource of image.
If S104 has the resource for the treatment of described image, then the scene for described image carries out enhancing process to described image, obtains the image after processing.
In the execution mode that some are feasible, the resource had for the treatment of above-mentioned image if judge, then the scene for above-mentioned image carries out enhancing process to above-mentioned image, such as, the scene of above-mentioned image is backlight scene, then carry out BLC process for backlight scene, obtains the image after processing.
The embodiment of the present invention, after collection image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, scene then for described image carries out enhancing process to described image, obtain the image after processing, the embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Refer to Fig. 2, the schematic flow sheet of the second embodiment of a kind of photographic method that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, this photographic method can comprise the steps:
S201, collection image after, analyze described image, obtain the scene type of described image.
In the execution mode that some are feasible, first camera acquisition image is started, analyze above-mentioned picture material, obtain above-mentioned picture material, wherein, picture material includes but not limited to: personage, geographical position and light etc., the scene type of the above-mentioned image of scene classification Algorithm Analysis is adopted according to the picture material got, obtain the scene type of above-mentioned image, wherein, above-mentioned scene type includes but not limited to: backlight scene, have mist scene, cloudy scene and have face scene etc.
S202, according to the scene type of described image judge whether need to described image carry out enhancings process, if so, forward S203 to, otherwise directly described image be stored to primary importance.
In the execution mode that some are feasible, terminal is according to the scene type of the above-mentioned image got, judge whether that needing to carry out scene to above-mentioned image strengthens process targetedly, such as, backlight scene needs to carry out BLC, there is mist scene to need to increase contrast, have face scene to need to carry out landscaping treatment etc. to face.
S203, the resource judging whether for immediately processing described image, if so, forward S204 to, otherwise forward S206 to.
In the embodiment of the present invention, for immediately processing the resource of image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.
In the execution mode that some are feasible, if judge to need to carry out enhancing process to above-mentioned image according to the scene type of above-mentioned image, then whether there is the resource for immediately processing above-mentioned image according to the resource consumption condition adjudgement for the treatment of system.
Further, if judge that not needing to carry out to above-mentioned image enhancings processes according to the scene type of above-mentioned image, then direct above-mentioned image is stored to above-mentioned primary importance.
S204, for described image scene to described image carry out enhancing process, obtain process after image.
In the execution mode that some are feasible, if having the resource for immediately processing above-mentioned image according to the resource consumption condition adjudgement for the treatment of system, then the direct scene for above-mentioned image carries out enhancing process to above-mentioned image, obtains the image after processing.
S205, the image after described process is stored to primary importance.
In the execution mode that some are feasible, terminal is carried out after enhancing process completes to above-mentioned image, obtain the image after processing, and the image after process is stored to above-mentioned primary importance, wherein, above-mentioned primary importance is the memory location that user presets for storing photographic images, and above-mentioned primary importance includes but not limited to: the local memory space of terminal, high in the clouds, or the memory space of the external carry of described terminal etc.
In the execution mode that some are feasible, primary importance can be stored to by after the image compression after process.
S206, judge whether, for the resource of image described in delay disposal, if so, to forward S207 to, otherwise directly described image is stored to primary importance.
In the embodiment of the present invention, for the resource of delay disposal image, comprise processor resource and/or the memory source of terminal or system.
In the execution mode that some are feasible, if according to the resource consumption condition adjudgement of the treatment system resource not used for the above-mentioned image of instant process, then judge whether the resource for the above-mentioned image of delay disposal.
S207, the Processing tasks corresponding with described image is added into delay disposal queue.
In the execution mode that some are feasible, if there is the resource for the above-mentioned image of delay disposal, then above-mentioned image and scene information are stored to the second place, wherein, said second position is the memory location for register map picture and scene, said second position includes but not limited to: RAM (Random-Access Memory, random access memory), flash memory or hard disk etc.Above-mentioned image and scene information are preferentially stored in RAM, if during RAM memory space inadequate, above-mentioned image and scene information are stored in flash memory or hard disk.The Processing tasks corresponding with above-mentioned image is added into delay disposal queue.
Further, if not used for the resource of the described image of process, then direct above-mentioned image is stored to above-mentioned primary importance.
S208, according to preset clooating sequence to the task in described delay disposal queue carry out enhancings process.
In the execution mode that some are feasible, for the task in above-mentioned delay disposal queue, terminal priority treatment can be stored in the Processing tasks of RAM, and then processes being stored in flash memory or hard disk of task.Sort according to the time adding above-mentioned delay disposal queue as the Processing tasks being stored in RAM, terminal carries out enhancing process according to the order of sequence to being stored in RAM of task.Sort according to the time adding above-mentioned delay queue as being stored in flash memory or hard disk of task, terminal, after processing above-mentioned being stored in RAM of task, then processes being stored in flash memory or hard disk of task according to clooating sequence.
Further, before the scene for above-mentioned image carries out enhancing process to above-mentioned image, above-mentioned image can be stored to above-mentioned primary importance.
Further, before the image after above-mentioned image or above-mentioned process is stored to above-mentioned primary importance, the image after above-mentioned image or above-mentioned process is compressed.
In concrete enforcement, after enhancing process being carried out to the task in described delay disposal queue according to the clooating sequence preset, the image after processing will be obtained, then the image after described process is stored in primary importance.
The embodiment of the present invention, by gathering image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, scene then for described image carries out enhancing process to described image, obtain the image after processing, the embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Refer to Fig. 3, the schematic flow sheet of the 3rd embodiment of a kind of photographic method that Fig. 3 provides for the embodiment of the present invention, wherein Fig. 3 is treated to example is described to carry out mist elimination to image.As shown in Figure 3, this photographic method can comprise the steps:
S301, collection image after, analyze described image, obtain the scene type of described image.
In concrete enforcement, step S301 can refer to step S101 embodiment illustrated in fig. 1, is not repeated herein.
If the scene type of the described image of S302 includes mist scene, then judge whether to need to carry out mist elimination process to described image, if so, forward S303 to, otherwise directly described image is stored to primary importance.
In the execution mode that some are feasible, judge whether to need to carry out mist elimination process to described image, can comprise:
Determine the grey level histogram of non-sky areas pixel in the dark channel image of described image; Add up gray value in this grey level histogram and preset the number of the pixel of gray value lower than first; If the number of pixels counted accounts for the ratio of total number of pixels in this grey level histogram lower than the proportion threshold value preset, not can think and need to carry out mist elimination process to described image, otherwise think that needs carry out mist elimination process to described image.
In the execution mode that other are feasible, judge whether to need to carry out mist elimination process to described image, can comprise:
Determine the grey level histogram of non-sky areas pixel in the dark channel image of described image; Choose number or ratio according to what preset, from this grey level histogram, choose one or more pixels that brightness value is minimum; If the highest gray value of the one or more pixels selected presets gray value higher than second, can think and need to carry out mist elimination process to described image, otherwise not can think and need to carry out mist elimination process to described image.
Particularly, need if not think to carry out mist elimination process to described image, then direct described image is stored to primary importance.
Particularly, the grey level histogram of non-sky areas pixel in the dark channel image of described image be determined, first determine the dark channel image J of described image dark, then according to J darkdetermine the grey level histogram H of dark channel image, and grey level histogram H is revised, finally draw the grey level histogram H ' of non-sky areas.
In the embodiment of the present invention, the image of collection can be RGB image, such as bitmap, the forms such as jpeg, png.The now dark channel image J of described image darkcomputing formula as follows:
J dark ( x ) = min y ∈ Ω ( x ) ( min c ∈ { r , g , b } ( J c ( y ) ) )
Wherein x represents pixel coordinate, and C represents Color Channel, and { r, g, b} represent that C belongs to the one in three kinds of Color Channels to c ∈, J cy pixel value that () is initial pictures, Ω (x) represents the neighborhood of pixels of selected pixel x, and { r, g, b} are haematochrome value, marennin value, the cyanine value of pixel.
In addition, when described image is bayer types of image, the dark channel image J of described image darkcomputing formula as follows:
J dark = min y ∈ Ω { x } ( I bayer ( y ) )
Wherein x represents pixel coordinate, and Ω (x) represents the neighborhood of pixels of selected pixel x.
Particularly, the modification method of grey level histogram H can be: by gray value in H close to or higher than the minimum color channel values of atmosphere light color histogram element reset, draw the grey level histogram H ' of non-sky areas.Also can, by directly determining that the histogram of non-sky areas in image obtains, sky areas can be avoided the interference judged by the grey level histogram of non-sky areas.
S303, judge whether, for instant resource of described image being carried out to mist elimination process, if so, to forward S304 to, otherwise forward S306 to.
In the embodiment of the present invention, for instant resource of described image being carried out to mist elimination process, comprise processor resource and/or the memory source of terminal or system.
In the execution mode that some are feasible, if judge that above-mentioned image needs mist elimination process according to the grey level histogram determined, then whether have for instant resource of described image being carried out to mist elimination process according to the resource consumption condition adjudgement of terminal processing system.
S304, mist elimination process is carried out to described image, obtain the image after mist elimination process.
In the execution mode that some are feasible, have for instant resource of described image being carried out to mist elimination process process if judge, then mist elimination process is carried out to above-mentioned image.
S305, the image after mist elimination process is stored to primary importance.
Particularly, primary importance is the memory location that user presets for storing photographic images, and primary importance includes but not limited to: the local memory space of terminal, high in the clouds, or the memory space of the external carry of described terminal etc.
In the execution mode that some are feasible, primary importance can be stored to by after the image compression after mist elimination process.
S306, judging whether to carry out processing the resource of mist elimination to described image for postponing, if so, forwarding S307 to, otherwise directly described image being stored to described primary importance.
In the embodiment of the present invention, for postponing the resource carrying out processing mist elimination to described image, comprise processor resource and/or the memory source of terminal or system.
Particularly, if not used for instant resource of described image being carried out to mist elimination process, then judging whether to carry out processing the resource of mist elimination to described image for postponing, if also not used for postponing the resource carrying out processing mist elimination to described image, then direct described image being stored to primary importance.
S307, described image and mist elimination information are stored to the second place, and the mist elimination Processing tasks of described image is added into delay disposal queue.
Wherein, the described second place is the memory location for register map picture and scene, and the described second place includes but not limited to: RAM, flash memory or hard disk etc.Above-mentioned image and scene information are preferentially stored in RAM, if during RAM memory space inadequate, above-mentioned image and scene information are stored in flash memory or hard disk.
For the task in delay disposal queue, according to the clooating sequence preset, the task in above-mentioned delay disposal queue is processed.Alternatively, priority treatment can be stored in the Processing tasks of RAM, and then process being stored in flash memory or hard disk of task.Sort according to the time adding above-mentioned delay disposal queue as the Processing tasks being stored in RAM, terminal carries out enhancing process according to the order of sequence to being stored in RAM of task.Sort according to the time adding above-mentioned delay queue as being stored in flash memory or hard disk of task, terminal, after processing above-mentioned being stored in RAM of task, then processes being stored in flash memory or hard disk of task according to clooating sequence.
The embodiment of the present invention, by gathering image, analyze described image, obtain the scene type of described image, judge whether to need to carry out mist elimination process to described image according to the scene type of described image, if described image needs mist elimination, then have for instant the resource of mist elimination process is carried out to described image time instant mist elimination process is carried out to described image, otherwise when there being the resource for postponing the mist elimination process of described image, the process of delay mist elimination is carried out to described image, if both useless in instant resource of described image being carried out to mist elimination process, also useless in postponing the resource of described image being carried out to mist elimination process, then direct described image is stored to primary importance, and without the need to waiting for the mist elimination processing procedure of described image.The embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Refer to Fig. 4, the structural representation of the first embodiment of a kind of terminal that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, this terminal can comprise:
Acquiring unit 401, for after collection image, analyzes described image, obtains the scene type of described image.
In the execution mode that some are feasible, first camera acquisition image is started, analyze above-mentioned picture material, obtain above-mentioned picture material, wherein, picture material includes but not limited to: personage, geographical position and light etc., the scene type of the above-mentioned image of scene classification Algorithm Analysis is adopted according to the picture material got, obtain the scene type of above-mentioned image, wherein, above-mentioned scene type includes but not limited to: backlight scene, have mist scene, cloudy scene and have face scene etc.
First judging unit 402, the scene type for the described image got according to described acquiring unit judges whether to need to carry out enhancing process to described image.
In the execution mode that some are feasible, terminal is according to the scene type of the above-mentioned image got, judge whether that needing to carry out scene to above-mentioned image strengthens process targetedly, such as, backlight scene needs to carry out BLC, there is mist scene to need to increase contrast, have face scene to need to carry out landscaping treatment etc. to face.
Second judging unit 403, for when described first judging unit is judged as YES, judges whether the resource for the treatment of described image.
In the embodiment of the present invention, for the treatment of the resource of image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.
In the execution mode that some are feasible, after the above-mentioned image of terminal judges needs to strengthen process, the resource for the treatment of above-mentioned image whether is had according to the resource consumption condition adjudgement for the treatment of system, wherein, the resource of resource for immediately processing image and delay disposal image is comprised for the treatment of the resource of image.
First processing unit 404, for when described second judging unit is judged as YES, the scene for described image carries out enhancing process to described image, obtains the image after processing.
In the execution mode that some are feasible, the resource had for the treatment of above-mentioned image if judge, then the scene for above-mentioned image carries out enhancing process to above-mentioned image, such as, the scene of above-mentioned image is backlight scene, then carry out BLC process for backlight scene, obtains the image after processing.
The embodiment of the present invention, after collection image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, scene then for described image carries out enhancing process to described image, obtain the image after processing, the embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Refer to Fig. 5, the structural representation of the second embodiment of a kind of terminal that Fig. 5 provides for the embodiment of the present invention, as shown in Figure 5, on the basis of Fig. 4, this terminal also can comprise at least one in the first memory cell 405 and compression unit 406, wherein:
First memory cell 405, for the image after process is stored to primary importance, or, for being stored to described primary importance by after the image compression after described process.
In the execution mode that some are feasible, the first memory cell 405 be also used in the first judging unit 402 be judged as NO or the second judging unit 403 is judged as NO time, described image is stored to described primary importance
In the execution mode that some are feasible, the first memory cell 405 be also used in the first processing unit 404 for described image scene to described image carry out enhancing process before, described image is stored to described primary importance.
Wherein, described primary importance is the memory location that user presets for storing photographic images, and described primary importance includes but not limited to: the local memory space of terminal, high in the clouds, or the memory space of the external carry of described terminal etc.
Compression unit 406, before described image being stored to described primary importance in described first memory cell 405, compresses described image.
In the execution mode that some are feasible, second judging unit 403 can comprise the 3rd judging unit 4031, the 4th judging unit 4032, first processing unit 404 can comprise the second processing unit 4041, second memory cell 4042, adding device 4043 and the 3rd processing unit 4044, wherein:
3rd judging unit 4031, for judging whether the resource for immediately processing described image.
In the embodiment of the present invention, for immediately processing the resource of image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.In the execution mode that some are feasible, if judge that needing to carry out to above-mentioned image enhancings processes according to the scene type of above-mentioned image, then whether the 3rd judging unit 4031 has resource for immediately processing above-mentioned image according to the resource consumption condition adjudgement for the treatment of system.
Second processing unit 4041, for when described 3rd judging unit 4031 is judged as YES, the scene for described image carries out enhancing process to described image.
4th judging unit 4032, for when described 3rd judging unit 4031 is judged as NO, judges whether the resource for image described in delay disposal.
In the embodiment of the present invention, for the resource of delay disposal image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.
Second memory cell 4042, for when described 4th judging unit is judged as YES, is stored to the second place by described image and scene information.
Wherein, the described second place is the memory location for register map picture and scene, and the described second place includes but not limited to: RAM, flash memory or hard disk etc.Above-mentioned image and scene information are preferentially stored in RAM, if during RAM memory space inadequate, above-mentioned image and scene information are stored in flash memory or hard disk.
Adding device 4043, for being added into delay disposal queue by the Processing tasks corresponding with described image.
3rd processing unit 4044, for carrying out enhancing process according to the clooating sequence preset to the task in described delay disposal queue.
In the execution mode that some are feasible, for the task in above-mentioned delay disposal queue, the 3rd processing unit 4044 priority treatment can be stored in the Processing tasks of RAM, and then processes being stored in flash memory or hard disk of task.Sort according to the time adding above-mentioned delay disposal queue as the Processing tasks being stored in RAM, terminal carries out enhancing process according to the order of sequence to being stored in RAM of task.Sort according to the time adding above-mentioned delay queue as being stored in flash memory or hard disk of task, terminal, after processing above-mentioned being stored in RAM of task, then processes being stored in flash memory or hard disk of task according to clooating sequence.
In the execution mode that some are feasible, described first judging unit 402, also for when the scene type of described image includes mist scene, judges whether to need to carry out mist elimination process to described image.
In the execution mode that some are feasible, judge whether to need to carry out mist elimination process to described image, can comprise:
Determine the grey level histogram of non-sky areas pixel in the dark channel image of described image; Add up gray value in this grey level histogram and preset the number of the pixel of gray value lower than first; If the number of pixels counted accounts for the ratio of total number of pixels in this grey level histogram lower than the proportion threshold value preset, not can think and need to carry out mist elimination process to described image, otherwise think that needs carry out mist elimination process to described image.
In the execution mode that other are feasible, judge whether to need to carry out mist elimination process to described image, can comprise:
Determine the grey level histogram of non-sky areas pixel in the dark channel image of described image; Choose number or ratio according to what preset, from this grey level histogram, choose one or more pixels that brightness value is minimum; If the highest gray value of the one or more pixels selected presets gray value higher than second, can think and need to carry out mist elimination process to described image, otherwise not can think and need to carry out mist elimination process to described image.
Particularly, need if not think to carry out mist elimination process to described image, then direct described image is stored to primary importance.
Particularly, the grey level histogram of non-sky areas pixel in the dark channel image of described image be determined, first determine the dark channel image J of described image dark, then according to J darkdetermine the grey level histogram H of dark channel image, and grey level histogram H is revised, finally draw the grey level histogram H ' of non-sky areas.
In the embodiment of the present invention, the image of collection can be RGB image, such as bitmap, the forms such as jpeg, png.The now dark channel image J of described image darkcomputing formula as follows:
J dark ( x ) = min y ∈ Ω ( x ) ( min c ∈ { r , g , b } ( J c ( y ) ) )
Wherein x represents pixel coordinate, and C represents Color Channel, and { r, g, b} represent that C belongs to the one in three kinds of Color Channels to c ∈, J cy pixel value that () is initial pictures, Ω (x) represents the neighborhood of pixels of selected pixel x, and { r, g, b} are haematochrome value, marennin value, the cyanine value of pixel.
In addition, when described image is bayer types of image, the dark channel image J of described image darkcomputing formula as follows:
J dark = min y ∈ Ω { x } ( I bayer ( y ) )
Wherein x represents pixel coordinate, and Ω (x) represents the neighborhood of pixels of selected pixel x.
Particularly, the modification method of grey level histogram H can be: by gray value in H close to or higher than the minimum color channel values of atmosphere light color histogram element reset, draw the grey level histogram H ' of non-sky areas.Also can, by directly determining that the histogram of non-sky areas in image obtains, sky areas can be avoided the interference judged by the grey level histogram of non-sky areas.
Described 3rd judging unit 4031, also for when described first judging unit 401 is judged as YES, judges whether for instant resource of described image being carried out to mist elimination process.
In the embodiment of the present invention, for instant resource of described image being carried out to mist elimination process, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.
In the execution mode that some are feasible, if judge that above-mentioned image needs mist elimination process according to the grey level histogram determined, then whether have for instant resource of described image being carried out to mist elimination process according to the resource consumption condition adjudgement of terminal processing system.
Described second processing unit 4041, also for when described 3rd judging unit 4031 is judged as YES, carries out mist elimination process to described image.
Particularly, after second processing unit 4041 carries out mist elimination process to described image, obtain the image after mist elimination process, now the image after mist elimination process can be directly stored to primary importance or be stored to primary importance by after the image compression after mist elimination process by the first memory cell 405.
Described 4th judging unit 4032, also for when described 3rd judging unit 4031 is judged as NO, judges whether the resource for postponing to carry out described image mist elimination process.
In the embodiment of the present invention, for postponing the resource carrying out processing mist elimination to described image, comprise processor resource and/or the memory source of terminal or system.Wherein processor resource can include but not limited to: cpu resource, GPU resource and/or DSP resource.
Particularly, if not used for instant resource of described image being carried out to mist elimination process, then judge whether the resource for postponing to carry out processing to described image mist elimination, if also not used for postponing the resource carrying out processing mist elimination to described image, then described image directly can be stored to primary importance by the first memory cell 405, or the described image after being compressed by compressed unit 406 is stored to primary importance.
Described second memory cell 4042, also for when described 4th judging unit is judged as YES, is stored to the second place by described image and mist elimination information.
Wherein, the described second place is the memory location for register map picture and scene, and the described second place includes but not limited to: RAM, flash memory or hard disk etc.Above-mentioned image and scene information are preferentially stored in RAM, if during RAM memory space inadequate, above-mentioned image and scene information are stored in flash memory or hard disk.
Described adding device 4043, also for the mist elimination task of described image is added into delay disposal queue.
For the task in delay disposal queue, the 3rd processing unit 4044 processes the task in above-mentioned delay disposal queue according to the clooating sequence preset.
The embodiment of the present invention, by gathering image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, scene then for described image carries out enhancing process to described image, obtain the image after processing, the embodiment of the present invention is before carrying out enhancing process to described image, first judge whether system has the resource for the treatment of described image, avoid prior art to need to wait for that the process of scene specific aim terminates, next image could be gathered, thus improve terminal taking efficiency.
Refer to Fig. 6, the structural representation of the 3rd embodiment of a kind of terminal that Fig. 6 provides for the embodiment of the present invention, as shown in Figure 6, the terminal described in the present embodiment comprises: at least one input equipment 1000; At least one output equipment 2000; At least one processor 3000, such as CPU; With memory 4000, above-mentioned input equipment 1000, output equipment 2000, processor 3000 are connected by bus 5000 with memory 4000.
Wherein, above-mentioned input equipment 1000 can be specifically the contact panel of terminal, comprises touch-screen and touch screen, the operational order on sense terminals contact panel, also can be other input units such as button or keyboard of terminal.
Above-mentioned output equipment 2000 specifically can be the display screen of terminal, for exporting, showing information (information).
Above-mentioned memory 4000 can be high-speed RAM memory, also can be non-labile memory (non-volatile memory), such as magnetic disc store.Above-mentioned memory 4000 is for storing batch processing code, and above-mentioned input equipment 1000, output equipment 2000 and processor 3000, for calling the program code stored in memory 4000, perform and operate as follows:
Above-mentioned processor 3000, for after collection image, analyze described image, obtain the scene type of described image, judge whether to need to carry out enhancing process to described image according to the scene type of described image, if desired enhancing process is carried out to described image, then judge whether the resource for the treatment of described image, if there is the resource for the treatment of described image, then the scene for described image carries out enhancing process to described image, obtains the image after processing.
In the execution mode that some are feasible, memory 4000 is for being stored to above-mentioned primary importance by the image after process, the image of processor 3000 also after compressible described process, now memory 4000 also can be used for the image after by compression and is stored to above-mentioned primary importance.
In the execution mode that some are feasible, do not need if judge to carry out enhancing process to described image, then described image is stored to described primary importance by above-mentioned memory 4000.
In the execution mode that some are feasible, if judge the resource not used for the described image of process, then described image is stored to described primary importance by above-mentioned memory 4000.
In the execution mode that some are feasible, if there is the resource for the treatment of described image, then above-mentioned processor 3000 also specifically for:
Judge whether the resource for immediately processing described image;
If there is the resource for immediately processing described image, then the scene for described image carries out enhancing process to described image.
In the execution mode that some are feasible, if not used for the resource of the described image of instant process, then above-mentioned processor 3000 also specifically for: judge whether the resource for image described in delay disposal;
If there is the resource for image described in delay disposal, then described image and scene information are stored to the second place by memory 4000, and the Processing tasks corresponding with described image is added into delay disposal queue by processor 3000.
In the execution mode that some are feasible, processor 3000 also specifically for:
According to the clooating sequence preset, enhancing process is carried out to the task in described delay disposal queue.
In the execution mode that some are feasible, before processor 3000 carries out enhancing process for the scene of described image to described image, above-mentioned memory 4000 also specifically for:
Described image is stored to described primary importance.
In the execution mode that some are feasible, before described image is stored to described primary importance by memory 4000, above-mentioned processor 3000 is also specifically for compressing described image.
In the execution mode that some are feasible, processor 3000 specifically can be used for: when the scene type of described image includes mist scene, and judging whether needs to carry out mist elimination process to described image; When needs carry out mist elimination process to described image, judge whether for instant resource of described image being carried out to mist elimination process; And, have for instant the resource of mist elimination process is carried out to described image time, mist elimination process is carried out to described image.
In the execution mode that some are feasible, processor 3000 specifically also can be used for: not used for instant the resource of mist elimination process is carried out to described image time, judge whether the resource for postponing to carry out described image mist elimination process; When judging to have for postponing to carry out the resource of mist elimination process to described image, described image and mist elimination information are stored to the second place; And, the mist elimination task of described image is added into delay disposal queue.
In specific implementation, input equipment 1000 described in the embodiment of the present invention, output equipment 2000 and processor 3000 can perform a kind of method first embodiment, the second embodiment and implementation described in the 3rd embodiment of taking pictures that the embodiment of the present invention provides, also can perform the implementation of the first embodiment of the terminal that the embodiment of the present invention provides and the terminal described in the second embodiment, not repeat them here.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (Central Processing Unit, central processing unit), or realized by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in-computer read/write memory medium in, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a terminal, is characterized in that, comprising:
Acquiring unit, for after collection image, analyzes described image, obtains the scene type of described image;
First judging unit, the scene type for the described image got according to described acquiring unit judges whether to need to carry out enhancing process to described image;
Second judging unit, for when described first judging unit is judged as YES, judges whether the resource for the treatment of described image;
First processing unit, for when described second judging unit is judged as YES, the scene for described image carries out enhancing process to described image, obtains the image after processing.
2. terminal according to claim 1, is characterized in that, described terminal also comprises:
First memory cell, for the image after process is stored to primary importance, or, for being stored to described primary importance by after the image compression after described process.
3. terminal according to claim 2, is characterized in that:
Described first memory cell, also for when described first judging unit is judged as NO or described second judging unit is judged as NO, is stored to described primary importance by described image.
4. terminal according to claim 1, is characterized in that, described second judging unit comprises the 3rd judging unit, and described first processing unit comprises the second processing unit, wherein:
Described 3rd judging unit, for judging whether the resource for immediately processing described image;
Described second processing unit, for when described 3rd judging unit is judged as YES, the scene for described image carries out enhancing process to described image.
5. terminal according to claim 4, is characterized in that, described second judging unit also comprises the 4th judging unit, and described first processing unit also comprises the second memory cell and adding device, wherein:
Described 4th judging unit, for when described 3rd judging unit is judged as NO, judges whether the resource for image described in delay disposal;
Described second memory cell, for when described 4th judging unit is judged as YES, is stored to the second place by described image and scene information;
Described adding device, for being added into delay disposal queue by the Processing tasks corresponding with described image.
6. terminal according to claim 5, is characterized in that: described first processing unit also comprises the 3rd processing unit,
Described 3rd processing unit, for carrying out enhancing process according to the clooating sequence preset to the task in described delay disposal queue.
7. terminal according to claim 2, is characterized in that:
Described first memory cell, also for before carrying out enhancing process for the scene of described image to described image at described first processing unit, is stored to described primary importance by described image.
8. the terminal according to any one of claim 3 or 7, it is characterized in that, described terminal also comprises:
Compression unit, before described image being stored to described primary importance in described first memory cell, compresses described image.
9. the terminal according to any one of claim 4 or 5, is characterized in that:
Described first judging unit, also for when the scene type of described image includes mist scene, judges whether to need to carry out mist elimination process to described image;
Described 3rd judging unit, also for when described first judging unit is judged as YES, judges whether for instant resource of described image being carried out to mist elimination process;
Described second processing unit, also for when described 3rd judging unit is judged as YES, carries out mist elimination process to described image.
10. terminal according to claim 9, is characterized in that:
Described 4th judging unit, also for when described 3rd judging unit is judged as NO, judges whether the resource for postponing to carry out described image mist elimination process;
Described second memory cell, also for when described 4th judging unit is judged as YES, is stored to the second place by described image and mist elimination information;
Described adding device, also for the mist elimination task of described image is added into delay disposal queue.
CN201410856530.6A 2014-12-31 2014-12-31 Terminal Pending CN104580832A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410856530.6A CN104580832A (en) 2014-12-31 2014-12-31 Terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410856530.6A CN104580832A (en) 2014-12-31 2014-12-31 Terminal

Publications (1)

Publication Number Publication Date
CN104580832A true CN104580832A (en) 2015-04-29

Family

ID=53095941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410856530.6A Pending CN104580832A (en) 2014-12-31 2014-12-31 Terminal

Country Status (1)

Country Link
CN (1) CN104580832A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737761A (en) * 2017-04-21 2018-11-02 腾讯科技(深圳)有限公司 video recording method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004253897A (en) * 2003-02-18 2004-09-09 Konica Minolta Holdings Inc Digital camera
CN1578410A (en) * 2003-07-01 2005-02-09 株式会社尼康 Electronic still camera and system and program for same
CN101222582A (en) * 2006-10-16 2008-07-16 卡西欧计算机株式会社 Imaging apparatus, continuous imaging method, and recording medium for recording a program
CN101291393A (en) * 2006-12-29 2008-10-22 三星电子株式会社 Image inputting apparatus possessing high-speed, high quality image continuous capturing ability and the method
CN102739930A (en) * 2011-04-12 2012-10-17 华晶科技股份有限公司 Image capturing device and image processing method thereof
CN103327252A (en) * 2013-06-26 2013-09-25 深圳市中兴移动通信有限公司 Shooting device and shooting method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004253897A (en) * 2003-02-18 2004-09-09 Konica Minolta Holdings Inc Digital camera
CN1578410A (en) * 2003-07-01 2005-02-09 株式会社尼康 Electronic still camera and system and program for same
CN101222582A (en) * 2006-10-16 2008-07-16 卡西欧计算机株式会社 Imaging apparatus, continuous imaging method, and recording medium for recording a program
CN101291393A (en) * 2006-12-29 2008-10-22 三星电子株式会社 Image inputting apparatus possessing high-speed, high quality image continuous capturing ability and the method
CN102739930A (en) * 2011-04-12 2012-10-17 华晶科技股份有限公司 Image capturing device and image processing method thereof
CN103327252A (en) * 2013-06-26 2013-09-25 深圳市中兴移动通信有限公司 Shooting device and shooting method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737761A (en) * 2017-04-21 2018-11-02 腾讯科技(深圳)有限公司 video recording method and device
CN108737761B (en) * 2017-04-21 2021-08-10 腾讯科技(深圳)有限公司 Video recording method and device

Similar Documents

Publication Publication Date Title
US11410277B2 (en) Method and device for blurring image background, storage medium and electronic apparatus
CN109951635B (en) Photographing processing method and device, mobile terminal and storage medium
CN108769634B (en) Image processing method, image processing device and terminal equipment
WO2018228310A1 (en) Image processing method and apparatus, and terminal
CN108509231B (en) VR-based application program opening method, electronic device, equipment and storage medium
CN104580907A (en) Anti-shake photographing method and device
CN104038699A (en) Focusing state prompting method and shooting device
CN107909569B (en) Screen-patterned detection method, screen-patterned detection device and electronic equipment
CN113962859B (en) Panorama generation method, device, equipment and medium
US20190068891A1 (en) Method and apparatus for rapid improvement of smog/low-light-level image using mapping table
EP3028249A1 (en) Method and apparatus for image enhancement
CN105590307A (en) Transparency-based matting method and apparatus
CN111311481A (en) Background blurring method and device, terminal equipment and storage medium
CN108206913B (en) Image acquisition method, image acquisition device, embedded system and storage medium
CN110838088A (en) Multi-frame noise reduction method and device based on deep learning and terminal equipment
CN104580832A (en) Terminal
CN105338221A (en) Image processing method and electronic equipment
CN104933405A (en) Data processing method and terminal
US9613427B2 (en) Information processing method and electronic device
CN111416974A (en) Camera-based television screen acquisition method and system and intelligent terminal
CN105893578A (en) Method and device for selecting photos
CN104917969A (en) Image processing method and mobile terminal
CN113011497B (en) Image comparison method and system
CN104601862A (en) Photograph method
CN105657252A (en) Image processing method in mobile terminal and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20190104

AD01 Patent right deemed abandoned