CN106295659A - Taking pictures of a kind of smart machine takes color application process and system - Google Patents

Taking pictures of a kind of smart machine takes color application process and system Download PDF

Info

Publication number
CN106295659A
CN106295659A CN201610666804.4A CN201610666804A CN106295659A CN 106295659 A CN106295659 A CN 106295659A CN 201610666804 A CN201610666804 A CN 201610666804A CN 106295659 A CN106295659 A CN 106295659A
Authority
CN
China
Prior art keywords
color
smart machine
taking pictures
bitmap file
dominant hue
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
CN201610666804.4A
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.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication 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 Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201610666804.4A priority Critical patent/CN106295659A/en
Publication of CN106295659A publication Critical patent/CN106295659A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)

Abstract

The present invention discloses taking pictures of a kind of smart machine and takes color application process and system, and method includes step: A, shoots photo by the photographic head of smart machine, and preserves the photo of current shooting;B, each color occupied area to captured photo are added up, and obtain the forward some colors of area as optional dominant hue;C, instruction according to user select a dominant hue in optional dominant hue as the color of intended application.The function of color is taken by The inventive method achieves to take pictures, so can allow user's What You See Is What You Get, such as see that the tone of this scene just can be captured out by fine scene, it is then applied to elsewhere, such as, on the wallpaper color application of extraction liked to oneself or on the icon of application.

Description

