CN105491120A - Method and device for picture transfer - Google Patents

Method and device for picture transfer Download PDF

Info

Publication number
CN105491120A
CN105491120A CN201510867454.3A CN201510867454A CN105491120A CN 105491120 A CN105491120 A CN 105491120A CN 201510867454 A CN201510867454 A CN 201510867454A CN 105491120 A CN105491120 A CN 105491120A
Authority
CN
China
Prior art keywords
picture
transmitted
brightness
adjustment
luminance distribution
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
CN201510867454.3A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510867454.3A priority Critical patent/CN105491120A/en
Publication of CN105491120A publication Critical patent/CN105491120A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/06Systems for the simultaneous transmission of one television signal, i.e. both picture and sound, by more than one carrier

Abstract

The invention discloses a method and a device for picture transfer. The method comprises the following steps of obtaining a brightness distribution histogram of a to-be-transferred picture; adjusting the brightness of the to-be-transferred picture according to the brightness distribution histogram; and transferring the adjusted to-be-transferred picture. According to the technical scheme, after brightness adjustment is carried out on the to-be-transferred picture, the to-be-transferred picture is transferred, so that the quality of the to-be-transferred picture can be improved, the visual acceptability of the picture is guaranteed, the application scene for picture transfer is increased, and the practicability or the user efficiency for picture transfer is improved.

Description

