CN112337078B - Jigsaw display method, system and computer readable storage medium - Google Patents

Jigsaw display method, system and computer readable storage medium Download PDF

Info

Publication number
CN112337078B
CN112337078B CN202011231035.8A CN202011231035A CN112337078B CN 112337078 B CN112337078 B CN 112337078B CN 202011231035 A CN202011231035 A CN 202011231035A CN 112337078 B CN112337078 B CN 112337078B
Authority
CN
China
Prior art keywords
target image
jigsaw
target
image
image block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011231035.8A
Other languages
Chinese (zh)
Other versions
CN112337078A (en
Inventor
李政军
陈娅芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New Cloud Technology Group Co ltd
Original Assignee
Hunan New Cloudnet Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202011231035.8A priority Critical patent/CN112337078B/en
Publication of CN112337078A publication Critical patent/CN112337078A/en
Application granted granted Critical
Publication of CN112337078B publication Critical patent/CN112337078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • A63F9/00Games not otherwise provided for
    • A63F9/06Patience; Other games for self-amusement
    • A63F9/10Two-dimensional jig-saw puzzles
    • 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/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • 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
    • A63F9/1044Display boards therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1464Management of the backup or restore process for networked environments
    • 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/40Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
    • A63F2300/402Communication between platforms, i.e. physical link to protocol
    • 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/50Features 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 details of game servers
    • A63F2300/53Features 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 details of game servers details of basic data processing
    • A63F2300/534Features 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 details of game servers details of basic data processing for network load management, e.g. bandwidth optimization, latency reduction

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a jigsaw display method, which comprises the following steps: receiving a target image, target image blocks obtained by dividing the target image and a target jigsaw terminal; acquiring the target image number sequence of each target image block in a target image, and selecting a preset number of image blocks to be backed up from each target image block to perform backup operation; respectively inserting the numbers of the backup image blocks into the number sequence of the target image; randomly arranging the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to a target jigsaw puzzle end according to the random image number sequence; and receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw terminal, and returning the number sequence to the jigsaw request terminal, wherein the jigsaw request terminal carries out jigsaw display according to the number sequence of the spliced images. The invention greatly saves the bandwidth and improves the transmission efficiency of the image block. The invention also discloses a jigsaw display system and a storage medium, which have corresponding technical effects.

Description

Jigsaw display method, system and computer readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method and a system for displaying a puzzle, and a computer-readable storage medium.
Background
The game is suitable for enriching the amateur life of people, developing intelligence and playing jigsaw puzzle. For example, in online teaching, a teacher end selects a prepared picture and randomly cuts the picture to obtain a plurality of graphic fragments. And packaging the graphics fragments into a compressed packet, and sending the compressed packet to the student end in a way of sending the attachment. And decompressing the compressed packet by the student end and displaying the graph fragments. And the student end moves the graphic fragments to splice into a complete picture. And after splicing is finished, submitting the finished pictures to a teacher end by the student end. And the teacher end displays the splicing result in real time, compares the splicing result with the original image and displays the splicing result, and further verifies the splicing result. However, the existing jigsaw display mode needs to transmit pictures between two terminals twice, which wastes bandwidth and has low transmission efficiency.
In summary, how to effectively solve the problems of the existing jigsaw display mode that two times of picture transmission are required between two terminals, bandwidth is wasted, transmission efficiency is low, and the like, is a problem that needs to be solved urgently by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a jigsaw display method, which greatly saves the bandwidth and improves the transmission efficiency of image blocks; it is another object of the present invention to provide a puzzle display system and a computer-readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
a jigsaw display method is applied to a server and comprises the following steps:
receiving a target image, target image blocks obtained by dividing the target image and a target jigsaw terminal;
acquiring a target image number sequence of each target image block in the target image;
selecting a preset number of image blocks to be backed up from an image block set formed by each target image block;
carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block;
respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain an incremental image number sequence;
calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence;
sending each target image block to the target jigsaw terminal according to the random image number sequence;
receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw end;
and returning the sequence of the spliced image numbers to a jigsaw request end so that the jigsaw request end carries out jigsaw display according to the sequence of the spliced image numbers.
In a specific embodiment of the present invention, receiving target image blocks obtained by dividing a target image and a target tile end includes:
and receiving each target image block obtained by dividing the target image according to the number of image division blocks generated by the Randon random function, and a target jigsaw terminal selected according to the jigsaw terminal number generated by the Randon random function.
A jigsaw display method is applied to a jigsaw request terminal and comprises the following steps:
acquiring a target image to be segmented and a target jigsaw terminal;
carrying out segmentation operation on the target image to obtain each target image block;
sending the target image, each target image block and the target jigsaw terminal to a server terminal, so that the server terminal sends the target image numbers of the target image blocks in the target image to the target jigsaw terminal for jigsaw processing after randomly arranging the target image numbers;
receiving a splicing image number sequence of each target image block in the splicing images returned by the server;
and performing jigsaw display according to the splicing image number sequence.
In a specific embodiment of the present invention, the obtaining of the target puzzle side includes:
calling a random function to generate a jigsaw terminal number;
and selecting the jigsaw terminal corresponding to the jigsaw terminal number as a target jigsaw terminal.
In a specific embodiment of the present invention, when there are a plurality of the tile terminal numbers, performing tile display according to the sequence of the tile numbers includes:
and carrying out comparison display on a plurality of puzzles according to the number sequence of the spliced images respectively returned by each target puzzle end.
In a specific embodiment of the present invention, after performing comparison display of multiple puzzles according to the sequence of the number of the stitched images respectively returned by each of the target puzzle ends, the method further includes:
acquiring a jigsaw display result;
and uploading the picture mosaic display result to a cloud server.
A puzzle display system comprising:
the jigsaw request end is used for acquiring a target image to be divided and a target jigsaw end; performing segmentation operation on the target image to obtain each target image block; sending the target image, each target image block and the target jigsaw puzzle terminal to a server terminal; performing jigsaw display according to the splicing image number sequence;
the server is used for acquiring the target image number sequence of each target image block in the target image; selecting a preset number of image blocks to be backed up from an image block set formed by each target image block; carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block; respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain an incremental image number sequence; calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to the target jigsaw terminal according to the random image number sequence; the sequence of the spliced image numbers is returned to the jigsaw request end;
the target image splicing end is used for carrying out image splicing processing on each target image block; and sequentially returning the number of the spliced image of each target image block in the jigsaw puzzle image to the server.
In a specific embodiment of the present invention, the puzzle requesting end is specifically configured to call a Randon random function to generate a puzzle terminal number; and selecting the jigsaw terminal corresponding to the jigsaw terminal number as a target jigsaw terminal.
A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the puzzle presentation method as set forth above.
The invention provides a jigsaw display method, which is applied to a server side: receiving a target image, each target image block obtained by dividing the target image and a target jigsaw terminal; acquiring the number sequence of target images of all target image blocks in a target image; selecting a preset number of image blocks to be backed up from an image block set formed by all target image blocks; carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block; respectively inserting the numbers of the backup image blocks into the parallel positions of the numbers of the corresponding target image blocks in the sequence of the number of the target image to obtain the sequence of the number of the incremental image; calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to a target jigsaw puzzle end according to the random image number sequence; receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw terminal; and returning the serial number sequence of the spliced images to the jigsaw request end so that the jigsaw request end carries out jigsaw display according to the serial number sequence of the spliced images.
According to the technical scheme, after the target image is divided, the target image blocks are numbered, the target image blocks are spliced at the target splicing end to obtain the spliced image, the splicing image number sequence of the target image blocks in the spliced image is obtained, the splicing image number sequence is only returned to the splicing request end, and the target image blocks do not need to be returned to the splicing request end according to the sequence of the splicing image number sequence. The target jigsaw terminal and the jigsaw request terminal only need to transmit the image blocks once, so that the bandwidth is greatly saved, and the transmission efficiency of the image blocks is improved.
Accordingly, embodiments of the present invention further provide a jigsaw display system and a computer readable storage medium corresponding to the jigsaw display method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart illustrating an embodiment of a method for displaying a jigsaw puzzle;
FIG. 2 is a flowchart illustrating another embodiment of a method for displaying a jigsaw puzzle according to the present invention;
FIG. 3 is a flowchart illustrating another embodiment of a method for displaying a jigsaw puzzle according to the present invention;
FIG. 4 is a flowchart illustrating another implementation of a tile display method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a puzzle display system according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating a method for displaying a jigsaw puzzle according to an embodiment of the present invention, where the method includes the following steps:
s101: the method comprises the steps of receiving a target image, dividing the target image into target image blocks and a target jigsaw terminal.
When the jigsaw display is needed, the jigsaw request end cuts the target image to obtain each target image block. The jigsaw request end sends a target image, target image blocks obtained by dividing the target image and a target jigsaw end to the server end. The server receives the target image, each target image block obtained by dividing the target image and the target jigsaw puzzle terminal.
The target image may be any image used for puzzle presentation.
S102: and acquiring the target image number sequence of each target image block in the target image.
And the server side acquires the arrangement sequence of each target image block in the target image after receiving the target image, each target image block obtained by dividing the target image and the target jigsaw puzzle side.
And numbering the target image blocks according to the arrangement sequence of the target image blocks in the target image to obtain the numbering sequence of the target image. For example, when the target image is divided into 10 target image blocks, the target image blocks may be sequentially numbered as 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9 according to the arrangement order of the target image blocks in the target image.
S103: and selecting a preset number of image blocks to be backed up from an image block set formed by each target image block.
After each target image block is obtained through analysis, the server side selects a preset number of image blocks to be backed up from an image block set formed by each target image block. For the above example, assuming that the preset number is 2, the selected image blocks to be backed up are the target image blocks numbered 3 and 9.
It should be noted that the preset number may be set and adjusted according to actual situations, and this is not limited in the embodiment of the present invention.
S104: and carrying out backup operation on each image block to be backed up to obtain each backed-up target image block.
And the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block.
After each to-be-backed-up image block is selected and obtained, the server side performs backup operation on each to-be-backed-up image block to obtain each backed-up target image block. The backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block. For example, after the selected to-be-backed-up image blocks are the target image blocks numbered 3 and 9, backup operations are performed on the to-be-backed-up image blocks to obtain the target image blocks numbered 3 and 9 to be backed up.
S105: and respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain the incremental image number sequence.
After obtaining the backup target image blocks, the server inserts the backup image block numbers into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain the incremental image number sequence. Taking the above example, after obtaining the backed-up target image blocks numbered 3 and 9, 3 and 9 are inserted into the target image number order 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, and the obtained incremental image number order is 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9.
S106: and calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence.
After the incremental image numbering sequence is obtained, the server side calls a Randon random function to carry out random arrangement on the incremental image numbering sequence, and the random image numbering sequence is obtained. Taking the above example as a support, it is assumed that 0, 1, 2, 3, 3, 4, 5, 6, 7, 8, 9, 9 are randomly arranged by calling a Randon random function, and the obtained random image number sequence is 9, 5, 9, 2, 3, 3, 7, 4, 1, 8, 6, 0.
S107: and sending each target image block to a target jigsaw puzzle terminal according to the random image number sequence.
And after the random image number sequence is obtained, the server side sends each target image block to the target jigsaw puzzle side according to the random image number sequence. Taking the above example as a support, when the obtained random image number sequence is 9, 5, 9, 2, 3, 3, 7, 4, 1, 8, 6, 0, the corresponding target image blocks are sent to the target puzzle side according to the random image number sequence.
It should be noted that the target image block sent to the target puzzle side here includes both the original target image block and the target image block obtained by backup.
S108: and receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw terminal.
And after receiving each target image block sent by the server according to the random image number sequence, the target jigsaw terminal splices each target image block to obtain a jigsaw image. And the target jigsaw terminal acquires the number sequence of the spliced images of the target image blocks in the jigsaw images and returns the number sequence of the spliced images to the server terminal. And the server receives the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw terminal.
S109: and returning the serial number sequence of the spliced images to the jigsaw requesting end so that the jigsaw requesting end carries out jigsaw display according to the serial number sequence of the spliced images.
And after receiving the splicing image number sequence, the server returns the splicing image number sequence to the splicing request end. The jigsaw requesting terminal carries out jigsaw display according to the sequence of the serial numbers of the spliced images, the specific jigsaw requesting terminal carries out the splicing on each target image block according to the sequence of the serial numbers of the spliced images to obtain a jigsaw image, and the jigsaw display is carried out according to the comparison result by comparing the jigsaw image with the target image. In the process of displaying the jigsaw puzzle, the target jigsaw puzzle end and the jigsaw puzzle request end only need to transmit the image blocks once, so that the bandwidth is greatly saved, and the transmission efficiency of the image blocks is improved.
According to the technical scheme, after the target image is divided, the target image blocks are numbered, after the target image blocks are spliced at the target splicing end to obtain the splicing image, the splicing image number sequence of the target image blocks in the splicing image is obtained, the splicing image number sequence is only returned to the splicing request end, and the target image blocks do not need to be returned to the splicing request end according to the sequence of the splicing image number sequence. The target jigsaw terminal and the jigsaw request terminal only need to transmit the image blocks once, so that the bandwidth is greatly saved, and the transmission efficiency of the image blocks is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of the tile display method in the embodiment of the present invention, applied to a server, where the method may include the following steps:
s201: the method comprises the steps of receiving a target image, dividing the target image into target image blocks according to the number of image division blocks generated by a Randon random function, and selecting a target jigsaw terminal according to a jigsaw terminal number generated by the Randon random function.
When the jigsaw display is needed, the jigsaw request end generates 10 image division blocks according to the number of image division blocks generated by a Randon random function, for example, by randomly extracting in 10-20, and divides the target image according to the number of the image division blocks to obtain each target image block. And if the number of the jigsaw terminal generated according to the Randon random function is 5 jigsaw terminals in total, the generated jigsaw terminal number is 3 through random extraction in 0-4, and the target jigsaw terminal is the No. 3 jigsaw terminal. And the server receives the jigsaw request, analyzes the jigsaw request, and obtains each target image block obtained by dividing the target image according to the number of image division blocks generated by the Randon random function and a target jigsaw end selected according to the jigsaw terminal number generated by the Randon random function.
S202: and acquiring the target image number sequence of each target image block in the target image.
S203: selecting a preset number of images to be backed up from an image block set formed by all target image blocks
S204: and carrying out backup operation on each image block to be backed up to obtain each backed-up target image block.
And the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block.
S205: and respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain the incremental image number sequence.
S206: and calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence.
S207: and sending each target image block to a target jigsaw puzzle terminal according to the random image number sequence.
And after the random image number sequence is obtained, the server side sends each target image block to the target jigsaw puzzle side according to the random image number sequence.
S208: and receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw terminal.
After receiving each target image block, the target image splicing end selects a plurality of target image blocks of image segmentation blocks generated according to a Randon random function from each target image block, and splices the selected target image blocks to obtain a spliced image. The backup target image blocks are added in each target image block sent to the target jigsaw terminal, so that the jigsaw difficulty is increased, and the jigsaw display effect is improved.
S209: and returning the serial number sequence of the spliced images to the jigsaw requesting end so that the jigsaw requesting end carries out jigsaw display according to the serial number sequence of the spliced images.
Example three:
referring to fig. 3, fig. 3 is a flowchart of another implementation of the tile display method according to the embodiment of the present invention, applied to a tile requesting end, where the method includes the following steps:
s301: and acquiring a target image to be segmented and a target jigsaw puzzle end.
S302: and carrying out segmentation operation on the target image to obtain each target image block.
S303: and sending the target image, each target image block and the target jigsaw terminal to the server terminal so that the server terminal sends the target image numbers of the target image blocks in the target image to the target jigsaw terminal for jigsaw processing after randomly arranging the target image numbers of the target image blocks in the target image.
S304: and receiving the splicing image number sequence of each target image block in the splicing image returned by the server.
S305: and performing jigsaw display according to the sequence of the spliced images.
According to the technical scheme, after the target image is divided, the target image blocks are numbered, the target image blocks are spliced at the target splicing end to obtain the spliced image, the splicing image number sequence of the target image blocks in the spliced image is obtained, the splicing image number sequence is only returned to the splicing request end, and the target image blocks do not need to be returned to the splicing request end according to the sequence of the splicing image number sequence. The target jigsaw terminal and the jigsaw request terminal only need to transmit the image blocks once, so that the bandwidth is greatly saved, and the transmission efficiency of the image blocks is improved.
Example four:
referring to fig. 4, fig. 4 is a flowchart of another implementation of the tile display method according to the embodiment of the present invention, applied to a tile requesting end, where the method includes the following steps:
s401: and acquiring a target image to be segmented.
S402: and calling a Randon random function to generate a jigsaw terminal number.
S403: and selecting the jigsaw terminal corresponding to the jigsaw terminal number as a target jigsaw terminal.
S404: and carrying out segmentation operation on the target image to obtain each target image block.
S405: and sending the target image, each target image block and the target jigsaw terminal to the server terminal so that the server terminal sends the target image numbers of the target image blocks in the target image to the target jigsaw terminal for jigsaw processing after randomly arranging the target image numbers of the target image blocks in the target image.
S406: and receiving the splicing image number sequence of each target image block in the splicing image returned by the server.
S407: and when the number of the jigsaw terminal is multiple, comparing and displaying the multiple puzzles according to the sequence of the numbers of the spliced images respectively returned by each target jigsaw terminal.
When the number of the jigsaw terminal is multiple, the jigsaw request end can carry out comparison and display of multiple jigsaw according to the sequence of the number of the spliced images respectively returned by each target jigsaw end, and the jigsaw results of each target jigsaw end can be conveniently compared.
S408: and acquiring a jigsaw display result.
And performing jigsaw display on the jigsaw image returned by the target jigsaw terminal at the jigsaw request terminal to obtain a jigsaw display result, and then obtaining the jigsaw display result by the jigsaw request terminal.
S409: and uploading the jigsaw display result to a cloud server.
After the jigsaw display result is obtained, the jigsaw request end uploads the jigsaw display result to the cloud server. The subsequent checking of the results of the jigsaw puzzle is facilitated, and the thinking is expanded.
In a specific example application, the teacher end serves as a jigsaw request end, the student end serves as a target jigsaw end, and the service end is further included. The teacher divides a target picture into 10 target image blocks, and the target image blocks are numbered as 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 in sequence according to the arrangement sequence of the target image blocks in the target picture. The server side obtains the arrangement sequence of each target image block in the target image, randomly arranges 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9 by calling a Randon random function, obtains a random image number sequence of 9, 5, 2, 3, 7, 4, 1, 8, 6 and 0, and sends each corresponding target image block to the student side according to the random image number sequence. And after receiving the target image blocks sent by the server according to the random image number sequence, the student end splices the target image blocks to obtain a jigsaw image. The student side obtains the number sequence of the spliced images of the target image blocks in the jigsaw puzzle images and returns the number sequence of the spliced images to the server side. And after receiving the number sequence of the spliced images, the server returns the number sequence of the spliced images to the teacher end. And the teacher end splices the target image blocks according to the splicing image number sequence to obtain a jigsaw image, and performs jigsaw display according to the comparison result by comparing the jigsaw image with the target image.
Corresponding to the above method embodiments, the present invention further provides a system for displaying puzzles, and the system for displaying puzzles described below and the method for displaying puzzles described above can be referred to correspondingly.
Referring to fig. 5, fig. 5 is a block diagram of a puzzle displaying system according to an embodiment of the present invention, the puzzle displaying system may include:
a jigsaw request terminal 51, configured to obtain a target image to be divided and a target jigsaw terminal 53; carrying out segmentation operation on the target image to obtain each target image block; sending the target image, each target image block, and the target puzzle terminal to the server terminal 52; performing jigsaw display according to the sequence of the serial numbers of the spliced images;
the server 52 is configured to obtain a target image number sequence of each target image block in the target image; selecting a preset number of image blocks to be backed up from an image block set formed by all target image blocks; carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block; respectively inserting the numbers of the backup image blocks into the parallel positions of the numbers of the corresponding target image blocks in the sequence of the numbers of the target images to obtain the sequence of the numbers of the incremental images; calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to the target puzzle terminal 53 according to the random image number sequence; the sequence of the numbers of the spliced images is returned to the jigsaw request terminal 51;
a target image splicing end 53 for performing image splicing processing on each target image block; and returning the number sequence of the spliced images of the target image blocks in the jigsaw puzzle image to the server 52.
According to the technical scheme, after the target image is divided, the target image blocks are numbered, the target image blocks are spliced at the target splicing end to obtain the spliced image, the splicing image number sequence of the target image blocks in the spliced image is obtained, the splicing image number sequence is only returned to the splicing request end, and the target image blocks do not need to be returned to the splicing request end according to the sequence of the splicing image number sequence. The target jigsaw terminal and the jigsaw request terminal only need to transmit the image blocks once, so that the bandwidth is greatly saved, and the transmission efficiency of the image blocks is improved.
In an embodiment of the present invention, the puzzle requesting terminal 51 is specifically configured to divide the target image into each target image block according to the number of image division blocks generated by the Randon random function.
In a specific embodiment of the present invention, the puzzle requesting terminal 51 is specifically configured to call a Randon random function to generate a puzzle terminal number; the puzzle end corresponding to the puzzle terminal number is selected as the target puzzle end 53.
In an embodiment of the present invention, the tile requesting end 51 is specifically configured to perform comparison display of multiple tiles according to the sequence of the numbers of the tile images returned by the target tile ends 53 when there are multiple tile terminal numbers.
In an embodiment of the present invention, the jigsaw request terminal 51 is further configured to obtain a jigsaw display result after performing comparison display on a plurality of jigsaws according to the sequence of the numbers of the mosaic images respectively returned by the target jigsaw terminals 53; and uploading the jigsaw display result to a cloud server.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
receiving a target image, each target image block obtained by dividing the target image and a target jigsaw terminal; acquiring the number sequence of target images of all target image blocks in a target image; selecting a preset number of image blocks to be backed up from an image block set formed by all target image blocks; carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block; respectively inserting the numbers of the backup image blocks into the parallel positions of the numbers of the corresponding target image blocks in the sequence of the number of the target image to obtain the sequence of the number of the incremental image; calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to a target jigsaw puzzle end according to the random image number sequence; receiving a splicing image number sequence of each target image block in the splicing image returned by the target splicing end; and returning the serial number sequence of the spliced images to the jigsaw requesting end so that the jigsaw requesting end carries out jigsaw display according to the serial number sequence of the spliced images.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The system and the computer-readable storage medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (5)

1. A jigsaw display method is applied to a server side, and comprises the following steps:
receiving a target image, target image blocks obtained by dividing the target image and a target jigsaw terminal;
acquiring a target image number sequence of each target image block in the target image;
selecting a preset number of image blocks to be backed up from an image block set formed by each target image block;
carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block;
respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain an incremental image number sequence;
calling a random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence;
sending each target image block to the target jigsaw puzzle end according to the random image number sequence;
receiving the number sequence of the spliced images of the target image blocks in the jigsaw images returned by the target jigsaw end;
and returning the sequence of the spliced image numbers to a jigsaw requesting end so that the jigsaw requesting end carries out jigsaw display according to the sequence of the spliced image numbers.
2. The method of claim 1, wherein receiving target tiles and target puzzle pieces obtained by segmenting a target image comprises:
and receiving each target image block obtained by dividing the target image according to the number of image division blocks generated by the Randon random function, and a target jigsaw end selected according to the jigsaw terminal number generated by the Randon random function.
3. A puzzle display system, comprising:
the jigsaw request end is used for acquiring a target image to be divided and a target jigsaw end; carrying out segmentation operation on the target image to obtain each target image block; sending the target image, each target image block and the target jigsaw puzzle terminal to a server terminal;
the server is used for acquiring the target image number sequence of each target image block in the target image; selecting a preset number of image blocks to be backed up from an image block set formed by each target image block; carrying out backup operation on each image block to be backed up to obtain a target image block of each backup; the backup image block number of each backup target image block is the same as the target image block number of the corresponding original target image block; respectively inserting the numbers of the backup image blocks into the parallel positions of the corresponding target image block numbers in the target image number sequence to obtain an incremental image number sequence; calling a Randon random function to carry out random arrangement on the incremental image numbering sequence to obtain a random image numbering sequence; sending each target image block to the target jigsaw terminal according to the random image number sequence; the sequence of the numbers of the spliced images is returned to the jigsaw request end;
the target image splicing end is used for carrying out image splicing processing on each target image block; the sequence of the number of the spliced images of the target image blocks in the jigsaw puzzle image is returned to the server;
and the jigsaw request end is also used for splicing the target image blocks according to the splicing image number sequence to obtain a jigsaw image, comparing the jigsaw image with the target image and carrying out jigsaw display according to the comparison result.
4. A jigsaw display system according to claim 3, in which the jigsaw request terminal is specifically configured to invoke a Randon random function to generate a jigsaw terminal number; and selecting the jigsaw terminal corresponding to the jigsaw terminal number as a target jigsaw terminal.
5. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the puzzle presentation method according to any one of claims 1-2.
CN202011231035.8A 2020-11-06 2020-11-06 Jigsaw display method, system and computer readable storage medium Active CN112337078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011231035.8A CN112337078B (en) 2020-11-06 2020-11-06 Jigsaw display method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011231035.8A CN112337078B (en) 2020-11-06 2020-11-06 Jigsaw display method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112337078A CN112337078A (en) 2021-02-09
CN112337078B true CN112337078B (en) 2022-07-01

Family

ID=74428972

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011231035.8A Active CN112337078B (en) 2020-11-06 2020-11-06 Jigsaw display method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112337078B (en)

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06343764A (en) * 1993-06-08 1994-12-20 Tomo Miyuujitsuku:Kk Puzzle-game device
JP2848270B2 (en) * 1995-05-22 1999-01-20 カシオ計算機株式会社 Display control device and display control method
TW200927247A (en) * 2007-07-03 2009-07-01 G Time Electronic Co Ltd Game system and method of playing game
CN105323065B (en) * 2014-07-21 2020-06-16 腾讯科技(深圳)有限公司 Security verification method and device
CN104574466B (en) * 2015-01-14 2017-12-12 广东小天才科技有限公司 A kind of picture mosaic learning method and system
CN104598802A (en) * 2015-02-13 2015-05-06 北京京东尚科信息技术有限公司 Verification method and system based on puzzle
CN110971529A (en) * 2018-09-28 2020-04-07 杭州海康威视数字技术股份有限公司 Data transmission method and device, electronic equipment and storage medium
CN110152285A (en) * 2019-04-11 2019-08-23 无锡天脉聚源传媒科技有限公司 A kind of processing method, system and the storage medium of picture arrangement game data
CN111078103B (en) * 2019-07-29 2022-03-01 广东小天才科技有限公司 Learning interaction method, electronic equipment and storage medium
CN114036338A (en) * 2019-08-09 2022-02-11 成都天府新区天方智能科技有限公司 Jigsaw component identification system

Also Published As

Publication number Publication date
CN112337078A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US10499035B2 (en) Method and system of displaying a popping-screen
US7671857B2 (en) Three dimensional image processing
CN106648391B (en) Handwriting synchronization method, device and system
CN111179402B (en) Rendering method, device and system of target object
CN112532998B (en) Method, device and equipment for extracting video frame and readable storage medium
CN113206975A (en) Video conference picture display method, device, equipment and storage medium
CN114782648A (en) Image processing method, image processing device, electronic equipment and storage medium
US20110037830A1 (en) Plug and play multiplexer for any stereoscopic viewing device
CN112337078B (en) Jigsaw display method, system and computer readable storage medium
CN113839998A (en) Image data transmission method, device, equipment, storage medium and program product
CN107040779B (en) Panoramic video coding method and device
CN109615583B (en) Game map generation method and device
CN107147946A (en) A kind of method for processing video frequency and device
CN107396030B (en) Video call processing method and scheduling control terminal
CN115591243A (en) Rendering channel performance detection method and device, electronic equipment and storage medium
CN115934179A (en) Service function control method and equipment
CN112099745B (en) Image display method, device and system
CN114693894A (en) Method, system and device for converting pictures into building blocks in virtual world
CN109544664B (en) Animation data processing method and device, electronic equipment and readable storage medium
CN111325816A (en) Feature map processing method and device, storage medium and terminal
CN112169332B (en) Display method, device and equipment of 2D map and storage medium
WO2022119039A1 (en) Augmented reality object generation apparatus and method using virtual cameras
CN115731325A (en) Animation implementation method and device, electronic equipment and storage medium
CN115988231A (en) Bullet screen display method and device
CN116320545A (en) Video content auditing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 410000 Yuelu District Yuelu street, Changsha, Hunan Province, 5 left 101 rooms of R & D headquarters of Central South University Science Park.

Patentee after: New Cloud Technology Group Co.,Ltd.

Country or region after: China

Address before: Room 101 Building 5 R&D Headquarters Zhongnan University Science and Technology Park Yingzuo Road Yuelu Street Yuelu District Changsha City Hunan Province

Patentee before: HUNAN NEW CLOUDNET TECHNOLOGY Co.,Ltd.

Country or region before: China