WO2022156389A1 - Graphic display method, apparatus and device, and medium - Google Patents

Graphic display method, apparatus and device, and medium Download PDF

Info

Publication number
WO2022156389A1
WO2022156389A1 PCT/CN2021/135688 CN2021135688W WO2022156389A1 WO 2022156389 A1 WO2022156389 A1 WO 2022156389A1 CN 2021135688 W CN2021135688 W CN 2021135688W WO 2022156389 A1 WO2022156389 A1 WO 2022156389A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
pieces
detected
physical
piece
Prior art date
Application number
PCT/CN2021/135688
Other languages
French (fr)
Chinese (zh)
Inventor
郭冠军
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2022156389A1 publication Critical patent/WO2022156389A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/213Input arrangements for video game devices characterised by their sensors, purposes or types comprising photodetecting means, e.g. cameras, photodiodes or infrared cells
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • A63F13/428Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle involving motion or position input signals, e.g. signals representing the rotation of an input controller or a player's arm motions sensed by accelerometers or gyroscopes
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F9/00Games not otherwise provided for
    • A63F9/06Patience; Other games for self-amusement
    • A63F9/10Two-dimensional jig-saw puzzles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1087Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals comprising photodetecting means, e.g. a camera

Definitions

  • the present disclosure relates to the technical field of image processing, and in particular, to a graphic display method, apparatus, device, and medium.
  • puzzle games often appear in various educational games as a kind of educational aids. After the user enters the puzzle game, a puzzle title will be given, and the user can make a puzzle according to the puzzle title.
  • a puzzle title will be given, and the user can make a puzzle according to the puzzle title.
  • the current puzzle game in the process of users doing puzzles, due to the irregularity of the puzzles, there will be various problems in answer matching, and there is no interactive function, so that the playability and interactivity of the puzzle game is low, reducing the user experience.
  • the present disclosure provides a graphic display method, apparatus, device and medium.
  • the present disclosure provides a graphic display method, including:
  • the real-time image is an image including the real object to be detected
  • the target fill pattern is displayed in the target shape area in the target graphic, and the target shape area is the relative position of the target piece in the target graphic. placement area.
  • a graphic display device comprising:
  • a first display unit configured to display a target graphic
  • an image acquisition unit configured to acquire a real-time image, the real-time image being an image including the actual pieces to be detected
  • the second display unit is configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target block when it is determined that there is a correctly placed target block in the actual block to be detected.
  • the relative placement area of the object in the target graphic is configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target block when it is determined that there is a correctly placed target block in the actual block to be detected.
  • a graphics display device comprising:
  • the processor is configured to read executable instructions from the memory and execute the executable instructions to implement the graphic display method described in the first aspect.
  • the present disclosure provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, enables the processor to implement the graphic display method described in the first aspect.
  • the present disclosure provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, causes the processor to implement the graphic display method described in the first aspect.
  • the graphic display method, device, device, and medium of the embodiments of the present disclosure can display the target graphic, and in the process of the user performing the puzzle, obtain a real-time image including the real object to be detected, and then determine the existence of the real object to be detected.
  • the target fill pattern will be displayed in the target shape area in the target figure. Since the target shape area is the relative placement area of the target piece in the target figure, the trick is In the process of jigsaw puzzles, the game can not only automatically and accurately match the answers, but also give real-time prompts to the user to place the correct target pieces, which realizes real-time interaction with users and improves the quality of puzzle games. Playability and interactivity, thereby enhancing the user experience.
  • FIG. 1 is a scene diagram of a graphical display in the related art
  • FIG. 2 is a schematic flowchart of a graphic display method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a game interface provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic diagram of a center of gravity distance according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic diagram of another game interface provided by an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a physical angle parameter provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a matching puzzle pattern provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of a geometric parameter provided by an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of another game interface provided by an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a graphic display device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of a graphic display device according to an embodiment of the present disclosure.
  • the term “including” and variations thereof are open-ended inclusions, ie, "including but not limited to”.
  • the term “based on” is “based at least in part on.”
  • the term “one embodiment” means “at least one embodiment”; the term “another embodiment” means “at least one additional embodiment”; the term “some embodiments” means “at least some embodiments”. Relevant definitions for other terms will be given in the description below.
  • FIG. 1 shows a scene graph of a graphical display in the related art.
  • a designated graphic 103 will be displayed in the game interface 102, and the graphic 103 is a puzzle problem, and the user can use the puzzle puzzle Block 104 puzzles against graph 103 .
  • the user can enter the answer display interface of the puzzle game through the electronic device 101.
  • the answer display interface can display the pre-designed puzzle answer of the puzzle title, and the user can compare the puzzle pattern with the puzzle answer. Yes, if the puzzle pattern is the same as any one of the puzzle answers, it can be determined that the puzzle is correct, and then the self-check of the puzzle result can be realized.
  • the embodiments of the present disclosure provide a graphic display method, apparatus, device and medium capable of real-time interaction with a user.
  • the graphic display method may be performed by an electronic device.
  • electronic devices may include mobile phones, tablet computers, desktop computers, notebook computers, vehicle-mounted terminals, wearable electronic devices, all-in-one computers, smart home devices and other devices with communication functions, and may also be virtual machines or devices simulated by simulators .
  • FIG. 2 shows a schematic flowchart of a graphic display method provided by an embodiment of the present disclosure.
  • the graphic display method may include the following steps.
  • the electronic device may display the target graphic, and the user may use the puzzle pieces to perform puzzles against the target graphic.
  • the puzzles can be any type of puzzles, for example, the target puzzles can be four puzzles, pentagons, tangrams, thirteen puzzles, etc., which are not limited here.
  • the target graphic may be displayed at any position, which is not limited herein.
  • the user can also collect real-time images including the real objects to be detected through the camera of the electronic device, such as a rear camera, so that the electronic device can obtain the real-time image synchronously in real time.
  • the electronic device may not display the real-time image after acquiring the real-time image.
  • the electronic device may display the real-time image synchronously with the target graphic in real time.
  • a specified target graphic will be displayed in the game interface, and the target graphic is a jigsaw puzzle.
  • the blocks are puzzled against the target graphics.
  • the user can also collect the real-time image including the real object to be detected through the camera of the electronic device in real time, and can further enable the real-time image to be displayed in the game interface in real time, so that the electronic device can real-time display the real-time image. Simultaneous display of target graphics and live images within the game interface.
  • the target graphics and real-time images can be displayed on the electronic device in a preset display manner.
  • the preset display mode may be preset as required, which is not limited herein.
  • the preset display mode may be full-screen display of the real-time image, and the target graphic is displayed at any position on the real-time image.
  • the display screen of the electronic device can display the real-time image in full screen, and the target graphics can be superimposed and displayed in a corner of the real-time image.
  • the game interface can display the shooting preview interface in full screen, and the real-time image collected by the camera in the working state of the electronic device can be displayed in the shooting preview interface in real time, and the target graphics can be superimposed and displayed in a corner of the shooting preview interface.
  • FIG. 3 shows a schematic diagram of a game interface provided by an embodiment of the present disclosure.
  • the electronic device 301 can display a game interface 302 of a puzzle game, a real-time image 303 can be displayed in full screen in the game interface 302 , and a target graphic 304 can be superimposed on the lower left corner of the real-time image 303 .
  • the preset display manner may also be split-screen display of the target graphics and the real-time image.
  • the display screen of the electronic device can be divided into two display areas, one display area displays the target graphic, and the other display area displays the real-time image.
  • the game interface can be divided into two display areas, one display area can display the target graphics, the other display area can display the shooting preview interface, and the shooting preview interface can display the working electronic equipment in real time.
  • the preset display manner may also be other display manners, and the present disclosure does not limit the specific display manner.
  • the electronic device can detect in real time whether there is a correctly placed target piece in the real pieces to be detected, and if it is determined that there is a target piece in the real pieces to be detected, the target piece can be
  • the relative placement area of the object in the target graphic is used as the target shape area in the target graphic, and the target fill pattern is displayed in the target shape area to light up the relative placement area of the target piece in the target graphic.
  • the target filling pattern may be a filling pattern corresponding to the target shape area.
  • the filling pattern corresponding to each shape region in the target graphic is the same, that is, the target filling pattern is a preset fixed filling pattern.
  • the filling pattern may include at least one of a solid color pattern and a pattern pattern.
  • the electronic device 301 can display the target graphic 304 when it is detected that the first real object 305 , the second real object 306 , the third real object 307 and the fourth real object 308 are placed correctly.
  • the first shape region 309 , the second shape region 310 , the third shape region 311 , and the fourth shape region 312 are displayed in gray, respectively.
  • the first shape area 309 is the relative placement area of the first real piece 305 in the target graphic 304
  • the second shape area 310 is the relative placement area of the second real patch 306 in the target graphic 304
  • the third The shape area 311 is the relative placement area of the third physical piece 307 in the target graphic 304
  • the fourth shape area 312 is the relative placement area of the fourth physical real piece 308 in the target graphic 304 .
  • the preset fixed filling pattern can be displayed in the target shape area, so as to achieve the effect of lighting up the relative placement area of the target piece in the target shape.
  • the filling pattern corresponding to each shape region in the target graphic may be different, one shape region may correspond to one filling pattern, and the filling pattern corresponding to each shape region may be based on the actual piece of the piece corresponding to the shape region The actual pattern is determined.
  • the filling pattern corresponding to a shape area may be a solid color pattern having the actual color of the actual piece of the piece corresponding to the shape area.
  • the filling pattern corresponding to a shape area may be the actual pattern of the actual piece of the block corresponding to the shape area.
  • the target graphic can be displayed, and in the process of the user performing the puzzle, the real-time image including the real object to be detected is obtained, and then it is determined that there is a correct placement of the real object of the object to be detected in the real object to be detected.
  • the target fill pattern is displayed in the target shape area in the target graph. Since the target shape area is the relative placement area of the target piece in the target graph, the puzzle game is in the process of the user doing the jigsaw puzzle. , not only can automatically and accurately match the answer, but also can prompt the user to place the correct target piece in real time, realize real-time interaction with the user, improve the playability and interactivity of puzzle games, and further improve the user experience.
  • the real-time image may further be an image including at least two physical objects.
  • At least two physical pieces can be used as the physical pieces to be detected.
  • the electronic device can detect the correctly placed target piece among all the pieces displayed in the real-time image.
  • a part of the real pieces of the at least two real pieces can be used as the real pieces to be detected, and the other part of the real pieces can be used as the real pieces of the non-to-be-detected pieces.
  • the actual pieces to be detected may be the actual pieces used for the physical detection of the target pieces
  • the actual pieces of the non-to-be-detected pieces may be the actual pieces that are not used for the physical detection of the target pieces.
  • the actual pieces to be detected may be the actual pieces determined according to the distance between the centers of gravity of the actual pieces.
  • FIG. 4 shows a schematic diagram of a center of gravity distance provided by an embodiment of the present disclosure.
  • the first real piece 401 and the second real piece 402 are both isosceles right-angled triangles. Therefore, the center of gravity of the first real piece 401 and the second real piece 402 is the midpoint of the hypotenuse,
  • the center of gravity distance between the first real piece 401 and the second real piece 402 may be the length of the line 403 connecting the midpoints of the hypotenuses of the first real piece 401 and the second real piece 402 .
  • the graphic display method further includes: Can include:
  • the actual pieces to be detected in the actual pieces are determined.
  • the electronic device may determine the center-of-gravity distance between the actual pieces in the real-time image, and determine the distance between the centers of gravity of the actual pieces to be determined according to the distance between the centers of gravity between the actual pieces Detect the actual pieces of the puzzle to avoid the problem of inaccurate answer matching caused by irregular puzzle pieces.
  • the actual pieces to be detected in the actual pieces may specifically include:
  • the physical pieces are grouped to obtain at least one group of physical pieces, and the distance of the center of gravity between the physical pieces of each group of physical pieces is less than or equal to the preset distance threshold;
  • the actual pieces in the actual piece group with the largest number of pieces are taken as the actual pieces to be detected.
  • the electronic device is preset with a maximum center-of-gravity distance corresponding to the target graphic, and the maximum center-of-gravity distance is a preset distance threshold. After the electronic device determines the center-of-gravity distance between the physical pieces in the real-time image, it can group the physical pieces whose center-of-gravity distance is less than or equal to the preset distance threshold into a group, and obtain at least one group of physical pieces.
  • the preset distance threshold may be a distance value that can be set as required and can determine the maximum connected sub-graph in the real-time image, which is not limited herein.
  • FIG. 5 shows a schematic diagram of another game interface provided by an embodiment of the present disclosure.
  • the electronic device 501 can display a game interface 502 of a puzzle game, a real-time image 503 can be displayed in full screen in the game interface 502 , and a target graphic 504 can be superimposed on the lower left corner of the real-time image 503 .
  • the real-time image 503 displays the first real piece 505 , the second real piece 506 , the third real piece 507 , the fourth real piece 508 , the fifth real piece 509 and the sixth real piece 510 .
  • the electronic device 501 can compare the first physical piece 505, the second physical piece 506, the third physical piece 507, the fourth physical piece 508, the fifth physical piece 509, and the The sixth physical pieces 510 are clustered, and several physical pieces of which the distance between the centers of gravity is less than or equal to the preset distance threshold are grouped into a group.
  • the The center-of-gravity distance between the five physical pieces 509 and the sixth physical piece 510 is less than or equal to the preset distance threshold, while the first physical piece 505, the second physical piece 506, the third physical piece 506 and the third The distance between the center of gravity of at least one physical piece and the fifth physical piece 509 is greater than the preset distance threshold, the first physical piece 505, the physical second piece 506, In the third physical piece 507 and the fourth physical piece 508, there is at least one physical piece and the distance between the center of gravity of the physical piece 510 and the sixth physical piece 510 is greater than the preset distance threshold, so that the six physical pieces can be divided into two A group of physical pieces.
  • the number of physical pieces in the physical piece group of the first piece 505, the second piece 506, the third piece 507 and the fourth piece 508 is higher than that of the fifth piece 509 and the sixth piece.
  • the actual pieces 510 have a large number of pieces in this group of actual pieces. Therefore, the first piece 505, the second piece 506, the third piece 507, and the fourth piece 508 can be used as the waiting pieces.
  • the actual pieces of the pieces are detected, and the actual pieces of the fifth piece 509 and the actual pieces of the sixth piece 510 are regarded as the actual pieces of the pieces not to be detected.
  • the electronic device can accurately find the real object to be detected that needs to be detected in the real-time image, and then detect the real object of the target mosaic in the real object to be detected, which can not only improve the accuracy of the target mosaic
  • the detection efficiency of the actual block can also be improved, and the reliability of the detection result of the target block can be improved.
  • determining that there is a correctly placed target piece in the real pieces to be detected may specifically include:
  • the electronic device may determine the center of gravity distance between the real pieces of the real-time image and the physical angle parameters of each real piece to be detected, and determine the distance between the centers of gravity and the real object angle according to the distance between the centers of gravity and the real object angle parameter, to detect the target piece in the object to be detected, if the object of the object to be detected is detected, it is determined that the object of the object to be detected exists in the object of the object to be detected, otherwise, it is determined that there is no object of the object to be detected. Block real objects to avoid the problem of inaccurate answers due to irregular puzzles.
  • the physical angle parameter of the actual piece to be detected may include at least one of a physical angle value of the actual piece to be detected and a physical angle vector corresponding to the actual piece to be detected.
  • each physical piece to be detected is preset with a preset number of vertices.
  • the preset number may be the maximum number of corner points among the number of corner points of the actual corner points of each piece in the puzzle.
  • the tangram can be composed of 7 pieces, and one piece corresponds to a real pattern.
  • the 7 pieces can be respectively two first triangle pieces, one second triangle piece, two third triangle pieces, one square piece and one parallelogram piece.
  • the two first triangle blocks are blocks with the same attributes
  • the two third triangle blocks are blocks with the same attributes.
  • the tile areas of the first triangular tile, the second triangular tile, and the third triangular tile decrease sequentially.
  • the second triangular, square and parallelogram tiles have the same tile area. It can be seen that the maximum number of corner points of each piece in the tangram is 4, so the preset number can be 4.
  • the vertices exceeding the number of corner points can be randomly allocated to each edge of the physical piece, and the vertices on each edge are evenly arranged .
  • the preset number is greater than the number of corner points of the actual piece of the puzzle itself, the vertices exceeding the number of corner points can be allocated to each edge of the actual piece of the puzzle according to the preset allocation rules, and each edge The vertices are evenly arranged.
  • the preset allocation rules may be preset as required, which is not limited here.
  • each corner of the triangular piece can be used as a vertex, and the fourth vertex can be set on the midpoint of the hypotenuse of the triangular piece.
  • the starting vertex and the preset vertex sequence of each actual piece to be detected can be preset as required, which is not limited here.
  • the preset vertex order can be either clockwise or counterclockwise.
  • the physical angle value may be the angle value of the first included angle between the connecting line between the first target vertex and the second target vertex in the physical piece to be detected and the horizontal positive direction.
  • the positive horizontal direction can be preset as required, which is not limited here.
  • first target vertex can be the vertex with the first number in the real piece of the piece to be detected
  • second target vertex can be the vertex with the second number in the real piece of the piece to be detected
  • the first number and the second number can be preset according to requirements, respectively, and the first number and the second number are different.
  • the physical angle vector corresponding to the physical object to be detected may be generated according to the relative angle between the physical object to be detected and each of the physical objects to be detected.
  • the relative angle between each two real pieces to be detected may be the angle of the second included angle between the connecting line between the first target vertex and the second target vertex of the two real pieces to be detected value.
  • FIG. 6 shows a schematic diagram of a physical angle parameter provided by an embodiment of the present disclosure.
  • the first angle between the first connecting line 603 between the first vertex and the third vertex of the first physical piece 601 and the horizontal positive direction in the right direction along the horizontal line 608 in the figure 605 is the physical angle value of the first block object 601 .
  • the second angle 606 between the second connecting line 604 between the first vertex and the third vertex of the second block object 602 and the horizontal positive direction in the right direction along the horizontal line 608 as shown in the figure is the second block
  • the object angle value of the object 602 is the direction of the arrow in the figure.
  • the third angle 607 between the first connecting line 603 and the second connecting line 604 is the relative angle between the first real piece 601 and the second real piece 602 .
  • detecting the physical object of the physical pieces to be detected may specifically include:
  • each puzzle figure to be matched includes a plurality of piece figures to be matched, and one piece figure to be matched in each puzzle figure to be matched corresponds to A piece of material to be detected;
  • the angle parameters of the detected objects and the target pieces corresponding to the pattern of the pieces to be matched meet the preset angle consistency condition.
  • At least one reference puzzle figure corresponding to the target figure may be preset in the electronic device, and the reference puzzle figure is the puzzle answer corresponding to the target figure.
  • the electronic device can first identify the puzzle graphics to be matched that are similar to the center-of-gravity distance between the real objects to be detected in the reference puzzle graphics corresponding to the target graphics, and then, in the real objects to be detected, detect the angle parameters of the real objects and the objects to be detected.
  • Matching puzzle graphics include the target puzzle pieces whose attributes are the same as the pieces to be matched and meet the preset angle consistency condition.
  • the target piece is the right piece. In the case of detecting the physical object of the target piece, it is determined that there is a physical object of the target piece in the physical piece to be detected.
  • identifying the jigsaw graph to be matched may specifically include:
  • the reference puzzle figure corresponding to the reference adjacency matrix with the largest calculation result is used as the puzzle figure to be matched.
  • the electronic device may be preset with a preset adjacency distance corresponding to each physical piece.
  • the electronic device can compare the center of gravity distance between each two objects to be detected with the preset neighbor distance, and if the center of gravity distance is greater than the preset neighbor distance, the adjacency value of the center of gravity distance is set to 0, otherwise, Set the adjacency value for this barycentric distance to 1.
  • the electronic device can arrange them according to the preset order of the blocks corresponding to the objects to be detected, and generate an adjacency matrix of objects corresponding to the center-of-gravity distances.
  • the electronic device After the electronic device generates the physical adjacency matrix, it can obtain the reference adjacency matrix corresponding to each reference puzzle pattern, and perform bitwise AND calculation between the reference adjacency matrix corresponding to each reference puzzle pattern and the physical adjacency matrix to obtain each reference adjacency matrix.
  • the calculation result corresponding to the matrix, and then the reference puzzle figure corresponding to the reference adjacency matrix with the largest calculation result is used as the puzzle figure to be matched.
  • the reference angle vector corresponding to the pattern of the pieces to be matched can be generated before S210 shown in FIG. 2 , or can also be generated before it is determined in S220 that there is a correctly placed target piece in the actual pieces to be detected, here No restrictions.
  • the generation method of the reference adjacency matrix is similar to the generation method of the real adjacency matrix, and will not be repeated here.
  • the number of puzzle graphics to be matched may be at least one, that is, the number of puzzle graphics to be matched may be one or multiple, which is not limited herein.
  • FIG. 7 shows a schematic diagram of a matching puzzle pattern provided by an embodiment of the present disclosure.
  • the center of gravity distance between each of the to-be-matched pieces in the first to-be-matched puzzle figure 705 and the second to-be-matched puzzle figure 706 is the The distance between the center of gravity of the third piece 703 and the fourth piece 704 is the most similar, so that the first piece 701, the second piece 702, the third piece 703 and the fourth piece 704 are respectively
  • the placement positions of the images to be matched with the same attributes in the first to-be-matched puzzle figure 705 and the second to-be-matched puzzle figure 706 are the same.
  • the actual puzzle to be detected obtained by splicing the third real piece 703 and the fourth real piece 704 may have two to-be-matched puzzle figures, a first to-be-matched puzzle figure 705 and a second to-be-matched puzzle figure 706 .
  • the angle consistency condition may include that the weighted sum of the target parameter difference is less than or equal to the target weighted sum threshold, and the target parameter difference is the parameter difference between the physical angle parameter and the reference angle parameter corresponding to the tile graphics to be matched,
  • the target weight and threshold are preset weights and thresholds corresponding to the physical angle parameters.
  • the reference angle parameter of the graphic to be matched may include the reference angle value of the graphic to be matched .
  • the reference angle value of the pattern of the pieces to be matched may be determined before S210 shown in FIG. 2 , or may be determined before the actual object of the pieces to be detected is determined in S220 before a correctly placed target piece exists. make restrictions.
  • the method for determining the reference angle value of the pattern of the pieces to be matched is similar to the method for determining the angle value of the actual object of the piece to be detected, and details are not described here.
  • the angular consistency condition may include that the weighted sum of the angular differences between the physical angular value of the actual piece to be detected and the reference angular value of the pattern to be matched is less than or equal to the corresponding angular value. preset weights and thresholds.
  • the reference angle parameter of the graphic to be matched may include the corresponding angle of the graphic to be matched. Reference angle vector.
  • the reference angle vector corresponding to the pattern of the pieces to be matched may be determined before S210 shown in FIG. 2 , or it may be determined before the actual object of the pieces to be detected is determined in S220 before a correctly placed target piece exists, here No restrictions. And the method for determining the reference angle vector corresponding to the pattern of the patch to be matched is similar to the method for determining the angle vector of the real object corresponding to the real object to be detected, and will not be repeated here.
  • the angle consistency condition may include that the weighted sum of the vector differences between the physical angle vector corresponding to the actual piece to be detected and the reference angle vector corresponding to the pattern of the to-be-matched piece is less than or equal to the angle The preset weight and threshold corresponding to the vector.
  • the reference angle of the graphics of the pieces to be matched may include a reference angle value of the tile pattern to be matched and a reference angle vector corresponding to the tile pattern to be matched.
  • the angle consistency condition may include that the above-mentioned weighted sum of the angle difference and the vector difference is less than or equal to a preset weighted sum threshold corresponding to the angle difference and the vector difference.
  • each weight coefficient may be preset as required, and each weight coefficient is any value in (0, 1], which is not limited here.
  • the actual object pieces of the target pieces that match the pieces to be matched in the pieces of the puzzle pieces to be matched can be accurately detected by using the angular consistency condition, that is, the correctly placed target can be accurately detected.
  • Pieces of real objects Pieces of real objects.
  • the graphic display method may also include:
  • the vertex position calculate the distance of the center of gravity between the physical pieces and the physical angle parameters of the physical pieces.
  • the electronic device can perform geometric analysis on the real-time image to obtain the vertex positions of the real pieces of the real-time image, such as vertex coordinates, and then, for each real piece of the real-time image, use The vertex position of the actual piece, calculate the position of the center of gravity of the piece, such as the coordinates of the center of gravity and the angle value of the object, and then use the position of the center of gravity and the angle value of the actual piece to obtain the distance between the center of gravity and the angle of each piece.
  • the physical angle parameters of the actual piece can be performed by the electronic device to perform geometric analysis on the real-time image to obtain the vertex positions of the real pieces of the real-time image, such as vertex coordinates, and then, for each real piece of the real-time image, use The vertex position of the actual piece, calculate the position of the center of gravity of the piece, such as the coordinates of the center of gravity and the angle value of the object, and then use the position of the center of gravity and the angle value of the actual piece to obtain the distance between the
  • each physical piece is preset with a preset number of vertices.
  • the preset number may be the maximum number of corner points among the number of corner points of the actual corner points of each piece in the puzzle.
  • the tangram can be composed of 7 pieces, and one piece corresponds to a real pattern.
  • the 7 pieces can be respectively two first triangle pieces, one second triangle piece, two third triangle pieces, one square piece and one parallelogram piece.
  • the two first triangle blocks are blocks with the same attributes
  • the two third triangle blocks are blocks with the same attributes.
  • the tile areas of the first triangular tile, the second triangular tile, and the third triangular tile decrease sequentially.
  • the second triangular, square and parallelogram tiles have the same tile area. It can be seen that the maximum number of corner points of each piece in the tangram is 4, so the preset number can be 4.
  • the vertices exceeding the number of corner points can be randomly allocated to each edge of the physical piece, and the vertices on each edge are evenly arranged .
  • the preset number is greater than the number of corner points of the actual piece of the puzzle itself, the vertices exceeding the number of corner points can be allocated to each edge of the actual piece of the puzzle according to the preset allocation rules, and each edge The vertices are evenly arranged.
  • the preset allocation rules may be preset as required, which is not limited here.
  • each corner of the triangular piece can be used as a vertex, and the fourth vertex can be set on the midpoint of the hypotenuse of the triangular piece.
  • the vertices of each physical piece may start from the starting vertex and be numbered according to the preset vertex sequence.
  • the starting vertex and the preset vertex sequence of each physical piece can be preset as required, which is not limited here.
  • the preset vertex order can be either clockwise or counterclockwise.
  • the electronic device can store the positions of the vertices of the physical pieces in the sequence of numbers.
  • the physical angle value may be the angle value of the first included angle between the connecting line between the first target vertex and the second target vertex in the physical piece and the positive horizontal direction.
  • the positive horizontal direction can be preset as required, which is not limited here.
  • first target vertex may be the vertex with the first number in the actual piece
  • second target vertex may be the vertex with the second number in the real piece.
  • first number and the second number can be preset according to requirements, respectively, and the first number and the second number are different.
  • the first number can be 1, and the second number can be 3, that is, the actual angle value can be the connection between the first vertex and the third vertex of the block and the positive horizontal direction The angle value of the included angle between.
  • FIG. 8 shows a schematic diagram of a geometric parameter provided by an embodiment of the present disclosure.
  • the electronic device can detect the vertices of the first real object 801, the second real object 802, the third real object 803 and the fourth real object 804 in the real-time image (as shown in the figure).
  • the vertex position of each dot for example, the vertex 805 is a vertex of the fourth real object 804, the position of the vertex 805 is a vertex position of the fourth real object 804, and the first real object 801 is determined.
  • connection line 806 is the connection line between the first vertex and the third vertex of the second physical piece 802 .
  • the positive horizontal direction can be the direction to the right along the horizontal line 807. Therefore, taking the second physical piece 802 as an example, the physical angle value of the second physical piece 802 can be the connecting line 806 and the horizontal line 807 to the right The angle value of the angle 808 between the directions.
  • the specific process of performing geometric analysis on the real-time image may include: inputting the real-time image into an image segmentation model obtained by pre-training to obtain a plurality of image segmentation regions, where one image segmentation region corresponds to one mosaic Block attributes, each block attribute corresponds to a block shape, a block area and a physical pattern of the actual block. Then, for each image segmentation area, input the image segmentation area into the vertex detection model obtained by pre-training the corresponding patch attribute, and obtain the vertex position of the actual patch of the patch attribute corresponding to the image segmentation area.
  • the electronic device can use the image segmentation model and the vertex detection model obtained by pre-training to realize the geometric analysis of the real-time image, which improves the efficiency and accuracy of the geometric analysis. It should be understood by those skilled in the art that the present disclosure does not limit the specific geometric analysis process and method.
  • the electronic device can calculate the average vertex position of each vertex position of the physical piece, and use the average vertex position as the center of gravity of the physical piece. Taking the vertex position as the vertex coordinate as an example, the electronic device can calculate the mean value of the vertex coordinates of the vertex coordinates of each physical piece, and then use the mean value of the vertex coordinates as the barycentric coordinate of the physical piece.
  • the electronic device may calculate the first target of the physical piece based on the vertex position corresponding to the first target vertex and the vertex position corresponding to the second target vertex of the physical piece The first included angle between the connecting line between the vertex and the second target vertex and the positive horizontal direction, and the first included angle is taken as the actual angle value of the actual piece.
  • the electronic device can calculate the first difference between the positions of the centers of gravity of every two physical pieces according to the position of the center of gravity of each physical piece, and then use the absolute value of the first difference as the difference between the two physical pieces. The distance of the center of gravity between the pieces, and then the distance of the center of gravity between the objects of each piece is obtained.
  • the electronic device can directly use the physical angle value of each physical piece as the physical angle parameter of the physical piece.
  • the electronic device can also calculate the second difference between the physical angle values of each two physical pieces according to the physical angle value of each physical piece. difference, and then take the absolute value of the second difference as the relative angle between the two real objects, and the relative angle is the connection between the first target vertex and the second target vertex of the two real objects.
  • the angle value of the second included angle between the lines so that the relative angle between each physical piece and other physical pieces can be arranged in the order of the preset pieces corresponding to each physical piece to generate each piece.
  • the electronic device can use the physical angle vector corresponding to each physical piece as the physical angle parameter of the physical piece, otherwise, the electronic device can The physical angle value of , and its corresponding physical angle vector are used as the physical angle parameters of the piece.
  • the electronic device can use the vertex positions to accurately and efficiently calculate the geometric parameters corresponding to the actual pieces of each piece, such as the distance of the center of gravity, the angle value of the object, the angle vector of the object, etc., thereby improving the detected target pieces. Physical reliability for reliable answer matching to live images.
  • the graphic display method may further include:
  • the target prompt information is displayed, and the target prompt information is used to prompt that the objects to be detected are all spliced correctly.
  • the electronic device after displaying the target filling pattern in the target shape area, the electronic device can detect in real time whether the target figure is completely filled, and if it is determined that the target figure is completely filled, it can display a real object for prompting the block to be detected. All stitching correct target prompt information.
  • the target prompt information may include at least one of prompt text and prompt identifier.
  • the target prompt information may be the prompt text "Congratulations on passing the level!”.
  • FIG. 9 shows a schematic diagram of still another game interface provided by an embodiment of the present disclosure.
  • the electronic device 901 can display a game interface 902 of a puzzle game, a real-time image 903 can be displayed in full screen in the game interface 902 , and a target graphic 904 can be superimposed on the lower left corner of the real-time image 903 .
  • the prompt text "Congratulations for passing the level!” may be superimposed and displayed on the real-time image 903 to prompt the user that the puzzle pattern in the real-time image 903 is correctly spliced.
  • the electronic device optionally, before displaying the target prompt information, the electronic device also needs to detect whether the target graphic is completely filled.
  • the electronic device may be preset with the total number of puzzle pieces used for splicing the target graphics.
  • the electronic device can obtain the physical quantity of the correct target piece, and judge whether the physical quantity is the same as the preset total number of pieces. If it is the same, it can be determined that the target figure is completely filled; is completely filled.
  • the total number of shape regions of the target graphic may be preset in the electronic device.
  • the electronic device can obtain the number of shape regions of the filled target shape region, and judge whether the number of shape regions is the same as the preset total number of shape regions. If it is the same, it can be determined that the target shape is completely filled; is completely filled.
  • the electronic device may perform image recognition on the target graphic to detect whether there is an initial fill color of the target graphic in the target graphic, and if it is detected that the initial fill color exists, it may be determined that the target graphic is not completely filled, Otherwise, it can be determined that the target shape is completely filled.
  • the electronic device can quickly and accurately detect whether the target graphic is completely filled, thereby improving the reliability of the detection result of whether the objects to be detected are all spliced correctly.
  • An embodiment of the present disclosure further provides a graphic display device, which will be described below with reference to FIG. 10 .
  • the graphic display device may be an electronic device, such as the electronic device 110 shown in FIG. 1 .
  • the electronic device may be a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable device, an all-in-one computer, a smart home device, or other device with communication functions, or a device simulated by a virtual machine or a simulator.
  • FIG. 10 shows a schematic structural diagram of a graphic display device provided by an embodiment of the present disclosure.
  • the graphic display device 1000 may include a first display unit 1010 , an image acquisition unit 1020 and a second display unit 1030 .
  • the first display unit 1010 can be configured to display target graphics.
  • the image acquisition unit 1020 may be configured to acquire a real-time image, and the real-time image is an image including the real object to be detected.
  • the second display unit 1030 can be configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target when it is determined that there is a correctly placed target piece in the actual pieces to be detected.
  • the relative placement area of the actual pieces in the target graphics can be configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target when it is determined that there is a correctly placed target piece in the actual pieces to be detected.
  • the relative placement area of the actual pieces in the target graphics can be configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target when it is determined that there is a correctly placed target piece in the actual pieces to be detected.
  • the target graphics can be displayed during the jigsaw puzzle process by the user, and the real-time image including the actual pieces of the pieces to be detected can be obtained during the jigsaw puzzle process by the user, and then in determining the actual pieces of the to-be-detected pieces
  • the target fill pattern is displayed in the target shape area in the target figure. Since the target shape area is the relative placement area of the target piece in the target figure, the clever In the process of jigsaw puzzles, board games can not only automatically and accurately match the answers, but also give real-time prompts to the user to place the correct target pieces, realizing real-time interaction with users and improving the puzzle game. The playability and interactivity of the game enhance the user experience.
  • the real-time image may also be an image including at least two physical pieces.
  • the graphic display device 1000 may further include a first processing unit, and the first processing unit may be configured to determine the actual pieces to be detected in the actual pieces according to the distance of the center of gravity between the actual pieces.
  • the first processing unit may include a first sub-processing unit and a second sub-processing unit.
  • the first sub-processing unit may be configured to group the physical pieces according to the distance of the center of gravity, to obtain at least one group of physical pieces of the pieces, and the distance between the physical pieces of each piece in each group of physical pieces is less than or equal to Preset distance threshold.
  • the second sub-processing unit may be configured to use the actual pieces in the group of actual pieces with the largest number of pieces as the actual pieces to be detected.
  • the graphic display apparatus 1000 may further include a second processing unit and a third processing unit.
  • the second processing unit can be configured to detect the target piece in the pieces to be detected according to the distance between the centers of gravity of the pieces to be detected and the physical angle parameter of the piece to be detected.
  • the third processing unit may be configured to, in the case of detecting the physical object of the target piece, determine that there is a physical object of the target piece in the physical piece to be detected.
  • the second processing unit may include a third sub-processing unit and a fourth sub-processing unit.
  • the third sub-processing unit may be configured to identify the puzzle graphics to be matched in the reference puzzle graphics corresponding to the target graphics according to the center of gravity distance, each puzzle graphics to be matched includes a plurality of puzzle graphics to be matched, and each puzzle graphics to be matched One of the block graphics to be matched corresponds to an actual block to be detected.
  • the fourth sub-processing unit may be configured to detect, among the actual pieces to be detected, the actual angular parameters of the object and the target pieces corresponding to the pattern of the pieces to be matched that satisfy a preset angle consistency condition.
  • the third sub-processing unit may be further configured to generate a physical adjacency matrix corresponding to the center-of-gravity distance; perform bitwise AND calculation on the reference adjacency matrix corresponding to each reference mosaic image and the physical adjacency matrix to obtain The calculation result corresponding to each reference adjacency matrix; the reference mosaic image corresponding to the reference adjacency matrix with the largest calculation result is used as the mosaic image to be matched.
  • the physical angle parameter of the physical object to be detected may include at least one of the physical angle value of the physical object to be detected and the physical angle vector corresponding to the physical object to be detected.
  • the physical angle vector corresponding to the physical object can be generated according to the relative angle between the physical object to be detected and each of the physical objects to be detected.
  • the angle consistency condition may include that the weighted sum of target parameter differences is less than or equal to the target weighted sum threshold, and the target parameter difference may be the actual angle parameter and the reference angle corresponding to the tile pattern to be matched
  • the parameter difference between parameters, the target weighted sum threshold may be a preset weighted sum threshold corresponding to the physical angle parameter.
  • the graphic display device 1000 may further include a geometric analysis unit and a parameter calculation unit.
  • the geometric analysis unit can be configured to perform geometric analysis on the real-time image to obtain the vertex positions of the actual pieces of each piece.
  • the parameter calculation unit can be configured to calculate the center of gravity distance between the real pieces and the physical angle parameters of the real pieces according to the vertex positions.
  • the graphic display apparatus 1000 may further include a third display unit, and the third display unit may be configured to display target prompt information when the target graphic is completely filled, and the target prompt information can be used for Prompt that all the pieces to be detected are spliced correctly.
  • the graphic display device 1000 shown in FIG. 10 can execute various steps in the method embodiments shown in FIGS. 2 to 9 , and implement various processes and processes in the method embodiments shown in FIGS. The effect will not be repeated here.
  • Embodiments of the present disclosure also provide a graphics display device, where the graphics display device may include a processor and a memory, and the memory may be used to store executable instructions.
  • the processor may be configured to read executable instructions from the memory, and execute the executable instructions to implement the graphic display method in the foregoing embodiment.
  • FIG. 11 shows a schematic structural diagram of a graphic display device provided by an embodiment of the present disclosure. Referring specifically to FIG. 11 below, it shows a schematic structural diagram of a graphic display device 1100 suitable for implementing an embodiment of the present disclosure.
  • the graphic display device 1100 in the embodiment of the present disclosure may be an electronic device.
  • the electronic equipment may include, but not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals) , wearable devices, etc., as well as stationary terminals such as digital TVs, desktop computers, smart home devices, and the like.
  • the graphic display device 1100 may be the electronic device 110 shown in FIG. 1 .
  • graphic display device 1100 shown in FIG. 11 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the graphics display device 1100 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 1101 , which may be loaded from a storage device 1108 according to a program stored in a read only memory (ROM) 1102 or from a storage device 1108 .
  • a program in a random access memory (RAM) 1103 executes various appropriate actions and processes to realize the graphic display method in the above-described embodiment.
  • RAM random access memory
  • various programs and data necessary for the operation of the information processing apparatus 1100 are also stored.
  • the processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104.
  • An input/output (I/O) interface 1105 is also connected to the bus 1104 .
  • the following devices can be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 1107 such as a computer; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. Communication means 1109 may allow graphics display device 1100 to communicate wirelessly or by wire with other devices to exchange data.
  • FIG. 11 shows the graphics display device 1100 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
  • Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by the processor, the processor can implement the graphic display method in the above-mentioned embodiment.
  • Embodiments of the present disclosure also provide a computer program product, where the computer program product may include a computer program, which, when executed by a processor, causes the processor to implement the graphic display method in the foregoing embodiments.
  • embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication device 1109, or from the storage device 1108, or from the ROM 1102.
  • the processing device 1101 When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the graphic display method of the embodiment of the present disclosure are executed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
  • clients, servers can communicate using any currently known or future developed network protocol, such as HTTP, and can be interconnected with any form or medium of digital data communication (eg, a communication network).
  • a communication network examples include local area networks (“LAN”), wide area networks (“WAN”), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
  • the above-mentioned computer-readable medium may be included in the above-mentioned graphic display device; or may exist alone without being incorporated into the graphic display device.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the graphics display device, the graphics display device is caused to execute:
  • the target graphic obtain a real-time image
  • the real-time image is an image including the real object to be detected
  • the real-time image is in the target shape area in the target graphics.
  • displays the target fill pattern, and the target shape area is the relative placement area of the target piece in the target figure.
  • computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional procedural programming languages - such as the "C" 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.
  • the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks 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.
  • each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
  • exemplary types of hardware logic components include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSPs Application Specific Standard Products
  • SOCs Systems on Chips
  • CPLDs Complex Programmable Logical Devices
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing.
  • machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM compact disk read only memory
  • magnetic storage or any suitable combination of the foregoing.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to a graphic display method, apparatus and device, and a medium. The graphic display method comprises: displaying a target graphic; obtaining a real-time image, the real-time image being an image comprising puzzle piece physical objects to be detected; and when it is determined that a target puzzle piece physical object that is correctly placed is present in the puzzle piece physical objects to be detected, displaying a target filling pattern in a target shape region in the target graphic, the target shape region being a relative placement region of the target puzzle piece physical object in the target graphic. According to the embodiments of the present disclosure, during a jigsaw puzzle process conducted by a user, real-time prompting can be performed on the target puzzle piece physical object that is correctly placed by the user, so that real-time interaction with the user is implemented.

