[go: up one dir, main page]

CN110335195A - Body color method of adjustment, device, electronic equipment and storage medium - Google Patents

Body color method of adjustment, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110335195A
CN110335195A CN201910615246.2A CN201910615246A CN110335195A CN 110335195 A CN110335195 A CN 110335195A CN 201910615246 A CN201910615246 A CN 201910615246A CN 110335195 A CN110335195 A CN 110335195A
Authority
CN
China
Prior art keywords
color
vehicle body
body region
adjusted
gray scale
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
CN201910615246.2A
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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910615246.2A priority Critical patent/CN110335195A/en
Publication of CN110335195A publication Critical patent/CN110335195A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The present disclosure discloses a kind of body color method of adjustment, device, electronic equipment and storage mediums.This method comprises: the color in the gray scale vehicle body region in image is adjusted to targeted color color, the light and shade value and intensity value of each pixel in vehicle body region adjusted are all the same;Vehicle body region adjusted is input in color correct model trained in advance, the color for obtaining revised vehicle body region as gray scale vehicle body region adjusts result;The light and shade value and intensity value of each pixel in the revised vehicle body region are not all the same.Body color can accurately be adjusted to meet the color of true environment by the embodiment of the present disclosure.

Description

Body color method of adjustment, device, electronic equipment and storage medium
Technical field
The embodiment of the present disclosure is related to data processing technique more particularly to a kind of body color method of adjustment, device, electronics are set Standby and storage medium.
Background technique
With the development of economy, automobile has become walking-replacing tool very universal in people's daily life.People are buying The color oneself admired often is selected when automobile.But in general, automobile shop can only provide big certain of sales volume or certain several color Automobile.If not within the above range, user is only capable of through the photograph under multiple fixed angles the object vehicle color of user demand The automobile of piece browsing objective vehicle color, to judge the effect of the object vehicle color.
The car photo that usual hotel owner provides is fixed angle, and is shot under specific lighting angle. This kind of car photo provides the best bandwagon effect of automobile, in fact, this bandwagon effect is only the specific item of special angle Unilateral bandwagon effect under part (illumination).What user needed to obtain is the exhibition of the automobile omnibearing of the object vehicle color state Show the bandwagon effect etc. under effect and various light environments.
It is (Hue Saturation Value, tone saturation degree in HSV space in current existing color Adjusted Option Brightness) tone (H) of modification color realizes that saturation degree (S) and brightness (V) do not modify, but for netrual colour (black, white, grey) For, the vehicle body region that tone (H) is formed only is modified, actually not with the color result of browse difference in the vehicle body region before modification Greatly.
Summary of the invention
The embodiment of the present disclosure provides a kind of body color method of adjustment, device, electronic equipment and storage medium, can be accurate Body color is adjusted to meet the color of true environment.
In a first aspect, the embodiment of the present disclosure provides a kind of body color method of adjustment, this method comprises:
The color in the gray scale vehicle body region in image is adjusted to targeted color color, it is each in vehicle body region adjusted The light and shade value and intensity value of pixel are all the same;
Vehicle body region adjusted is input in color correct model trained in advance, obtains revised vehicle body region Color as gray scale vehicle body region adjusts result;The light and shade value of each pixel in the revised vehicle body region and Intensity value is not all the same.
Second aspect, the embodiment of the present disclosure additionally provide a kind of body color adjustment device, which includes:
Color of object adjusts module, for the color in the gray scale vehicle body region in image to be adjusted to targeted color color, The light and shade value and intensity value of each pixel in vehicle body region adjusted are all the same;
Color of object correction module, for vehicle body region adjusted to be input to color correct model trained in advance In, the color for obtaining revised vehicle body region as gray scale vehicle body region adjusts result;The revised vehicle body area The light and shade value and intensity value of each pixel in domain are not all the same.
The third aspect, the embodiment of the present disclosure additionally provide a kind of electronic equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the body color method of adjustment as described in the embodiment of the present disclosure.
Fourth aspect, the embodiment of the present disclosure additionally provide a kind of computer readable storage medium, are stored thereon with computer Program realizes the body color method of adjustment as described in the embodiment of the present disclosure when program is executed by processor.
The embodiment of the present disclosure by the way that the color in gray scale vehicle body region is adjusted to targeted color color, realize light and shade value and Visual effect after intensity value changes changes the vision that small tone is revised as after light and shade value and intensity value change The tone that effect is changed significantly, it is ensured that the visual effect difference of the color before color adjusted and adjustment is big, to guarantee to adjust The visual effect of color after whole changes, meanwhile, light and shade value and intensity value are adjusted to identical, reduced to gray scale vehicle body area The data volume of the variation adjustment of the light and shade value and intensity value in domain, so that the speed of the color adjustment in gray scale vehicle body region is improved, Vehicle body region after the adjustment is modified, and the identical light and shade value and intensity value in vehicle body region are adjusted to be changed significantly Light and shade value and intensity value, increase vehicle body region color authenticity, solve in the prior art only to gray scale vehicle body into Row hue adjustment leads to the problem of the result of browse difference of color adjusted, and vehicle body region has been adjusted to specific light and shade and has been changed And the color of saturation degree variation, guarantee meeting under actual environment for body color, there is light and shade variation, and improves color and become The speed of change.
Detailed description of the invention
Fig. 1 is the flow chart of one of embodiment of the present disclosure one body color method of adjustment;
Fig. 2 is the flow chart of one of embodiment of the present disclosure two body color method of adjustment;
Fig. 3 is the structural schematic diagram of one of the embodiment of the present disclosure three body color adjustment device;
Fig. 4 is the structural schematic diagram of one of the embodiment of the present disclosure four electronic equipment.
Specific embodiment
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order, And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based" It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates " at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed Justice provides in will be described below.
It is noted that the concepts such as " first " that refers in the disclosure, " second " are only used for different devices, module or list Member distinguishes, and is not intended to limit the sequence or relation of interdependence of function performed by these devices, module or unit.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment Purpose, and be not used to limit the range of these message or information.
Embodiment one
Fig. 1 is the flow chart of one of the embodiment of the present disclosure one body color method of adjustment, and the present embodiment is applicable to The case where gray scale vehicle body region in image is carried out color adjustment, this method can be executed by body color adjustment device, The device can realize that the device can be configured in electronic equipment by the way of software and/or hardware, for example, server or Terminal device, typical terminal device include mobile terminal, specifically include mobile phone, car-mounted terminal or laptop etc..Such as Fig. 1 Shown, this method specifically comprises the following steps:
The color in the gray scale vehicle body region in image is adjusted to targeted color color, vehicle body region adjusted by S110 In each pixel light and shade value and intensity value it is all the same.
Specifically, image can be the image comprising vehicle directly acquired, the image in video may also mean that.Its In, video can refer to the video of the video or real-time recording prerecorded.It is prerecorded correspondingly, image can be Video in any one video frame, or the video frame obtained in real time during video record.
Vehicle body region is detected in the picture, specifically, the method for detection vehicle region can be image partition method, example Such as, image border segmentation (edge detection algorithm), carrying out image threshold segmentation (adaptive thresholding algorithm) or image region segmentation (divide water Ridge algorithm) etc..In addition, carrying out vehicle body region detection for example, by using machine learning model trained in advance there are also other modes.Or Person can also determine vehicle body region using other image-recognizing methods.In this regard, the embodiment of the present disclosure is not particularly limited.
The color in vehicle body region is judged, if the color in vehicle body region is color, i.e., in addition to gray scale Color, the method that tone modification can be directly used in vehicle body region carry out color adjustment.It is ash in the color for determining vehicle body region When spending, it is adjusted using either offer method in the embodiment of the present disclosure.
Optionally, the color in gray scale vehicle body region includes black, white and grey.
Wherein, in hsv color space, pass through tone, saturation degree and luminance characterization each color.Wherein, the change of brightness Change degree can be indicated with light and shade value.The brightness of black is minimum, and saturation degree and tone are the maximum magnitudes of hsv color space setting Interior arbitrary value.The brightness highest of white, saturation degree is minimum, and tone is any in the maximum magnitude of hsv color space setting Value.The saturation degree of grey is lower, and brightness and tone are the arbitrary values in the maximum magnitude of hsv color space setting.
It is understood that the tone of black, white and grey is appointing in the maximum magnitude of hsv color space setting Meaning value namely these three colors of black, white and grey can not change its color bandwagon effect by modification tone.It is exemplary , black is after the operation by modification tone, brightness or minimum, that is, the color shown is minimum after tone reversal The color of brightness, thus, the bandwagon effect of modified color reality or black.As a result, black, white and grey these three Color only modifies tone, the visual effect showed almost indifference.
It is directed to three kinds of black, white and grey colors as a result, matched targeted color color is first adjusted to, later to face Color is modified, to realize that vehicle body region adjusts color.
Targeted color color includes the color in addition to grey black is white, such as red, yellow, blue, green, green and pinkish red etc..
Wherein, the color in gray scale vehicle body region is adjusted to targeted color color, is that vehicle body region is adjusted to the same face Color.Targeted color color can be determined based on color to be adjusted, for example, the colour system of targeted color color and color to be adjusted Colour system is identical or the color value of targeted color color is identical as the color value of color to be adjusted.
Specifically, the color adjustment mode in gray scale vehicle body region includes simultaneously carrying out tone, brightness and saturation degree respectively Modification, can be to avoid tone be only modified, the case where causing modified color not change.
Entire vehicle body region is revised as to the color of region-wide same hue, brightness and saturation degree, reduces the difficulty of adjustment, The operation for simplifying the first successive step of color, improves the efficiency of color adjustment.Autonomous modification brightness and saturation degree are avoided simultaneously, are caused The color in the vehicle body region situation inaccurate according to light variation, for example, the region most dark in light, colour brightness highest.
Optionally, before the color in the gray scale vehicle body region in image is adjusted to targeted color color, further includes: When receiving body color adjustment instruction, vehicle body region is detected in the picture;Wherein, the body color adjustment instruction include to Adjust color, the color to be adjusted and the targeted color color-match;Gray scale vehicle body area is determined in the vehicle body region Domain.
Wherein, body color adjustment instruction is used to adjust the color in vehicle body region, can refer to the instruction of user's input, can To include the range of color to be adjusted and vehicle body region.
In fact, gray scale vehicle body region can refer to that the color of whole region in the vehicle body region an of vehicle is gray scale face It include multiple color in the vehicle body region of color or a vehicle, the color of partial region therein is greyscale color.
If vehicle body region includes greyscale color, the vehicle body region of greyscale color is obtained as gray scale vehicle body region.Such as When fruit vehicle body region does not include greyscale color, gray scale vehicle body region is sky.Specifically, if vehicle body region includes multiple color, Color division can be carried out to vehicle body region, obtain gray scale vehicle body region and colored vehicle body region.
Color to be adjusted is used to be used as vehicle body region color of object adjusted.Color to be adjusted and targeted color color Match, specifically, the colour system that can be color to be adjusted is identical as the colour system of targeted color color.
By when receiving body color adjustment instruction, detect vehicle body region, determine the vehicle body region that is adjusted to color with And targeted color color, it can accurately determine the range and color to color adjustment.
Wherein, optionally, described to detect vehicle body region in the picture, comprising: to input an image into image trained in advance Parted pattern obtains the vehicle body region of described image parted pattern output.
Wherein, Image Segmentation Model is machine learning model, realizes vehicle body area by Image Segmentation Model trained in advance The detection in domain improves the Detection accuracy in vehicle body region.
Optionally, before inputting an image into Image Segmentation Model trained in advance, further includes: in the mistake of video record Cheng Zhong obtains the video frame of the video as described image in real time.
Specifically, by during video record, real-time image acquisition is gone forward side by side body field color adjustment of driving a vehicle, can be with It realizes instant color adjustment, improves the speed of body color adjustment in video.
Optionally, the color by the gray scale vehicle body region in image is adjusted to targeted color color, comprising: obtains institute State the corresponding pixel in gray scale vehicle body region;The color value of each pixel is respectively modified as and the targeted color color Matched color value.
Specifically, color value may include the value of RGB (Red Green Blue, RGB).By modifying color value, fastly Gray scale vehicle body region is adjusted to the significant color of tone by speed, accelerates the speed of color adjustment.
Vehicle body region adjusted is input in color correct model trained in advance, obtains revised vehicle by S120 Body region adjusts result as the color in gray scale vehicle body region;Each pixel in the revised vehicle body region it is bright Dark value and intensity value are not all the same.
Color correct model is used to correct the color in vehicle body region, so that the color in vehicle body region has not in different location Exactly the same brightness and saturation degree.Color correct model can refer to machine learning model trained in advance.
It is understood that the body color of vehicle is changed as bright and dark light changes, not in actual environment Being is all identical light and shade value and intensity value.It is directed to the light and shade value of targeted color color color adjusted as a result, It is modified with intensity value, is really met the vehicle body face for having brightness change and saturation degree variation under actual environment Color improves the authenticity of body color adjustment.
Optionally, before vehicle body region adjusted to be input to color correct model trained in advance, further includes: receive Collection includes the image in vehicle body region;Each vehicle body region is adjusted to and the matched color of current body color, formation Colored vehicle body region;Vehicle body region and the colored vehicle body region before color is adjusted is as sample group;According to multiple described Sample group training machine learning model forms the color correct model.
Specifically, the training sample of training color correct model includes multiple groups sample, it include each pixel in every group of sample Light and shade value and intensity value vehicle body region and each pixel all the same not all the same true of light and shade value and intensity value Real vehicle body region.Specifically, true vehicle body region can be collected, and by the color in true vehicle body region be adjusted to no light and shade value and Intensity value variation, and color similar in color and the color in true vehicle body region.It is trained based on multiple sample groups as a result, The color in vehicle body region can be adjusted to the color in true vehicle body region by the model arrived to the greatest extent, realize accurate adjustment Body color.
By configuring true vehicle body region and color vehicle body region adjusted as sample group, the sample of sample group is improved This representativeness, to improve the amendment accuracy rate of color correct model.
The embodiment of the present disclosure by the way that the color in gray scale vehicle body region is adjusted to targeted color color, realize light and shade value and Visual effect after intensity value changes changes the vision that small tone is revised as after light and shade value and intensity value change The tone that effect is changed significantly, it is ensured that the visual effect difference of the color before color adjusted and adjustment is big, to guarantee to adjust The visual effect of color after whole changes, meanwhile, light and shade value and intensity value are adjusted to identical, reduced to gray scale vehicle body area The data volume of the variation adjustment of the light and shade value and intensity value in domain, so that the speed of the color adjustment in gray scale vehicle body region is improved, Vehicle body region after the adjustment is modified, and the identical light and shade value and intensity value in vehicle body region are adjusted to be changed significantly Light and shade value and intensity value, increase vehicle body region color authenticity, solve in the prior art only to gray scale vehicle body into Row hue adjustment leads to the problem of the result of browse difference of color adjusted, and vehicle body region has been adjusted to specific light and shade and has been changed And the color of saturation degree variation, guarantee meeting under actual environment for body color, there is light and shade variation, and improves color and become The speed of change.
Embodiment two
Fig. 2 is the flow chart of one of embodiment of the present disclosure body color method of adjustment, and this method is with above-mentioned steps Basis optimizes, and this method specifically comprises the following steps:
S210 obtains the video frame of the video as image during video record in real time.
The video of the embodiment of the present disclosure, video frame, image, body color adjustment instruction, Image Segmentation Model, vehicle body area Domain, color to be adjusted, gray scale vehicle body region and color correct model etc. can refer to the description of previous embodiment.
Described image is input to image segmentation mould trained in advance when receiving body color adjustment instruction by S220 Type obtains the vehicle body region of described image parted pattern output;Wherein, the body color adjustment instruction includes face to be adjusted Color, the color to be adjusted and the targeted color color-match.
S230, in the vehicle body region determine gray scale vehicle body region, the color in gray scale vehicle body region include black, White and grey.
S240 obtains the corresponding pixel in gray scale vehicle body region.
The color value of each pixel is respectively modified as the color value with the targeted color color-match by S250, The light and shade value and intensity value of each pixel in vehicle body region adjusted are all the same.
Vehicle body region adjusted is input in color correct model trained in advance, obtains revised vehicle by S260 Body region adjusts result as the color in gray scale vehicle body region;Each pixel in the revised vehicle body region it is bright Dark value and intensity value are not all the same.
Optionally, before vehicle body region adjusted to be input to color correct model trained in advance, further includes: receive Collection includes the image in vehicle body region;Each vehicle body region is adjusted to and the matched color of current body color, formation Colored vehicle body region;Vehicle body region and the colored vehicle body region before color is adjusted is as sample group;According to multiple described Sample group training machine learning model forms the color correct model.
The embodiment of the present disclosure refers to by real-time image acquisition during video record, and receiving body color adjustment When enabling, vehicle body region is accurately determined using Image Segmentation Model, meanwhile, when determining gray scale vehicle body region, by gray scale vehicle body area The corresponding pixel in domain is revised as that gray scale vehicle body region is adjusted to color with the matched color value of body color adjustment instruction, realization Significant colored vehicle body region is adjusted, color will be carried out in the color correct model trained in advance of vehicle body region adjusted input It is existing to realize that vehicle body region color adjusted more meets so that the color in vehicle body region has brightness and the variation of saturation degree for amendment Real environment, thus, improve the accuracy of color adjustment.
Embodiment three
Fig. 3 is the structural schematic diagram that a kind of body color that the embodiment of the present disclosure three provides adjusts device, and the present embodiment can The case where suitable for the gray scale vehicle body region image is carried out color adjustment.The device can be using software and/or hardware Mode realizes that the device can be configured in electronic equipment, such as server or terminal device, and typical terminal device includes moving Dynamic terminal.As shown in figure 3, the apparatus may include: color of object adjusts module 310 and color of object correction module 320.
Color of object adjusts module 310, for the color in the gray scale vehicle body region in image to be adjusted to targeted color face Color, the light and shade value and intensity value of each pixel in vehicle body region adjusted are all the same;
Color of object correction module 320, for vehicle body region adjusted to be input to color correct mould trained in advance In type, the color for obtaining revised vehicle body region as gray scale vehicle body region adjusts result;The revised vehicle body The light and shade value and intensity value of each pixel in region are not all the same.
The embodiment of the present disclosure by the way that the color in gray scale vehicle body region is adjusted to targeted color color, realize light and shade value and Visual effect after intensity value changes changes the vision that small tone is revised as after light and shade value and intensity value change The tone that effect is changed significantly, it is ensured that the visual effect difference of the color before color adjusted and adjustment is big, to guarantee to adjust The visual effect of color after whole changes, meanwhile, light and shade value and intensity value are adjusted to identical, reduced to gray scale vehicle body area The data volume of the variation adjustment of the light and shade value and intensity value in domain, so that the speed of the color adjustment in gray scale vehicle body region is improved, Vehicle body region after the adjustment is modified, and the identical light and shade value and intensity value in vehicle body region are adjusted to be changed significantly Light and shade value and intensity value, increase vehicle body region color authenticity, solve in the prior art only to gray scale vehicle body into Row hue adjustment leads to the problem of the result of browse difference of color adjusted, and vehicle body region has been adjusted to specific light and shade and has been changed And the color of saturation degree variation, guarantee meeting under actual environment for body color, there is light and shade variation, and improves color and become The speed of change.
Further, the body color adjusts device, further includes: body color adjustment instruction receiving module is used for Before the color in the gray scale vehicle body region in image is adjusted to targeted color color, body color adjustment instruction is being received When, vehicle body region is detected in the picture;Wherein, the body color adjustment instruction includes color to be adjusted, the face to be adjusted Color and the targeted color color-match;Gray scale vehicle body region is determined in the vehicle body region.
Further, the body color adjustment instruction receiving module, comprising: image segmentation unit, for image is defeated Enter the vehicle body region that the output of described image parted pattern is obtained to Image Segmentation Model trained in advance.
Further, the color in gray scale vehicle body region includes black, white and grey.
Further, the body color adjusts device, further includes: color correct model training module, for that will adjust Vehicle body region after whole is input to before color correct model trained in advance, collects the image comprising vehicle body region;By each institute Vehicle body region is stated to be adjusted to and the matched color of current body color, formation colored vehicle body region;Before color is adjusted Vehicle body region and the colored vehicle body region are as sample group;According to multiple sample group training machine learning models, formed The color correct model.
Further, the body color adjusts device, further includes: image obtains module in real time, for image is defeated Enter to before Image Segmentation Model trained in advance, during video record, the video frame for obtaining the video in real time is made For described image.
Further, the color of object adjusts module 320, comprising: color value modifies unit, for obtaining the gray scale The corresponding pixel in vehicle body region;The color value of each pixel is respectively modified as and the targeted color color-match Color value.
The body color that the embodiment of the present disclosure provides adjusts device, the body color method of adjustment provided with previous embodiment Belong to same inventive concept, the technical detail of detailed description not can be found in previous embodiment, and this in the embodiments of the present disclosure The body color adjustment device that open embodiment provides and the body color method of adjustment that previous embodiment provides are having the same Beneficial effect.
Example IV
Below with reference to Fig. 4, it illustrates the electronic equipment for being suitable for being used to realize the embodiment of the present disclosure (such as server or shiftings Dynamic terminal) 400 structural schematic diagram.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, Laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia broadcasting Put device), the mobile terminal of car-mounted terminal (such as vehicle mounted guidance terminal) etc. and such as number TV, desktop computer etc. Fixed terminal.Electronic equipment shown in Fig. 4 is only an example, should not function and use scope band to the embodiment of the present disclosure Carry out any restrictions.
As shown in figure 4, electronic equipment 400 may include processing unit (such as central processing unit, graphics processor etc.) 401, random access can be loaded into according to the program being stored in read-only memory (ROM) 402 or from storage device 408 Program in memory (RAM) 403 and execute various movements appropriate and processing.In RAM 403, it is also stored with electronic equipment Various programs and data needed for 400 operations.Processing unit 401, ROM 402 and RAM 403 pass through the phase each other of bus 404 Even.Input/output (I/O) interface 405 is also connected to bus 404.
In general, following device can connect to I/O interface 405: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 406 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 407 of dynamic device etc.;Storage device 408 including such as tape, hard disk etc.;And communication device 409.Communication device 409, which can permit electronic equipment 400, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 4 shows tool There is the electronic equipment 400 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communication device 409, or be filled from storage It sets 408 to be mounted, or is mounted from ROM 402.When the computer program is executed by processing unit 401, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
Embodiment five
The above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or computer-readable storage Medium either the two any combination.Computer readable storage medium for example may be-but not limited to-electricity, Magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Computer-readable storage The more specific example of medium can include but is not limited to: have electrical connection, the portable computer magnetic of one or more conducting wires Disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or sudden strain of a muscle Deposit), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned appoint The suitable combination of meaning.In the disclosure, computer readable storage medium can be any tangible medium for including or store program, The program can be commanded execution system, device or device use or in connection.And in the disclosure, computer Readable signal medium may include in a base band or as the data-signal that carrier wave a part is propagated, wherein carrying computer Readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, optical signal Or above-mentioned any appropriate combination.Computer-readable signal media can also be any other than computer readable storage medium Computer-readable medium, the computer-readable signal media can be sent, propagated or transmitted for by instruction execution system, dress It sets or device uses or program in connection.The program code for including on computer-readable medium can be with any Medium transmission appropriate, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network (" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: the color in the gray scale vehicle body region in image being adjusted to targeted color color, is adjusted The light and shade value and intensity value of each pixel in vehicle body region after whole are all the same;Vehicle body region adjusted is input to pre- First in trained color correct model, color adjustment knot of the revised vehicle body region as gray scale vehicle body region is obtained Fruit;The light and shade value and intensity value of each pixel in the revised vehicle body region are not all the same.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in module involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of module does not constitute the restriction to the module itself under certain conditions, for example, mesh Mark color adjustment module is also described as " color in the gray scale vehicle body region in image being adjusted to targeted color color Module ".
Function described herein can be executed at least partly by one or more hardware logic components.Example Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc. Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or Any appropriate combination of above content.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of body color methods of adjustment, comprising:
The color in the gray scale vehicle body region in image is adjusted to targeted color color, it is each in vehicle body region adjusted The light and shade value and intensity value of pixel are all the same;
Vehicle body region adjusted is input in color correct model trained in advance, obtains revised vehicle body region Color as gray scale vehicle body region adjusts result;The light and shade value of each pixel in the revised vehicle body region and Intensity value is not all the same.
According to one or more other embodiments of the present disclosure, in the body color method of adjustment that the disclosure provides, by image In the color in gray scale vehicle body region be adjusted to before targeted color color, further includes: receiving body color adjustment instruction When, vehicle body region is detected in the picture;Wherein, the body color adjustment instruction includes color to be adjusted, the face to be adjusted Color and the targeted color color-match;Gray scale vehicle body region is determined in the vehicle body region.
It is described to scheme in the body color method of adjustment provided according to one or more other embodiments of the present disclosure, the disclosure Vehicle body region is detected as in, comprising: input an image into Image Segmentation Model trained in advance, obtain described image parted pattern The vehicle body region of output.
In the body color method of adjustment provided according to one or more other embodiments of the present disclosure, the disclosure, the gray scale The color in vehicle body region includes black, white and grey.
According to the body color method of adjustment that one or more other embodiments of the present disclosure, the disclosure provide, after it will adjust Vehicle body region be input to before in advance trained color correct model, further includes: collect include vehicle body region image;It will be each The vehicle body region is adjusted to and the matched color of current body color, formation colored vehicle body region;Before color is adjusted Vehicle body region and the colored vehicle body region as sample group;According to multiple sample group training machine learning models, shape At the color correct model.
According to one or more other embodiments of the present disclosure, in the body color method of adjustment that the disclosure provides, by image It is input to before Image Segmentation Model trained in advance, further includes: during video record, obtain the video in real time Video frame is as described image.
It is described to scheme in the body color method of adjustment provided according to one or more other embodiments of the present disclosure, the disclosure The color in the gray scale vehicle body region as in is adjusted to targeted color color, comprising: obtains the corresponding picture in gray scale vehicle body region Vegetarian refreshments;The color value of each pixel is respectively modified as the color value with the targeted color color-match.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of body colors to adjust device, comprising:
Color of object adjusts module, for the color in the gray scale vehicle body region in image to be adjusted to targeted color color, The light and shade value and intensity value of each pixel in vehicle body region adjusted are all the same;
Color of object correction module, for vehicle body region adjusted to be input to color correct model trained in advance In, the color for obtaining revised vehicle body region as gray scale vehicle body region adjusts result;The revised vehicle body area The light and shade value and intensity value of each pixel in domain are not all the same.
According to one or more other embodiments of the present disclosure, the body color that the disclosure provides adjusts device, further includes: Body color adjustment instruction receiving module, for the color in the gray scale vehicle body region in image to be adjusted to targeted color color Before, when receiving body color adjustment instruction, vehicle body region is detected in the picture;Wherein, the body color adjustment refers to Enable includes color to be adjusted, the color to be adjusted and the targeted color color-match;Ash is determined in the vehicle body region Spend vehicle body region.
According to one or more other embodiments of the present disclosure, in the body color adjustment device that the disclosure provides, the vehicle body Color adjustment instruction receiving module, comprising: image segmentation unit, for inputting an image into image segmentation mould trained in advance Type obtains the vehicle body region of described image parted pattern output.
According to one or more other embodiments of the present disclosure, in the body color adjustment device that the disclosure provides, the gray scale The color in vehicle body region includes black, white and grey.
According to one or more other embodiments of the present disclosure, in the body color adjustment device that the disclosure provides, further includes: face Colour correction model training module, for before vehicle body region adjusted to be input to in advance trained color correct model, Collect the image comprising vehicle body region;Each vehicle body region is adjusted to and the matched color of current body color, shape At colored vehicle body region;Vehicle body region and the colored vehicle body region before color is adjusted is as sample group;According to multiple institutes Sample group training machine learning model is stated, the color correct model is formed.
According to one or more other embodiments of the present disclosure, in the body color adjustment device that the disclosure provides, further includes: figure As obtaining module in real time, for before inputting an image into advance trained Image Segmentation Model, in the process of video record In, the video frame of the video is obtained in real time as described image.
According to one or more other embodiments of the present disclosure, in the body color adjustment device that the disclosure provides, the target Color adjustment module, comprising: color value modifies unit, for obtaining the corresponding pixel in gray scale vehicle body region;By each institute The color value for stating pixel is respectively modified as color value with the targeted color color-match.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realize the disclosure provide it is any as described in body color method of adjustment.
According to one or more other embodiments of the present disclosure, present disclose provides a kind of computer readable storage mediums, thereon Be stored with computer program, when which is executed by processor realize the disclosure provide it is any as described in body color adjustment side Method.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous 's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary, Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (10)

1. a kind of body color method of adjustment characterized by comprising
The color in the gray scale vehicle body region in image is adjusted to targeted color color, each pixel in vehicle body region adjusted The light and shade value and intensity value of point are all the same;
Vehicle body region adjusted is input in color correct model trained in advance, obtains the conduct of revised vehicle body region The color in gray scale vehicle body region adjusts result;The light and shade value and saturation of each pixel in the revised vehicle body region Angle value is not all the same.
2. the method according to claim 1, wherein being adjusted to by the color in the gray scale vehicle body region in image Before targeted color color, further includes:
When receiving body color adjustment instruction, vehicle body region is detected in the picture;Wherein, the body color adjustment instruction Including color to be adjusted, the color to be adjusted and the targeted color color-match;
Gray scale vehicle body region is determined in the vehicle body region.
3. according to the method described in claim 2, it is characterized in that, described detect vehicle body region in the picture, comprising:
Image Segmentation Model trained in advance is input an image into, the vehicle body region of described image parted pattern output is obtained.
4. the method according to claim 1, wherein the color in gray scale vehicle body region includes black, white And grey.
5. the method according to claim 1, wherein vehicle body region adjusted is input to training in advance Before color correct model, further includes:
Collect the image comprising vehicle body region;
Each vehicle body region is adjusted to and the matched color of current body color, formation colored vehicle body region;
Vehicle body region and the colored vehicle body region before color is adjusted is as sample group;
According to multiple sample group training machine learning models, the color correct model is formed.
6. according to the method described in claim 3, it is characterized in that, inputting an image into Image Segmentation Model trained in advance Before, further includes:
During video record, the video frame of the video is obtained in real time as described image.
7. the method according to claim 1, wherein the color by the gray scale vehicle body region in image adjusts At targeted color color, comprising:
Obtain the corresponding pixel in gray scale vehicle body region;
The color value of each pixel is respectively modified as the color value with the targeted color color-match.
8. a kind of body color adjusts device characterized by comprising
Color of object adjusts module, for the color in the gray scale vehicle body region in image to be adjusted to targeted color color, adjusts The light and shade value and intensity value of each pixel in vehicle body region afterwards are all the same;
Color of object correction module is obtained for vehicle body region adjusted to be input in color correct model trained in advance Color to revised vehicle body region as gray scale vehicle body region adjusts result;In the revised vehicle body region The light and shade value and intensity value of each pixel are not all the same.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Existing body color method of adjustment as claimed in claim 1.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Body color method of adjustment as claimed in claim 1 is realized when execution.
CN201910615246.2A 2019-07-09 2019-07-09 Body color method of adjustment, device, electronic equipment and storage medium Pending CN110335195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615246.2A CN110335195A (en) 2019-07-09 2019-07-09 Body color method of adjustment, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615246.2A CN110335195A (en) 2019-07-09 2019-07-09 Body color method of adjustment, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110335195A true CN110335195A (en) 2019-10-15

Family

ID=68144461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615246.2A Pending CN110335195A (en) 2019-07-09 2019-07-09 Body color method of adjustment, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110335195A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314614A (en) * 2020-03-11 2020-06-19 北京字节跳动网络技术有限公司 Image processing method and device, readable medium and electronic equipment
CN111340687A (en) * 2020-02-21 2020-06-26 北京字节跳动网络技术有限公司 Image processing method and device and electronic equipment
CN111429544A (en) * 2020-03-23 2020-07-17 北京字节跳动网络技术有限公司 Vehicle body color processing method and device and electronic equipment
CN113870099A (en) * 2021-09-28 2021-12-31 泰山信息科技有限公司 Picture color conversion method, device and equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779330A (en) * 2012-06-13 2012-11-14 京东方科技集团股份有限公司 Image reinforcement method, image reinforcement device and display device
CN109949248A (en) * 2019-03-26 2019-06-28 北京字节跳动网络技术有限公司 Modify method, apparatus, equipment and the medium of the color of vehicle in the picture

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102779330A (en) * 2012-06-13 2012-11-14 京东方科技集团股份有限公司 Image reinforcement method, image reinforcement device and display device
CN109949248A (en) * 2019-03-26 2019-06-28 北京字节跳动网络技术有限公司 Modify method, apparatus, equipment and the medium of the color of vehicle in the picture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111340687A (en) * 2020-02-21 2020-06-26 北京字节跳动网络技术有限公司 Image processing method and device and electronic equipment
CN111314614A (en) * 2020-03-11 2020-06-19 北京字节跳动网络技术有限公司 Image processing method and device, readable medium and electronic equipment
CN111429544A (en) * 2020-03-23 2020-07-17 北京字节跳动网络技术有限公司 Vehicle body color processing method and device and electronic equipment
CN113870099A (en) * 2021-09-28 2021-12-31 泰山信息科技有限公司 Picture color conversion method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110335195A (en) Body color method of adjustment, device, electronic equipment and storage medium
CN107491771A (en) Method for detecting human face and device
US12254544B2 (en) Image-text fusion method and apparatus, and electronic device
CN110222728B (en) Training method and system of article identification model and article identification method and equipment
CN111476309A (en) Image processing method, model training method, device, equipment and readable medium
CN111210485B (en) Image processing method and device, readable medium and electronic equipment
CN112562019A (en) Image color adjusting method and device, computer readable medium and electronic equipment
CN108388878A (en) The method and apparatus of face for identification
CN108701355B (en) GPU optimization and online single Gaussian-based skin likelihood estimation
CN113449851A (en) Data processing method and device
CN111314614A (en) Image processing method and device, readable medium and electronic equipment
CN108280413A (en) Face identification method and device
CN110610191A (en) Elevator floor identification method and device and terminal equipment
CN114842120A (en) Image rendering processing method, device, equipment and medium
CN110059623A (en) Method and apparatus for generating information
CN113610720A (en) Video denoising method and device, computer readable medium and electronic device
EP4276733A1 (en) Image processing method and apparatus, and device and readable storage medium
CN110414527A (en) Character identifying method, device, storage medium and electronic equipment
CN110362698A (en) A kind of pictorial information generation method, device, mobile terminal and storage medium
CN110414450A (en) Keyword detection method, apparatus, storage medium and electronic equipment
CN110334650A (en) Object detecting method, device, electronic equipment and storage medium
US20240233771A9 (en) Image processing method, apparatus, device and storage medium
CN110047126A (en) Render method, apparatus, electronic equipment and the computer readable storage medium of image
CN112801997B (en) Image enhancement quality evaluation method, device, electronic equipment and storage medium
CN110399802A (en) Handle method, apparatus, medium and the electronic equipment of the brightness of face-image eyes

Legal Events

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

Application publication date: 20191015

RJ01 Rejection of invention patent application after publication