Taking pictures of a kind of smart machine takes color application process and system
Technical field
The present invention relates to smart machine field, particularly relate to taking pictures of a kind of smart machine and take color application process and system.
Background technology
Along with raising and the development of mobile Internet of people's living standard, the smart machine with mobile phone as representative is people Routine work and life in the middle of play the most important effect.People can carry out taking pictures with mobile phone, converse, share Information etc., but the camera function of mobile phone is typically only confined to shoot photo and shoot video at present, the most in the current marketplace, The photographic head of mobile phone has been applied to various field, but great majority are all to take pictures and record a video, its function singleness and cannot apply Use in other field.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide taking pictures of a kind of smart machine and take color application Method and system, it is intended to solve the problem that in prior art, camera function is single.
Technical scheme is as follows:
Taking pictures of a kind of smart machine takes color application process, wherein, and including:
Step A, shoot photo by the photographic head of smart machine, and preserve the photo of current shooting;
Step B, each color occupied area to captured photo are added up, and obtain the forward some colors of area as optional Dominant hue;
Step C, instruction according to user select a dominant hue in optional dominant hue as the color of intended application.
Taking pictures of described smart machine takes color application process, and wherein, described step B specifically includes:
Step B1, captured photo is converted to bitmap file;
Step B2, bitmap file is compressed;
Step B3, pixel to bitmap file carry out filtration treatment;
Step B4, the number of statistics bitmap file each colored pixels point;
Step B5, using some colors forward for pixel number ranking as optional dominant hue.
Taking pictures of described smart machine takes color application process, and wherein, described step B3 specifically includes:
The saturation of each pixel color in step B31, acquisition bitmap file;
If step B32 saturation is less than predetermined threshold, then reject corresponding pixel.
Taking pictures of described smart machine takes color application process, and wherein, described step B3 also includes:
If the area threshold of a certain color occupied area deficiency bitmap file, then reject corresponding pixel.
Taking pictures of described smart machine takes color application process, wherein, in described step C, and should as target using dominant hue Icon Color or theme colors.
Taking pictures of a kind of smart machine takes color application system, wherein, and including:
Photographic head, is used for shooting photo;
Preserve module, for preserving the photo of current shooting;
Processing module, for adding up each color occupied area of captured photo, obtains some colors that area is forward As optional dominant hue;
Take color module, for selecting a dominant hue in optional dominant hue as the face of intended application according to the instruction of user Color.
Taking pictures of described smart machine takes color application system, and wherein, described processing module specifically includes:
Converting unit, for being converted to bitmap file by captured photo;
Compression unit, for being compressed bitmap file;
Filter element, for carrying out filtration treatment to the pixel of bitmap file;
Statistic unit, for adding up the number of bitmap file each colored pixels point;
Select unit, be used for some colors forward for pixel number ranking as optional dominant hue.
Taking pictures of described smart machine takes color application system, and wherein, described filter element specifically includes:
Saturation obtains subelement, for obtaining the saturation of each pixel color in bitmap file;
Reject subelement, if for saturation less than predetermined threshold, then rejecting corresponding pixel.
Taking pictures of described smart machine takes color application system, wherein, if described filter element is additionally operable to a certain color institute Account for the area threshold of area deficiency bitmap file, then reject corresponding pixel.
Taking pictures of described smart machine takes color application system, wherein, described in take in color module, using dominant hue as target The Icon Color of application or theme colors.
Beneficial effect: take the function of color by The inventive method achieves to take pictures, so can allow user's finding i.e. institute , such as see that the tone of this scene just can be captured out by fine scene, be then applied to elsewhere, such as, On the wallpaper that the color application of extraction is liked to oneself or on the icon of application.
Accompanying drawing explanation
Fig. 1 is that taking pictures of a kind of smart machine of the present invention takes the flow chart of color application process preferred embodiment.
Fig. 2 is that taking pictures of a kind of smart machine of the present invention takes the structured flowchart of color application system preferred embodiment.
Detailed description of the invention
The present invention provides taking pictures of a kind of smart machine to take color application process and system, for making the purpose of the present invention, technology Scheme and effect are clearer, clear and definite, and the present invention is described in more detail below.Should be appreciated that described herein specifically Embodiment only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is that taking pictures of a kind of smart machine of the present invention takes the flow process of color application process preferred embodiment Figure, as it can be seen, comprising:
Step S1, shoot photo by the photographic head of smart machine, and preserve the photo of current shooting;
Step S2, each color occupied area to captured photo are added up, and obtain the forward some colors of area as can Select dominant hue;
Step S3, instruction according to user select a dominant hue in optional dominant hue as the color of intended application.
In the present invention, photographic head not only can play the function taken pictures, and can also play the function taking color simultaneously, utilizes shooting Photo color, as dominant hue, and be applied in the intended application of smart machine, thus add the function of smart machine, Realize What You See Is What You Get, if user sees scene interested, it is possible to using the color of this scene as tone, apply in intelligence On equipment.Choosing as dominant hue, can first choose the forward some colors of area dominant hue alternately, the most therefrom Select a color as intended application.
In step sl, the photographic head first with smart machine shoots photo, and keeps the photo of shooting.
In the present invention, after the function opening the present invention, permissions dialog box is first ejected.This function of user is reminded to need Use photographic head, unless user provides this authority in android system, photographic head otherwise can not be utilized to clap According to.If receive the instruction that user allows use photographic head, then obtain the authority calling photographic head, then the most just wound Build interface, otherwise quit a program.This interface be primarily used to show photographic head shooting after transmit picture frame (i.e. according to Sheet) and the last color obtained of display.
After obtaining authority, open smart machine photographic head.Owing to all driving equipment are all with file in Linux Existence, if so needing to use photographic head, then be accomplished by obtaining the ID of photographic head, then set by the ID that gets For calling.
If opening photographic head success, then just can be by this readjustment of CameraDevice.StateCallback () Class gets the photo (picture frame) captured by photographic head.This two field picture is saved in caching, thus obtains current bat The photo taken the photograph.
Further, described step S2 specifically includes:
Step S21, captured photo is converted to bitmap file;
Step S22, bitmap file is compressed;
Step S23, pixel to bitmap file carry out filtration treatment;
Step S24, the number of statistics bitmap file each colored pixels point;
Step S25, using some colors forward for pixel number ranking as optional dominant hue.
When user clicks on acquisition button, the photo in caching can be changed into Bitmap picture format.Bitmap also known as Bitmap file, is Android reference format graphic file, and image definition is to be made up of point (pixel) by it, and each point can be by Multicolour represents, including 2,4,8,16,24 and 32 colors.It is to say, by above-mentioned steps, the photo of shooting can be turned It is changed to bitmap file.
Bitmap file owing to being converted to is excessive, and the present invention have only to obtain be the main tone in image.Cause This calculates the tone of image for convenience, and makes algorithm run faster, is compressed bitmap file here, such as, compresses Become the half size of map file in situ.
After having compressed, the pixel of bitmap file is carried out filtration treatment, because something like vegetarian refreshments or over-exposed Under-exposed, so needing to filter out, remaining pixel is added up.
Further, described step S23 specifically includes:
The saturation of each pixel color in step S231, acquisition bitmap file;
If step S232 saturation is less than predetermined threshold, then reject corresponding pixel.
It is to say, the saturation of each pixel color is judged, if saturation is less than 0.21, then this A little images are high light or the most quick-fried place, are not the most that user wants, so needing to weed out these pixels.
Further, described step S23 also includes:
If the area threshold of a certain color occupied area deficiency bitmap file, then reject corresponding pixel.
Preferably, can first carry out above-mentioned area and judge step, then perform saturation and judge step.The most first calculate position The colouring information of all pixels in map file, filters out the pixel of not enough for area 1/50.
After filtration treatment, the number of each colored pixels point in statistics bitmap file, then to each colored pixels point Number carries out ranking, thus using some colors forward for ranking as optional dominant hue.
If, if the area shared by certain color is maximum, then this color is exactly the dominant hue of diagram picture. The present invention can first select color that four kinds of areas occupied are bigger as optional dominant hue.
Then the optional dominant hue calculated is returned to interface, thus may be displayed on and create before In interface.
In step s3, user can select the one in four kinds of optional dominant hues on interface, and is applied at certain In intended application.
The most specifically, can be using dominant hue as the Icon Color of intended application or theme colors, such user is just Can be by the icon of self or theme Indivitual display, it is achieved What You See Is What You Get.
Based on said method, the present invention also provides for taking pictures of a kind of smart machine and takes color application system preferred embodiment, as Shown in Fig. 2, comprising:
Photographic head 100, is used for shooting photo;
Preserve module 200, for preserving the photo of current shooting;
Processing module 300, for adding up each color occupied area of captured photo, obtains some face that area is forward Color is as optional dominant hue;
Take color module 400, for selecting a dominant hue in optional dominant hue as intended application according to the instruction of user Color.
Further, described processing module 300 specifically includes:
Converting unit, for being converted to bitmap file by captured photo;
Compression unit, for being compressed bitmap file;
Filter element, for carrying out filtration treatment to the pixel of bitmap file;
Statistic unit, for adding up the number of bitmap file each colored pixels point;
Select unit, be used for some colors forward for pixel number ranking as optional dominant hue.
Further, described filter element specifically includes:
Saturation obtains subelement, for obtaining the saturation of each pixel color in bitmap file;
Reject subelement, if for saturation less than predetermined threshold, then rejecting corresponding pixel.
Further, if described filter element is additionally operable to the area threshold of a certain color occupied area deficiency bitmap file, then Reject corresponding pixel.
Further, take in color module 400, using dominant hue as the Icon Color of intended application or theme colors described in.
Ins and outs about above-mentioned modular unit are described in detail in method above, therefore repeat no more.
One of ordinary skill in the art will appreciate that all or part of flow process in above-described embodiment method, can be by Computer program instructs relevant hardware and completes, and described computer program can be stored in a computer read/write memory medium In, program is upon execution, it may include the flow process of the embodiment of above-mentioned each method.Storage medium therein can be magnetic disc, CD, Read-only store-memory body (ROM) or random store-memory body (RAM) etc..
In sum, taking the function of color by The inventive method achieves to take pictures, so can allow user's finding i.e. institute , such as see that the tone of this scene just can be captured out by fine scene, be then applied to elsewhere, such as, On the wallpaper that the color application of extraction is liked to oneself or on the icon of application.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention Protect scope.

Claims (10)

1. taking pictures of a smart machine takes color application process, it is characterised in that including:
Step A, shoot photo by the photographic head of smart machine, and preserve the photo of current shooting;
Step B, each color occupied area to captured photo are added up, and obtain the forward some colors of area as optional Dominant hue;
Step C, instruction according to user select a dominant hue in optional dominant hue as the color of intended application.
Taking pictures of smart machine the most according to claim 1 takes color application process, it is characterised in that described step B is concrete Including:
Step B1, captured photo is converted to bitmap file;
Step B2, bitmap file is compressed;
Step B3, pixel to bitmap file carry out filtration treatment;
Step B4, the number of statistics bitmap file each colored pixels point;
Step B5, using some colors forward for pixel number ranking as optional dominant hue.
Taking pictures of smart machine the most according to claim 2 takes color application process, it is characterised in that described step B3 is concrete Including:
The saturation of each pixel color in step B31, acquisition bitmap file;
If step B32 saturation is less than predetermined threshold, then reject corresponding pixel.
Taking pictures of smart machine the most according to claim 2 takes color application process, it is characterised in that described step B3 is also wrapped Include:
If the area threshold of a certain color occupied area deficiency bitmap file, then reject corresponding pixel.
Taking pictures of smart machine the most according to claim 1 takes color application process, it is characterised in that in described step C, will Dominant hue is as the Icon Color of intended application or theme colors.
6. taking pictures of a smart machine takes color application system, it is characterised in that including:
Photographic head, is used for shooting photo;
Preserve module, for preserving the photo of current shooting;
Processing module, for adding up each color occupied area of captured photo, obtains some colors that area is forward As optional dominant hue;
Take color module, for selecting a dominant hue in optional dominant hue as the face of intended application according to the instruction of user Color.
Taking pictures of smart machine the most according to claim 6 takes color application system, it is characterised in that described processing module has Body includes:
Converting unit, for being converted to bitmap file by captured photo;
Compression unit, for being compressed bitmap file;
Filter element, for carrying out filtration treatment to the pixel of bitmap file;
Statistic unit, for adding up the number of bitmap file each colored pixels point;
Select unit, be used for some colors forward for pixel number ranking as optional dominant hue.
Taking pictures of smart machine the most according to claim 7 takes color application system, it is characterised in that described filter element has Body includes:
Saturation obtains subelement, for obtaining the saturation of each pixel color in bitmap file;
Reject subelement, if for saturation less than predetermined threshold, then rejecting corresponding pixel.
Taking pictures of smart machine the most according to claim 7 takes color application system, it is characterised in that described filter element is also If for the area threshold of a certain color occupied area deficiency bitmap file, then rejecting corresponding pixel.
Taking pictures of smart machine the most according to claim 6 takes color application system, it is characterised in that described in take color module In, using dominant hue as the Icon Color of intended application or theme colors.
CN201610666804.4A 2016-08-15 2016-08-15 Taking pictures of a kind of smart machine takes color application process and system Pending CN106295659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610666804.4A CN106295659A (en) 2016-08-15 2016-08-15 Taking pictures of a kind of smart machine takes color application process and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610666804.4A CN106295659A (en) 2016-08-15 2016-08-15 Taking pictures of a kind of smart machine takes color application process and system

