CN116204940A - Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium - Google Patents

Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium Download PDF

Info

Publication number
CN116204940A
CN116204940A CN202211732245.4A CN202211732245A CN116204940A CN 116204940 A CN116204940 A CN 116204940A CN 202211732245 A CN202211732245 A CN 202211732245A CN 116204940 A CN116204940 A CN 116204940A
Authority
CN
China
Prior art keywords
spliced
splicing
pattern
lamp panel
image
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
CN202211732245.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.)
Nanoleaf Energy Technology Shenzhen Ltd
Original Assignee
Nanoleaf Energy Technology Shenzhen 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 Nanoleaf Energy Technology Shenzhen Ltd filed Critical Nanoleaf Energy Technology Shenzhen Ltd
Priority to CN202211732245.4A priority Critical patent/CN116204940A/en
Publication of CN116204940A publication Critical patent/CN116204940A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4038Scaling the whole image or part thereof for image mosaicing, i.e. plane images composed of plane sub-images
    • 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/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces
    • G06V10/761Proximity, similarity or dissimilarity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2111/00Details relating to CAD techniques
    • G06F2111/20Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The application discloses a lamp panel splicing scheme recommendation method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: acquiring the splicing requirement of a user; determining patterns to be spliced of the user according to the splicing requirements; performing similarity matching on the pattern to be spliced and the pattern in a preset pattern library to obtain a matching result; and generating a plurality of splicing schemes according to the matching result, and recommending the splicing schemes to the user. The method and the device realize that the pattern to be spliced of the user is determined according to the splicing requirement of the user, and the pattern to be spliced is subjected to similarity matching with the pattern in the preset pattern library, so that a matching result is obtained, a plurality of splicing schemes are generated according to the matching result and recommended to the user, and the user can refer to the splicing scheme when purchasing.