The method of picture transfer and device
Technical field
The disclosure relates to intelligent terminal technical field, particularly relates to method and the device of picture transfer.
Background technology
At present, intelligent terminal development is relatively rapider, and intelligent terminal can realize multiple application, such as: instant messaging, takes a picture, internet, applications etc.Also picture transfer can be carried out between intelligent terminal.The direct picture by acquisition can be transferred to the other side by intelligent terminal by user.Such as: the picture that screenshotss obtain by user by the instant messaging application transport in intelligent terminal to the other side.
Summary of the invention
Disclosure embodiment provides method and the device of picture transfer.Described technical scheme is as follows:
According to the first aspect of disclosure embodiment, provide a kind of method of picture transfer, can comprise:
Obtain the Luminance Distribution histogram of described picture to be transmitted;
According to described Luminance Distribution histogram, the brightness of described picture to be transmitted is adjusted;
Picture described to be transmitted after transmission adjustment.
Visible, transmit again after picture to be transmitted is carried out brightness adjustment, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
In one embodiment, before the Luminance Distribution histogram of the described picture to be transmitted of described acquisition, described method also can comprise:
Carry out screenshotss process, the picture obtained by screenshotss is defined as described picture to be transmitted; Or,
The picture of preservation is defined as described picture to be transmitted.
Visible, obtain picture to be transmitted by screenshotss process, or determine picture to be transmitted from the picture preserved, picture to be transmitted can be obtained by various ways, add the application scenarios of picture transfer.
In one embodiment, described according to described Luminance Distribution histogram, adjustment is carried out to the brightness of described picture to be transmitted and comprises:
Push adjustment way choice information;
When the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, the brightness of described picture to be transmitted is adjusted;
When adjustment way choice information is triggered automatically, according to described Luminance Distribution histogram, gamma conversion is carried out to described picture to be transmitted, adjust the brightness of described picture to be transmitted.
Visible, can select manually or brightness that automatically mode adjusts picture to be transmitted, add the flexibility of picture luminance adjustment.
In one embodiment, the Luminance Distribution histogram after described basis manually adjusts, carrying out adjustment to the brightness of described picture to be transmitted can comprise:
According to the instruction received, in mobile described Luminance Distribution histogram, adjust control point selected on curve;
According to the motion track at described control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in described Luminance Distribution histogram, obtain brightness regulation array parameter;
According to described brightness regulation array parameter, adjust the brightness of described picture to be transmitted.
When manual mode adjusts the brightness of picture to be transmitted, can move control point selected on adjustment curve according to instruction and intuitive visual, thus adjust the brightness of picture to be transmitted, this mode is more directly perceived, more can improve the experience of user.
In one embodiment, described according to described Luminance Distribution histogram, carry out gamma conversion to described picture to be transmitted, the brightness adjusting described picture to be transmitted can comprise:
According to described Luminance Distribution histogram, determine the average of the color value of each passage of described picture to be transmitted;
According to the average of the color value of described each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage;
According to each gamma value obtained, adjust the brightness of described picture to be transmitted.
Visible, when automated manner adjusts the brightness of picture to be transmitted, directly can carry out the brightness adjustment that picture is carried out in gamma conversion, this mode is very simple, is easy to the brightness adjustment of picture to be transmitted.
According to the second aspect of disclosure embodiment, a kind of device of picture transfer is provided, comprises:
Acquisition module, for obtaining the Luminance Distribution histogram of picture to be transmitted;
Adjusting module, for the described Luminance Distribution histogram obtained according to described gradation processing module, adjusts the brightness of described picture to be transmitted;
Transport module, for transmitting the picture described to be transmitted after the adjustment of described adjusting module.
Visible, transmit again after picture to be transmitted is carried out brightness adjustment by the device of picture transfer, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
In one embodiment, described device also comprises:
Determination module, for carrying out screenshotss process, the picture obtained by screenshotss is defined as described picture to be transmitted; Or, the picture of preservation is defined as described picture to be transmitted.
Visible, obtain picture to be transmitted by screenshotss process, or determine picture to be transmitted from the picture preserved, picture to be transmitted can be obtained by various ways, add the application scenarios of picture transfer.
In one embodiment, described adjusting module comprises:
Push submodule, for pushing adjustment way choice information;
First adjustment submodule, for when the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, adjusts the brightness of described picture to be transmitted;
Second adjustment submodule, for when adjustment way choice information is triggered automatically, according to described Luminance Distribution histogram, carries out gamma conversion to described picture to be transmitted, adjusts the brightness of described picture to be transmitted.
Visible, the brightness that adjusting module can be selected manually or automatically mode adjusts picture to be transmitted, adds the flexibility of picture luminance adjustment.
In one embodiment, described first adjustment submodule comprises:
Mobile unit, for according to the instruction received, adjusts control point selected on curve in mobile described Luminance Distribution histogram;
Processing unit, for the motion track according to described control point, carries out broken line stretching or spline interpolation process to the adjustment curve in described Luminance Distribution histogram, obtains brightness regulation array parameter;
First module adjustment unit, for according to described brightness regulation array parameter, adjusts the brightness of described picture to be transmitted.
When manual mode adjusts the brightness of picture to be transmitted, first adjustment submodule can move control point selected on adjustment curve according to instruction and intuitive visual, thus adjusting the brightness of picture to be transmitted, this mode is more directly perceived, more can improve the experience of user.
In one embodiment, described second adjustment submodule comprises:
Determining unit, for according to described Luminance Distribution histogram, determines the average of the color value of each passage of described picture to be transmitted;
Arithmetic element, for the average of the color value according to described each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage;
Second adjustment unit, for according to each gamma value obtained, adjusts the brightness of described picture to be transmitted.
Visible, when automated manner adjusts the brightness of picture to be transmitted, the second adjustment submodule directly can carry out the brightness adjustment that picture is carried out in gamma conversion, and this mode is very simple, is easy to the brightness adjustment of picture to be transmitted.
According to the third aspect of disclosure embodiment, provide a kind of device of picture transfer, for terminal, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the Luminance Distribution histogram of picture to be transmitted;
According to described Luminance Distribution histogram, the brightness of described picture to be transmitted is adjusted;
Picture described to be transmitted after transmission adjustment.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
In technique scheme, transmit again after picture to be transmitted is carried out brightness adjustment, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the flow chart of the picture transmission method according to an exemplary embodiment.
Fig. 2 is the flow chart of the picture transmission method according to an exemplary embodiment one.
Fig. 3 is the picture to be transmitted according to an exemplary embodiment.
Fig. 4 is the Luminance Distribution histogram of the picture to be transmitted according to an exemplary embodiment.
Fig. 5 is the picture to be transmitted after the adjustment brightness according to an exemplary embodiment.
Fig. 6 is the flow chart of the picture transmission method according to an exemplary embodiment two.
Fig. 7 is the block diagram of the picture transfer device according to an exemplary embodiment.
Fig. 8 is the block diagram of the picture transfer device according to an exemplary embodiment three.
Fig. 9 is the block diagram of the picture transfer device according to an exemplary embodiment four.
Figure 10 is the block diagram of a kind of device 1200 for picture transfer according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
The technical scheme that disclosure embodiment provides, obtains in distant terminal the first number information mate with the current geographic position information at present terminal place, and then control present terminal carries out communication by the first number information and distant terminal and is connected.
Fig. 1 is the flow chart of the picture transmission method according to an exemplary embodiment, as shown in Figure 1, comprises the following steps S101-S103:
In step S101, obtain the Luminance Distribution histogram of picture to be transmitted.
Luminance Distribution histogram is in the mode of distribution map to observe the Luminance Distribution of picture, very intuitively, convenient.Wherein, the histogrammic transverse axis of Luminance Distribution represents brightness, and left end is the darkest, and gray value can be 0, and right-hand member is the brightest, and gray value can be 255; The longitudinal axis represents pixel count, thus, the brightness representing picture somewhere with figure have accumulated the quantity of pixel.
According to Luminance Distribution histogram, can judge that picture is partially bright or partially dark, the brightness of picture is uniformity or different, and it is white or excessively black etc. whether picture occurred.
Here, if picture to be transmitted is gray scale picture, the Luminance Distribution histogram of picture to be transmitted can be obtained according to the gray value of each pixel.For colour picture, picture first can be carried out gray proces, obtain corresponding gray scale picture, then obtain the Luminance Distribution histogram corresponding with gray scale picture.Any one color can be made up of red (R), green (G), blue (B) these three kinds of blend of colors, therefore, directly according to RGB, colour picture can be carried out gray proces, obtain gray scale picture.Or, also gray scale picture can be obtained in colour picture after R, G, B color value cumulative mean, such as: in the Luminance Distribution histogram corresponding with gray scale picture, gray value 227 can be the mean value that R, G, B color value is respectively between 227,227,227, i.e. 227=(227+227+227)/3, or, gray value 227 is also the mean value that R, G, B color value is respectively between 226,227,28, i.e. 227=(226+227+228)/3).
In step s 102, according to Luminance Distribution histogram, the brightness treating transmission picture adjusts.
After obtaining the Luminance Distribution histogram of picture to be transmitted, according to the Luminance Distribution histogram obtained, the brightness of picture to be transmitted can be adjusted.Adjustment mode can be multiple, such as, manually can move in Luminance Distribution histogram and adjust control point selected on curve, like this, according to the motion track at control point, can adjust the brightness of picture to be transmitted.Or, preset adjusting range value, then automatically carry out gamma conversion according to the adjusting range value preset, adjust the brightness of picture to be transmitted.
Here, selection information can be provided to select for user, user can select automated manner after manual adjusting style according to demand.Therefore, according to Luminance Distribution histogram, the brightness treating transmission picture is carried out adjustment and can be comprised: push adjustment way choice information; When the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, the brightness treating transmission picture adjusts; When adjustment way choice information is triggered automatically, according to Luminance Distribution histogram, treat transmission picture and carry out gamma conversion, adjust the brightness of picture to be transmitted.
Wherein, according to the Luminance Distribution histogram after manual adjustment, the brightness treating transmission picture is carried out adjustment and can be comprised: according to the instruction received, adjust control point selected on curve in mobile Luminance Distribution histogram; According to the motion track at control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in Luminance Distribution histogram, obtain brightness regulation array parameter; According to brightness regulation array parameter, adjust the brightness of picture to be transmitted.
And according to Luminance Distribution histogram, treat transmission picture and carry out gamma conversion, the brightness adjusting picture to be transmitted can comprise: according to Luminance Distribution histogram, determines the average of the color value of each passage of picture to be transmitted; According to the average of the color value of each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage; According to each gamma value obtained, adjust the brightness of picture to be transmitted.Here, color value can be the color range brightness of above-mentioned color.
In step s 103, the picture to be transmitted after transmission adjustment.
After the brightness adjustment of picture to be transmitted, ensure that the vision of picture is acceptable, like this, by the picture transfer to be transmitted after adjustment to targeted customer, targeted customer can get relevant information from the picture received.
Visible, transmit again after picture to be transmitted is carried out brightness adjustment, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
In another embodiment of the disclosure, before obtaining the Luminance Distribution histogram of picture to be transmitted, also need to determine picture to be transmitted.Wherein, can carry out screenshotss process, the picture obtained by screenshotss is defined as picture to be transmitted; Or, the picture of preservation is defined as picture to be transmitted.
Picture to be transmitted is determined for by this mode of screenshotss, operate fairly simple, and simple luminance picture process is carried out to the picture to be transmitted determined, can transmit, like this, namely ensure that the substantially visual of picture, also ensure that the simplicity of operation, also improve speed and the efficiency of transmission simultaneously.
Below by operating process set in specific embodiment, illustrate the method that disclosure embodiment provides.
Embodiment one, in the present embodiment, manual adjusting style adjusts the brightness of picture to be transmitted.
Fig. 2 is the flow chart of the picture transmission method according to an exemplary embodiment one, as shown in Figure 2, comprises the following steps S201-S207:
In step s 201, the Luminance Distribution histogram of picture to be transmitted is obtained.
Here, as shown in Figure 3, picture to be transmitted is colour picture to picture to be transmitted, and whole visual impression is more black.The Luminance Distribution histogram of picture to be transmitted can be obtained, particularly, gray proces can be carried out to colour picture, obtain gray scale picture, then obtain the Luminance Distribution histogram of gray scale picture.
Obtain the Luminance Distribution histogram of picture to be transmitted as shown in Figure 4, near left end, the less pixel of color range brightness is many, according to the Luminance Distribution histogram obtained can clear judgement picture darker.
In step S202, push adjustment way choice information.
By pushing adjustment way choice information, can inquire that user selects manual adjusting style or automatic adjustment mode, like this, user according to scene, can select manual adjusting style or automatically adjusts mode.
In step S203, determine that the selection information of manual adjusting style is triggered.
In the present embodiment, user have selected manual adjusting style, and therefore, the selection information of manual adjusting style is triggered.
In step S204, according to the instruction received, in mobile Luminance Distribution histogram, adjust control point selected on curve.
Because user adopts manual adjusting style to adjust the brightness of picture to be transmitted, therefore, user can move in Luminance Distribution histogram and adjust control point selected on curve.Here, as shown in Figure 4, the diagonal in the middle of on Luminance Distribution histogram is adjustment curve, selects the point of on this adjustment curve two, more than three or three to be control point, the removable selected control point of user.I.e. user input instruction, like this, according to the instruction received, can adjust control point selected on curve in mobile Luminance Distribution histogram.
In step S205, according to the motion track at control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in Luminance Distribution histogram, obtain brightness regulation array parameter.
Due on adjustment curve two, the position at the control point of more than three or three there occurs change, so according to the motion track at control point, can carry out broken line stretching or spline interpolation process to the adjustment curve in Luminance Distribution histogram.Such as: the position at three control points there occurs change, like this, the color range brightness at three control points also there occurs change, can carry out spline interpolation process by control point, control point reverse interpolation is obtained the mapping curve of 0-255, thus brightness regulation array parameter F can be obtained.
In step S206, according to brightness regulation array parameter, adjust the brightness of picture to be transmitted.
Obtained brightness regulation array parameter F, that is according to formula (1) the i.e. brightness of adjustable picture to be transmitted.
I'=F (I) formula (1)
Wherein, I is the brightness of primary colors rank, i.e. native color value, and F is brightness regulation array parameter, and I ' is the color range brightness after adjustment, i.e. color value.
According to formula (1), new Luminance Distribution histogram can be obtained, thus the picture to be transmitted after corresponding adjustment.Here, the picture to be transmitted after adjustment can as shown in Figure 5, and wherein, in the picture to be transmitted after adjustment, personage is high-visible, ensure that the vision of picture is acceptable.
In step S207, the picture to be transmitted after transmission adjustment.
After the brightness of picture to be transmitted is adjusted, picture to be transmitted is substantially visual, and by the picture transfer to be transmitted after adjustment to targeted customer, such targeted customer can obtain relevant information according to the picture received.
Visible, because user have selected the brightness that manual mode adjusts picture to be transmitted, like this, user can move control point selected on adjustment curve according to intuitive visual effect, thus adjusting the brightness of picture to be transmitted, this mode is more directly perceived, more can improve the experience of user.
In embodiment two, the present embodiment, automatic adjustment mode adjusts the brightness of picture to be transmitted.Wherein, the adjusting range value preset is 0.5.
Fig. 6 is the flow chart of the picture transmission method according to an exemplary embodiment two, as shown in Figure 6, comprises the following steps S601-S607:
In step s 601, the Luminance Distribution histogram of picture to be transmitted is obtained.
Here, as shown in Figure 3, the Luminance Distribution histogram of the picture to be transmitted of acquisition as shown in Figure 4 for picture to be transmitted.Picture to be transmitted is colour picture, carries out gray proces to colour picture, obtains gray scale picture, then obtains the Luminance Distribution histogram of gray scale picture.
In step S602, push adjustment way choice information.
User according to scene, can select manual adjusting style or automatically adjusts mode.In step S303, the communication priority rank of the first number information is configured to limit priority.
In step S603, determine that automatically adjusting way choice information is triggered.
In the present embodiment, user have selected automatic adjustment mode, and therefore, adjustment way choice information is triggered automatically.
In step s 604, according to Luminance Distribution histogram, determine the average of the color value of each passage of picture to be transmitted.
Any one color can be made up of red (R), green (G), blue (B) these three kinds of blend of colors, therefore, corresponding R, G, the B of general a kind of picture tri-Color Channels, according to Luminance Distribution histogram, and the color value that each pixel and R, G, B tri-Color Channels are corresponding, the average meanV of the color value of each passage of picture to be transmitted can be determined.Here, but the brightness of color value color range.
In step s 605, according to the average of the color value of each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage.
Here, the adjusting range value preset is 0.5, according to formula (2), can obtain gamma value corresponding to each passage.
Gamma=log (meanV)/log (0.5) formula (2)
Wherein, gamma is gamma value, and meanV is the average of the color value of each passage, and 0.5 is the adjusting range value preset.
In step S606, according to each gamma value obtained, adjust the brightness of picture to be transmitted.
Owing to obtaining gamma value corresponding to each Color Channel, then can treat transmission picture and carry out gamma (gamma) and converted, obtain the picture to be transmitted after adjustment brightness.
In step S607, the picture to be transmitted after transmission adjustment.
After the brightness of picture to be transmitted is adjusted, can as shown in Figure 5, like this, picture to be transmitted is substantially visual, and by the picture transfer to be transmitted after adjustment to targeted customer, such targeted customer can obtain relevant information according to the picture received.
Visible, when automated manner adjusts the brightness of picture to be transmitted, directly can carry out the brightness adjustment that picture is carried out in gamma conversion, this mode is very simple, is easy to the brightness adjustment of picture to be transmitted.
Following is disclosure device embodiment, may be used for performing disclosure embodiment of the method.
Fig. 7 is the block diagram of the picture transfer according to an exemplary embodiment, and this device can realize becoming the some or all of of electronic equipment by software, hardware or both combinations.As shown in Figure 7, this picture transfer device comprises: acquisition module 710, adjusting module 720 and transport module 730.Wherein,
Acquisition module 710, is configured to the Luminance Distribution histogram obtaining picture to be transmitted.
Adjusting module 720, is configured to the Luminance Distribution histogram obtained according to gradation processing module, and the brightness treating transmission picture adjusts.
Transport module 730, is configured to the picture to be transmitted after transmitting adjusting module adjustment.
Visible, transmit again after picture to be transmitted is carried out brightness adjustment by the device of picture transfer, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
In disclosure embodiment, device also comprises: determination module, is configured to carry out screenshotss process, and the picture obtained by screenshotss is defined as picture to be transmitted; Or, the picture of preservation is defined as picture to be transmitted.Like this, obtain picture to be transmitted by screenshotss process, or determine picture to be transmitted from the picture preserved, picture to be transmitted can be obtained by various ways, add the application scenarios of picture transfer.
In disclosure embodiment, adjusting module comprises: push submodule, the first adjustment submodule and the second adjustment submodule.Wherein,
Push submodule, be configured to push adjustment way choice information.
First adjustment submodule, is configured to when the selection information of manual adjusting style is triggered, and according to the Luminance Distribution histogram after manual adjustment, the brightness treating transmission picture adjusts.
Second adjustment submodule, is configured to when adjustment way choice information is triggered automatically, according to Luminance Distribution histogram, treats transmission picture and carries out gamma conversion, adjust the brightness of picture to be transmitted.
Visible, the brightness that adjusting module can be selected manually or automatically mode adjusts picture to be transmitted, adds the flexibility of picture luminance adjustment.
In disclosure embodiment, the first adjustment submodule comprises: mobile unit, processing unit and the first adjustment unit, wherein,
Mobile unit, is configured to, according to the instruction received, adjust control point selected on curve in mobile Luminance Distribution histogram.
Processing unit, is configured to the motion track according to control point, carries out broken line stretching or spline interpolation process to the adjustment curve in Luminance Distribution histogram, obtains brightness regulation array parameter.
First module adjustment unit, is configured to, according to brightness regulation array parameter, adjust the brightness of picture to be transmitted.
Visible, when manual mode adjusts the brightness of picture to be transmitted, the first adjustment submodule can move control point selected on adjustment curve according to instruction and intuitive visual, thus adjusts the brightness of picture to be transmitted, this mode is more directly perceived, more can improve the experience of user.
In disclosure embodiment, the second adjustment submodule comprises: determining unit, arithmetic element and the second adjustment unit, wherein,
Determining unit, is configured to according to Luminance Distribution histogram, determines the average of the color value of each passage of picture to be transmitted.
Arithmetic element, is configured to the average of the color value according to each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage.
Second adjustment unit, is configured to, according to each gamma value obtained, adjust the brightness of picture to be transmitted.
Visible, when automated manner adjusts the brightness of picture to be transmitted, the second adjustment submodule directly can carry out the brightness adjustment that picture is carried out in gamma conversion, and this mode is very simple, is easy to the brightness adjustment of picture to be transmitted.
Below by operating process set in specific embodiment, illustrate the device that disclosure embodiment provides.
Embodiment three, Fig. 8 is the block diagram of the picture transfer according to an exemplary embodiment three, and as shown in Figure 8, this device comprises: acquisition module 810, adjusting module 820 and transport module 830.Wherein, adjusting module 820 comprises: push submodule 821 and the first adjustment submodule 822, and the first adjustment submodule 822 comprises: mobile unit 8221, processing unit 8222 and first module adjustment unit 8223.
Acquisition module 810 obtains the Luminance Distribution histogram of picture to be transmitted.Propelling movement submodule 821 in adjusting module 820 pushes adjustment way choice information, owing to determining that the selection information of manual adjusting style is triggered, like this, the first adjustment submodule 822 in adjusting module 820 can according to the Luminance Distribution histogram after manual adjustment, and the brightness treating transmission picture adjusts.
Wherein, mobile unit 8221 in first adjustment submodule 822 is according to the instruction received, control point selected on curve is adjusted in mobile Luminance Distribution histogram, and the processing unit 8222 in the first adjustment submodule 822 is according to the motion track at control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in Luminance Distribution histogram, obtains brightness regulation array parameter.Thus, and the first module adjustment unit 8223 in the first adjustment submodule 822 is according to brightness regulation array parameter, adjusts the brightness of picture to be transmitted.
After the brightness of picture to be transmitted adjusted, picture to be transmitted is substantially visual, and like this, transport module 830 can by the picture transfer to be transmitted after adjustment to targeted customer, and such targeted customer can obtain relevant information according to the picture received.
Visible, because user have selected the brightness that manual mode adjusts picture to be transmitted, like this, user can move control point selected on adjustment curve according to intuitive visual effect, thus adjusting the brightness of picture to be transmitted, this mode is more directly perceived, more can improve the experience of user.
Embodiment four, Fig. 9 is the block diagram of the picture transfer according to an exemplary embodiment four, and as shown in Figure 9, this device comprises: acquisition module 910, adjusting module 920 and transport module 930.Wherein, adjusting module 920 comprises: push submodule 921 and the second adjustment submodule 923, and the second adjustment submodule 923 comprises: determining unit 9231, arithmetic element 9232 and second unit adjustment unit 9233.
Acquisition module 910 obtains the Luminance Distribution histogram of picture to be transmitted.Propelling movement submodule 921 in adjusting module 920 pushes adjustment way choice information, owing to determining that automatically adjusting way choice information is triggered, like this, the second adjustment submodule 923 in adjusting module 920 can according to Luminance Distribution histogram, treat transmission picture and carry out gamma conversion, adjust the brightness of picture to be transmitted.
Wherein, determining unit 9231 in second adjustment submodule 923 is according to Luminance Distribution histogram, determine the average of the color value of each passage of picture to be transmitted, and the arithmetic element 9232 in the second adjustment submodule 923 is according to the average of the color value of each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage.Thus, and the second unit adjustment unit 9233 in the second adjustment submodule 923 is according to each gamma value obtained, and adjusts the brightness of picture to be transmitted.
After the brightness of picture to be transmitted adjusted, picture to be transmitted is substantially visual, and like this, transport module 930 can by the picture transfer to be transmitted after adjustment to targeted customer, and such targeted customer can obtain relevant information according to the picture received.
Visible, when automated manner adjusts the brightness of picture to be transmitted, directly can carry out the brightness adjustment that picture is carried out in gamma conversion, this mode is very simple, is easy to the brightness adjustment of picture to be transmitted.
Disclosure embodiment provides a kind of device of picture transfer, is configured to terminal, comprising:
Processor;
Be configured to the memory of storage of processor executable instruction;
Wherein, processor is configured to:
Obtain the Luminance Distribution histogram of picture to be transmitted;
According to Luminance Distribution histogram, the brightness treating transmission picture adjusts;
Picture to be transmitted after transmission adjustment.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
The technique scheme that embodiment of the present disclosure provides, transmit again after picture to be transmitted is carried out brightness adjustment, the quality of picture to be transmitted can be improved, ensure that the vision of picture is acceptable, like this, transmit even if obtain picture under the situation that light is bad, also can ensure that the vision of picture is acceptable by brightness adjustment, add the application scenarios of picture transfer, improve practicality or the service efficiency of picture transfer.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Figure 10 is the block diagram of a kind of device 1200 for the prompting of smart jack operating state according to an exemplary embodiment, and this device is applicable to terminal equipment.Such as, device 1200 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat-panel devices, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Figure 10, device 1200 can comprise following one or more assembly: processing components 1202, memory 1204, power supply module 1206, multimedia groupware 1208, audio-frequency assembly 1210, the interface 1212 of I/O (I/O), sensor cluster 1214, and communications component 1216.
The integrated operation of the usual control device 1200 of processing components 1202, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 1202 can comprise one or more processor 1220 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 1202 can comprise one or more module, and what be convenient between processing components 1202 and other assemblies is mutual.Such as, processing components 1202 can comprise multi-media module, mutual with what facilitate between multimedia groupware 1208 and processing components 1202.
Memory 1204 is configured to store various types of data to be supported in the operation of equipment 1200.The example of these data comprises for any application program of operation on device 1200 or the instruction of method, contact data, telephone book data, message, picture, video etc.Memory 1204 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 1206 is device 1200 provide electric power.Power supply module 1206 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 1200 and be associated.
Multimedia groupware 1208 is included in the screen providing an output interface between device 1200 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects and put and pressure with the duration touched or slide is relevant.In certain embodiments, multimedia groupware 1208 comprises a front-facing camera and/or post-positioned pick-up head.When equipment 1200 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 1210 is configured to export and/or input audio signal.Such as, audio-frequency assembly 1210 comprises a microphone (MIC), and when device 1200 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The audio signal received can be stored in memory 1204 further or be sent via communications component 1216.In certain embodiments, audio-frequency assembly 1210 also comprises a loud speaker, for output audio signal.
I/O interface 1212 is for providing interface between processing components 1202 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor cluster 1214 comprises one or more transducer, for providing the state estimation of various aspects for device 1200.Such as, sensor cluster 1214 can detect the opening/closing state of equipment 1200, the relative positioning of assembly, such as assembly is display and the keypad of device 1200, the position of all right checkout gear 1200 of sensor cluster 1214 or device 1200 assemblies changes, the presence or absence that user contacts with device 1200, the variations in temperature of device 1200 orientation or acceleration/deceleration and device 1200.Sensor cluster 1214 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor cluster 1214 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1214 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communications component 1216 is configured to the communication being convenient to wired or wireless mode between device 1200 and other-end.Device 1200 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 1216 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, communications component 1216 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1200 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the memory 1204 of instruction, above-mentioned instruction can perform said method by the processor 820 of device 1200.Such as, non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in storage medium is performed by the processor of device 1200, make device 1200 can perform the method shown in Fig. 1, method comprises:
Obtain the Luminance Distribution histogram of picture to be transmitted;
According to described Luminance Distribution histogram, the brightness of described picture to be transmitted is adjusted;
Picture described to be transmitted after transmission adjustment.
Wherein, before the Luminance Distribution histogram of described acquisition picture to be transmitted, described method also comprises:
Carry out screenshotss process, the picture obtained by screenshotss is defined as described picture to be transmitted; Or,
The picture of preservation is defined as described picture to be transmitted.
Described according to described Luminance Distribution histogram, adjustment is carried out to the brightness of described picture to be transmitted and comprises:
Push adjustment way choice information;
When the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, the brightness of described picture to be transmitted is adjusted;
When adjustment way choice information is triggered automatically, according to described Luminance Distribution histogram, gamma conversion is carried out to described picture to be transmitted, adjust the brightness of described picture to be transmitted.
Luminance Distribution histogram after described basis manually adjusts, carries out adjustment to the brightness of described picture to be transmitted and comprises:
According to the instruction received, in mobile described Luminance Distribution histogram, adjust control point selected on curve;
According to the motion track at described control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in described Luminance Distribution histogram, obtain brightness regulation array parameter;
According to described brightness regulation array parameter, adjust the brightness of described picture to be transmitted.
Described according to described Luminance Distribution histogram, carry out gamma conversion to described picture to be transmitted, the brightness adjusting described picture to be transmitted comprises:
According to described Luminance Distribution histogram, determine the average of the color value of each passage of described picture to be transmitted;
According to the average of the color value of described each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage;
According to each gamma value obtained, adjust the brightness of described picture to be transmitted.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. a method for picture transfer, is characterized in that, comprising:
Obtain the Luminance Distribution histogram of picture to be transmitted;
According to described Luminance Distribution histogram, the brightness of described picture to be transmitted is adjusted;
Picture described to be transmitted after transmission adjustment.
2. the method for claim 1, is characterized in that, before the Luminance Distribution histogram of described acquisition picture to be transmitted, described method also comprises:
Carry out screenshotss process, the picture obtained by screenshotss is defined as described picture to be transmitted; Or,
The picture of preservation is defined as described picture to be transmitted.
3. method as claimed in claim 1 or 2, is characterized in that, described according to described Luminance Distribution histogram, carries out adjustment comprise the brightness of described picture to be transmitted:
Push adjustment way choice information;
When the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, the brightness of described picture to be transmitted is adjusted;
When adjustment way choice information is triggered automatically, according to described Luminance Distribution histogram, gamma conversion is carried out to described picture to be transmitted, adjust the brightness of described picture to be transmitted.
4. method as claimed in claim 3, is characterized in that the Luminance Distribution histogram after described basis manually adjusts carries out adjustment to the brightness of described picture to be transmitted and comprises:
According to the instruction received, in mobile described Luminance Distribution histogram, adjust control point selected on curve;
According to the motion track at described control point, broken line stretching or spline interpolation process are carried out to the adjustment curve in described Luminance Distribution histogram, obtain brightness regulation array parameter;
According to described brightness regulation array parameter, adjust the brightness of described picture to be transmitted.
5. method as claimed in claim 3, it is characterized in that, described according to described Luminance Distribution histogram, carry out gamma conversion to described picture to be transmitted, the brightness adjusting described picture to be transmitted comprises:
According to described Luminance Distribution histogram, determine the average of the color value of each passage of described picture to be transmitted;
According to the average of the color value of described each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage;
According to each gamma value obtained, adjust the brightness of described picture to be transmitted.
6. a device for picture transfer, is characterized in that, comprising:
Acquisition module, for obtaining the Luminance Distribution histogram of picture to be transmitted;
Adjusting module, for the described Luminance Distribution histogram obtained according to described gradation processing module, adjusts the brightness of described picture to be transmitted;
Transport module, for transmitting the picture described to be transmitted after the adjustment of described adjusting module.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Determination module, for carrying out screenshotss process, the picture obtained by screenshotss is defined as described picture to be transmitted; Or, the picture of preservation is defined as described picture to be transmitted.
8. device as claimed in claims 6 or 7, it is characterized in that, described adjusting module comprises:
Push submodule, for pushing adjustment way choice information;
First adjustment submodule, for when the selection information of manual adjusting style is triggered, according to the Luminance Distribution histogram after manual adjustment, adjusts the brightness of described picture to be transmitted;
Second adjustment submodule, for when adjustment way choice information is triggered automatically, according to described Luminance Distribution histogram, carries out gamma conversion to described picture to be transmitted, adjusts the brightness of described picture to be transmitted.
9. device as claimed in claim 8, is characterized in that, described first adjustment submodule comprises:
Mobile unit, for according to the instruction received, adjusts control point selected on curve in mobile described Luminance Distribution histogram;
Processing unit, for the motion track according to described control point, carries out broken line stretching or spline interpolation process to the adjustment curve in described Luminance Distribution histogram, obtains brightness regulation array parameter;
First module adjustment unit, for according to described brightness regulation array parameter, adjusts the brightness of described picture to be transmitted.
10. device as claimed in claim 8, is characterized in that, described second adjustment submodule comprises:
Determining unit, for according to described Luminance Distribution histogram, determines the average of the color value of each passage of described picture to be transmitted;
Arithmetic element, for the average of the color value according to described each passage, and the adjusting range value preset carries out computing, obtains gamma value corresponding to each passage;
Second adjustment unit, for according to each gamma value obtained, adjusts the brightness of described picture to be transmitted.
The device of 11. 1 kinds of picture transfer, for terminal, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Obtain the Luminance Distribution histogram of picture to be transmitted;
According to described Luminance Distribution histogram, the brightness of described picture to be transmitted is adjusted;
Picture described to be transmitted after transmission adjustment.
CN201510867454.3A 2015-12-01 2015-12-01 Method and device for picture transfer Pending CN105491120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510867454.3A CN105491120A (en) 2015-12-01 2015-12-01 Method and device for picture transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510867454.3A CN105491120A (en) 2015-12-01 2015-12-01 Method and device for picture transfer

