CN113870219A - Projection font color selection method and device, electronic equipment and storage medium - Google Patents

Projection font color selection method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113870219A
CN113870219A CN202111138905.1A CN202111138905A CN113870219A CN 113870219 A CN113870219 A CN 113870219A CN 202111138905 A CN202111138905 A CN 202111138905A CN 113870219 A CN113870219 A CN 113870219A
Authority
CN
China
Prior art keywords
color
projection
font
area
colors
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
CN202111138905.1A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202111138905.1A priority Critical patent/CN113870219A/en
Publication of CN113870219A publication Critical patent/CN113870219A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5838Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a projection font color selection method, a projection font color selection device, electronic equipment and a readable storage medium, wherein the projection font color selection method comprises the following steps: acquiring a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to pixel points in the projection area image; determining at least one main body color of the projection area corresponding to the area to be projected according to the color of each pixel point; and matching corresponding target projection font colors for the region to be projected according to the target color system to which the main body color of each projection region belongs. The application solves the technical problem that the definition of the projection font is low in the prior art.

Description

Projection font color selection method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of intelligent projection technologies, and in particular, to a method and an apparatus for selecting a color of a projection font, an electronic device, and a readable storage medium.
Background
Along with the continuous development of projection technology, small-size projector also becomes more and more popular gradually, desktop projector for example, desktop projector places at the desktop usually, and the content that will play passes through the ray apparatus module of projector and projects to treating the projection area, supplies the user to watch and operate, but, because the projector opportunity is used for treating the projection area to various colours and projects, and the projection typeface defaults to black usually, and then often can take place the unmatched condition of target projection typeface colour and the colour of treating the projection area, and then lead to the definition of projection typeface to receive the influence.
Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for selecting a color of a projection font, an electronic device, and a readable storage medium, and aims to solve the technical problem of low definition of the projection font in the prior art.
In order to achieve the above object, the present application provides a method for selecting colors of a projection font, including:
acquiring a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to pixel points in the projection area image;
determining at least one main body color of the projection area corresponding to the area to be projected according to the color of each pixel point;
and matching corresponding target projection font colors for the region to be projected according to the target color system to which the main body color of each projection region belongs.
The present application further provides a projection font color selection apparatus, the projection font color selection apparatus is applied to a projection font color selection device, the projection font color selection apparatus includes:
the pixel point color detection module is used for acquiring a projection area image corresponding to an area to be projected and detecting pixel point colors corresponding to pixel points in the projection area image;
the projection area color determining module is used for determining at least one projection area main body color corresponding to the area to be projected according to the color of each pixel point;
and the font color matching module is used for matching corresponding target projection font colors for the to-be-projected areas according to the target color systems to which the main body colors of the projection areas belong.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the projection font color selection method stored on the memory and executable on the processor, which program, when executed by the processor, may implement the steps of the projection font color selection method as described above.
The present application also provides a readable storage medium which is a computer readable storage medium having stored thereon a program for implementing a projection font color selection method, which program, when executed by a processor, implements the steps of the projection font color selection method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for selecting colors of a projection font as described above.
The application provides a projection font color selection method, a projection font color selection device, an electronic device and a readable storage medium, firstly acquiring a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to pixel points in the projection area image, wherein it needs to be explained that the color composition of the area to be projected can be multiple colors, further determining at least one projection area main body color corresponding to the area to be projected according to the pixel point colors, namely analyzing the main color composition of the area to be projected, further matching the corresponding target projection font color for the area to be projected according to a target color system to which the main body color of each projection area belongs, so that the target projection font color can be matched with each main composition color of the area to be projected rather than a certain color composition of the area to be projected, the condition that the color of the projection font can probably treat that the color component part of the projection area is unmatched and lead to the projection font to take place at the partial region unclear condition has been avoided, so overcome among the prior art because the projector opportunity is used for treating the projection area to various colours and project, and the projection font is acquiescence to black usually, and then often can take place the unmatched condition of target projection font color and the colour of treating the projection area, and then the technical defect that the definition that leads to the projection font receives the influence, so the definition of the projection font has been promoted.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a flowchart illustrating a first embodiment of a method for selecting colors of a projection font according to the present application;
FIG. 2 is a schematic diagram of the color histogram in the method for selecting colors of a projection font according to the present application;
FIG. 3 is a flowchart illustrating a second embodiment of a method for selecting colors of a projection font according to the present application;
FIG. 4 is a flowchart illustrating a third embodiment of a method for selecting colors of a projection font according to the present application;
fig. 5 is a schematic device structure diagram of a hardware operating environment related to a projection font color selection method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Along with the continuous development of projection technology, desktop projector also becomes more and more popular, and present desktop projector is when treating the projection area and projecting, often can be in the area of treating projection that has multiple colour and carry out the projection, and then in case the projection typeface colour does not match with arbitrary projection area composition colour, then can take place the condition that the projection typeface part is clear and partly is fuzzy, influences the definition of projection typeface.
In a first embodiment of the method for selecting a color of a projection font of the present application, referring to fig. 1, the method for selecting a color of a projection font includes:
step S10, acquiring a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to each pixel point in the projection area image;
step S20, determining at least one main body color of the projection area corresponding to the area to be projected according to the color of each pixel point;
step S30, matching a corresponding target projection font color for the to-be-projected area according to the target color system to which the main body color of each projection area belongs.
The embodiment of the application acquires the projection area image corresponding to the area to be projected, detects the pixel point color corresponding to each pixel point in the projection area image, and then determining at least one main color of the projection area corresponding to the area to be projected according to the color of each pixel point, namely analyzing the main color composition of the area to be projected, further matching the corresponding target projection font color for the region to be projected according to the target color system to which the main body color of each projection region belongs, so that the target projection font color can be matched with each of the main component colors of the region to be projected, the color of the projection font is not matched with a certain color component of the to-be-projected area, so that the situation that the projection font is not clear in a partial area due to the fact that the color of the projection font is possibly unmatched with the color component of the to-be-projected area can be avoided, and therefore the definition of the projection font can be improved.
In an implementable manner, step S10, obtaining a projection area image corresponding to an area to be projected, and detecting a pixel color corresponding to each pixel point in the projection area image;
in this embodiment, specifically, the area to be projected is photographed to obtain a projection area image, and color recognition is performed on each pixel point in the projection area image to obtain a pixel point color corresponding to each pixel point in the projection area image.
Wherein, step S10 further includes:
step S11, projecting white light to the area to be projected, and simultaneously photographing the area to be projected to obtain the image of the projection area.
In this embodiment, white light is projected to the area to be projected to sufficiently illuminate the area to be projected and eliminate the influence of ambient light, and then the area to be projected is photographed while the white light is projected to obtain an image of the projection area, so that the color of the desktop is prevented from being misjudged when the indoor ambient light is weak or other light sources interfere with the image.
Step S20, determining at least one main body color of the projection area corresponding to the area to be projected according to the color of each pixel point;
in this embodiment, specifically, color division is performed on each pixel point color to obtain at least one preset type color corresponding to each pixel point, and then the number proportion of the pixel points corresponding to each preset type color is counted, a number proportion with a preset number that is ranked earlier than the preset number is selected as a target number proportion in each pixel point number proportion, and then each preset type color corresponding to each target number proportion is used as a projection area main body color, where the larger the value of the number proportion of the pixel points ranked earlier, the larger the value of the preset number can be set by itself.
In another practical manner, step S20 further includes:
traversing the colors of the pixel points to store the colors of the pixel points into target arrays corresponding to the colors, further constructing a color histogram according to the number of the colors of the pixel points in each target array, and further determining at least one main color of a projection region corresponding to the region to be projected according to the color histogram, wherein the color histogram is a color column distribution diagram, the higher a certain column is, the higher the ratio of the colors represented by the column in the color composition of the image is, and as shown in fig. 2, the color histogram is a schematic diagram.
Wherein, step S20 further includes;
step S21, determining at least one preset type color corresponding to each pixel point color;
in this embodiment, specifically, the colors of the pixel points are traversed, and at least one preset type color corresponding to each pixel point is determined, for example, if the colors of the pixel points are light red, and light blue, respectively, there are 2 preset type colors, namely light red and light blue, respectively.
Step S22, calculating a ratio of the number of pixels corresponding to each color of the preset type, and determining at least one main color of the projection area corresponding to the area to be projected according to the ratio of the number of pixels.
In this embodiment, specifically, the number of pixels corresponding to each preset type color is respectively counted, and a ratio of the number of pixels to the number of all pixels in the projection area image is respectively calculated, so as to obtain a ratio of the number of pixels corresponding to each preset type color, and then a ratio of the number of pixels exceeding a preset ratio threshold in the ratio of the number of pixels is used as a target ratio of the number of pixels, and a preset type color corresponding to each target ratio of the number of pixels is used as a main color of the projection area.
Wherein, step S22 further includes:
step S221, selecting a quantity ratio larger than a preset ratio threshold value from the quantity ratios of the pixel points as a target pixel point quantity ratio;
step S222, using a preset type color corresponding to the number ratio of each target pixel point as the main color of the projection area.
In this embodiment, specifically, the number ratio of each pixel point is respectively compared with a preset ratio threshold, the number ratio of each target pixel point greater than the preset ratio threshold is determined, and then a preset type color corresponding to the number ratio of each target pixel point is used as the main color of the projection area.
Step S30, matching a corresponding target projection font color for the to-be-projected area according to the target color system to which the main body color of each projection area belongs.
In this embodiment, specifically, a target color system corresponding to the main color of each projection area is determined according to the mapping relationship between the colors and the color systems, and then the target projection font color corresponding to the target color system is matched for the area to be projected according to the mapping relationship between the color system and the target projection font color, where it is to be noted that the target projection font color corresponding to the color system is matched with each color in the color system, that is, the target projection font color corresponding to the color system is selected to project the font to the area to be projected having any color in the color system, the projection fonts are all clear fonts, for example, the black font is projected to the area to be projected having any color in the light color system, the projection font is clear as a whole, the light color system includes light blue, light red, and the like, for example, the white font is projected to the area to be projected having any color in the dark color system, the whole projection font is clear, and dark color system includes dark blue and dark red etc. and then has realized according to the color system of treating the projection region, for the purpose of treating projection region matching corresponding target projection font colour for target projection font colour can all match with all component colours of treating the projection region.
The embodiment of the application provides a projection font color selection method, which includes the steps of firstly obtaining a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to pixel points in the projection area image, wherein it needs to be explained that color composition of the area to be projected can be multiple colors, and then according to the pixel point colors, determining at least one projection area main color corresponding to the area to be projected, namely analyzing main color composition of the area to be projected, and further according to a target color system to which the main color of the area to be projected belongs, matching corresponding target projection font color for the area to be projected, so that the target projection font color can be matched with each main composition color of the area to be projected rather than being matched with a certain color composition of the area to be projected, and the situation that the color composition of the area to be projected is partially unmatched to cause that the projection font is unclear in a partial area due to the possibility that the color composition of the area to be projected is partially unmatched can be avoided The clear condition takes place, so overcome among the prior art because the projector can be used for to the region of waiting to project of various colours, and the projection typeface defaults to black usually, and then often can take place the unmatched condition of target projection typeface colour and the color of waiting to project the region, and then lead to the definition of projection typeface to receive the technical defect who influences, so promoted the definition of projection typeface.
Example two
Further, referring to fig. 2, based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated again in the following. On this basis, the step of matching the corresponding target projection font color for the to-be-projected region according to the target color system to which the main body color of each projection region belongs includes:
step S31, judging whether the main body colors of the projection areas belong to the same preset color system;
in this embodiment, specifically, whether each of the main colors of the projection regions belongs to the same predetermined color system is determined according to the mapping relationship between colors and color systems, for example, if each of the main colors of the projection regions is light red, light blue and light green, it can be determined that each of the main colors of the projection regions belongs to the same predetermined color system, the predetermined color system is light color system, and if each of the main colors of the projection regions is light red, dark blue and light green, it can be determined that each of the main colors of the projection regions is not uniform and belongs to the same predetermined color system, wherein light red and light green belong to light color system, dark blue belongs to dark color system, and if each of the main colors of the projection regions is light red and dark red, it can be determined that each of the main colors of the projection regions belongs to the same predetermined color system, the predetermined color is a red color.
Step S32, if the main color of each projection area belongs to the same preset color system, matching the target projection font color corresponding to the target color system for the area to be projected according to the preset color system;
in this embodiment, if the main body colors of the projection regions belong to the same preset color system, at least one target projection font color corresponding to the same preset color system to which the main body colors of the projection regions belong is matched for the region to be projected according to the corresponding relationship between the color system and the target projection font color.
Wherein, step S32 further includes:
step S321, inquiring the projection font color corresponding to the target color system based on the mapping relation between the color system and the projection font color to obtain at least one font color to be selected;
step S322, selecting the target projection font color from the to-be-selected font colors according to a color selection command input by the user.
In this embodiment, specifically, based on a mapping relationship between a color system and colors of a projection font, at least one color of the projection font corresponding to the target color system is queried by using an identifier corresponding to the target color system as an index, and then at least one color of the projection font corresponding to the target color system is used as a color of a font to be selected, and each color of the font to be selected is recommended to a user for color selection by the user, so as to receive a color selection command of the user, and select a color corresponding to the color selection command from each color of the font to be selected as the color of the target projection font, where the color selection command may be a click command, a text command, and the like, so that the personalized color selection requirement of the user can be met on the premise of ensuring that the projection font is clear.
Step S33, if the main colors of the projection areas do not belong to the same predetermined color system, the user is notified to replace the projection area.
In this embodiment, if the main color of each projection area does not belong to the same preset color system, it is proved that the area to be projected is not suitable for projection, and the user is notified to replace the area to be projected, for example, by voice or short message.
The embodiment of the application provides a method for matching the main body color of each projection area with the color of a projection font, namely, firstly judging whether the main body color of each projection area belongs to the same preset color system; if the main body color of each projection area belongs to the same preset color system, matching the color of the target projection font corresponding to the target color system for the area to be projected according to the preset color system, so that the purpose of matching the corresponding projection font for the color system to which the area to be projected belongs can be realized, and each component color corresponding to the area to be projected can be ensured to be matched with the target projection font; if the main body colors of the projection areas do not belong to the same preset color system, the areas to be projected are proved to be unsuitable for projection, and then the users are informed of replacing the areas to be projected in time so as to ensure the definition of the projection fonts, and therefore the definition of the projection fonts can be improved.
EXAMPLE III
Further, referring to fig. 3, based on the first embodiment and the second embodiment of the present application, in another embodiment of the present application, the same or similar contents to the first embodiment described above may be referred to the above description, and are not repeated herein. On this basis, the step of matching the target projection font color corresponding to the target color system for the to-be-projected area according to the preset color system includes:
step A10, based on the mapping relationship between the color system and the color of the projection font, inquiring the color of the projection font corresponding to the target color system to obtain at least one color of the font to be selected;
in this embodiment, specifically, based on the mapping relationship between the color system and the colors of the projection fonts, the identifier corresponding to the target color system is used as an index to query the corresponding color of the projection font, and then the color of the projection font corresponding to the target color system is used as the color of the font to be selected.
Step A20, obtaining environment light source information, and selecting the target projection font color from each font color to be selected according to the environment light source information.
In this embodiment, it should be noted that the ambient light source information includes at least one of the ambient light source brightness and the ambient light source color.
Specifically, the brightness of an ambient light source is obtained, and then a target projection font color is selected from each font color to be selected according to a corresponding relationship between the brightness of the ambient light source and the font color, wherein the higher the brightness of the ambient light source is, the deeper the color depth should be selected as the target projection font color, and the lower the brightness of the ambient light source is, the shallower the color depth should be selected as the target projection font color.
The step of selecting the target projection font color from each font color to be selected according to the corresponding relationship between the brightness of the ambient light source and the font color comprises the following steps:
if the brightness of the ambient light source is larger than a preset brightness threshold value, selecting a color belonging to a deep color system from the colors of the fonts to be selected as a target projection font color; and if the brightness of the ambient light source is not greater than a preset brightness threshold, selecting a color belonging to a light color system from the colors of the fonts to be selected as a target projection font color.
In another practical manner, step a20 further includes:
obtaining an ambient light source color, further removing a to-be-selected font color similar to the ambient light source color from each to-be-selected font color to obtain each screened font color, and further selecting a target projection font color from each screened font color, for example, assuming that the ambient light source color is red, all font colors of a red color system should be removed from each to-be-selected font color.
In another practical manner, step a20 further includes:
obtaining an ambient light source color and an ambient light source brightness, and then removing a font color to be selected which is close to the ambient light source color from the font colors to be selected to obtain each screened font color, and then selecting a target projection font color from the screened font colors according to a corresponding relation between the ambient light source brightness and the font colors, wherein the higher the ambient light source brightness is, the deeper the color depth of the color should be selected as the target projection font color, and the lower the ambient light source brightness is, the shallower the color depth of the color should be selected as the target projection font color.
The embodiment of the application provides a matching method between main body colors of various projection areas and projection font colors, namely, based on a mapping relation between color systems and the projection font colors, inquiring projection font colors corresponding to a target color system, obtaining at least one to-be-selected font color, realizing obtaining environment light source information, and according to the environment light source information, selecting the target projection font colors from the to-be-selected font colors, wherein the environment light source information comprises environment light source brightness and environment light source colors, further enabling the projection font colors to be matched with the colors of the to-be-projected areas and an external light source at the same time, eliminating the influence of the external light source on the definition of the projection fonts, and further improving the definition of the projection fonts.
Example four
The embodiment of the present application further provides a projection font color selecting apparatus, where the projection font color selecting apparatus is applied to a projection font color selecting device, and the projection font color selecting apparatus includes:
the pixel point color detection module is used for acquiring a projection area image corresponding to an area to be projected and detecting pixel point colors corresponding to pixel points in the projection area image;
the projection area color determining module is used for determining at least one projection area main body color corresponding to the area to be projected according to the color of each pixel point;
and the font color matching module is used for matching corresponding target projection font colors for the to-be-projected areas according to the target color systems to which the main body colors of the projection areas belong.
Optionally, the projection region color determination module is further configured to:
determining at least one preset type color corresponding to the color of each pixel point;
calculating the number ratio of pixel points corresponding to each preset type color, and determining at least one main body color of the projection area corresponding to the area to be projected according to the number ratio of the pixel points.
Optionally, the projection region color determination module is further configured to:
selecting a quantity ratio larger than a preset ratio threshold value from the quantity ratios of the pixel points as a target pixel point quantity ratio;
and taking the preset type color corresponding to the number ratio of the target pixel points as the main color of the projection area.
Optionally, the font color matching module is further configured to:
judging whether the main colors of the projection areas belong to the same preset color system;
if the main body color of each projection area belongs to the same preset color system, matching the target projection font color corresponding to the target color system for the area to be projected according to the preset color system;
and if the main body color of each projection area does not belong to the same preset color system, informing a user to replace the area to be projected.
Optionally, the font color matching module is further configured to:
inquiring the projection font color corresponding to the target color system based on the mapping relation between the color system and the projection font color to obtain at least one font color to be selected;
and selecting the target projection font color from the font colors to be selected according to a color selection command input by a user.
Optionally, the font color matching module is further configured to:
inquiring the projection font color corresponding to the target color system based on the mapping relation between the color system and the projection font color to obtain at least one font color to be selected;
and acquiring environment light source information, and selecting the target projection font color from the font colors to be selected according to the environment light source information.
Optionally, the pixel point color detection module is further configured to:
and projecting white light to the area to be projected, and photographing the area to be projected to obtain the image of the projection area.
The projection font color selection device provided by the invention adopts the projection font color selection method in the first embodiment or the second embodiment, and solves the technical problem of low definition of the projection font. Compared with the prior art, the beneficial effects of the projection font color selection device provided by the embodiment of the invention are the same as the beneficial effects of the projection font color selection method provided by the embodiment, and other technical features of the projection font color selection device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
EXAMPLE five
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for selecting colors of a projection font according to the first embodiment.
Referring now to FIG. 5, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device may include a processing means (e.g., a central processing unit, a graphic processor, etc.) that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage means into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the method for selecting the color of the projection font in the first embodiment or the second embodiment, so that the technical problem of low definition of the projection font is solved. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the method for selecting a color of a projection font provided by the first embodiment, and other technical features of the electronic device are the same as those disclosed in the method of the previous embodiment, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
EXAMPLE six
The present embodiment provides a computer-readable storage medium having computer-readable program instructions stored thereon for performing the method for projection font color selection in the first embodiment.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be present alone without being incorporated into the electronic device.
The computer readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable storage medium carries one or more programs which, when executed by an electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores computer-readable program instructions for executing the projection font color selection method, and solves the technical problem of low definition of the projection font. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the method for selecting a color of a projection font provided by the first embodiment or the second embodiment, and are not described herein again.
EXAMPLE seven
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the method for selecting colors of a projection font as described above.
The computer program product provided by the application solves the technical problem of low definition of the projection font. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the method for selecting a color of a projection font provided by the first embodiment or the second embodiment, and are not described herein again.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A method for selecting colors of a projection font, the method comprising:
acquiring a projection area image corresponding to an area to be projected, and detecting pixel point colors corresponding to pixel points in the projection area image;
determining at least one main body color of the projection area corresponding to the area to be projected according to the color of each pixel point;
and matching corresponding target projection font colors for the region to be projected according to the target color system to which the main body color of each projection region belongs.
2. The method for selecting colors of projection fonts according to claim 1, wherein the step of determining the main body color of at least one projection area corresponding to the area to be projected according to the color of each pixel point comprises:
determining at least one preset type color corresponding to the color of each pixel point;
calculating the number ratio of pixel points corresponding to each preset type color, and determining at least one main body color of the projection area corresponding to the area to be projected according to the number ratio of the pixel points.
3. The method for selecting colors of projection fonts according to claim 2, wherein the step of determining the main body color of at least one projection area corresponding to the area to be projected according to the ratio of the number of the pixels comprises:
selecting a quantity ratio larger than a preset ratio threshold value from the quantity ratios of the pixel points as a target pixel point quantity ratio;
and taking the preset type color corresponding to the number ratio of the target pixel points as the main color of the projection area.
4. The method for selecting colors of a projection font according to claim 1, wherein the step of matching the colors of the corresponding target projection fonts for the regions to be projected according to the target color systems to which the main body colors of the respective projection regions belong comprises:
judging whether the main colors of the projection areas belong to the same preset color system;
if the main body color of each projection area belongs to the same preset color system, matching the target projection font color corresponding to the target color system for the area to be projected according to the preset color system;
and if the main body color of each projection area does not belong to the same preset color system, informing a user to replace the area to be projected.
5. The method for selecting colors of a projection font according to claim 4, wherein the step of matching colors of the target projection font corresponding to the target color system for the region to be projected according to the preset color system comprises:
inquiring the projection font color corresponding to the target color system based on the mapping relation between the color system and the projection font color to obtain at least one font color to be selected;
and selecting the target projection font color from the font colors to be selected according to a color selection command input by a user.
6. The method for selecting colors of a projection font according to claim 4, wherein the step of matching colors of the target projection font corresponding to the target color system for the region to be projected according to the preset color system comprises:
inquiring the projection font color corresponding to the target color system based on the mapping relation between the color system and the projection font color to obtain at least one font color to be selected;
and acquiring environment light source information, and selecting the target projection font color from the font colors to be selected according to the environment light source information.
7. The method for selecting a color of a projection font according to claim 1, wherein the step of obtaining the image of the projection area corresponding to the area to be projected comprises:
and projecting white light to the area to be projected, and photographing the area to be projected to obtain the image of the projection area.
8. A projection font color selection apparatus, characterized by comprising:
the pixel point color detection module is used for acquiring a projection area image corresponding to an area to be projected and detecting pixel point colors corresponding to pixel points in the projection area image;
the projection area color determining module is used for determining at least one projection area main body color corresponding to the area to be projected according to the color of each pixel point;
and the font color matching module is used for matching corresponding target projection font colors for the to-be-projected areas according to the target color systems to which the main body colors of the projection areas belong.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of projection font color selection according to any one of claims 1 to 7.
10. A readable storage medium having stored thereon a program for implementing a projection font color selection method, the program being executed by a processor to implement the steps of the projection font color selection method according to any one of claims 1 to 7.
CN202111138905.1A 2021-09-27 2021-09-27 Projection font color selection method and device, electronic equipment and storage medium Pending CN113870219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111138905.1A CN113870219A (en) 2021-09-27 2021-09-27 Projection font color selection method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111138905.1A CN113870219A (en) 2021-09-27 2021-09-27 Projection font color selection method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113870219A true CN113870219A (en) 2021-12-31