Description

Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium
Technical Field
The application relates to the technical field of algorithms, in particular to a lamp panel splicing scheme recommendation method, device and equipment and a readable storage medium.
Background
The spliced lamp panel is used as a household ornament and a lamp for illumination, more and more people splice the spliced lamp panel into a special shape on a household wall, and when the spliced lamp panel is used for illumination, the spliced lamp panel is also used as furniture for decoration, so that the decoration pattern is increased.
However, the size parameters of the spliced lamp plates are different, the sizes and the shapes of the spliced lamp plates are different, for example, triangular lamp plates, quadrangular lamps or pentagonal lamp plates and the like, for example, the same triangular lamp plate has a lamp plate with a side length of ten centimeters, a lamp plate with a side length of twenty centimeters or a lamp plate with a side length of thirty centimeters, and the effects obtained by splicing are different according to the different size parameters.
When a user purchases the spliced lamp panels, if the size parameters of the spliced lamp panels are not considered, the purchased spliced lamp panels cannot be spliced into a scheme wanted by the user, meanwhile, the situation that the spliced lamp panels purchased by the user are excessive, waste or high consumption is caused, and therefore the purchasing experience of the user is poor is caused.
Disclosure of Invention
In view of this, the present application provides a method, a device, an apparatus and a readable storage medium for recommending a lamp panel splicing scheme, which aim to improve the accuracy of purchasing a spliced lamp panel for a user.
In order to achieve the above purpose, the present application provides a method for recommending a lamp panel splicing scheme, the method for recommending the lamp panel splicing scheme includes the following steps:
acquiring the splicing requirement of a user;
determining patterns to be spliced of the user according to the splicing requirements;
performing similarity matching on the pattern to be spliced and the pattern in a preset pattern library to obtain a matching result;
and generating a plurality of splicing schemes according to the matching result, and recommending the splicing schemes to the user.
Exemplary, the step of generating a plurality of splicing schemes according to the matching result includes:
determining parameters of each lamp panel of the spliced lamp panels forming the pattern to be spliced according to the matching result;
and generating a plurality of splicing schemes according to different lamp panel parameters.
Exemplary, the step of determining, according to the matching result, each lamp panel parameter of the spliced lamp panel forming the pattern to be spliced includes:
determining the shape and the size of a spliced lamp panel used by patterns with similar relation with the patterns to be spliced in the preset pattern library according to the matching result;
and determining parameters of each lamp panel of the spliced lamp panel forming the pattern to be spliced according to the shape and the size.
Exemplary, the step of generating a plurality of splicing schemes according to different lamp panel parameters includes:
and generating a plurality of splicing schemes according to different lamp panel parameters, wherein the splicing schemes comprise a sequence of splicing the plurality of spliced lamp panels when in use and adjacent positions among the plurality of spliced lamp panels when in splicing.
The step of determining the pattern to be spliced of the user according to the splicing requirement includes:
extracting an image contour in the image data according to the image data in the splicing requirement, and determining the size characteristic information of the pattern to be spliced of the user according to the size requirement in the splicing requirement;
and determining the pattern to be spliced of the user according to the image outline and the size characteristic information.
Illustratively, the step of extracting the image contour in the image data according to the image data in the stitching requirement includes:
when the image data in the splicing requirement is a dynamic image, identifying the image information of a first frame image, and determining each distinguishing characteristic between each frame image and the first frame image;
converting the dynamic image into a static image according to the first frame image and the distinguishing features;
and carrying out graying treatment on the static image, and extracting the image contour of the static image according to the light and dark boundary of the treated image.
Illustratively, the step of determining the pattern to be spliced 5 of the user according to the image contour and the size characteristic information includes:
converting lines which do not meet preset standards in the image outline to obtain a processing result;
determining a line intersection point in the processing result, and determining a line intersection point parameter, wherein the line intersection point parameter comprises the intersection point number and the intersection point position of the line intersection point;
according to the size characteristic information, length parameters and angle parameters are given to lines of 0 at each line intersection point;
and determining the pattern to be spliced of the user according to the line intersection point parameter, the length parameter and the angle parameter.
For example, to achieve the above objective, the present application further provides a lamp panel splicing scheme recommendation device, where the device 5 includes:
the acquisition module is used for acquiring the splicing requirements of the user;
the determining module is used for determining the pattern to be spliced of the user according to the splicing requirement;
the matching module is used for matching the similarity between the pattern to be spliced and the pattern in the preset pattern library to obtain a matching result;
and 0, a generating module, which is used for generating a plurality of splicing schemes according to the matching result and recommending the splicing schemes to the user.
For the purpose of realizing the above objects, the application also provides a lamp panel splicing scheme recommending device,
the apparatus comprises: the system comprises a memory, a processor and a lamp panel splicing scheme recommending program which is stored in the memory and can run on the processor 5, wherein the lamp panel splicing scheme recommending program is configured to realize the steps of the lamp panel splicing scheme recommending method.
For the purpose of achieving the above object, the present application also provides a computer-readable storage medium,
the computer readable storage medium stores a lamp panel splicing scheme recommendation program, and the lamp panel splicing scheme 0 recommendation program realizes the steps of the lamp panel splicing scheme recommendation method when being executed by a processor.
Compared with the situation that the purchased spliced lamp panels are excessive and waste or high consumption is caused when the user purchases the spliced lamp panels, if the size parameters of the spliced lamp panels are not considered, the purchased spliced lamp panels cannot be spliced into a scheme wanted by the user, meanwhile, the situation that the user purchases the spliced lamp panels is caused, and therefore the user has poor purchasing experience is caused.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a lamp panel splicing scheme recommendation method of the present application;
fig. 2 is a schematic flow chart of a second embodiment of a method for recommending a lamp panel splicing scheme in the present application;
fig. 3 is a schematic structural diagram of a hardware running environment according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a first embodiment of a lamp panel splicing scheme recommendation method.
The embodiments of the present application provide embodiments of a lamp panel stitching scheme recommendation method, and it should be noted that, although a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different sequence than that shown or described herein. For convenience of description, each step of executing the main body description lamp panel splice scheme recommendation method is omitted below, and the lamp panel splice scheme recommendation method includes:
step S110: acquiring the splicing requirement of a user;
the splicing requirements of the user at least comprise the following requirements: the pattern requirements that the user wants to splice, the size requirements of the patterns that the user wants to splice, etc.
The acquisition process may be in the form of a query prompt or a form to be filled out to the user, such as a pop-up dialog box, prompting the user to fill out the corresponding requirements, all described below as examples of the requirement of the user to fill out the pattern requirement size.
If the user does not have the requirements of spliced patterns and sizes, the favorite patterns of other users are counted according to the historical data (any pattern in the similar pictures is screened out as a representative in the counting process), and the favorite patterns are recommended to the user, wherein the sizes are determined according to the average size requirements of other users.
The system is a system for acquiring the splicing requirements of users and calculating corresponding splicing schemes and recommending the optimal schemes of the users for the users.
Step S120: determining patterns to be spliced of the user according to the splicing requirements;
according to the splicing requirement, the pattern to be spliced of the user can be determined.
The overall area size and overall outline shape of the pattern to be spliced can be determined according to the size requirement and the pattern requirement in the splicing requirement, and the shape of the pattern to be spliced (the shape has a certain deviation from the shape of the pattern required by the user, for example, the pattern requirement of the user is a wavy arc line, but the edge of any spliced lamp panel is a straight line segment, and the spliced lamp panels with no arc line shape exist, and at this time, the splicing combination of the relative positions between the spliced lamp panels is needed to form an arc line shape similar to the wavy arc line).
The pattern to be spliced is a pattern shape wanted by a user, for example, a pattern of a small house in a simple drawing of a lamp panel, for example, a pattern of a small mountain of a lamp panel, for example, a pattern of a character, a number or a letter of a lamp panel.
Step S130: performing similarity matching on the pattern to be spliced and the pattern in a preset pattern library to obtain a matching result;
the preset pattern library is a preset pattern database, various pattern shapes formed by using the spliced lamp panels are stored in the pattern database, patterns in the preset pattern library can be provided by manufacturers of the spliced lamp panels, or patterns required by users are collected and summarized, for example, a character-shaped pattern exists in the preset pattern library, the patterns can be obtained by splicing triangular spliced lamp panels or quadrilateral spliced lamp panels or can be obtained by simultaneously using the triangular spliced lamp panels and the quadrilateral spliced lamp panels, namely, any pattern in the preset pattern library can have a plurality of splicing modes corresponding to one pattern, and the splicing modes corresponding to one pattern can be formed by splicing lamp panels with different shapes and different sizes.
When the patterns to be spliced and the patterns in the preset pattern library are subjected to similarity matching, the similarity matching is performed on the patterns in the patterns to be spliced and the patterns in the preset pattern library mainly according to the contour similarity between the patterns, for example, parameters such as the contour features in the images and the structural features of the images are mainly identified and extracted, so that the similarity matching is performed on the patterns in the patterns to be spliced and the patterns in the preset pattern library, namely, the similarity ratio between the feature parameters is calculated, when the similarity ratio is larger than the preset ratio, the patterns in the patterns to be spliced and the patterns in the preset pattern library can be determined to be similar, the preset ratio can be 60% or 60%, and the like, and the setting can be performed according to practical conditions.
The matching result is corresponding data obtained through a matching process, and comprises patterns in a preset pattern library with high similarity to the patterns to be spliced, and also comprises a corresponding splicing mode of the patterns in the preset pattern library.
Step S140: and generating a plurality of splicing schemes according to the matching result, and recommending the splicing schemes to the user.
And generating a plurality of splicing schemes according to the matching result, and recommending the splicing schemes to the user.
When generating the plurality of splicing schemes, a form of a two-stage scheme can be correspondingly generated, wherein the one-stage scheme corresponds to similar patterns in the patterns to be spliced, the two-stage scheme corresponds to splicing modes in each similar pattern, for example, three patterns similar to the patterns to be spliced are obtained after matching according to the similarity, when generating the plurality of splicing schemes, the one-stage scheme of the three similar patterns (the scheme is used for representing pattern shapes) is generated, and the two-stage splicing scheme corresponding to the similar patterns is generated (for example, the first similar pattern corresponds to two splicing modes, the second similar pattern corresponds to three splicing modes, the third similar pattern corresponds to five splicing modes and the like, namely, the two-stage splicing scheme is a splicing mode specifically corresponding to each similar pattern).
Exemplary, the step of generating a plurality of splicing schemes according to the matching result includes:
step a: determining parameters of each lamp panel of the spliced lamp panels forming the pattern to be spliced according to the matching result;
the matching result comprises a mode of splicing various spliced lamp panels, so that each lamp panel parameter of the spliced lamp panel of the pattern to be spliced can be further determined according to the matching result, and the lamp panel parameter mainly comprises the shape of the spliced lamp panel and the size of the spliced lamp panel used in the splicing mode.
Exemplary, the step of determining, according to the matching result, each lamp panel parameter of the spliced lamp panel forming the pattern to be spliced includes:
step b: determining the shape and the size of a spliced lamp panel used by patterns with similar relation with the patterns to be spliced in the preset pattern library according to the matching result;
step c: and determining parameters of each lamp panel of the spliced lamp panel forming the pattern to be spliced according to the shape and the size.
According to the matching result, the pattern with similar relation to the pattern to be spliced in the preset pattern library can be determined, and the splicing mode corresponding to the pattern is adopted, so that the shape and the size of the spliced lamp panel used by the pattern with similar relation to the pattern to be spliced in the preset pattern library can be determined according to the matching result.
According to the shapes of the different spliced lamp panels and the sizes of the spliced lamp panels, the parameters of each lamp panel forming the spliced lamp panel with the pattern to be spliced can be determined.
The shape and the size of the spliced lamp panel used by the pattern with the similarity relation with the pattern to be spliced are determined, the shape and the size are taken as the shape and the size of the spliced lamp panel required when the pattern to be spliced is spliced, namely, the pattern with the similarity relation with the pattern to be spliced is taken as the pattern to be spliced directly, the size and the shape of the pattern with the similarity relation are taken as parameters of each lamp panel forming the pattern to be spliced, wherein each lamp panel parameter comprises the size and the shape of the corresponding spliced lamp panel, for example: different parameters such as a large triangular lamp panel or a small diamond lamp panel can be used in the pattern spliced.
Step d: and generating a plurality of splicing schemes according to different lamp panel parameters.
According to the lamp panel parameters, the overall condition of the pattern to be spliced can be determined, and a plurality of splicing schemes are generated according to the lamp panel parameters of the required spliced lamp panel when the spliced lamp panel is used for forming the pattern to be spliced, wherein the lamp panel parameters comprise parameters such as the shape of the required spliced lamp panel, the size of the required spliced lamp panel and the like. In addition, the number parameters of the spliced lamp panels used in the splicing scheme can be increased according to the requirements of users.
When the same pattern to be spliced is formed, the larger the size of the spliced lamp panel is, the smaller the number of the spliced lamp panels is.
The shape of the pattern to be spliced influences the shape of the spliced lamp panel.
Wherein, when constituteing same pattern of waiting to splice, the size of the concatenation lamp plate that uses is the smaller, and the quantity of the concatenation lamp plate that uses when the concatenation is the more, simultaneously, the shape of the concatenation lamp plate that can use is the more.
The method is characterized in that when the pattern to be spliced is L-shaped, two rectangular spliced lamp panels can be directly used, a plurality of triangular spliced lamp panels can be used, the rectangular spliced lamp panels are formed by the triangular spliced lamp panels, and the combined effect of the spliced lamp panels with different numbers and shapes is generated according to the sizes of the triangular spliced lamp panels and the rectangular spliced lamp panels.
According to different lamp panel parameters, a plurality of splicing schemes can be generated, for example, the situation that the pattern to be spliced is L-shaped letter shape is still described by taking the example, and when the L-shaped letter shape is spliced, a rectangular splicing lamp panel, a triangular splicing lamp panel, a square splicing lamp panel or other different situations can be used to generate a plurality of splicing schemes.
Meanwhile, other splicing schemes can be generated according to the different sizes and the different numbers of the used spliced lamp panels.
In summary, according to different lamp panel parameters, a plurality of splicing schemes can be generated, and meanwhile, according to the splicing requirements, part of schemes can be screened out from the plurality of splicing schemes to be used as the splicing scheme finally recommended to the user.
The generated multiple splicing schemes are selected splicing schemes according to different lamp panel parameters and splicing requirements, and the splicing schemes are directly recommended to a user.
Exemplary, the step of generating a plurality of splicing schemes according to different lamp panel parameters includes:
step e: and generating a plurality of splicing schemes according to different lamp panel parameters, wherein the splicing schemes comprise a sequence of splicing the plurality of spliced lamp panels when in use and adjacent positions among the plurality of spliced lamp panels when in splicing.
In the process of generating a plurality of splicing schemes according to different lamp panel parameters, the sequence of splicing all the spliced lamp panels in the whole scheme, adjacent positions among the plurality of spliced lamp panels and the like are generated in the splicing scheme.
The method includes determining the shape of a user required to be spliced according to the splicing requirement of the user, determining that the number of required spliced lamp panels is three when the pattern to be spliced is in a cross shape, using three rectangular spliced lamp panels, using a transverse rectangular spliced lamp panel A as the longest rectangular spliced lamp panel, splicing a rectangular spliced lamp panel B and a rectangular spliced lamp panel C which are shorter in length but different in length on the upper side and the lower side of the rectangular spliced lamp panel respectively, splicing the rectangular spliced lamp panel B and the rectangular spliced lamp panel C in sequence, determining the midpoint of the A, and splicing B and C on the upper side and the lower side of the midpoint of the A respectively, wherein B must be above the A, and C must be below the B (adjacent positions).
Compared with the situation that the purchased spliced lamp panels are excessive and waste or high consumption is caused when the user purchases the spliced lamp panels, if the size parameters of the spliced lamp panels are not considered, the purchased spliced lamp panels cannot be spliced into a scheme wanted by the user, meanwhile, the situation that the user purchases the spliced lamp panels is caused, and therefore the user has poor purchasing experience is caused.
Referring to fig. 2, fig. 2 is a schematic flow chart of a second embodiment of a method for recommending a lamp panel splicing scheme according to the present application, and based on the first embodiment of the method for recommending a lamp panel splicing scheme according to the present application, the second embodiment is provided, and the method further includes:
step S210: extracting an image contour in the image data according to the image data in the splicing requirement, and determining the size characteristic information of the pattern to be spliced of the user according to the size requirement in the splicing requirement;
the stitching requirement includes image data, which may be dynamic images and static images, such as video, picture files, and the like.
The image outline of the image data can be extracted from the image data, for example, the image data is a puppy image, and at this time, the outline of the puppy image needs to be extracted, so that stitching is performed according to the image outline (which is equivalent to drawing the image outline, then filling is performed according to the image outline by using a stitching lamp plate, and after filling is completed, the original image content of the image outline is obtained).
Meanwhile, the splicing requirement comprises a size requirement, and size characteristic information of the pattern to be spliced is determined, for example, the size of the area of the pattern to be spliced is determined, and the size characteristic information such as the length of the side length of each section of image contour, the angle between two line segments forming the image contour and the like is determined.
Illustratively, the step of extracting the image contour in the image data according to the image data in the stitching requirement includes:
step f: when the image data in the splicing requirement is a dynamic image, identifying the image information of a first frame image, and determining each distinguishing characteristic between each frame image and the first frame image;
step g: converting the dynamic image into a static image according to the first frame image and the distinguishing features;
when the image data is a moving image, it is necessary to convert the moving image into a still image, and thus the image data feature data is extracted from the still image.
In the conversion process, the difference of the information of each frame of image in the dynamic image (for example, the ticker effect image) is considered, that is, the dynamic image can be understood as an image formed by a plurality of frames of static images, and the difference (distinguishing feature) exists between each frame of image.
The first frame image corresponds to the starting point of the image contour of the static image, the distinguishing characteristic between each frame image and the first frame image corresponds to the forming process of the image contour, and the last array image corresponds to the ending point of the image contour of the static image.
Thus, a still image can be formed based on the first frame image and the distinguishing characteristics between each of the other frame images and the first frame image.
Step h: and carrying out graying treatment on the static image, and extracting the image contour of the static image according to the light and dark boundary of the treated image.
And carrying out graying treatment on the static image to obtain graying images with different brightness degrees, wherein boundaries between brightness degrees can be used as image contours of the original static image in the graying images.
Step S220: and determining the pattern to be spliced of the user according to the image outline and the size characteristic information.
The pattern to be spliced can be determined according to the image contour, and the pattern parameters of the pattern to be spliced, such as the area of the pattern to be spliced, the length or angle of each side of the pattern, and the like, can be further determined according to the image contour and the size characteristic information.
Exemplary, the step of determining the pattern to be spliced of the user and the pattern parameters of the pattern to be spliced according to the image contour and the size characteristic information includes:
step i: converting lines which do not meet preset standards in the image outline to obtain a processing result;
the image outline is formed by a plurality of lines, the lines can be curves, straight lines or arcs and the like, wherein the curves and the arcs cannot be realized through the spliced lamp panel, and the spliced lamp panel with a corresponding structure needs to be additionally customized.
Meanwhile, when the image contour is extracted, there may be a tiny contour line composed of multiple sections of lines, and the maximum length line in the tiny contour line is smaller than the minimum length of the spliced lamp panel, at this time, the spliced scheme of the lines cannot be realized by using the spliced lamp panel.
In summary, the lines that cannot be realized by the spliced lamp panel are all lines that do not meet the preset standard, that is, the preset standard is a line that can be directly realized by the existing spliced lamp panel, for example, a straight line, an oblique line, a line with a length greater than that of the spliced lamp panel, and the like.
Therefore, it is necessary to perform a conversion process on such lines in the image contour that do not meet the preset standard, so as to remove such lines, or combine multiple lines to form a new line segment.
Illustratively, the arcs are divided to form lines of a plurality of mutually perpendicular line segments, or the fine lines of a plurality of segments are integrated to calculate the general shape of the fine lines of a plurality of segments, and a segment of line segment is used for replacing according to the general shape.
Step j: determining a line intersection point in the processing result, and determining a line intersection point parameter, wherein the line intersection point parameter comprises the intersection point number and the intersection point position of the line intersection point;
after the lines of the image outline are processed, determining line intersection points in the processing result, wherein the line intersection points are the intersection points of at least two lines.
After the line intersection point is determined, further determining a line intersection point parameter of the line intersection point, wherein the line intersection point parameter comprises the intersection point number and the intersection point position of the line intersection point.
And determining the complexity of the pattern to be spliced by judging the number and the position of the intersection points of the lines, wherein the more the intersection points of the lines are, the more the pattern to be spliced is.
Meanwhile, according to the intersection point position, the positions of a plurality of lines generating the intersection point can be determined at the same time, so that the structural characteristics of the pattern to be spliced, such as the structural characteristics of the wavy upper wave crest, the wavy lower wave trough and the like, can be determined directly according to the upper and lower positions of the intersection point of the lines.
Step k: according to the size characteristic information, length parameters and angle parameters are given to the lines at the intersection point of each line;
step l: and determining the pattern to be spliced of the user according to the line intersection point parameter, the length parameter and the angle parameter.
According to the size characteristic information, length parameters and angle parameters of the lines at each line intersection point are given, for example, two lines at one line intersection point are straight line segments, and a certain angle is formed by the two straight line segments, but because deviation is generated when an image contour is extracted, or image data per se is not a one-to-one ratio between a real object and an image, at this time, the length parameters and the angle parameters of the lines in the image contour need to be given after the image contour is determined.
And determining the pattern to be spliced of the user according to the length parameter and the angle parameter of the lines, and determining the pattern parameter of the pattern to be spliced according to the parameters.
In this embodiment, according to the image data in the splicing requirement, the image profile is extracted from the image data, and according to the size requirement in the splicing requirement, the size characteristic information of the pattern to be spliced of the user is determined, so that according to the image profile and the size characteristic information, the pattern to be spliced of the user and the pattern parameters of the pattern to be spliced are further determined, that is, the accuracy of the pattern parameters is ensured, and the accuracy in the subsequent generation of the splicing scheme is ensured.
In addition, the application still provides a lamp plate concatenation scheme recommending device, a lamp plate concatenation scheme recommending device includes:
the acquisition module is used for acquiring the splicing requirements of the user;
the determining module is used for determining the pattern to be spliced of the user according to the splicing requirement;
the matching module is used for matching the similarity between the pattern to be spliced and the pattern in the preset pattern library to obtain a matching result;
and the generation module is used for generating a plurality of splicing schemes according to the matching result and recommending the splicing schemes to the user.
Illustratively, the generating module includes:
the first determining submodule is used for determining parameters of each lamp panel of the spliced lamp panels forming the pattern to be spliced according to the matching result;
and the generating sub-module is used for generating a plurality of splicing schemes according to different lamp panel parameters.
Illustratively, the first determining submodule includes:
the first determining unit is used for determining the shape and the size of the spliced lamp panel used by the patterns with similar relation with the patterns to be spliced in the preset pattern library according to the matching result;
and the second determining unit is used for determining each lamp panel parameter of the spliced lamp panels forming the pattern to be spliced according to the shape and the size.
Illustratively, the determining module includes:
the extraction sub-module is used for extracting the image outline in the image data according to the image data in the splicing requirement and determining the size characteristic information of the pattern to be spliced of the user according to the size requirement in the splicing requirement;
and the second determining submodule is used for determining the pattern to be spliced of the user according to the image outline and the size characteristic information.
Illustratively, the extraction submodule includes:
the identification unit is used for identifying the image information of the first frame image when the image data in the splicing requirement is a dynamic image, and determining each distinguishing characteristic between each frame image and the first frame image;
a first converting unit configured to convert the moving image into a still image based on the first frame image and the respective distinguishing features;
and the extraction unit is used for carrying out gray processing on the static image and extracting the image contour of the static image according to the light and shade boundary of the processed image.
Illustratively, the second determining submodule includes:
the second conversion unit is used for carrying out conversion treatment on the lines which do not accord with the preset standard in the image outline to obtain a treatment result;
a third determining unit, configured to determine a line intersection point in the processing result, and determine a line intersection point parameter, where the line intersection point parameter includes an intersection point number and an intersection point position of the line intersection point;
the giving unit is used for giving length parameters and angle parameters to the lines at each line intersection point according to the size characteristic information;
and the fourth determining unit is used for determining the pattern to be spliced of the user according to the line intersection point parameter, the length parameter and the angle parameter.
Illustratively, the generating submodule includes:
the generating unit is used for generating a plurality of splicing schemes according to different lamp panel parameters, wherein the splicing schemes comprise a sequence of splicing the plurality of spliced lamp panels when in use and adjacent positions among the plurality of spliced lamp panels when in splicing.
The specific implementation manner of the lamp panel splicing scheme recommending device is basically the same as that of each embodiment of the lamp panel splicing scheme recommending method, and is not repeated here.
In addition, the application also provides lamp panel splicing scheme recommending equipment. As shown in fig. 3, fig. 3 is a schematic structural diagram of a hardware running environment according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a hardware operating environment of a lamp panel splicing scheme recommendation device.
As shown in fig. 3, the lamp panel splicing scheme recommending device may include a processor 301, a communication interface 302, a memory 303 and a communication bus 304, where the processor 301, the communication interface 302 and the memory 303 complete communication with each other through the communication bus 304, and the memory 303 is used for storing a computer program; the processor 301 is configured to implement the steps of the lamp panel splicing scheme recommendation method when executing the program stored in the memory 303.
The communication bus 304 mentioned by the light panel splicing scheme recommendation device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus 304 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 302 is used for communication between the lamp panel splicing scheme recommending device and other devices.
The Memory 303 may include a random access Memory (Random Access Memory, RMD) or may include a Non-Volatile Memory (NM), such as at least one disk Memory. Optionally, the memory 303 may also be at least one memory device located remotely from the aforementioned processor 301.
The processor 301 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The specific implementation manner of the lamp panel splicing scheme recommending device is basically the same as that of each embodiment of the lamp panel splicing scheme recommending method, and is not repeated here.
In addition, the embodiment of the application also provides a computer readable storage medium, wherein a lamp panel splicing scheme recommendation program is stored on the computer readable storage medium, and the lamp panel splicing scheme recommendation program realizes the steps of the lamp panel splicing scheme recommendation method when being executed by a processor.
The specific implementation manner of the computer readable storage medium is basically the same as the embodiments of the lamp panel splicing scheme recommending method, and is not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (10)