Publications (1)

Publication Number Publication Date
CN106295659A true CN106295659A (en) 2017-01-04

Family

ID=57671811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610666804.4A Pending CN106295659A (en) 2016-08-15 2016-08-15 Taking pictures of a kind of smart machine takes color application process and system

Country Status (1)

Country Link
CN (1) CN106295659A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600715A (en) * 2018-04-26 2018-09-28 广东小天才科技有限公司 A kind of method for controlling projection and projection device
WO2019023968A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image color adjustment system and color adjustment method for smart terminal
CN111984164A (en) * 2020-08-31 2020-11-24 Oppo广东移动通信有限公司 Wallpaper generation method, device, terminal and storage medium
CN112037303A (en) * 2020-08-31 2020-12-04 深圳市欢太科技有限公司 Card background color generation method, device, equipment and medium for theme display card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231757A (en) * 2007-12-07 2008-07-30 北京搜狗科技发展有限公司 Apparatus and method for analyzing picture dominant hue as well as application in picture searching thereof
US20120139933A1 (en) * 2010-12-03 2012-06-07 Fujitsu Limited Image display device and method, and image processing device
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN104536656A (en) * 2014-12-16 2015-04-22 北京京东尚科信息技术有限公司 Method and system used for generating operation detail page of intelligent equipment
CN105224588A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 According to method and the device of photo dominant hue generation background music

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101231757A (en) * 2007-12-07 2008-07-30 北京搜狗科技发展有限公司 Apparatus and method for analyzing picture dominant hue as well as application in picture searching thereof
US20120139933A1 (en) * 2010-12-03 2012-06-07 Fujitsu Limited Image display device and method, and image processing device
CN103513946A (en) * 2012-06-26 2014-01-15 腾讯科技(深圳)有限公司 Display control method and device
CN104536656A (en) * 2014-12-16 2015-04-22 北京京东尚科信息技术有限公司 Method and system used for generating operation detail page of intelligent equipment
CN105224588A (en) * 2015-06-29 2016-01-06 深圳市美贝壳科技有限公司 According to method and the device of photo dominant hue generation background music

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
邓荣峰: "车牌字符识别关键技术研究及车牌识别系统实现", 《万方数据库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019023968A1 (en) * 2017-08-02 2019-02-07 深圳传音通讯有限公司 Image color adjustment system and color adjustment method for smart terminal
CN108600715A (en) * 2018-04-26 2018-09-28 广东小天才科技有限公司 A kind of method for controlling projection and projection device
CN111984164A (en) * 2020-08-31 2020-11-24 Oppo广东移动通信有限公司 Wallpaper generation method, device, terminal and storage medium
CN112037303A (en) * 2020-08-31 2020-12-04 深圳市欢太科技有限公司 Card background color generation method, device, equipment and medium for theme display card

Similar Documents

Publication Publication Date Title
US9438791B2 (en) Transformation of images with filters
US10728510B2 (en) Dynamic chroma key for video background replacement
US7728886B2 (en) Image recording apparatus and method
US10070112B2 (en) Image processing device, imaging device, image processing method, program, and recording medium
CN106295659A (en) Taking pictures of a kind of smart machine takes color application process and system
CN106797453A (en) Image processing apparatus, camera head, image processing method and image processing program
JP6063092B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
JP2010130437A (en) Imaging device and program
KR20080030477A (en) Image correction device, image correction method, and computer readable medium
US20130120608A1 (en) Light source estimation device, light source estimation method, light source estimation program, and imaging apparatus
CN100550990C (en) Image correction apparatus and method for correcting image
JP4375325B2 (en) Image processing apparatus, image processing method, and program
CN101841654B (en) Image processing apparatus and image processing method
CN104144286A (en) Imaging apparatus and imaging method
US12010433B2 (en) Image processing apparatus, image processing method, and storage medium
JP4765909B2 (en) Imaging apparatus, group member determination method and program
JP2001008088A (en) Image pickup device and method
CN107529000A (en) Camera device and image capture method
JP2013207471A (en) Digital camera
JP2009071480A (en) Imaging device, imaging method, and program
JP2020150517A (en) Image processing apparatus, image processing method, computer program and storage medium
JP2020188417A (en) Image processing apparatus, image processing method, and computer program
US20230209176A1 (en) Imaging apparatus
JP2008252321A (en) Imaging apparatus, imaging method, and imaging program
JP7395259B2 (en) Image processing device, image processing method, computer program and storage medium

Legal Events

Date Code Title Description
C06 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104