Family

ID=78991626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111138905.1A Pending CN113870219A (en) 2021-09-27 2021-09-27 Projection font color selection method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113870219A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118951A (en) * 2022-06-06 2022-09-27 东软集团股份有限公司 Data projection method and device, storage medium and vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118951A (en) * 2022-06-06 2022-09-27 东软集团股份有限公司 Data projection method and device, storage medium and vehicle

Similar Documents

Publication Publication Date Title
CN110070551B (en) Video image rendering method and device and electronic equipment
US20210250322A1 (en) Method and apparatus for prompting message reading state, and electronic device
CN110211030B (en) Image generation method and device
CN110874172B (en) Method, device, medium and electronic equipment for amplifying APP interface
CN115358919A (en) Image processing method, device, equipment and storage medium
CN115328429A (en) Display method, display device, electronic apparatus, and storage medium
CN110634173A (en) Picture mark information adding method and device, electronic equipment and readable medium
CN113870219A (en) Projection font color selection method and device, electronic equipment and storage medium
CN110674050B (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN110264430B (en) Video beautifying method and device and electronic equipment
CN115100492B (en) Yolov3 network training and PCB surface defect detection method and device
CN116363239A (en) Method, device, equipment and storage medium for generating special effect diagram
CN110619028A (en) Map display method, device, terminal equipment and medium for house source detail page
CN111292247A (en) Image processing method and device
CN115222478A (en) Product message pushing method, electronic equipment and readable storage medium
CN113099101B (en) Camera shooting parameter adjusting method and device and electronic equipment
CN114860368A (en) Control method and device of display equipment, electronic equipment and readable storage medium
CN108335362B (en) Light control method and device in virtual scene and VR (virtual reality) equipment
CN113961280A (en) View display method and device, electronic equipment and computer-readable storage medium
CN108540726B (en) Method and device for processing continuous shooting image, storage medium and terminal
CN111292245A (en) Image processing method and device
CN115348478B (en) Equipment interactive display method and device, electronic equipment and readable storage medium
CN111292276A (en) Image processing method and device
CN115412389B (en) Message recommendation method and device, electronic equipment and readable storage medium
CN113468503B (en) Identification information distribution method and device and electronic equipment

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