1. The lamp panel splicing scheme recommending method is characterized by comprising the following steps of:
acquiring the splicing requirement of a user;
determining patterns to be spliced of the user according to the splicing requirements;
performing similarity matching on the pattern to be spliced and the pattern in a preset pattern library to obtain a matching result;
and generating a plurality of splicing schemes according to the matching result, and recommending the splicing schemes to the user.
2. The method of claim 1, wherein the step of generating a plurality of splicing schemes according to the matching result comprises:
determining parameters of each lamp panel of the spliced lamp panels forming the pattern to be spliced according to the matching result;
and generating a plurality of splicing schemes according to different lamp panel parameters.
3. The lamp panel splicing scheme recommendation method according to claim 2, wherein the step of determining lamp panel parameters of the spliced lamp panels constituting the pattern to be spliced according to the matching result comprises:
determining the shape and the size of a spliced lamp panel used by patterns with similar relation with the patterns to be spliced in the preset pattern library according to the matching result;
and determining parameters of each lamp panel of the spliced lamp panel forming the pattern to be spliced according to the shape and the size.
4. The method of claim 2, wherein the step of generating a plurality of splicing schemes according to different lamp panel parameters comprises:
and generating a plurality of splicing schemes according to different lamp panel parameters, wherein the splicing schemes comprise a sequence of splicing the plurality of spliced lamp panels when in use and adjacent positions among the plurality of spliced lamp panels when in splicing.
5. The method of claim 1, wherein the step of determining the pattern to be spliced for the user according to the splicing requirement comprises:
extracting an image contour in the image data according to the image data in the splicing requirement, and determining the size characteristic information of the pattern to be spliced of the user according to the size requirement in the splicing requirement;
and determining the pattern to be spliced of the user according to the image outline and the size characteristic information.
6. The method of claim 5, wherein the step of extracting the image profile in the image data according to the image data in the splicing requirement comprises:
when the image data in the splicing requirement is a dynamic image, identifying the image information of a first frame image, and determining each distinguishing characteristic between each frame image and the first frame image;
converting the dynamic image into a static image according to the first frame image and the distinguishing features;
and carrying out graying treatment on the static image, and extracting the image contour of the static image according to the light and dark boundary of the treated image.
7. The method of claim 5, wherein the step of determining the pattern to be stitched for the user based on the image profile and the size characteristic information comprises:
converting lines which do not meet preset standards in the image outline to obtain a processing result;
determining a line intersection point in the processing result, and determining a line intersection point parameter, wherein the line intersection point parameter comprises the intersection point number and the intersection point position of the line intersection point;
according to the size characteristic information, length parameters and angle parameters are given to the lines at the intersection point of each line;
and determining the pattern to be spliced of the user according to the line intersection point parameter, the length parameter and the angle parameter.
8. The utility model provides a lamp plate concatenation scheme recommending device, its characterized in that, lamp plate concatenation scheme recommending device includes:
the acquisition module is used for acquiring the splicing requirements of the user;
the determining module is used for determining the pattern to be spliced of the user according to the splicing requirement;
the matching module is used for matching the similarity between the pattern to be spliced and the pattern in the preset pattern library to obtain a matching result;
and the generation module is used for generating a plurality of splicing schemes according to the matching result and recommending the splicing schemes to the user.
9. A lamp panel splice scheme recommendation device, the device comprising: a memory, a processor and a lamp panel splice scheme recommendation program stored on the memory and executable on the processor, the lamp panel splice scheme recommendation program configured to implement the steps of the lamp panel splice scheme recommendation method of any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a lamp panel splice scheme recommendation program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the lamp panel splice scheme recommendation method according to any one of claims 1 to 7.
CN202211732245.4A 2022-12-30 2022-12-30 Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium Pending CN116204940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211732245.4A CN116204940A (en) 2022-12-30 2022-12-30 Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211732245.4A CN116204940A (en) 2022-12-30 2022-12-30 Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116204940A true CN116204940A (en) 2023-06-02

Family

ID=86508661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211732245.4A Pending CN116204940A (en) 2022-12-30 2022-12-30 Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116204940A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723619A (en) * 2023-08-11 2023-09-08 深圳爱图仕创新科技股份有限公司 Spliced lamp group control method and device, computer equipment and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116723619A (en) * 2023-08-11 2023-09-08 深圳爱图仕创新科技股份有限公司 Spliced lamp group control method and device, computer equipment and readable storage medium
CN116723619B (en) * 2023-08-11 2023-11-14 深圳爱图仕创新科技股份有限公司 Spliced lamp group control method and device, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109146892B (en) Image clipping method and device based on aesthetics
CN106447721B (en) Image shadow detection method and device
US10755153B2 (en) Method of generating 3-dimensional code based on gaussian modulating function
CN108961303A (en) A kind of image processing method, device, electronic equipment and computer-readable medium
CN110853047A (en) Intelligent image segmentation and classification method and device and computer readable storage medium
CN107766349B (en) Method, device, equipment and client for generating text
CN106202086B (en) Picture processing and obtaining method, device and system
CN116204940A (en) Lamp panel splicing scheme recommendation method, device and equipment and readable storage medium
CN112801132B (en) Image processing method and device
JP2023119593A (en) Method and apparatus for recognizing document image, storage medium, and electronic device
CN112801232A (en) Scanning identification method and system applied to prescription entry
CN111090368B (en) Color matching method and device for determining page characters
WO2020238120A1 (en) System and method for single-modal or multi-modal style transfer and system for random stylization using the same
CN112991151B (en) Image processing method, image generation method, apparatus, device, and medium
CN112837213A (en) Face shape adjustment image generation method, model training method, device and equipment
CN110120059B (en) Icon generation method and device
JPH08137908A (en) Method and device for retrieving picture
CN114511862B (en) Form identification method and device and electronic equipment
CN111383289A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN111242836A (en) Method, device and equipment for generating target image and advertising image
CN112598007B (en) Method, device and equipment for screening picture training set and readable storage medium
CN111127310B (en) Image processing method and device, electronic equipment and storage medium
JPH10247247A (en) Moving object extracting device
CN112950167A (en) Design service matching method, device, equipment and storage medium
CN112749660A (en) Method and equipment for generating video content description information

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