Publications (1)

Publication Number Publication Date
CN105491120A true CN105491120A (en) 2016-04-13

Family

ID=55677830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510867454.3A Pending CN105491120A (en) 2015-12-01 2015-12-01 Method and device for picture transfer

Country Status (1)

Country Link
CN (1) CN105491120A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109076167A (en) * 2016-06-17 2018-12-21 索尼公司 Image processor, photographic device and image processing system
CN109993687A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of image information processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070053587A1 (en) * 2005-08-24 2007-03-08 Ali Walid S Techniques to improve contrast enhancement using a luminance histogram
CN101907488A (en) * 2010-07-28 2010-12-08 中国建筑科学研究院 Image brightness meter based on digital camera and measuring method thereof
CN103327322A (en) * 2013-04-26 2013-09-25 深信服网络科技(深圳)有限公司 Method and device for image transmission
CN103500439A (en) * 2013-09-03 2014-01-08 西安理工大学 Image printing method based on image processing technology

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070053587A1 (en) * 2005-08-24 2007-03-08 Ali Walid S Techniques to improve contrast enhancement using a luminance histogram
CN101907488A (en) * 2010-07-28 2010-12-08 中国建筑科学研究院 Image brightness meter based on digital camera and measuring method thereof
CN103327322A (en) * 2013-04-26 2013-09-25 深信服网络科技(深圳)有限公司 Method and device for image transmission
CN103500439A (en) * 2013-09-03 2014-01-08 西安理工大学 Image printing method based on image processing technology

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜全生: ""截屏与图像格式知识"", 《信息技术基础》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109076167A (en) * 2016-06-17 2018-12-21 索尼公司 Image processor, photographic device and image processing system
CN109993687A (en) * 2017-12-29 2019-07-09 阿里巴巴集团控股有限公司 A kind of image information processing method and device
CN109993687B (en) * 2017-12-29 2023-06-13 阿里巴巴集团控股有限公司 Image information processing method and device