Description

图形显示方法、装置、设备及介质Graphic display method, device, equipment and medium
本申请要求于2021年1月22日提交的申请号为202110091009.8、申请名称为“图形显示方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110091009.8 and the application name "Graphic Display Method, Apparatus, Equipment and Medium" filed on January 22, 2021, the entire contents of which are incorporated into this application by reference.
技术领域technical field
本公开涉及图像处理技术领域,尤其涉及一种图形显示方法、装置、设备及介质。The present disclosure relates to the technical field of image processing, and in particular, to a graphic display method, apparatus, device, and medium.
背景技术Background technique
目前,巧板类游戏作为一种益智教具经常出现在各类教育游戏中。在用户进入巧板类游戏之后,会给出一道拼图题目,用户可以对照拼图题目进行拼图。然而,目前的巧板类游戏在用户进行拼图的过程中由于拼图不规范会导致答案匹配存在各种问题,并且不具有交互功能,使得巧板类游戏的可玩性和互动性较低,降低了用户的体验。At present, puzzle games often appear in various educational games as a kind of educational aids. After the user enters the puzzle game, a puzzle title will be given, and the user can make a puzzle according to the puzzle title. However, in the current puzzle game, in the process of users doing puzzles, due to the irregularity of the puzzles, there will be various problems in answer matching, and there is no interactive function, so that the playability and interactivity of the puzzle game is low, reducing the user experience.
发明内容SUMMARY OF THE INVENTION
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种图形显示方法、装置、设备及介质。In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a graphic display method, apparatus, device and medium.
第一方面,本公开提供了一种图形显示方法,包括:In a first aspect, the present disclosure provides a graphic display method, including:
显示目标图形;display target graphics;
获取实时图像,实时图像为包括待检测拼块实物的图像;Obtain a real-time image, and the real-time image is an image including the real object to be detected;
在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,目标形状区域为目标拼块实物在目标图形中的相对摆放区域。When it is determined that there is a correctly placed target piece in the object to be detected, the target fill pattern is displayed in the target shape area in the target graphic, and the target shape area is the relative position of the target piece in the target graphic. placement area.
第二方面,本公开提供了一种图形显示装置,包括:In a second aspect, the present disclosure provides a graphic display device, comprising:
第一显示单元,配置为显示目标图形;a first display unit, configured to display a target graphic;
图像获取单元,配置为获取实时图像,实时图像为包括待检测拼块实物的图像;以及an image acquisition unit configured to acquire a real-time image, the real-time image being an image including the actual pieces to be detected; and
第二显示单元,配置为在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,目标形状区域为目标拼块实物在目标图形中的相对摆放区域。The second display unit is configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target block when it is determined that there is a correctly placed target block in the actual block to be detected. The relative placement area of the object in the target graphic.
第三方面,本公开提供了一种图形显示设备,包括:In a third aspect, the present disclosure provides a graphics display device, comprising:
处理器;processor;
存储器,用于存储可执行指令;memory for storing executable instructions;
其中,处理器用于从存储器中读取可执行指令,并执行可执行指令以实现第一方面所述的图形显示方法。The processor is configured to read executable instructions from the memory and execute the executable instructions to implement the graphic display method described in the first aspect.
第四方面,本公开提供了一种计算机可读存储介质,该存储介质存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现第一方面所述的图形显示方法。In a fourth aspect, the present disclosure provides a computer-readable storage medium, where the storage medium stores a computer program, and when the computer program is executed by a processor, enables the processor to implement the graphic display method described in the first aspect.
第五方面,本公开提供了一种计算机程序产品,该计算机程序产品包括计算机程序, 当计算机程序被处理器执行时,使得处理器实现第一方面所述的图形显示方法。In a fifth aspect, the present disclosure provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, causes the processor to implement the graphic display method described in the first aspect.
本公开实施例提供的技术方案与现有技术相比至少具有如下优点:Compared with the prior art, the technical solutions provided by the embodiments of the present disclosure have at least the following advantages:
本公开实施例的图形显示方法、装置、设备及介质,能够显示目标图形,并且在用户进行拼图的过程中,获取包括待检测拼块实物的实时图像,进而在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,由于该目标形状区域为目标拼块实物在目标图形中的相对摆放区域,使得巧板类游戏在用户进行拼图的过程中,不仅能够自动准确地进行答案匹配,还可以对用户摆放正确的目标拼块实物进行实时提示,实现了与用户的实时互动,提高了巧板类游戏的可玩性和互动性,进而提升了用户的体验。The graphic display method, device, device, and medium of the embodiments of the present disclosure can display the target graphic, and in the process of the user performing the puzzle, obtain a real-time image including the real object to be detected, and then determine the existence of the real object to be detected. In the case of placing the correct target piece, the target fill pattern will be displayed in the target shape area in the target figure. Since the target shape area is the relative placement area of the target piece in the target figure, the trick is In the process of jigsaw puzzles, the game can not only automatically and accurately match the answers, but also give real-time prompts to the user to place the correct target pieces, which realizes real-time interaction with users and improves the quality of puzzle games. Playability and interactivity, thereby enhancing the user experience.
附图说明Description of drawings
结合附图并参考以下具体实施方式,本公开各实施例的上述和其他特征、优点及方面将变得更加明显。贯穿附图中,相同或相似的附图标记表示相同或相似的元素。应当理解附图是示意性的,原件和元素不一定按照比例绘制。The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent when taken in conjunction with the accompanying drawings and with reference to the following detailed description. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
图1为相关技术中的一种图形显示的场景图;1 is a scene diagram of a graphical display in the related art;
图2为本公开实施例提供的一种图形显示方法的流程示意图;FIG. 2 is a schematic flowchart of a graphic display method according to an embodiment of the present disclosure;
图3为本公开实施例提供的一种游戏界面的示意图;3 is a schematic diagram of a game interface provided by an embodiment of the present disclosure;
图4为本公开实施例提供的一种重心距离的示意图;4 is a schematic diagram of a center of gravity distance according to an embodiment of the present disclosure;
图5为本公开实施例提供的另一种游戏界面的示意图;FIG. 5 is a schematic diagram of another game interface provided by an embodiment of the present disclosure;
图6为本公开实施例提供的一种实物角度参数的示意图;6 is a schematic diagram of a physical angle parameter provided by an embodiment of the present disclosure;
图7为本公开实施例提供的一种匹配拼图图形的示意图;FIG. 7 is a schematic diagram of a matching puzzle pattern provided by an embodiment of the present disclosure;
图8为本公开实施例提供的一种几何参数的示意图;FIG. 8 is a schematic diagram of a geometric parameter provided by an embodiment of the present disclosure;
图9为本公开实施例提供的又一种游戏界面的示意图;FIG. 9 is a schematic diagram of another game interface provided by an embodiment of the present disclosure;
图10为本公开实施例提供的一种图形显示装置的结构示意图;FIG. 10 is a schematic structural diagram of a graphic display device according to an embodiment of the present disclosure;
图11为本公开实施例提供的一种图形显示设备的结构示意图。FIG. 11 is a schematic structural diagram of a graphic display device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图更详细地描述本公开的实施例。虽然附图中显示了本公开的某些实施例,然而应当理解的是,本公开可以通过各种形式来实现,而且不应该被解释为限于这里阐述的实施例,相反提供这些实施例是为了更加透彻和完整地理解本公开。应当理解的是,本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for the purpose of A more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes, and are not intended to limit the protection scope of the present disclosure.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this regard.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语 的相关定义将在下文描述中给出。As used herein, the term "including" and variations thereof are open-ended inclusions, ie, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the description below.
需要注意,本公开中提及的“第一”、“第二”等概念仅用于对不同的装置、模块或单元进行区分,并非用于限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。It should be noted that the modifications of "a" and "a plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless the context clearly indicates otherwise, they should be understood as "one or a plurality of". multiple".
本公开实施方式中的多个装置之间所交互的消息或者信息的名称仅用于说明性的目的,而并不是用于对这些消息或信息的范围进行限制。The names of messages or information exchanged between multiple devices in the embodiments of the present disclosure are only for illustrative purposes, and are not intended to limit the scope of these messages or information.
图1示出了相关技术中的一种图形显示的场景图。FIG. 1 shows a scene graph of a graphical display in the related art.
如图1所示,在用户通过电子设备101进入巧板类游戏的游戏界面102之后,游戏界面102内会显示一个指定图形103,该图形103即为一道拼图题目,用户可以利用巧板的拼块104对照图形103进行拼图。As shown in FIG. 1 , after the user enters the game interface 102 of the puzzle game through the electronic device 101, a designated graphic 103 will be displayed in the game interface 102, and the graphic 103 is a puzzle problem, and the user can use the puzzle puzzle Block 104 puzzles against graph 103 .
在用户完成拼图之后,用户可以通过电子设备101进入巧板类游戏的答案展示界面,该答案展示界面内可以展示有预先设计的该拼图题目的拼图答案,用户可以将拼图图案与拼图答案进行比对,如果拼图图案与任意一种拼图答案相同,则可以确定拼图正确,进而实现对拼图结果的自我检查。After the user completes the puzzle, the user can enter the answer display interface of the puzzle game through the electronic device 101. The answer display interface can display the pre-designed puzzle answer of the puzzle title, and the user can compare the puzzle pattern with the puzzle answer. Yes, if the puzzle pattern is the same as any one of the puzzle answers, it can be determined that the puzzle is correct, and then the self-check of the puzzle result can be realized.
可见,目前的巧板类游戏在用户进行拼图的过程中,有可能由于拼图不规范会导致答案匹配存在各种问题,并且不具有交互功能,使得巧板类游戏的可玩性和互动性较低,降低了用户的体验。It can be seen that in the current puzzle game, in the process of users doing puzzles, there may be various problems in answer matching due to the irregularity of the puzzles, and there is no interactive function, which makes the playability and interactivity of the puzzle game relatively low. low, reducing the user experience.
为了解决上述的问题,本公开实施例提供了一种能够与用户进行实时互动的图形显示方法、装置、设备及介质。In order to solve the above problems, the embodiments of the present disclosure provide a graphic display method, apparatus, device and medium capable of real-time interaction with a user.
下面,首先对本公开实施例提供的图形显示方法进行说明。Below, the graphic display method provided by the embodiment of the present disclosure is first described.
在本公开一些实施例中,图形显示方法可以由电子设备执行。其中,电子设备可以包括移动电话、平板电脑、台式计算机、笔记本电脑、车载终端、可穿戴电子设备、一体机、智能家居设备等具有通信功能的设备,也可以是虚拟机或者模拟器模拟的设备。In some embodiments of the present disclosure, the graphic display method may be performed by an electronic device. Among them, electronic devices may include mobile phones, tablet computers, desktop computers, notebook computers, vehicle-mounted terminals, wearable electronic devices, all-in-one computers, smart home devices and other devices with communication functions, and may also be virtual machines or devices simulated by simulators .
图2示出了本公开实施例提供的一种图形显示方法的流程示意图。FIG. 2 shows a schematic flowchart of a graphic display method provided by an embodiment of the present disclosure.
如图2所示,该图形显示方法可以包括如下步骤。As shown in FIG. 2 , the graphic display method may include the following steps.
S210、显示目标图形。S210. Display the target graphic.
在本公开实施例中,电子设备可以显示有目标图形,用户可以利用巧板的拼块对照目标图形进行拼图。In the embodiment of the present disclosure, the electronic device may display the target graphic, and the user may use the puzzle pieces to perform puzzles against the target graphic.
其中,巧板可以为任意类型的巧板,例如,目标巧板可以为四巧板、五巧板、七巧板、十三巧板等,在此不作限制。Wherein, the puzzles can be any type of puzzles, for example, the target puzzles can be four puzzles, pentagons, tangrams, thirteen puzzles, etc., which are not limited here.
在本公开实施例中,目标图形可以在任意位置显示,在此不作限制。In this embodiment of the present disclosure, the target graphic may be displayed at any position, which is not limited herein.
S220、获取实时图像,实时图像为包括待检测拼块实物的图像。S220. Acquire a real-time image, where the real-time image is an image including the real object to be detected.
在用户拼图的过程中,用户还可以通过电子设备的摄像头如后置摄像头,实时地采集包括待检测拼块实物的实时图像,使电子设备可以实时地同步获取实时图像。In the process of the user's puzzle, the user can also collect real-time images including the real objects to be detected through the camera of the electronic device, such as a rear camera, so that the electronic device can obtain the real-time image synchronously in real time.
在一些实施例中,电子设备在获取实时图像之后,可以不显示实时图像。In some embodiments, the electronic device may not display the real-time image after acquiring the real-time image.
在另一些实施例中,电子设备在获取实时图像之后,可以实时地与目标图形同步显示 实时图像。In other embodiments, after acquiring the real-time image, the electronic device may display the real-time image synchronously with the target graphic in real time.
以巧板类游戏为例,在用户通过电子设备进入巧板类游戏的游戏界面之后,游戏界面内会显示一个指定的目标图形,该目标图形即为一道拼图题目,用户可以利用巧板的拼块对照目标图形进行拼图。在用户拼图的过程中,用户还可以通过电子设备的摄像头实时地采集包括待检测拼块实物的实时图像,并可以进一步使得游戏界面内可以实时地显示该实时图像,进而使电子设备可以实时地在游戏界面内同时显示目标图形和实时图像。Taking the puzzle game as an example, after the user enters the game interface of the puzzle game through the electronic device, a specified target graphic will be displayed in the game interface, and the target graphic is a jigsaw puzzle. The blocks are puzzled against the target graphics. In the process of the user's puzzle, the user can also collect the real-time image including the real object to be detected through the camera of the electronic device in real time, and can further enable the real-time image to be displayed in the game interface in real time, so that the electronic device can real-time display the real-time image. Simultaneous display of target graphics and live images within the game interface.
可选地,目标图形和实时图像可以在电子设备上按照预设显示方式进行显示。其中,预设显示方式可以根据需要预先设置,在此不作限制。Optionally, the target graphics and real-time images can be displayed on the electronic device in a preset display manner. The preset display mode may be preset as required, which is not limited herein.
在一些实施例中,预设显示方式可以为实时图像全屏显示,目标图形在实时图像上的任意位置显示。例如,电子设备的显示屏幕可以全屏显示实时图像,目标图形可以叠加显示于实时图像的一角。In some embodiments, the preset display mode may be full-screen display of the real-time image, and the target graphic is displayed at any position on the real-time image. For example, the display screen of the electronic device can display the real-time image in full screen, and the target graphics can be superimposed and displayed in a corner of the real-time image.
继续以巧板类游戏为例,游戏界面可以全屏显示拍摄预览界面,拍摄预览界面内可以实时地显示电子设备处于工作状态的摄像头所采集的实时图像,目标图形可以叠加显示于拍摄预览界面的一角。Continuing to take the puzzle game as an example, the game interface can display the shooting preview interface in full screen, and the real-time image collected by the camera in the working state of the electronic device can be displayed in the shooting preview interface in real time, and the target graphics can be superimposed and displayed in a corner of the shooting preview interface. .
图3示出了本公开实施例提供的一种游戏界面的示意图。FIG. 3 shows a schematic diagram of a game interface provided by an embodiment of the present disclosure.
如图3所示,电子设备301可以显示有巧板类游戏的游戏界面302,游戏界面302内可以全屏显示实时图像303,实时图像303的左下角可以叠加显示目标图形304。As shown in FIG. 3 , the electronic device 301 can display a game interface 302 of a puzzle game, a real-time image 303 can be displayed in full screen in the game interface 302 , and a target graphic 304 can be superimposed on the lower left corner of the real-time image 303 .
在另一些实施例中,预设显示方式还可以为目标图形和实时图像分屏显示。具体地,电子设备的显示屏幕可以被划分为两个显示区域,一个显示区域内显示有目标图形,一个显示区域内显示有实时图像。In other embodiments, the preset display manner may also be split-screen display of the target graphics and the real-time image. Specifically, the display screen of the electronic device can be divided into two display areas, one display area displays the target graphic, and the other display area displays the real-time image.
继续以巧板类游戏为例,游戏界面可以被划分为两个显示区域,一个显示区域可以显示目标图形,另一个显示区域可以显示拍摄预览界面,拍摄预览界面内可以实时地显示电子设备处于工作状态的摄像头所采集的实时图像。Continuing to take the puzzle game as an example, the game interface can be divided into two display areas, one display area can display the target graphics, the other display area can display the shooting preview interface, and the shooting preview interface can display the working electronic equipment in real time. The real-time image captured by the status camera.
在又一些实施例中,预设显示方式还可以为其他显示方式,本公开不对具体的显示方式进行限制。In still other embodiments, the preset display manner may also be other display manners, and the present disclosure does not limit the specific display manner.
S230、在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,目标形状区域为目标拼块实物在目标图形中的相对摆放区域。S230. In the case where it is determined that there is a correctly placed target piece in the real pieces to be detected, display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target piece in the target graphic. relative placement area.
在本公开实施例中,电子设备可以实时地检测待检测拼块实物中是否存在摆放正确的目标拼块实物,如果确定待检测拼块实物中存在目标拼块实物,则可以将目标拼块实物在目标图形中的相对摆放区域作为目标图形中的目标形状区域,并且在目标形状区域内显示目标填充图案,以点亮目标拼块实物在目标图形中的相对摆放区域。In the embodiment of the present disclosure, the electronic device can detect in real time whether there is a correctly placed target piece in the real pieces to be detected, and if it is determined that there is a target piece in the real pieces to be detected, the target piece can be The relative placement area of the object in the target graphic is used as the target shape area in the target graphic, and the target fill pattern is displayed in the target shape area to light up the relative placement area of the target piece in the target graphic.
可选地,目标填充图案可以为目标形状区域对应的填充图案。Optionally, the target filling pattern may be a filling pattern corresponding to the target shape area.
在一些实施例中,目标图形中的每个形状区域对应的填充图案相同,即目标填充图案为预先设置的固定填充图案。In some embodiments, the filling pattern corresponding to each shape region in the target graphic is the same, that is, the target filling pattern is a preset fixed filling pattern.
可选地,填充图案可以包括纯色图案和花纹图案中的至少一种。Optionally, the filling pattern may include at least one of a solid color pattern and a pattern pattern.
继续参见图3,电子设备301可以在检测到第一拼块实物305、第二拼块实物306、第 三拼块实物307和第四拼块实物308摆放正确的情况下,将目标图形304中的第一形状区域309、第二形状区域310、第三形状区域311和第四形状区域312分别显示为灰色。其中,第一形状区域309为第一拼块实物305在目标图形304中的相对摆放区域,第二形状区域310为第二拼块实物306在目标图形304中的相对摆放区域,第三形状区域311为第三拼块实物307在目标图形304中的相对摆放区域,第四形状区域312为第四拼块实物308在目标图形304中的相对摆放区域。Continuing to refer to FIG. 3 , the electronic device 301 can display the target graphic 304 when it is detected that the first real object 305 , the second real object 306 , the third real object 307 and the fourth real object 308 are placed correctly. The first shape region 309 , the second shape region 310 , the third shape region 311 , and the fourth shape region 312 are displayed in gray, respectively. The first shape area 309 is the relative placement area of the first real piece 305 in the target graphic 304, the second shape area 310 is the relative placement area of the second real patch 306 in the target graphic 304, and the third The shape area 311 is the relative placement area of the third physical piece 307 in the target graphic 304 , and the fourth shape area 312 is the relative placement area of the fourth physical real piece 308 in the target graphic 304 .
由此,在本公开实施例中,可以通过在目标形状区域中显示预先设置的固定填充图案,来达到点亮目标拼块实物在目标图形中的相对摆放区域的效果。Therefore, in the embodiment of the present disclosure, the preset fixed filling pattern can be displayed in the target shape area, so as to achieve the effect of lighting up the relative placement area of the target piece in the target shape.
在另一些实施例中,目标图形中的每个形状区域对应的填充图案可以不同,一个形状区域可以对应一个填充图案,并且每个形状区域对应的填充图案可以根据该形状区域对应的拼块实物的实物图案确定。在一个示例中,一个形状区域对应的填充图案可以为具有该形状区域对应的拼块实物的实物颜色的纯色图案。在另一个示例中,一个形状区域对应的填充图案可以为该形状区域对应的拼块实物的实物图案。In other embodiments, the filling pattern corresponding to each shape region in the target graphic may be different, one shape region may correspond to one filling pattern, and the filling pattern corresponding to each shape region may be based on the actual piece of the piece corresponding to the shape region The actual pattern is determined. In one example, the filling pattern corresponding to a shape area may be a solid color pattern having the actual color of the actual piece of the piece corresponding to the shape area. In another example, the filling pattern corresponding to a shape area may be the actual pattern of the actual piece of the block corresponding to the shape area.
由此,在本公开实施例中,可以通过在目标形状区域中显示该目标形状区域指定的填充图案,在达到点亮目标拼块实物在目标图形中的相对摆放区域的效果的同时,进一步提高目标图形的点亮效果。Therefore, in the embodiment of the present disclosure, by displaying the filling pattern specified by the target shape region in the target shape region, while achieving the effect of lighting up the relative placement region of the target piece in the target shape, further Improves the lighting effect of target graphics.
在本公开实施例中能够显示目标图形,并且在用户进行拼图的过程中,获取包括待检测拼块实物的实时图像,进而在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,由于该目标形状区域为目标拼块实物在目标图形中的相对摆放区域,使得巧板类游戏在用户进行拼图的过程中,不仅能够自动准确地进行答案匹配,还可以对用户摆放正确的目标拼块实物进行实时提示,实现了与用户的实时互动,提高了巧板类游戏的可玩性和互动性,进而提升了用户的体验。In the embodiment of the present disclosure, the target graphic can be displayed, and in the process of the user performing the puzzle, the real-time image including the real object to be detected is obtained, and then it is determined that there is a correct placement of the real object of the object to be detected in the real object to be detected. In this case, in the target shape area in the target graph, the target fill pattern is displayed. Since the target shape area is the relative placement area of the target piece in the target graph, the puzzle game is in the process of the user doing the jigsaw puzzle. , not only can automatically and accurately match the answer, but also can prompt the user to place the correct target piece in real time, realize real-time interaction with the user, improve the playability and interactivity of puzzle games, and further improve the user experience.
在本公开一种实施方式中,实时图像可以进一步为包括至少两个拼块实物的图像。In an embodiment of the present disclosure, the real-time image may further be an image including at least two physical objects.
在一些实施例中,至少两个拼块实物均可以作为待检测拼块实物。In some embodiments, at least two physical pieces can be used as the physical pieces to be detected.
在这些实施例中,电子设备可以在实时图像所显示的全部拼块实物中,检测摆放正确的目标拼块实物。In these embodiments, the electronic device can detect the correctly placed target piece among all the pieces displayed in the real-time image.
在另一些实施例中,至少两个拼块实物中的一部分拼块实物可以作为待检测拼块实物,另一部分拼块实物可以作为非待检测拼块实物。其中,待检测拼块实物可以为用于进行目标拼块实物检测的拼块实物,非待检测拼块实物可以为不用于进行目标拼块实物检测的拼块实物。In other embodiments, a part of the real pieces of the at least two real pieces can be used as the real pieces to be detected, and the other part of the real pieces can be used as the real pieces of the non-to-be-detected pieces. Wherein, the actual pieces to be detected may be the actual pieces used for the physical detection of the target pieces, and the actual pieces of the non-to-be-detected pieces may be the actual pieces that are not used for the physical detection of the target pieces.
在这些实施例中,待检测拼块实物可以为根据拼块实物之间的重心距离所确定的拼块实物。In these embodiments, the actual pieces to be detected may be the actual pieces determined according to the distance between the centers of gravity of the actual pieces.
图4示出了本公开实施例提供的一种重心距离的示意图。FIG. 4 shows a schematic diagram of a center of gravity distance provided by an embodiment of the present disclosure.
如图4所示,第一拼块实物401和第二拼块实物402均为等腰直角三角形,因此,第一拼块实物401和第二拼块实物402的重心均为斜边中点,第一拼块实物401和第二拼块实物402之间的重心距离可以为第一拼块实物401和第二拼块实物402的斜边中点连线403的长度。As shown in FIG. 4 , the first real piece 401 and the second real piece 402 are both isosceles right-angled triangles. Therefore, the center of gravity of the first real piece 401 and the second real piece 402 is the midpoint of the hypotenuse, The center of gravity distance between the first real piece 401 and the second real piece 402 may be the length of the line 403 connecting the midpoints of the hypotenuses of the first real piece 401 and the second real piece 402 .
在本公开一些实施例中,为了可靠地检测出目标拼块实物,在图2所示的S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物之前,该图形显示方法还可以包括:In some embodiments of the present disclosure, in order to reliably detect the actual target piece, before determining that there is a correctly placed target piece in the actual piece to be detected in S220 shown in FIG. 2 , the graphic display method further includes: Can include:
根据拼块实物之间的重心距离,确定拼块实物中的待检测拼块实物。According to the center-of-gravity distance between the actual pieces, the actual pieces to be detected in the actual pieces are determined.
在本公开实施例中,电子设备可以在获取到实时图像之后,确定实时图像中的各个拼块实物之间的重心距离,并且根据拼块实物之间的重心距离,确定拼块实物中的待检测拼块实物,避免由于拼图不规范所导致的答案匹配不准的问题。In the embodiment of the present disclosure, after acquiring the real-time image, the electronic device may determine the center-of-gravity distance between the actual pieces in the real-time image, and determine the distance between the centers of gravity of the actual pieces to be determined according to the distance between the centers of gravity between the actual pieces Detect the actual pieces of the puzzle to avoid the problem of inaccurate answer matching caused by irregular puzzle pieces.
可选地,根据拼块实物之间的重心距离,确定拼块实物中的待检测拼块实物可以具体包括:Optionally, according to the center-of-gravity distance between the actual pieces, it is determined that the actual pieces to be detected in the actual pieces may specifically include:
根据重心距离,对拼块实物进行分组,得到至少一组拼块实物组,每组拼块实物组中的各个拼块实物之间的重心距离均小于或等于预设距离阈值;According to the distance of the center of gravity, the physical pieces are grouped to obtain at least one group of physical pieces, and the distance of the center of gravity between the physical pieces of each group of physical pieces is less than or equal to the preset distance threshold;
将拼块实物数量最多的拼块实物组中的拼块实物作为待检测拼块实物。The actual pieces in the actual piece group with the largest number of pieces are taken as the actual pieces to be detected.
在本公开实施例中,电子设备内预先设置有该目标图形对应的最大重心距离,该最大重心距离即为预设距离阈值。电子设备在确定实时图像中的各个拼块实物之间的重心距离之后,可以将相互之间重心距离小于或等于预设距离阈值的拼块实物分为一组,得到至少一组拼块实物组,并且将拼块实物数量最多的一组拼块实物组中的拼块实物所形成的拼图实物作为待检测拼图实物,该待检测拼图实物即为实时图像中的最大联通子图,并且将拼块实物数量最多的拼块实物组中的拼块实物作为待检测拼块实物。In the embodiment of the present disclosure, the electronic device is preset with a maximum center-of-gravity distance corresponding to the target graphic, and the maximum center-of-gravity distance is a preset distance threshold. After the electronic device determines the center-of-gravity distance between the physical pieces in the real-time image, it can group the physical pieces whose center-of-gravity distance is less than or equal to the preset distance threshold into a group, and obtain at least one group of physical pieces. , and take the actual jigsaw puzzle formed by the actual pieces in the group with the largest number of pieces as the actual jigsaw to be detected, and the actual jigsaw to be detected is the largest connected sub-picture in the real-time image, and will The physical pieces in the physical piece group with the largest number of physical pieces are used as the physical pieces to be detected.
需要说明的是,预设距离阈值可以为根据需要设置的可以确定实时图像中的最大联通子图的距离值,在此不作限制。It should be noted that the preset distance threshold may be a distance value that can be set as required and can determine the maximum connected sub-graph in the real-time image, which is not limited herein.
图5示出了本公开实施例提供的另一种游戏界面的示意图。FIG. 5 shows a schematic diagram of another game interface provided by an embodiment of the present disclosure.
如图5所示,电子设备501可以显示有巧板类游戏的游戏界面502,游戏界面502内可以全屏显示实时图像503,实时图像503的左下角可以叠加显示目标图形504。实时图像503内显示有第一拼块实物505、第二拼块实物506、第三拼块实物507、第四拼块实物508、第五拼块实物509和第六拼块实物510。电子设备501可以根据各个拼块实物之间的重心距离对第一拼块实物505、第二拼块实物506、第三拼块实物507、第四拼块实物508、第五拼块实物509和第六拼块实物510进行聚类,将相互之间的重心距离都小于或等于预设距离阈值的几个拼块实物分为一组。由于第一拼块实物505、第二拼块实物506、第三拼块实物507和第四拼块实物508这四个拼块实物相互之间的重心距离均小于或等于预设距离阈值、第五拼块实物509和第六拼块实物510这两个拼块实物相互之间的重心距离均小于或等于预设距离阈值,而第一拼块实物505、第二拼块实物506、第三拼块实物507和第四拼块实物508中存在至少一个拼块实物与第五拼块实物509之间的重心距离大于预设距离阈值、第一拼块实物505、第二拼块实物506、第三拼块实物507和第四拼块实物508中存在至少一个拼块实物与第六拼块实物510之间的重心距离大于预设距离阈值,由此可以将6个拼块实物分为两个拼块实物组。其中,第一拼块实物505、第二拼块实物506、第三拼块实物507和第四拼块实物508这个拼块实物组中的拼块实物数量比第五拼块实物509和第六拼块实物510这个拼块实物组中的拼块实物数量多,因此,可以将第一拼块实物505、第二拼块实物506、第三拼块实物507和第四拼块实物508作为待检测拼块实物,将第五 拼块实物509和第六拼块实物510作为非待检测拼块实物。As shown in FIG. 5 , the electronic device 501 can display a game interface 502 of a puzzle game, a real-time image 503 can be displayed in full screen in the game interface 502 , and a target graphic 504 can be superimposed on the lower left corner of the real-time image 503 . The real-time image 503 displays the first real piece 505 , the second real piece 506 , the third real piece 507 , the fourth real piece 508 , the fifth real piece 509 and the sixth real piece 510 . The electronic device 501 can compare the first physical piece 505, the second physical piece 506, the third physical piece 507, the fourth physical piece 508, the fifth physical piece 509, and the The sixth physical pieces 510 are clustered, and several physical pieces of which the distance between the centers of gravity is less than or equal to the preset distance threshold are grouped into a group. Because the distance between the center of gravity of the four physical pieces of the first piece 505, the second piece 506, the third piece 507 and the fourth piece 508 is less than or equal to the preset distance threshold, the The center-of-gravity distance between the five physical pieces 509 and the sixth physical piece 510 is less than or equal to the preset distance threshold, while the first physical piece 505, the second physical piece 506, the third physical piece 506 and the third The distance between the center of gravity of at least one physical piece and the fifth physical piece 509 is greater than the preset distance threshold, the first physical piece 505, the physical second piece 506, In the third physical piece 507 and the fourth physical piece 508, there is at least one physical piece and the distance between the center of gravity of the physical piece 510 and the sixth physical piece 510 is greater than the preset distance threshold, so that the six physical pieces can be divided into two A group of physical pieces. Among them, the number of physical pieces in the physical piece group of the first piece 505, the second piece 506, the third piece 507 and the fourth piece 508 is higher than that of the fifth piece 509 and the sixth piece. The actual pieces 510 have a large number of pieces in this group of actual pieces. Therefore, the first piece 505, the second piece 506, the third piece 507, and the fourth piece 508 can be used as the waiting pieces. The actual pieces of the pieces are detected, and the actual pieces of the fifth piece 509 and the actual pieces of the sixth piece 510 are regarded as the actual pieces of the pieces not to be detected.
由此,在本公开实施例中,电子设备可以在实时图像中准确地找到需要进行检测的待检测拼块实物,进而在待检测拼块实物中检测目标拼块实物,不但能够提高对目标拼块实物的检测效率,还能够提高对目标拼块实物的检测结果的可靠性。Therefore, in the embodiment of the present disclosure, the electronic device can accurately find the real object to be detected that needs to be detected in the real-time image, and then detect the real object of the target mosaic in the real object to be detected, which can not only improve the accuracy of the target mosaic The detection efficiency of the actual block can also be improved, and the reliability of the detection result of the target block can be improved.
在本公开另一种实施方式中,图2所示的S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物可以具体包括:In another embodiment of the present disclosure, in S220 shown in FIG. 2 , determining that there is a correctly placed target piece in the real pieces to be detected may specifically include:
根据待检测拼块实物之间的重心距离和待检测拼块实物的实物角度参数,检测待检测拼块实物中的目标拼块实物;According to the distance of the center of gravity between the objects to be detected and the physical angle parameters of the objects to be detected, detect the object objects in the objects to be detected;
在检测到目标拼块实物的情况下,确定待检测拼块实物中存在目标拼块实物。In the case of detecting the physical object of the target piece, it is determined that there is a physical object of the target piece in the physical piece to be detected.
在本公开实施例中,电子设备可以在获取到实时图像之后,确定实时图像中的各个拼块实物之间的重心距离和各个待检测拼块实物的实物角度参数,并且根据重心距离和实物角度参数,检测待检测拼块实物中的目标拼块实物,如果检测到目标拼块实物,则确定待检测拼块实物中存在目标拼块实物,否则,确定待检测拼块实物中不存在目标拼块实物,避免由于拼图不规范所导致的答案匹配不准的问题。In this embodiment of the present disclosure, after acquiring the real-time image, the electronic device may determine the center of gravity distance between the real pieces of the real-time image and the physical angle parameters of each real piece to be detected, and determine the distance between the centers of gravity and the real object angle according to the distance between the centers of gravity and the real object angle parameter, to detect the target piece in the object to be detected, if the object of the object to be detected is detected, it is determined that the object of the object to be detected exists in the object of the object to be detected, otherwise, it is determined that there is no object of the object to be detected. Block real objects to avoid the problem of inaccurate answers due to irregular puzzles.
其中,待检测拼块实物的实物角度参数可以包括待检测拼块实物的实物角度值和待检测拼块实物对应的实物角度向量中的至少一种。Wherein, the physical angle parameter of the actual piece to be detected may include at least one of a physical angle value of the actual piece to be detected and a physical angle vector corresponding to the actual piece to be detected.
在本公开实施例中,每个待检测拼块实物预先设置有预设数量的顶点。其中,预设数量可以为巧板中的各个拼块实物自身角点的角点数量中的最大角点数量。In the embodiment of the present disclosure, each physical piece to be detected is preset with a preset number of vertices. The preset number may be the maximum number of corner points among the number of corner points of the actual corner points of each piece in the puzzle.
以巧板为七巧板为例,七巧板可以由7个拼块组成,一个拼块对应一个实物图案。7个拼块可以分别为两个第一三角形拼块、一个第二三角形拼块、两个第三三角形拼块、一个正方形拼块和一个平行四边形拼块。其中,两个第一三角形拼块为属性相同的拼块,两个第三三角形拼块为属性相同的拼块。第一三角形拼块、第二三角形拼块和第三三角形拼块的拼块面积依次减小。第二三角形拼块、正方形拼块和平行四边形拼块的拼块面积相同。可见,七巧板的中的各个拼块实物自身角点的最大角点数量为4,因此,预设数量可以为4。Taking the tangram as an example, the tangram can be composed of 7 pieces, and one piece corresponds to a real pattern. The 7 pieces can be respectively two first triangle pieces, one second triangle piece, two third triangle pieces, one square piece and one parallelogram piece. Among them, the two first triangle blocks are blocks with the same attributes, and the two third triangle blocks are blocks with the same attributes. The tile areas of the first triangular tile, the second triangular tile, and the third triangular tile decrease sequentially. The second triangular, square and parallelogram tiles have the same tile area. It can be seen that the maximum number of corner points of each piece in the tangram is 4, so the preset number can be 4.
在一些实施例中,若预设数量大于拼块实物自身角点的角点数量,则超出角点数量的顶点可以随机分配到拼块实物的各个边上,并且每个边上的顶点均匀布置。In some embodiments, if the preset number is greater than the number of corner points of the physical piece itself, the vertices exceeding the number of corner points can be randomly allocated to each edge of the physical piece, and the vertices on each edge are evenly arranged .
在另一些实施例中,若预设数量大于拼块实物自身角点的角点数量,则超出角点数量的顶点可以按照预设分配规则分配到拼块实物的各个边上,并且每个边上的顶点均匀布置。其中,预设分配规则可以根据需要预先设置,在此不做限制。In other embodiments, if the preset number is greater than the number of corner points of the actual piece of the puzzle itself, the vertices exceeding the number of corner points can be allocated to each edge of the actual piece of the puzzle according to the preset allocation rules, and each edge The vertices are evenly arranged. The preset allocation rules may be preset as required, which is not limited here.
继续以巧板为七巧板为例,三角形拼块的每个角点可以分别作为一个顶点,第四个顶点可以设置于三角形拼块的斜边中点上。Continuing to take the tangram as an example, each corner of the triangular piece can be used as a vertex, and the fourth vertex can be set on the midpoint of the hypotenuse of the triangular piece.
其中,每个待检测拼块实物的起始顶点和预设顶点顺序可以根据需要预先设置,在此不做限制。例如,预设顶点顺序可以为顺时针顺序,也可以为逆时针顺序。Wherein, the starting vertex and the preset vertex sequence of each actual piece to be detected can be preset as required, which is not limited here. For example, the preset vertex order can be either clockwise or counterclockwise.
可选地,实物角度值可以为待检测拼块实物中的第一目标顶点与第二目标顶点之间的连线与水平正方向之间的第一夹角的角度值。Optionally, the physical angle value may be the angle value of the first included angle between the connecting line between the first target vertex and the second target vertex in the physical piece to be detected and the horizontal positive direction.
其中,水平正方向可以根据需要预先设置,在此不作限制。The positive horizontal direction can be preset as required, which is not limited here.
进一步地,第一目标顶点可以为待检测拼块实物中具有第一编号的顶点,第二目标顶 点可以为待检测拼块实物中具有第二编号的顶点。Further, the first target vertex can be the vertex with the first number in the real piece of the piece to be detected, and the second target vertex can be the vertex with the second number in the real piece of the piece to be detected.
其中,第一编号和第二编号可以分别根据需要预先设置,并且第一编号与第二编号不同。Wherein, the first number and the second number can be preset according to requirements, respectively, and the first number and the second number are different.
在本公开实施例中,待检测拼块实物对应的实物角度向量可以根据待检测拼块实物与其他各个待检测拼块实物之间的相对角度生成。In the embodiment of the present disclosure, the physical angle vector corresponding to the physical object to be detected may be generated according to the relative angle between the physical object to be detected and each of the physical objects to be detected.
具体地,每两个待检测拼块实物之间的相对角度可以为这两个待检测拼块实物的第一目标顶点与第二目标顶点之间的连线之间的第二夹角的角度值。Specifically, the relative angle between each two real pieces to be detected may be the angle of the second included angle between the connecting line between the first target vertex and the second target vertex of the two real pieces to be detected value.
图6示出了本公开实施例提供的一种实物角度参数的示意图。FIG. 6 shows a schematic diagram of a physical angle parameter provided by an embodiment of the present disclosure.
如图6所示,第一拼块实物601的第一个顶点和第三个顶点之间的第一连线603与水平正方向如图中沿水平线608向右的方向之间的第一角度605为第一拼块实物601的实物角度值。第二拼块实物602的第一个顶点和第三个顶点之间的第二连线604与水平正方向如图中沿水平线608向右的方向之间的第二角度606为第二拼块实物602的实物角度值。其中,图中的箭头方向指的是连线方向。As shown in FIG. 6 , the first angle between the first connecting line 603 between the first vertex and the third vertex of the first physical piece 601 and the horizontal positive direction in the right direction along the horizontal line 608 in the figure 605 is the physical angle value of the first block object 601 . The second angle 606 between the second connecting line 604 between the first vertex and the third vertex of the second block object 602 and the horizontal positive direction in the right direction along the horizontal line 608 as shown in the figure is the second block The object angle value of the object 602 . Among them, the direction of the arrow in the figure refers to the connection direction.
继续参见图6,第一连线603与第二连线604之间的第三角度607为第一拼块实物601与第二拼块实物602之间的相对角度。Continuing to refer to FIG. 6 , the third angle 607 between the first connecting line 603 and the second connecting line 604 is the relative angle between the first real piece 601 and the second real piece 602 .
进一步地,待检测拼块实物之间的重心距离已在上文说明,在此不做赘述。Further, the center-of-gravity distance between the actual pieces to be detected has been described above, and will not be repeated here.
在本公开实施例中,可选地,根据待检测拼块实物之间的重心距离和待检测拼块实物的实物角度参数,检测待检测拼块实物中的目标拼块实物可以具体包括:In the embodiment of the present disclosure, optionally, according to the distance of the center of gravity between the physical pieces to be detected and the physical angle parameters of the physical pieces to be detected, detecting the physical object of the physical pieces to be detected may specifically include:
根据重心距离,在目标图形对应的参考拼图图形中,识别待匹配拼图图形,每个待匹配拼图图形包括多个待匹配拼块图形,每个待匹配拼图图形中的一个待匹配拼块图形对应一个待检测拼块实物;According to the center-of-gravity distance, in the reference puzzle figure corresponding to the target figure, identify the puzzle figure to be matched, each puzzle figure to be matched includes a plurality of piece figures to be matched, and one piece figure to be matched in each puzzle figure to be matched corresponds to A piece of material to be detected;
在待检测拼块实物中,检测实物角度参数与对应待匹配拼块图形满足预设的角度一致性条件的目标拼块实物。In the actual pieces to be detected, the angle parameters of the detected objects and the target pieces corresponding to the pattern of the pieces to be matched meet the preset angle consistency condition.
在本公开实施例中,电子设备内可以预先设置有目标图形对应的至少一个参考拼图图形,该参考拼图图形即为目标图形对应的拼图答案。In the embodiment of the present disclosure, at least one reference puzzle figure corresponding to the target figure may be preset in the electronic device, and the reference puzzle figure is the puzzle answer corresponding to the target figure.
电子设备可以首先在目标图形对应的参考拼图图形中,识别到与各个待检测拼块实物之间的重心距离相似的待匹配拼图图形,进而在待检测拼块实物中,检测实物角度参数与待匹配拼图图形所包括的拼块属性相同的待匹配拼块图形满足预设的角度一致性条件的目标拼块实物,该目标拼块实物即为摆放正确的拼块实物,由此,可以在检测到目标拼块实物的情况下,确定待检测拼块实物中存在目标拼块实物。The electronic device can first identify the puzzle graphics to be matched that are similar to the center-of-gravity distance between the real objects to be detected in the reference puzzle graphics corresponding to the target graphics, and then, in the real objects to be detected, detect the angle parameters of the real objects and the objects to be detected. Matching puzzle graphics include the target puzzle pieces whose attributes are the same as the pieces to be matched and meet the preset angle consistency condition. The target piece is the right piece. In the case of detecting the physical object of the target piece, it is determined that there is a physical object of the target piece in the physical piece to be detected.
可选地,根据重心距离,在目标图形对应的参考拼图图形中,识别待匹配拼图图形可以具体包括:Optionally, according to the center of gravity distance, in the reference jigsaw graph corresponding to the target graph, identifying the jigsaw graph to be matched may specifically include:
生成重心距离对应的实物邻接矩阵;Generate the physical adjacency matrix corresponding to the center of gravity distance;
将每个参考拼图图形对应的参考邻接矩阵分别与实物邻接矩阵进行按位与计算,得到每个参考邻接矩阵对应的计算结果;Perform bitwise AND calculation on the reference adjacency matrix corresponding to each reference jigsaw pattern with the physical adjacency matrix, to obtain the calculation result corresponding to each reference adjacency matrix;
将计算结果最大的参考邻接矩阵对应的参考拼图图形作为待匹配拼图图形。The reference puzzle figure corresponding to the reference adjacency matrix with the largest calculation result is used as the puzzle figure to be matched.
在本公开实施例中,电子设备可以预先设置有每个拼块实物对应的预设邻接距离。电 子设备可以将每两个待检测拼块实物之间的重心距离分别与该预设邻居距离进行比较,如果重心距离大于预设邻居距离,则将该重心距离的邻接值设置为0,否则,将该重心距离的邻接值设置为1。电子设备在得到全部的待检测拼块实物之间的重心距离对应的邻接值之后,可以按照各个拼块实物对应的预设拼块顺序进行排列,生成重心距离对应的实物邻接矩阵。In the embodiment of the present disclosure, the electronic device may be preset with a preset adjacency distance corresponding to each physical piece. The electronic device can compare the center of gravity distance between each two objects to be detected with the preset neighbor distance, and if the center of gravity distance is greater than the preset neighbor distance, the adjacency value of the center of gravity distance is set to 0, otherwise, Set the adjacency value for this barycentric distance to 1. After obtaining the adjacency values corresponding to the center-of-gravity distances between all the objects to be detected, the electronic device can arrange them according to the preset order of the blocks corresponding to the objects to be detected, and generate an adjacency matrix of objects corresponding to the center-of-gravity distances.
电子设备在生成实物邻接矩阵之后,可以获取每个参考拼图图形对应的参考邻接矩阵,并且将每个参考拼图图形对应的参考邻接矩阵分别与实物邻接矩阵进行按位与计算,得到每个参考邻接矩阵对应的计算结果,进而将计算结果最大的参考邻接矩阵对应的参考拼图图形作为待匹配拼图图形。After the electronic device generates the physical adjacency matrix, it can obtain the reference adjacency matrix corresponding to each reference puzzle pattern, and perform bitwise AND calculation between the reference adjacency matrix corresponding to each reference puzzle pattern and the physical adjacency matrix to obtain each reference adjacency matrix. The calculation result corresponding to the matrix, and then the reference puzzle figure corresponding to the reference adjacency matrix with the largest calculation result is used as the puzzle figure to be matched.
其中,待匹配拼块图形对应的参考角度向量可以在图2所示的S210之前生成,也可以在S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物之前生成,在此不做限制。并且参考邻接矩阵的生成方法与实物邻接矩阵的生成方法相似,在此不做赘述。Wherein, the reference angle vector corresponding to the pattern of the pieces to be matched can be generated before S210 shown in FIG. 2 , or can also be generated before it is determined in S220 that there is a correctly placed target piece in the actual pieces to be detected, here No restrictions. And the generation method of the reference adjacency matrix is similar to the generation method of the real adjacency matrix, and will not be repeated here.
可选地,待匹配拼图图形的数量可以为至少一个,即待匹配拼图图形的数量可以为1个,也可以为多个,在此不做限制。Optionally, the number of puzzle graphics to be matched may be at least one, that is, the number of puzzle graphics to be matched may be one or multiple, which is not limited herein.
图7示出了本公开实施例提供的一种匹配拼图图形的示意图。FIG. 7 shows a schematic diagram of a matching puzzle pattern provided by an embodiment of the present disclosure.
如图7所示,第一待匹配拼图图形705和第二待匹配拼图图形706中的各个待匹配拼块图形之间的重心距离与第一拼块实物701、第二拼块实物702、第三拼块实物703和第四拼块实物704相互之间的重心距离最为相似,使得第一拼块实物701、第二拼块实物702、第三拼块实物703和第四拼块实物704分别与在第一待匹配拼图图形705和第二待匹配拼图图形706中的属性相同的待匹配拼块图像的摆放位置相同,因此,按照第一拼块实物701、第二拼块实物702、第三拼块实物703和第四拼块实物704拼接得到的待检测拼图实物可以具有第一待匹配拼图图形705和第二待匹配拼图图形706这两个待匹配拼图图形。As shown in FIG. 7 , the center of gravity distance between each of the to-be-matched pieces in the first to-be-matched puzzle figure 705 and the second to-be-matched puzzle figure 706 is the The distance between the center of gravity of the third piece 703 and the fourth piece 704 is the most similar, so that the first piece 701, the second piece 702, the third piece 703 and the fourth piece 704 are respectively The placement positions of the images to be matched with the same attributes in the first to-be-matched puzzle figure 705 and the second to-be-matched puzzle figure 706 are the same. The actual puzzle to be detected obtained by splicing the third real piece 703 and the fourth real piece 704 may have two to-be-matched puzzle figures, a first to-be-matched puzzle figure 705 and a second to-be-matched puzzle figure 706 .
进一步地,角度一致性条件可以包括目标参数差值的加权和小于或等于目标加权和阈值,目标参数差值为实物角度参数与对应待匹配拼块图形的参考角度参数之间的参数差值,目标加权和阈值为实物角度参数对应的预设加权和阈值。Further, the angle consistency condition may include that the weighted sum of the target parameter difference is less than or equal to the target weighted sum threshold, and the target parameter difference is the parameter difference between the physical angle parameter and the reference angle parameter corresponding to the tile graphics to be matched, The target weight and threshold are preset weights and thresholds corresponding to the physical angle parameters.
在一些实施例中,在待检测拼块实物的实物角度参数包括待检测拼块实物的实物角度值的情况下,待匹配拼块图形的参考角度参数可以包括待匹配拼块图形的参考角度值。In some embodiments, when the physical angle parameter of the real piece to be detected includes the physical angle value of the real piece to be detected, the reference angle parameter of the graphic to be matched may include the reference angle value of the graphic to be matched .
其中,待匹配拼块图形的参考角度值可以在图2所示的S210之前确定,也可以在S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物之前确定,在此不做限制。并且待匹配拼块图形的参考角度值的确定方法与待检测拼块实物的实物角度值的确定方法相似,在此不做赘述。Wherein, the reference angle value of the pattern of the pieces to be matched may be determined before S210 shown in FIG. 2 , or may be determined before the actual object of the pieces to be detected is determined in S220 before a correctly placed target piece exists. make restrictions. In addition, the method for determining the reference angle value of the pattern of the pieces to be matched is similar to the method for determining the angle value of the actual object of the piece to be detected, and details are not described here.
在这些实施例中,可选地,角度一致性条件可以包括待检测拼块实物的实物角度值与待匹配拼块图形的参考角度值之间的角度差值的加权和小于或等于角度值对应的预设加权和阈值。In these embodiments, optionally, the angular consistency condition may include that the weighted sum of the angular differences between the physical angular value of the actual piece to be detected and the reference angular value of the pattern to be matched is less than or equal to the corresponding angular value. preset weights and thresholds.
在另一些实施例中,在待检测拼块实物的实物角度参数包括待检测拼块实物对应的实物角度向量的情况下,待匹配拼块图形的参考角度参数可以包括待匹配拼块图形对应的参考角度向量。In other embodiments, when the physical angle parameter of the real piece to be detected includes the physical angle vector corresponding to the real piece to be detected, the reference angle parameter of the graphic to be matched may include the corresponding angle of the graphic to be matched. Reference angle vector.
其中,待匹配拼块图形对应的参考角度向量可以在图2所示的S210之前确定,也可以在S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物之前确定,在此不做限制。并且待匹配拼块图形对应的参考角度向量的确定方法与待检测拼块实物对应的实物角度向量的确定方法相似,在此不做赘述。Wherein, the reference angle vector corresponding to the pattern of the pieces to be matched may be determined before S210 shown in FIG. 2 , or it may be determined before the actual object of the pieces to be detected is determined in S220 before a correctly placed target piece exists, here No restrictions. And the method for determining the reference angle vector corresponding to the pattern of the patch to be matched is similar to the method for determining the angle vector of the real object corresponding to the real object to be detected, and will not be repeated here.
在这些实施例中,可选地,角度一致性条件可以包括待检测拼块实物对应的实物角度向量与待匹配拼块图形对应的参考角度向量之间的向量差值的加权和小于或等于角度向量对应的预设加权和阈值。In these embodiments, optionally, the angle consistency condition may include that the weighted sum of the vector differences between the physical angle vector corresponding to the actual piece to be detected and the reference angle vector corresponding to the pattern of the to-be-matched piece is less than or equal to the angle The preset weight and threshold corresponding to the vector.
在又一些实施例中,在待检测拼块实物的实物角度参数包括待检测拼块实物的实物角度值和待检测拼块实物对应的实物角度向量的情况下,待匹配拼块图形的参考角度参数可以包括待匹配拼块图形的参考角度值和待匹配拼块图形对应的参考角度向量。In still other embodiments, when the physical angle parameters of the real pieces to be detected include the physical angle value of the real pieces to be detected and the physical angle vectors corresponding to the real pieces to be detected, the reference angle of the graphics of the pieces to be matched The parameters may include a reference angle value of the tile pattern to be matched and a reference angle vector corresponding to the tile pattern to be matched.
在这些实施例中,可选地,角度一致性条件可以包括上述的角度差值和向量差值的加权和小于或等于角度差值和向量差值对应的预设加权和阈值。In these embodiments, optionally, the angle consistency condition may include that the above-mentioned weighted sum of the angle difference and the vector difference is less than or equal to a preset weighted sum threshold corresponding to the angle difference and the vector difference.
需要说明的是,在本公开实施例中,各个角度参数的权重系数可以分别根据需要预先设置,并且各个权重系数均为(0,1]中的任意数值,在此不做限制。It should be noted that, in the embodiment of the present disclosure, the weight coefficients of each angle parameter may be preset as required, and each weight coefficient is any value in (0, 1], which is not limited here.
由此,在本公开实施例中,可以利用角度一致性条件准确地检测到与待匹配拼图图形中的待匹配拼块图形相匹配的目标拼块实物,即准确地检测出摆放正确的目标拼块实物。Therefore, in the embodiment of the present disclosure, the actual object pieces of the target pieces that match the pieces to be matched in the pieces of the puzzle pieces to be matched can be accurately detected by using the angular consistency condition, that is, the correctly placed target can be accurately detected. Pieces of real objects.
在本公开又一种实施方式中,为了准确地获取各个拼块实物之间的重心距离和每个拼块实物的实物角度参数,在图2所示的S220中的确定待检测拼块实物中存在摆放正确的目标拼块实物之前,该图形显示方法还可以包括:In yet another embodiment of the present disclosure, in order to accurately obtain the center of gravity distance between the physical pieces and the physical angle parameters of each physical piece, in the determination of the physical pieces to be detected in S220 shown in FIG. 2 , Until the correct physical object placement exists, the graphic display method may also include:
对实时图像进行几何解析,得到各个拼块实物的顶点位置;Perform geometric analysis on the real-time image to obtain the vertex position of each piece;
根据顶点位置,计算拼块实物之间的重心距离和拼块实物的实物角度参数。According to the vertex position, calculate the distance of the center of gravity between the physical pieces and the physical angle parameters of the physical pieces.
在本公开实施例中,电子设备可以在获取到实时图像之后,对实时图像进行几何解析,得到实时图像中的各个拼块实物的顶点位置如顶点坐标,然后,针对每个拼块实物,利用该拼块实物的顶点位置,计算该拼块实物的重心位置如重心坐标和实物角度值,进而利用各个拼块实物的重心位置和实物角度值,得到各个拼块实物之间的重心距离和各个拼块实物的实物角度参数。In the embodiment of the present disclosure, after acquiring the real-time image, the electronic device can perform geometric analysis on the real-time image to obtain the vertex positions of the real pieces of the real-time image, such as vertex coordinates, and then, for each real piece of the real-time image, use The vertex position of the actual piece, calculate the position of the center of gravity of the piece, such as the coordinates of the center of gravity and the angle value of the object, and then use the position of the center of gravity and the angle value of the actual piece to obtain the distance between the center of gravity and the angle of each piece. The physical angle parameters of the actual piece.
在本公开实施例中,每个拼块实物预先设置有预设数量的顶点。其中,预设数量可以为巧板中的各个拼块实物自身角点的角点数量中的最大角点数量。In the embodiment of the present disclosure, each physical piece is preset with a preset number of vertices. The preset number may be the maximum number of corner points among the number of corner points of the actual corner points of each piece in the puzzle.
以巧板为七巧板为例,七巧板可以由7个拼块组成,一个拼块对应一个实物图案。7个拼块可以分别为两个第一三角形拼块、一个第二三角形拼块、两个第三三角形拼块、一个正方形拼块和一个平行四边形拼块。其中,两个第一三角形拼块为属性相同的拼块,两个第三三角形拼块为属性相同的拼块。第一三角形拼块、第二三角形拼块和第三三角形拼块的拼块面积依次减小。第二三角形拼块、正方形拼块和平行四边形拼块的拼块面积相同。可见,七巧板的中的各个拼块实物自身角点的最大角点数量为4,因此,预设数量可以为4。Taking the tangram as an example, the tangram can be composed of 7 pieces, and one piece corresponds to a real pattern. The 7 pieces can be respectively two first triangle pieces, one second triangle piece, two third triangle pieces, one square piece and one parallelogram piece. Among them, the two first triangle blocks are blocks with the same attributes, and the two third triangle blocks are blocks with the same attributes. The tile areas of the first triangular tile, the second triangular tile, and the third triangular tile decrease sequentially. The second triangular, square and parallelogram tiles have the same tile area. It can be seen that the maximum number of corner points of each piece in the tangram is 4, so the preset number can be 4.
在一些实施例中,若预设数量大于拼块实物自身角点的角点数量,则超出角点数量的顶点可以随机分配到拼块实物的各个边上,并且每个边上的顶点均匀布置。In some embodiments, if the preset number is greater than the number of corner points of the physical piece itself, the vertices exceeding the number of corner points can be randomly allocated to each edge of the physical piece, and the vertices on each edge are evenly arranged .
在另一些实施例中,若预设数量大于拼块实物自身角点的角点数量,则超出角点数量 的顶点可以按照预设分配规则分配到拼块实物的各个边上,并且每个边上的顶点均匀布置。其中,预设分配规则可以根据需要预先设置,在此不做限制。In other embodiments, if the preset number is greater than the number of corner points of the actual piece of the puzzle itself, the vertices exceeding the number of corner points can be allocated to each edge of the actual piece of the puzzle according to the preset allocation rules, and each edge The vertices are evenly arranged. The preset allocation rules may be preset as required, which is not limited here.
继续以巧板为七巧板为例,三角形拼块的每个角点可以分别作为一个顶点,第四个顶点可以设置于三角形拼块的斜边中点上。Continuing to take the tangram as an example, each corner of the triangular piece can be used as a vertex, and the fourth vertex can be set on the midpoint of the hypotenuse of the triangular piece.
在本公开实施例中,每个拼块实物的顶点都可以由起始顶点开始,按照预设顶点顺序进行编号。In the embodiment of the present disclosure, the vertices of each physical piece may start from the starting vertex and be numbered according to the preset vertex sequence.
其中,每个拼块实物的起始顶点和预设顶点顺序可以根据需要预先设置,在此不做限制。例如,预设顶点顺序可以为顺时针顺序,也可以为逆时针顺序。Wherein, the starting vertex and the preset vertex sequence of each physical piece can be preset as required, which is not limited here. For example, the preset vertex order can be either clockwise or counterclockwise.
具体地,电子设备在得到各个拼块实物的各个顶点位置之后,可以按照编号顺序保存各个拼块实物的各个顶点位置。Specifically, after obtaining the positions of the vertices of the physical pieces, the electronic device can store the positions of the vertices of the physical pieces in the sequence of numbers.
可选地,实物角度值可以为拼块实物中的第一目标顶点与第二目标顶点之间的连线与水平正方向之间的第一夹角的角度值。其中,水平正方向可以根据需要预先设置,在此不作限制。Optionally, the physical angle value may be the angle value of the first included angle between the connecting line between the first target vertex and the second target vertex in the physical piece and the positive horizontal direction. The positive horizontal direction can be preset as required, which is not limited here.
进一步地,第一目标顶点可以为拼块实物中具有第一编号的顶点,第二目标顶点可以为拼块实物中具有第二编号的顶点。其中,第一编号和第二编号可以分别根据需要预先设置,并且第一编号与第二编号不同。Further, the first target vertex may be the vertex with the first number in the actual piece, and the second target vertex may be the vertex with the second number in the real piece. Wherein, the first number and the second number can be preset according to requirements, respectively, and the first number and the second number are different.
继续以巧板为七巧板为例,第一编号可以为1,第二编号可以为3,即实物角度值可以为拼块的第一个顶点和第三个顶点之间的连线与水平正方向之间的夹角的角度值。Continue to take the tangram as an example, the first number can be 1, and the second number can be 3, that is, the actual angle value can be the connection between the first vertex and the third vertex of the block and the positive horizontal direction The angle value of the included angle between.
图8示出了本公开实施例提供的一种几何参数的示意图。FIG. 8 shows a schematic diagram of a geometric parameter provided by an embodiment of the present disclosure.
如图8所示,电子设备可以检测出实时图像中的第一拼块实物801、第二拼块实物802、第三拼块实物803和第四拼块实物804的各个顶点(如图中的各个圆点所示)的顶点位置,例如顶点805即为第四拼块实物804的一个顶点,顶点805的位置即为第四拼块实物804的一个顶点位置,并且确定第一拼块实物801、第二拼块实物802、第三拼块实物803和第四拼块实物804中的第一个顶点和第三个顶点之间的连线(如图中的各个虚线箭头所示),例如连线806即为第二拼块实物802的第一个顶点和第三个顶点之间的连线。As shown in FIG. 8 , the electronic device can detect the vertices of the first real object 801, the second real object 802, the third real object 803 and the fourth real object 804 in the real-time image (as shown in the figure). The vertex position of each dot), for example, the vertex 805 is a vertex of the fourth real object 804, the position of the vertex 805 is a vertex position of the fourth real object 804, and the first real object 801 is determined. , the connection line between the first vertex and the third vertex in the second physical piece 802, the third physical piece 803 and the fourth physical piece 804 (as shown by the dotted arrows in the figure), for example The connection line 806 is the connection line between the first vertex and the third vertex of the second physical piece 802 .
继续参见图8,水平正方向可以为沿水平线807向右的方向,因此,以第二拼块实物802为例,第二拼块实物802的实物角度值可以为连线806与水平线807向右的方向之间的夹角808的角度值。Continue to refer to FIG. 8 , the positive horizontal direction can be the direction to the right along the horizontal line 807. Therefore, taking the second physical piece 802 as an example, the physical angle value of the second physical piece 802 can be the connecting line 806 and the horizontal line 807 to the right The angle value of the angle 808 between the directions.
在本公开实施例中,可选地,对实时图像进行几何解析的具体过程可以包括:将实时图像输入预先训练得到的图像分割模型中,得到多个图像分割区域,一个图像分割区域对应一个拼块属性,每个拼块属性对应一个拼块形状、一个拼块面积和一个拼块实物的实物图案。然后,针对每个图像分割区域,将该图像分割区域输入其对应的拼块属性的预先训练得到的顶点检测模型中,得到该图像分割区域对应的拼块属性的拼块实物的顶点位置。由此,在本公开实施例中,电子设备可以利用预先训练得到的图像分割模型和顶点检测模型实现对实时图像的几何解析,提高了几何解析的效率和准确性。本领域技术人员应当理解的是,本公开不对具体的几何解析的过程和方法进行限制。In the embodiment of the present disclosure, optionally, the specific process of performing geometric analysis on the real-time image may include: inputting the real-time image into an image segmentation model obtained by pre-training to obtain a plurality of image segmentation regions, where one image segmentation region corresponds to one mosaic Block attributes, each block attribute corresponds to a block shape, a block area and a physical pattern of the actual block. Then, for each image segmentation area, input the image segmentation area into the vertex detection model obtained by pre-training the corresponding patch attribute, and obtain the vertex position of the actual patch of the patch attribute corresponding to the image segmentation area. Therefore, in the embodiment of the present disclosure, the electronic device can use the image segmentation model and the vertex detection model obtained by pre-training to realize the geometric analysis of the real-time image, which improves the efficiency and accuracy of the geometric analysis. It should be understood by those skilled in the art that the present disclosure does not limit the specific geometric analysis process and method.
在本公开实施例中,针对每个拼块实物,电子设备可以计算该拼块实物的各个顶点位 置的顶点位置均值,并将该顶点位置均值作为该拼块实物的重心位置。以顶点位置为顶点坐标为例,电子设备可以计算各个拼块实物的顶点坐标的顶点坐标均值,然后将该顶点坐标均值作为该拼块实物的重心坐标。In the embodiment of the present disclosure, for each physical piece, the electronic device can calculate the average vertex position of each vertex position of the physical piece, and use the average vertex position as the center of gravity of the physical piece. Taking the vertex position as the vertex coordinate as an example, the electronic device can calculate the mean value of the vertex coordinates of the vertex coordinates of each physical piece, and then use the mean value of the vertex coordinates as the barycentric coordinate of the physical piece.
在本公开实施例中,针对每个拼块实物,电子设备可以基于该拼块实物的第一目标顶点对应的顶点位置和第二目标顶点对应的顶点位置,计算该拼块实物的第一目标顶点与第二目标顶点之间的连线与水平正方向之间的第一夹角,并将该第一夹角作为该拼块实物的实物角度值。In the embodiment of the present disclosure, for each physical piece, the electronic device may calculate the first target of the physical piece based on the vertex position corresponding to the first target vertex and the vertex position corresponding to the second target vertex of the physical piece The first included angle between the connecting line between the vertex and the second target vertex and the positive horizontal direction, and the first included angle is taken as the actual angle value of the actual piece.
进一步地,电子设备可以根据各个拼块实物的重心位置,计算每两个拼块实物的重心位置之间的第一差值,进而将第一差值的绝对值作为这两个拼块实物之间的重心距离,进而得到各个拼块实物之间的重心距离。Further, the electronic device can calculate the first difference between the positions of the centers of gravity of every two physical pieces according to the position of the center of gravity of each physical piece, and then use the absolute value of the first difference as the difference between the two physical pieces. The distance of the center of gravity between the pieces, and then the distance of the center of gravity between the objects of each piece is obtained.
进一步地,在实物角度参数不包括拼块实物对应的实物角度向量的情况下,电子设备可以直接将每个拼块实物的实物角度值作为该拼块实物的实物角度参数。Further, when the physical angle parameter does not include the physical angle vector corresponding to the physical piece, the electronic device can directly use the physical angle value of each physical piece as the physical angle parameter of the physical piece.
进一步地,在实物角度参数包括拼块实物对应的实物角度向量的情况下,电子设备还可以根据各个拼块实物的实物角度值,计算每两个拼块实物的实物角度值之间的第二差值,进而将第二差值的绝对值作为这两个拼块实物之间的相对角度,该相对角度即为这两个拼块实物的第一目标顶点与第二目标顶点之间的连线之间的第二夹角的角度值,由此便可以将每个拼块实物与其他各个拼块实物之间的相对角度按照各个拼块实物对应的预设拼块顺序排列,生成每个拼块实物对应的实物角度向量。如果实物角度参数不包括拼块实物的实物角度值,则电子设备可以将每个拼块实物对应的实物角度向量作为该拼块实物的实物角度参数,否则,电子设备可以将每个拼块实物的实物角度值及其对应的实物角度向量作为该拼块实物的实物角度参数。Further, when the physical angle parameter includes the physical angle vector corresponding to the physical piece, the electronic device can also calculate the second difference between the physical angle values of each two physical pieces according to the physical angle value of each physical piece. difference, and then take the absolute value of the second difference as the relative angle between the two real objects, and the relative angle is the connection between the first target vertex and the second target vertex of the two real objects. The angle value of the second included angle between the lines, so that the relative angle between each physical piece and other physical pieces can be arranged in the order of the preset pieces corresponding to each physical piece to generate each piece. The physical angle vector corresponding to the physical object of the piece. If the physical angle parameter does not include the physical angle value of the physical piece, the electronic device can use the physical angle vector corresponding to each physical piece as the physical angle parameter of the physical piece, otherwise, the electronic device can The physical angle value of , and its corresponding physical angle vector are used as the physical angle parameters of the piece.
由此,在本公开实施例中,电子设备可以利用顶点位置准确、高效地计算各个拼块实物对应的几何参数如重心距离、实物角度值、实物角度向量等,进而提高检测到的目标拼块实物的可靠性,以可靠地对实时图像进行答案匹配。Therefore, in the embodiment of the present disclosure, the electronic device can use the vertex positions to accurately and efficiently calculate the geometric parameters corresponding to the actual pieces of each piece, such as the distance of the center of gravity, the angle value of the object, the angle vector of the object, etc., thereby improving the detected target pieces. Physical reliability for reliable answer matching to live images.
在本公开再一种实施方式中,为了进一步提高巧板类游戏的互动性,在图2所示的S220之后,该图形显示方法还可以包括:In yet another embodiment of the present disclosure, in order to further improve the interactivity of the puzzle game, after S220 shown in FIG. 2 , the graphic display method may further include:
在目标图形被完全填充的情况下,显示目标提示信息,目标提示信息用于提示待检测拼块实物全部拼接正确。In the case that the target graphic is completely filled, the target prompt information is displayed, and the target prompt information is used to prompt that the objects to be detected are all spliced correctly.
在本公开实施例中,电子设备可以在目标形状区域内显示目标填充图案之后,实时地检测目标图形是否被完全填充,如果确定目标图形被完全填充,则可以显示用于提示待检测拼块实物全部拼接正确的目标提示信息。In the embodiment of the present disclosure, after displaying the target filling pattern in the target shape area, the electronic device can detect in real time whether the target figure is completely filled, and if it is determined that the target figure is completely filled, it can display a real object for prompting the block to be detected. All stitching correct target prompt information.
可选地,目标提示信息可以包括提示文本和提示标识中的至少一种。Optionally, the target prompt information may include at least one of prompt text and prompt identifier.
例如,目标提示信息可以为提示文本“恭喜过关!”。For example, the target prompt information may be the prompt text "Congratulations on passing the level!".
图9示出了本公开实施例提供的又一种游戏界面的示意图。FIG. 9 shows a schematic diagram of still another game interface provided by an embodiment of the present disclosure.
如图9所示,电子设备901可以显示有巧板类游戏的游戏界面902,游戏界面902内可以全屏显示实时图像903,实时图像903的左下角可以叠加显示目标图形904。当电子设备检测到目标图形904被完全填充时,可以在实时图像903上叠加显示提示文本“恭喜过 关!”,以提示用户实时图像903中的拼图图案拼接正确。As shown in FIG. 9 , the electronic device 901 can display a game interface 902 of a puzzle game, a real-time image 903 can be displayed in full screen in the game interface 902 , and a target graphic 904 can be superimposed on the lower left corner of the real-time image 903 . When the electronic device detects that the target graphic 904 is completely filled, the prompt text "Congratulations for passing the level!" may be superimposed and displayed on the real-time image 903 to prompt the user that the puzzle pattern in the real-time image 903 is correctly spliced.
在本公开实施例中,可选地,在显示目标提示信息之前,电子设备还需要检测目标图形是否被完全填充。In this embodiment of the present disclosure, optionally, before displaying the target prompt information, the electronic device also needs to detect whether the target graphic is completely filled.
在一些实施例中,电子设备内可以预先设置有用于拼接目标图形的巧板的拼块总数。电子设备可以获取摆放正确的目标拼块实物的实物数量,并且判断该实物数量是否与预先设置的拼块总数相同,如果相同,则可以确定目标图形被完全填充,否则,可以确定目标图形未被完全填充。In some embodiments, the electronic device may be preset with the total number of puzzle pieces used for splicing the target graphics. The electronic device can obtain the physical quantity of the correct target piece, and judge whether the physical quantity is the same as the preset total number of pieces. If it is the same, it can be determined that the target figure is completely filled; is completely filled.
在另一些实施例中,电子设备内可以预先设置有目标图形的形状区域总数。电子设备可以获取已填充的目标形状区域的形状区域数量,并且判断该形状区域数量是否与预先设置的形状区域总数相同,如果相同,则可以确定目标图形被完全填充,否则,可以确定目标图形未被完全填充。In other embodiments, the total number of shape regions of the target graphic may be preset in the electronic device. The electronic device can obtain the number of shape regions of the filled target shape region, and judge whether the number of shape regions is the same as the preset total number of shape regions. If it is the same, it can be determined that the target shape is completely filled; is completely filled.
在又一些实施例中,电子设备可以在对目标图形进行图像识别,以检测目标图形中是否存在目标图形的初始填充颜色,如果检测到存在初始填充颜色,则可以确定目标图形未被完全填充,否则,可以确定目标图形被完全填充。In still other embodiments, the electronic device may perform image recognition on the target graphic to detect whether there is an initial fill color of the target graphic in the target graphic, and if it is detected that the initial fill color exists, it may be determined that the target graphic is not completely filled, Otherwise, it can be determined that the target shape is completely filled.
由此,在本公开实施例中,电子设备可以快速、准确地实现对目标图形是否被完全填充的检测,进而提高对待检测拼块实物是否全部拼接正确的检测结果的可靠性。Therefore, in the embodiment of the present disclosure, the electronic device can quickly and accurately detect whether the target graphic is completely filled, thereby improving the reliability of the detection result of whether the objects to be detected are all spliced correctly.
本公开实施例还提供了一种图形显示装置,下面将参照图10进行说明。An embodiment of the present disclosure further provides a graphic display device, which will be described below with reference to FIG. 10 .
在本公开一些实施例中,图形显示装置可以为电子设备,例如图1中所示的电子设备110。其中,电子设备可以是移动电话、平板电脑、台式计算机、笔记本电脑、车载终端、可穿戴设备、一体机、智能家居设备等具有通信功能的设备,也可以是虚拟机或者模拟器模拟的设备。In some embodiments of the present disclosure, the graphic display device may be an electronic device, such as the electronic device 110 shown in FIG. 1 . The electronic device may be a mobile phone, a tablet computer, a desktop computer, a notebook computer, a vehicle-mounted terminal, a wearable device, an all-in-one computer, a smart home device, or other device with communication functions, or a device simulated by a virtual machine or a simulator.
图10示出了本公开实施例提供的一种图形显示装置的结构示意图。FIG. 10 shows a schematic structural diagram of a graphic display device provided by an embodiment of the present disclosure.
如图10所示,该图形显示装置1000可以包括第一显示单元1010、图像获取单元1020和第二显示单元1030。As shown in FIG. 10 , the graphic display device 1000 may include a first display unit 1010 , an image acquisition unit 1020 and a second display unit 1030 .
该第一显示单元1010可以配置为显示目标图形.The first display unit 1010 can be configured to display target graphics.
该图像获取单元1020可以配置为获取实时图像,实时图像为包括待检测拼块实物的图像。The image acquisition unit 1020 may be configured to acquire a real-time image, and the real-time image is an image including the real object to be detected.
该第二显示单元1030可以配置为在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,目标形状区域为目标拼块实物在目标图形中的相对摆放区域。The second display unit 1030 can be configured to display the target fill pattern in the target shape area in the target graphic, and the target shape area is the target when it is determined that there is a correctly placed target piece in the actual pieces to be detected. The relative placement area of the actual pieces in the target graphics.
在本公开实施例中,能够在用户进行拼图的过程中,能够显示目标图形,并且在用户进行拼图的过程中,获取包括待检测拼块实物的实时图像,进而在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,由于该目标形状区域为目标拼块实物在目标图形中的相对摆放区域,使得巧板类游戏在用户进行拼图的过程中,不仅能够自动准确地进行答案匹配,还可以对用户摆放正确的目标拼块实物进行实时提示,实现了与用户的实时互动,提高了巧板类游戏的可玩性和 互动性,进而提升了用户的体验。In the embodiment of the present disclosure, the target graphics can be displayed during the jigsaw puzzle process by the user, and the real-time image including the actual pieces of the pieces to be detected can be obtained during the jigsaw puzzle process by the user, and then in determining the actual pieces of the to-be-detected pieces In the case of the correct placement of the target piece, the target fill pattern is displayed in the target shape area in the target figure. Since the target shape area is the relative placement area of the target piece in the target figure, the clever In the process of jigsaw puzzles, board games can not only automatically and accurately match the answers, but also give real-time prompts to the user to place the correct target pieces, realizing real-time interaction with users and improving the puzzle game. The playability and interactivity of the game enhance the user experience.
在本公开一些实施例中,该实时图像还可以为包括至少两个拼块实物的图像。In some embodiments of the present disclosure, the real-time image may also be an image including at least two physical pieces.
相应地,该图形显示装置1000还可以包括第一处理单元,该第一处理单元可以配置为根据拼块实物之间的重心距离,确定拼块实物中的待检测拼块实物。Correspondingly, the graphic display device 1000 may further include a first processing unit, and the first processing unit may be configured to determine the actual pieces to be detected in the actual pieces according to the distance of the center of gravity between the actual pieces.
在本公开一些实施例中,该第一处理单元可以包括第一子处理单元和第二子处理单元。In some embodiments of the present disclosure, the first processing unit may include a first sub-processing unit and a second sub-processing unit.
该第一子处理单元可以配置为根据重心距离,对拼块实物进行分组,得到至少一组拼块实物组,每组拼块实物组中的各个拼块实物之间的重心距离均小于或等于预设距离阈值。The first sub-processing unit may be configured to group the physical pieces according to the distance of the center of gravity, to obtain at least one group of physical pieces of the pieces, and the distance between the physical pieces of each piece in each group of physical pieces is less than or equal to Preset distance threshold.
该第二子处理单元可以配置为将拼块实物数量最多的拼块实物组中的拼块实物作为待检测拼块实物。The second sub-processing unit may be configured to use the actual pieces in the group of actual pieces with the largest number of pieces as the actual pieces to be detected.
在本公开一些实施例中,该图形显示装置1000还可以包括第二处理单元和第三处理单元。In some embodiments of the present disclosure, the graphic display apparatus 1000 may further include a second processing unit and a third processing unit.
该第二处理单元可以配置为根据待检测拼块实物之间的重心距离和待检测拼块实物的实物角度参数,检测待检测拼块实物中的目标拼块实物。The second processing unit can be configured to detect the target piece in the pieces to be detected according to the distance between the centers of gravity of the pieces to be detected and the physical angle parameter of the piece to be detected.
该第三处理单元可以配置为在检测到目标拼块实物的情况下,确定待检测拼块实物中存在目标拼块实物。The third processing unit may be configured to, in the case of detecting the physical object of the target piece, determine that there is a physical object of the target piece in the physical piece to be detected.
在本公开一些实施例中,该第二处理单元可以包括第三子处理单元和第四子处理单元。In some embodiments of the present disclosure, the second processing unit may include a third sub-processing unit and a fourth sub-processing unit.
该第三子处理单元可以配置为根据重心距离,在目标图形对应的参考拼图图形中,识别待匹配拼图图形,每个待匹配拼图图形包括多个待匹配拼块图形,每个待匹配拼图图形中的一个待匹配拼块图形对应一个待检测拼块实物。The third sub-processing unit may be configured to identify the puzzle graphics to be matched in the reference puzzle graphics corresponding to the target graphics according to the center of gravity distance, each puzzle graphics to be matched includes a plurality of puzzle graphics to be matched, and each puzzle graphics to be matched One of the block graphics to be matched corresponds to an actual block to be detected.
该第四子处理单元可以配置为在待检测拼块实物中,检测实物角度参数与对应待匹配拼块图形满足预设的角度一致性条件的目标拼块实物。The fourth sub-processing unit may be configured to detect, among the actual pieces to be detected, the actual angular parameters of the object and the target pieces corresponding to the pattern of the pieces to be matched that satisfy a preset angle consistency condition.
在本公开一些实施例中,该第三子处理单元可以进一步配置为生成重心距离对应的实物邻接矩阵;将每个参考拼图图像对应的参考邻接矩阵分别与实物邻接矩阵进行按位与计算,得到每个参考邻接矩阵对应的计算结果;将计算结果最大的参考邻接矩阵对应的参考拼图图像作为待匹配拼图图像。In some embodiments of the present disclosure, the third sub-processing unit may be further configured to generate a physical adjacency matrix corresponding to the center-of-gravity distance; perform bitwise AND calculation on the reference adjacency matrix corresponding to each reference mosaic image and the physical adjacency matrix to obtain The calculation result corresponding to each reference adjacency matrix; the reference mosaic image corresponding to the reference adjacency matrix with the largest calculation result is used as the mosaic image to be matched.
在本公开一些实施例中,该待检测拼块实物的实物角度参数可以包括待检测拼块实物的实物角度值和待检测拼块实物对应的实物角度向量中的至少一种,待检测拼块实物对应的实物角度向量可以根据待检测拼块实物与其他各个待检测拼块实物之间的相对角度生成。In some embodiments of the present disclosure, the physical angle parameter of the physical object to be detected may include at least one of the physical angle value of the physical object to be detected and the physical angle vector corresponding to the physical object to be detected. The physical angle vector corresponding to the physical object can be generated according to the relative angle between the physical object to be detected and each of the physical objects to be detected.
在本公开一些实施例中,该角度一致性条件可以包括目标参数差值的加权和小于或等于目标加权和阈值,该目标参数差值可以为实物角度参数与对应待匹配拼块图形的参考角度参数之间的参数差值,该目标加权和阈值可以为实物角度参数对应的预设加权和阈值。In some embodiments of the present disclosure, the angle consistency condition may include that the weighted sum of target parameter differences is less than or equal to the target weighted sum threshold, and the target parameter difference may be the actual angle parameter and the reference angle corresponding to the tile pattern to be matched The parameter difference between parameters, the target weighted sum threshold may be a preset weighted sum threshold corresponding to the physical angle parameter.
在本公开一些实施例中,该图形显示装置1000还可以包括几何解析单元和参数计算单元。In some embodiments of the present disclosure, the graphic display device 1000 may further include a geometric analysis unit and a parameter calculation unit.
该几何解析单元可以配置为对实时图像进行几何解析,得到各个拼块实物的顶点位置。The geometric analysis unit can be configured to perform geometric analysis on the real-time image to obtain the vertex positions of the actual pieces of each piece.
该参数计算单元可以配置为根据顶点位置,计算拼块实物之间的重心距离和拼块实物的实物角度参数。The parameter calculation unit can be configured to calculate the center of gravity distance between the real pieces and the physical angle parameters of the real pieces according to the vertex positions.
在本公开一些实施例中,该图形显示装置1000还可以包括第三显示单元,该第三显示单元可以配置为在目标图形被完全填充的情况下,显示目标提示信息,目标提示信息可以用于提示待检测拼块实物全部拼接正确。In some embodiments of the present disclosure, the graphic display apparatus 1000 may further include a third display unit, and the third display unit may be configured to display target prompt information when the target graphic is completely filled, and the target prompt information can be used for Prompt that all the pieces to be detected are spliced correctly.
需要说明的是,图10所示的图形显示装置1000可以执行图2至图9所示的方法实施例中的各个步骤,并且实现图2至图9所示的方法实施例中的各个过程和效果,在此不做赘述。It should be noted that, the graphic display device 1000 shown in FIG. 10 can execute various steps in the method embodiments shown in FIGS. 2 to 9 , and implement various processes and processes in the method embodiments shown in FIGS. The effect will not be repeated here.
本公开实施例还提供了一种图形显示设备,该图形显示设备可以包括处理器和存储器,存储器可以用于存储可执行指令。其中,处理器可以用于从存储器中读取可执行指令,并执行可执行指令以实现上述实施例中的图形显示方法。Embodiments of the present disclosure also provide a graphics display device, where the graphics display device may include a processor and a memory, and the memory may be used to store executable instructions. The processor may be configured to read executable instructions from the memory, and execute the executable instructions to implement the graphic display method in the foregoing embodiment.
图11示出了本公开实施例提供的一种图形显示设备的结构示意图。下面具体参考图11,其示出了适于用来实现本公开实施例中的图形显示设备1100的结构示意图。FIG. 11 shows a schematic structural diagram of a graphic display device provided by an embodiment of the present disclosure. Referring specifically to FIG. 11 below, it shows a schematic structural diagram of a graphic display device 1100 suitable for implementing an embodiment of the present disclosure.
本公开实施例中的图形显示设备1100可以为电子设备。其中,电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)、可穿戴设备、等等的移动终端以及诸如数字TV、台式计算机、智能家居设备等等的固定终端。The graphic display device 1100 in the embodiment of the present disclosure may be an electronic device. Wherein, the electronic equipment may include, but not limited to, such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), in-vehicle terminals (such as in-vehicle navigation terminals) , wearable devices, etc., as well as stationary terminals such as digital TVs, desktop computers, smart home devices, and the like.
在一些实施例中,该图形显示设备1100可以为图1中所示的电子设备110。In some embodiments, the graphic display device 1100 may be the electronic device 110 shown in FIG. 1 .
需要说明的是,图11示出的图形显示设备1100仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。It should be noted that the graphic display device 1100 shown in FIG. 11 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图11所示,该图形显示设备1100可以包括处理装置(例如中央处理器、图形处理器等)1101,其可以根据存储在只读存储器(ROM)1102中的程序或者从存储装置1108加载到随机访问存储器(RAM)1103中的程序而执行各种适当的动作和处理,以实现上述实施例中的图形显示方法。在RAM 1103中,还存储有信息处理设备1100操作所需的各种程序和数据。处理装置1101、ROM 1102以及RAM 1103通过总线1104彼此相连。输入/输出(I/O)接口1105也连接至总线1104。As shown in FIG. 11 , the graphics display device 1100 may include a processing device (eg, a central processing unit, a graphics processor, etc.) 1101 , which may be loaded from a storage device 1108 according to a program stored in a read only memory (ROM) 1102 or from a storage device 1108 . A program in a random access memory (RAM) 1103 executes various appropriate actions and processes to realize the graphic display method in the above-described embodiment. In the RAM 1103, various programs and data necessary for the operation of the information processing apparatus 1100 are also stored. The processing device 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input/output (I/O) interface 1105 is also connected to the bus 1104 .
通常,以下装置可以连接至I/O接口1105:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置1106;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1107;包括例如磁带、硬盘等的存储装置1108;以及通信装置1109。通信装置1109可以允许图形显示设备1100与其他设备进行无线或有线通信以交换数据。虽然图11示出了具有各种装置的图形显示设备1100,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Typically, the following devices can be connected to the I/O interface 1105: input devices 1106 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, vibration An output device 1107 such as a computer; a storage device 1108 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1109. Communication means 1109 may allow graphics display device 1100 to communicate wirelessly or by wire with other devices to exchange data. Although FIG. 11 shows the graphics display device 1100 having various means, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
本公开实施例还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,当计算机程序被处理器执行时,使得处理器实现上述实施例中的图形显示方法。Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by the processor, the processor can implement the graphic display method in the above-mentioned embodiment.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs.
本公开实施例还提供了一种计算机程序产品,该计算机程序产品可以包括计算机程序,当计算机程序被处理器执行时,使得处理器实现上述实施例中的图形显示方法。Embodiments of the present disclosure also provide a computer program product, where the computer program product may include a computer program, which, when executed by a processor, causes the processor to implement the graphic display method in the foregoing embodiments.
例如,本公开的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1109从网络上被下载和安装,或者从存储装置1108被安装,或者从ROM 1102被安装。在该计算机程序被处理装置1101执行时,执行本公开实施例的图形显示方法中限定的上述功能。For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication device 1109, or from the storage device 1108, or from the ROM 1102. When the computer program is executed by the processing device 1101, the above-mentioned functions defined in the graphic display method of the embodiment of the present disclosure are executed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing. In this disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . Program code embodied on a computer readable medium may be transmitted using any suitable medium including, but not limited to, electrical wire, optical fiber cable, RF (radio frequency), etc., or any suitable combination of the foregoing.
在一些实施方式中,客户端、服务器可以利用诸如HTTP之类的任何当前已知或未来研发的网络协议进行通信,并且可以与任意形式或介质的数字数据通信(例如,通信网络)互连。通信网络的示例包括局域网(“LAN”),广域网(“WAN”),网际网(例如,互联网)以及端对端网络(例如,ad hoc端对端网络),以及任何当前已知或未来研发的网络。In some embodiments, clients, servers can communicate using any currently known or future developed network protocol, such as HTTP, and can be interconnected with any form or medium of digital data communication (eg, a communication network). Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), the Internet (eg, the Internet), and peer-to-peer networks (eg, ad hoc peer-to-peer networks), as well as any currently known or future development network of.
上述计算机可读介质可以是上述图形显示设备中所包含的;也可以是单独存在,而未装配入该图形显示设备中。The above-mentioned computer-readable medium may be included in the above-mentioned graphic display device; or may exist alone without being incorporated into the graphic display device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该图形显示设备执行时,使得该图形显示设备执行:The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by the graphics display device, the graphics display device is caused to execute:
显示目标图形;获取实时图像,实时图像为包括待检测拼块实物的图像;在确定待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在目标图形中的目标形状区域内,显示目标填充图案,目标形状区域为目标拼块实物在目标图形中的相对摆放区域。Display the target graphic; obtain a real-time image, the real-time image is an image including the real object to be detected; when it is determined that there is a correctly placed target object in the real object to be detected, the real-time image is in the target shape area in the target graphics. , displays the target fill pattern, and the target shape area is the relative placement area of the target piece in the target figure.
在本公开实施例中,可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括但不限于面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的 网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。In embodiments of the present disclosure, computer program code for performing operations of the present disclosure may be written in one or more programming languages, including but not limited to object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional procedural programming languages - such as the "C" 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 kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (eg, using an Internet service provider through Internet connection).
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。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 disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks 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 is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or operations , or can be implemented in a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present disclosure may be implemented in a software manner, and may also be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation of the unit itself under certain circumstances.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、片上系统(SOC)、复杂可编程逻辑设备(CPLD)等等。The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), Systems on Chips (SOCs), Complex Programmable Logical Devices (CPLDs) and more.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, and should also cover, without departing from the above-mentioned disclosed concept, the technical solutions formed by the above-mentioned technical features or Other technical solutions formed by any combination of its equivalent features. For example, a technical solution is formed by replacing the above features with the technical features disclosed in the present disclosure (but not limited to) with similar functions.
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行来执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。Additionally, although operations are depicted in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, although the above discussion contains several implementation-specific details, these should not be construed as limitations on the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解 所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。Although the subject matter has been described in language specific to structural features and/or logical acts of method, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims (18)

  1. 一种图形显示方法,其特征在于,包括:A graphic display method, comprising:
    显示目标图形;display target graphics;
    获取实时图像,所述实时图像为包括待检测拼块实物的图像;Acquiring a real-time image, the real-time image is an image including the real object to be detected;
    在确定所述待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在所述目标图形中的目标形状区域内,显示目标填充图案,所述目标形状区域为所述目标拼块实物在所述目标图形中的相对摆放区域。In the case where it is determined that there is a correctly placed target piece in the actual pieces to be detected, the target fill pattern is displayed in the target shape area in the target graphic, and the target shape area is the target piece The relative placement area of the physical block in the target graphic.
  2. 根据权利要求1所述的方法,其特征在于,所述实时图像为包括至少两个拼块实物的图像;The method according to claim 1, wherein the real-time image is an image comprising at least two real objects;
    其中,在所述确定所述待检测拼块实物中存在摆放正确的目标拼块实物之前,所述方法还包括:Wherein, before determining that there is a correctly placed target piece in the actual pieces to be detected, the method further includes:
    根据所述拼块实物之间的重心距离,确定所述拼块实物中的所述待检测拼块实物。According to the distance of the center of gravity between the actual pieces of the pieces, the actual pieces of the pieces to be detected in the actual pieces of the pieces are determined.
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述拼块实物之间的重心距离,确定所述拼块实物中的所述待检测拼块实物,包括:The method according to claim 2, characterized in that, determining the physical pieces to be detected in the physical pieces according to the center of gravity distance between the physical pieces, comprising:
    根据所述重心距离,对所述拼块实物进行分组,得到至少一组拼块实物组,每组所述拼块实物组中的各个拼块实物之间的重心距离均小于或等于预设距离阈值;According to the distance of the center of gravity, the physical pieces are grouped to obtain at least one group of physical pieces, and the distance between the physical pieces of each group of the physical pieces of each group is less than or equal to the preset distance. threshold;
    将拼块实物数量最多的拼块实物组中的拼块实物作为所述待检测拼块实物。The actual pieces in the group of actual pieces with the largest number of pieces are used as the actual pieces to be detected.
  4. 根据权利要求1所述的方法,其特征在于,所述确定所述待检测拼块实物中存在摆放正确的目标拼块实物,包括:The method according to claim 1, wherein the determining that there is a correctly placed target piece in the physical pieces to be detected includes:
    根据所述待检测拼块实物之间的重心距离和所述待检测拼块实物的实物角度参数,检测所述待检测拼块实物中的所述目标拼块实物;According to the distance of the center of gravity between the actual pieces to be detected and the physical angle parameter of the actual pieces to be detected, detect the actual target piece in the actual pieces to be detected;
    在检测到所述目标拼块实物的情况下,确定所述待检测拼块实物中存在所述目标拼块实物。In the case of detecting the physical object of the target piece, it is determined that the physical object of the target piece exists in the physical piece of the to-be-detected piece.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述待检测拼块实物之间的重心距离和所述待检测拼块实物的实物角度参数,检测所述待检测拼块实物中的所述目标拼块实物,包括:The method according to claim 4, characterized in that, according to the distance of the center of gravity between the actual pieces to be detected and the physical angle parameters of the actual pieces to be detected, the detection of the actual pieces to be detected The said target piece in kind, including:
    根据所述重心距离,在所述目标图形对应的参考拼图图形中,识别待匹配拼图图形,每个所述待匹配拼图图形包括多个待匹配拼块图形,每个所述待匹配拼图图形中的一个待匹配拼块图形对应一个待检测拼块实物;According to the center-of-gravity distance, in the reference puzzle figure corresponding to the target figure, identify the puzzle figure to be matched, each of the to-be-matched puzzle figures includes a plurality of to-be-matched puzzle figures, and each of the to-be-matched puzzle figures A patch graph to be matched corresponds to a patch object to be detected;
    在所述待检测拼块实物中,检测实物角度参数与对应待匹配拼块图形满足预设的角度一致性条件的所述目标拼块实物。In the actual pieces to be detected, the angle parameters of the detected objects and the actual pieces of the target pieces corresponding to the patterns of the pieces to be matched meet a preset angle consistency condition.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述重心距离,在所述目标图形对应的参考拼图图形中,识别待匹配拼图图形,包括:The method according to claim 5, wherein, according to the center of gravity distance, identifying the puzzle figure to be matched in the reference puzzle figure corresponding to the target figure comprises:
    生成所述重心距离对应的实物邻接矩阵;generating a physical adjacency matrix corresponding to the center of gravity distance;
    将每个所述参考拼图图形对应的参考邻接矩阵分别与所述实物邻接矩阵进行按位与计算,得到每个所述参考邻接矩阵对应的计算结果;Perform bitwise AND calculation on the reference adjacency matrix corresponding to each of the reference puzzle graphics with the physical adjacency matrix, to obtain a calculation result corresponding to each of the reference adjacency matrices;
    将计算结果最大的参考邻接矩阵对应的参考拼图图形作为所述待匹配拼图图形。The reference puzzle figure corresponding to the reference adjacency matrix with the largest calculation result is used as the to-be-matched puzzle figure.
  7. 根据权利要求5所述的方法,其特征在于,所述待检测拼块实物的实物角度参数包括所述待检测拼块实物的实物角度值和所述待检测拼块实物对应的实物角度向量中的至少一种,所述待检测拼块实物对应的实物角度向量根据所述待检测拼块实物与其他各个待检测拼块实物之间的相对角度生成。The method according to claim 5, wherein the physical angle parameter of the actual piece to be detected includes the physical angle value of the actual piece to be detected and the physical angle vector corresponding to the actual piece to be detected. At least one of the physical object angle vectors corresponding to the object to be detected is generated according to the relative angle between the object to be detected and each of the other objects to be detected.
  8. 根据权利要求7所述的方法,其特征在于,所述待检测拼块实物的实物角度值为所述待检测拼块实物中的第一目标顶点与第二目标顶点之间的连线与水平正方向之间的第一夹角的角度值,所述第一目标顶点可以为待检测拼块实物中具有第一编号的顶点,第二目标顶点可以为待检测拼块实物中具有第二编号的顶点。The method according to claim 7, wherein the actual angle value of the actual piece to be detected is the connection line and the horizontal line between the first target vertex and the second target vertex in the actual piece to be detected The angle value of the first included angle between the positive directions, the first target vertex can be the vertex with the first number in the actual piece to be detected, and the second target vertex can be the second number in the real piece to be detected. vertices.
  9. 根据权利要求8所述的方法,其特征在于,所述待检测拼块实物与其他各个待检测拼块实物之间的相对角度为两个待检测拼块实物的第一目标顶点与第二目标顶点之间的连线之间的第二夹角的角度值。The method according to claim 8, wherein the relative angle between the actual piece to be detected and each of the other pieces to be detected is the first target vertex and the second target of the two actual pieces to be detected The angle value of the second included angle between the lines connecting the vertices.
  10. 根据权利要求5-9任一项所述的方法,其特征在于,所述角度一致性条件包括目标参数差值的加权和小于或等于目标加权和阈值,所述目标参数差值为所述实物角度参数与对应待匹配拼块图形的参考角度参数之间的参数差值,所述目标加权和阈值为所述实物角度参数对应的预设加权和阈值。The method according to any one of claims 5-9, wherein the angular consistency condition comprises that a weighted sum of target parameter differences is less than or equal to a target weighted sum threshold, and the target parameter difference is the physical object The parameter difference between the angle parameter and the reference angle parameter corresponding to the tile graphics to be matched, and the target weighted sum threshold is a preset weighted sum threshold corresponding to the physical angle parameter.
  11. 根据权利要求2或4所述的方法,其特征在于,在所述确定所述待检测拼块实物中存在摆放正确的目标拼块实物之前,所述方法还包括:The method according to claim 2 or 4, characterized in that, before determining that there is a correctly placed target piece in the real pieces to be detected, the method further comprises:
    对所述实时图像进行几何解析,得到各个所述拼块实物的顶点位置;Perform geometric analysis on the real-time image to obtain the vertex position of each of the actual pieces;
    根据所述顶点位置,计算所述拼块实物之间的重心距离和所述拼块实物的实物角度参数。According to the position of the vertex, the distance of the center of gravity between the physical pieces and the physical angle parameters of the physical pieces are calculated.
  12. 根据权利要求1所述的方法,其特征在于,在所述目标图形中的目标形状区域内,显示目标填充图案之后,所述方法还包括:The method according to claim 1, wherein after displaying the target filling pattern in the target shape area in the target graphic, the method further comprises:
    在所述目标图形被完全填充的情况下,显示目标提示信息,所述目标提示信息用于提示所述待检测拼块实物全部拼接正确。In the case that the target graphic is completely filled, target prompt information is displayed, and the target prompt information is used to prompt that all the objects to be detected are spliced correctly.
  13. 根据权利要求1所述的方法,其特征在于,在获取实时图像之后,所述方法还包括:The method according to claim 1, wherein after acquiring the real-time image, the method further comprises:
    显示所述实时图像。The live image is displayed.
  14. 根据权利要求1所述的方法,其特征在于,所述目标图形中的每个形状区域对应的填充图案均相同,或者所述目标图形中的每个形状区域对应的填充图案不同。The method according to claim 1, wherein the filling patterns corresponding to each shape area in the target graphic are the same, or the filling patterns corresponding to each shape area in the target graphic are different.
  15. 一种图形显示装置,其特征在于,包括:A graphic display device, comprising:
    第一显示单元,配置为显示目标图形;a first display unit, configured to display a target graphic;
    图像获取单元,配置为获取实时图像,所述实时图像为包括待检测拼块实物的图像;以及an image acquisition unit, configured to acquire a real-time image, the real-time image being an image including the actual pieces of the pieces to be detected; and
    第二显示单元,配置为在确定所述待检测拼块实物中存在摆放正确的目标拼块实物的情况下,在所述目标图形中的目标形状区域内,显示目标填充图案,所述目标形状区域为所述目标拼块实物在所述目标图形中的相对摆放区域。The second display unit is configured to display the target fill pattern in the target shape area in the target graphic when it is determined that there is a correctly placed target piece in the actual pieces to be detected, and the target The shape area is the relative placement area of the target piece in the target figure.
  16. 一种图形显示设备,其特征在于,包括:A graphic display device, comprising:
    处理器;processor;
    存储器,用于存储可执行指令;memory for storing executable instructions;
    其中,所述处理器用于从所述存储器中读取所述可执行指令,并执行所述可执行指令以实现上述权利要求1-14中任一项所述的图形显示方法。Wherein, the processor is configured to read the executable instructions from the memory, and execute the executable instructions to implement the graphic display method according to any one of the above claims 1-14.
  17. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机程序,当所述计算机程序被处理器执行时,使得处理器实现上述权利要求1-14中任一项所述的图形显示方法。A computer-readable storage medium, characterized in that the storage medium stores a computer program, which, when executed by a processor, causes the processor to implement the graphics according to any one of the preceding claims 1-14 Display method.
  18. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序被处理器执行时,使得处理器实现上述权利要求1-14中任一项所述的图形显示方法。A computer program product, characterized in that the computer program product includes a computer program that, when the computer program is executed by a processor, causes the processor to implement the graphic display method according to any one of the preceding claims 1-14 .
PCT/CN2021/135688 2021-01-22 2021-12-06 Graphic display method, apparatus and device, and medium WO2022156389A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110091009.8A CN114797084A (en) 2021-01-22 2021-01-22 Graphic display method, apparatus, device and medium
CN202110091009.8 2021-01-22

Publications (1)

Publication Number Publication Date
WO2022156389A1 true WO2022156389A1 (en) 2022-07-28

Family

ID=82525073

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/135688 WO2022156389A1 (en) 2021-01-22 2021-12-06 Graphic display method, apparatus and device, and medium

Country Status (2)

Country Link
CN (1) CN114797084A (en)
WO (1) WO2022156389A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5577185A (en) * 1994-11-10 1996-11-19 Dynamix, Inc. Computerized puzzle gaming method and apparatus
JP2015208576A (en) * 2014-04-28 2015-11-24 株式会社コロプラ Game program
CN111223045A (en) * 2019-11-15 2020-06-02 Oppo广东移动通信有限公司 Jigsaw puzzle method, device and terminal equipment
CN111359201A (en) * 2020-03-08 2020-07-03 北京智明星通科技股份有限公司 Jigsaw puzzle type game method, system and equipment
CN112053281A (en) * 2020-09-12 2020-12-08 上海积跬教育科技有限公司 Intelligent identification method for tangram toy
CN112068920A (en) * 2020-09-22 2020-12-11 深圳市欢太科技有限公司 Content display method and device, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5577185A (en) * 1994-11-10 1996-11-19 Dynamix, Inc. Computerized puzzle gaming method and apparatus
JP2015208576A (en) * 2014-04-28 2015-11-24 株式会社コロプラ Game program
CN111223045A (en) * 2019-11-15 2020-06-02 Oppo广东移动通信有限公司 Jigsaw puzzle method, device and terminal equipment
CN111359201A (en) * 2020-03-08 2020-07-03 北京智明星通科技股份有限公司 Jigsaw puzzle type game method, system and equipment
CN112053281A (en) * 2020-09-12 2020-12-08 上海积跬教育科技有限公司 Intelligent identification method for tangram toy
CN112068920A (en) * 2020-09-22 2020-12-11 深圳市欢太科技有限公司 Content display method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN114797084A (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN110427917A (en) Method and apparatus for detecting key point
US11893702B2 (en) Virtual object processing method and apparatus, and storage medium and electronic device
CN110866977B (en) Augmented reality processing method, device, system, storage medium and electronic equipment
US20220358662A1 (en) Image generation method and device
WO2023125365A1 (en) Image processing method and apparatus, electronic device, and storage medium
WO2022037484A1 (en) Image processing method and apparatus, device and storage medium
CN109889893A (en) Method for processing video frequency, device and equipment
CN110781823A (en) Screen recording detection method and device, readable medium and electronic equipment
WO2023193639A1 (en) Image rendering method and apparatus, readable medium and electronic device
CN113344776B (en) Image processing method, model training method, device, electronic equipment and medium
CN110070617B (en) Data synchronization method, device and hardware device
CN111292406B (en) Model rendering method, device, electronic equipment and medium
WO2022156389A1 (en) Graphic display method, apparatus and device, and medium
WO2023138467A1 (en) Virtual object generation method and apparatus, device, and storage medium
WO2023138468A1 (en) Virtual object generation method and apparatus, device, and storage medium
CN109816791B (en) Method and apparatus for generating information
WO2023138441A1 (en) Video generation method and apparatus, and device and storage medium
EP4170588A2 (en) Video photographing method and apparatus, and device and storage medium
CN109559382A (en) Intelligent guide method, apparatus, terminal and medium
CN112965911B (en) Interface abnormity detection method and device, computer equipment and storage medium
CN108540726B (en) Method and device for processing continuous shooting image, storage medium and terminal
CN112950535A (en) Video processing method and device, electronic equipment and storage medium
WO2022156390A1 (en) Graphic processing method, apparatus and device, and medium
CN112991147B (en) Image processing method, device, electronic equipment and computer readable storage medium
WO2022183443A1 (en) Method of suggesting shooting position for electronic device and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21920763

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31-10-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21920763

Country of ref document: EP

Kind code of ref document: A1