Similar Documents

Publication Publication Date Title
KR101831077B1 (en) Method and device for switching color gamut mode
CN105070252B (en) Reduce the method and device of display brightness
CN104601971A (en) Color adjustment method and device
JP2017510856A (en) Backlight control method, apparatus, program, and recording medium
CN105100764A (en) Photographing method and device
CN104766574A (en) Color temperature regulating method and device
CN110647930B (en) Image processing method and device and electronic equipment
CN104517268A (en) Method and device for adjusting image brightness
CN105631797A (en) Watermarking method and device
CN105225647A (en) Luminance regulating method and device
CN104869308A (en) Picture taking method and device
CN104700786A (en) Display brightness adjustment method and device
CN104934016A (en) Screen display method and device
CN105760884A (en) Image type identifying method and image type identifying device
CN103973979A (en) Method and device for configuring shooting parameters
CN106710539A (en) Liquid crystal display method and device
CN104217704A (en) Backlight brightness control method and device
CN104517271A (en) Image processing method and device
CN105791790A (en) Image processing method and apparatus
CN104965452A (en) Intelligent socket on-off state display method, device, intelligent terminal and server
CN114067003A (en) Color gamut conversion method and device, electronic equipment and storage medium
CN104618701A (en) Image processing method and device and electronic device
CN105511668A (en) Screen display control method and device, and terminal equipment
CN105357449A (en) Shooting method and device, and image processing method and apparatus
CN104407727A (en) Screen protection method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication