CN114356191B - Circuit board image display method, device, equipment and storage medium - Google Patents

Circuit board image display method, device, equipment and storage medium Download PDF

Info

Publication number
CN114356191B
CN114356191B CN202210205864.1A CN202210205864A CN114356191B CN 114356191 B CN114356191 B CN 114356191B CN 202210205864 A CN202210205864 A CN 202210205864A CN 114356191 B CN114356191 B CN 114356191B
Authority
CN
China
Prior art keywords
image
circuit board
local
loaded
board image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210205864.1A
Other languages
Chinese (zh)
Other versions
CN114356191A (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.)
Beijing Aqiu Technology Co ltd
Original Assignee
Beijing Aqiu 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 Beijing Aqiu Technology Co ltd filed Critical Beijing Aqiu Technology Co ltd
Priority to CN202210205864.1A priority Critical patent/CN114356191B/en
Publication of CN114356191A publication Critical patent/CN114356191A/en
Application granted granted Critical
Publication of CN114356191B publication Critical patent/CN114356191B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04806Zoom, i.e. interaction techniques or interactors for controlling the zooming operation

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Processing (AREA)

Abstract

The invention belongs to the technical field of computers, and discloses a circuit board image display method, device, equipment and storage medium. The method comprises the following steps: when a circuit board image viewing instruction input by a user is received, obtaining a circuit board image to be loaded; determining a local amplified image of the circuit board image to be loaded based on a historical viewing record of a user, and loading the circuit board image to be loaded and the local amplified image to a global variable; when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction; and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying the corresponding local amplified image. By the method, the circuit board image and the local enlarged image are loaded into the global variable in advance, and when the circuit board image needs to be displayed, the circuit board image and the local enlarged image are directly read from the global variable and displayed, so that the loading time is shortened, and the efficiency of checking the circuit board image is improved.

Description

Circuit board image display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying an image on a circuit board.
Background
When a large number of pictures are displayed on a webpage, the current common practice is to prepare the pictures, place the prepared pictures in a picture server, and directly transmit url (address in the server) of the pictures to a front end by the back end when the pictures need to be displayed or used, and the front end interface can acquire the pictures at the address. The scheme generally needs to store the pictures in advance according to a certain format and rule, and cannot generate and timely process and display the pictures.
Patent document No. CN111273884A discloses an image display method, apparatus, and electronic device. One embodiment of the method comprises: determining an undisplayed sub image in a target page as a sub image to be viewed from a plurality of sub images contained in an image to be displayed; loading a subimage to be viewed; and displaying a sub image to be viewed in the target page, wherein the sub image to be viewed is displayed in response to the detection of the viewing operation performed by the user.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for displaying an image of a circuit board, and aims to solve the technical problem of how to generate and process a display image in time in the prior art.
In order to achieve the above object, the present invention provides a circuit board image display method, comprising the steps of:
when a circuit board image viewing instruction input by a user is received, obtaining a circuit board image to be loaded;
determining a local amplified image of the circuit board image to be loaded based on the historical viewing record of the user, and loading the circuit board image to be loaded and the local amplified image into a global variable;
when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction;
and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying a local amplification image of the circuit board image to be loaded.
Optionally, the determining a locally enlarged image of the to-be-loaded circuit board image based on the historical viewing record of the user includes:
determining a plurality of historical local amplified images corresponding to the historical circuit board images according to the historical viewing records;
determining the viewing time length of each historical local amplified image;
determining a target local resolution according to the viewing duration;
and determining the local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image.
Optionally, the determining the local enlarged image of the to-be-loaded circuit board image according to the target local resolution and the historical local enlarged images includes:
dividing the circuit board image to be loaded into a plurality of local amplified images to be selected, wherein the local amplified images have the resolution consistent with the target local resolution;
determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image;
and selecting a local amplified image from each local amplified image to be selected according to the maximum similarity matching degree.
Optionally, the determining a maximum similarity matching degree between each candidate locally-enlarged image and each history locally-enlarged image includes:
graying each historical local amplified image to obtain each grayscale historical local amplified image, and graying each to-be-selected local amplified image to obtain each grayscale to-be-selected local amplified image;
normalizing each gray scale history local enlarged image into each normalized gray scale history local enlarged image with a preset size, and normalizing each gray scale candidate local enlarged image into each normalized gray scale candidate local enlarged image with the preset size;
matching each normalized gray scale historical local amplified image with each normalized gray scale local amplified image to be selected to obtain a similarity matching degree set of each normalized gray scale local amplified image to be selected;
and selecting the maximum similarity matching degree from the similarity matching degree set.
Optionally, the selecting a local enlarged image from each to-be-selected local enlarged image according to the maximum similarity matching degree includes:
sorting the local amplified images to be selected according to the maximum similarity matching degree;
and selecting the local enlarged image from the sorted local enlarged images to be selected.
Optionally, after determining the target circuit board image according to the board cutting operation instruction when the board cutting operation instruction input by the user is received, the method further includes:
deleting the circuit board image to be loaded in the global variable when the target circuit board image is not the circuit board image to be loaded in the global variable;
acquiring the target circuit board image;
acquiring a target circuit board image to be loaded according to the target circuit board image;
and loading the local amplified image of the target circuit board image to be loaded into the global variable.
Optionally, the acquiring an image of a circuit board to be loaded includes:
determining the checked circuit board image;
and acquiring a first circuit board image to be loaded, a second circuit board image to be loaded and a third circuit board image to be loaded according to the checked circuit board image.
Further, in order to achieve the above object, the present invention also provides a circuit board image display device including:
the image acquisition module is used for acquiring a circuit board image to be loaded when a circuit board image viewing instruction input by a user is received;
the image loading module is used for determining a local amplified image of the circuit board image to be loaded based on the historical viewing record of the user and loading the circuit board image to be loaded and the local amplified image into a global variable;
the image switching module is used for determining a target circuit board image according to the board cutting operation instruction when the board cutting operation instruction input by the user is received;
and the image display module is used for displaying the local amplified image of the circuit board image to be loaded when the target circuit board image is the circuit board image to be loaded in the global variable.
Further, to achieve the above object, the present invention also proposes a wiring board image display apparatus comprising: the image display method comprises a memory, a processor and a circuit board image display program stored on the memory and capable of running on the processor, wherein the circuit board image display program is configured to realize the steps of the circuit board image display method.
Further, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a wiring board image display program which, when executed by a processor, realizes the steps of the wiring board image display method as described above.
In the invention, when a circuit board image viewing instruction input by a user is received, a circuit board image to be loaded is obtained; determining a local amplified image of the circuit board image to be loaded based on a historical viewing record of a user, and loading the circuit board image to be loaded and the local amplified image to a global variable; when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction; and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying the corresponding local amplified image. By the method, the circuit board image and the local enlarged image are loaded into the global variable in advance, and when the circuit board image needs to be displayed, the circuit board image and the local enlarged image are directly read from the global variable and displayed, so that the loading time is shortened, and the efficiency of checking the circuit board image is improved.
Drawings
Fig. 1 is a schematic structural diagram of a circuit board image display device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a circuit board image display method according to the present invention;
FIG. 3 is a schematic diagram of image loading according to an embodiment of the circuit board image display method of the present invention;
FIG. 4 is a schematic overall flow chart of an embodiment of a circuit board image display method according to the present invention;
FIG. 5 is a schematic flow chart of a second embodiment of a circuit board image display method according to the present invention;
FIG. 6 is a block diagram of a first embodiment of the circuit board image display device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a circuit board image display device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the wiring board image display apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in fig. 1 does not constitute a limitation of a wiring board image display device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a board image display program.
In the wiring board image display apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the circuit board image display apparatus according to the present invention may be provided in a circuit board image display apparatus that calls a circuit board image display program stored in the memory 1005 by the processor 1001 and executes the circuit board image display method provided by the embodiment of the present invention.
An embodiment of the present invention provides a method for displaying an image of a circuit board, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of the method for displaying an image of a circuit board according to the present invention.
In this embodiment, the circuit board image display method includes the following steps:
step S10: and when a circuit board image viewing instruction input by a user is received, acquiring a circuit board image to be loaded.
It should be noted that the execution subject of the present embodiment is a terminal device, such as a computer, an intelligent mobile terminal, and the like. The terminal equipment comprises a background and a front end, wherein the background is used for acquiring circuit board images from the data server, and the front end is used for displaying the circuit board images.
It can be understood that, when a user needs to view pictures, the user acquires the pictures from the data server in real time, but when the network bandwidth is low, the viewing experience of the user is affected by loading the pictures, and because the circuit board is fine and complicated, the part needing to be checked in the circuit board image needs to be enlarged and viewed, the circuit board image is loaded in real time, and then the checking efficiency of the circuit board is seriously affected by the user automatically enlarging the image.
In this embodiment, when a circuit board image viewing instruction input by a user is received, an image of a circuit board to be loaded is obtained from a data server in advance, and since the user usually checks according to the serial number sequence of the circuit board, the next image of the circuit board image that the user has last viewed (i.e., the image of the circuit board to be loaded) is directly obtained.
Further, the acquiring an image of the circuit board to be loaded includes: determining the checked circuit board image; and acquiring a first circuit board image to be loaded, a second circuit board image to be loaded and a third circuit board image to be loaded according to the checked circuit board image.
It should be noted that the viewed circuit board image refers to a circuit board image that has been viewed by a user last time, a number of the viewed circuit board image is determined, and three circuit board images after the number are obtained, that is, a first circuit board image to be loaded, a second circuit board image to be loaded, and a third circuit board image to be loaded.
Meanwhile, three circuit board images are loaded in advance, so that the phenomenon that the checking speed is higher than the loading speed due to the fact that the user checks the circuit board images too fast can be effectively avoided, and further the checking efficiency of the circuit board images is reduced.
Step S20: and determining a local amplified image of the circuit board image to be loaded based on the historical viewing record of the user, and loading the circuit board image to be loaded and the local amplified image into a global variable.
It should be noted that the history viewing record includes what portions of the viewed circuit board image are magnified by the user, and what resolution of the magnified image is. For example, the user zooms in on some portion of the historical view wiring board image to a 300 x 300 pixel image or a 400 x 600 pixel image. The part of the wiring board to be loaded is enlarged to 300 × 300 pixels or 400 × 600 pixels, thereby obtaining a partially enlarged image. The local magnified image includes the defective portion of the circuit board in the circuit board image to be loaded, and different circuit boards have different defects, so the local magnified image has different numbers according to the size of the circuit board image to be loaded. For example, the image of the circuit board to be loaded may have 50 partial enlarged images.
After the local amplified images of the first to-be-loaded circuit board image, the second to-be-loaded circuit board image and the third to-be-loaded circuit board image are obtained, the to-be-loaded circuit board image and the local amplified images are stored into a global variable, and the global variable is stored in a memory of the terminal equipment, so that the front end can conveniently and rapidly read and display the to-be-loaded circuit board image and the local amplified images. As shown in fig. 3, NG1 is a first to-be-loaded circuit board image, 50 local enlarged images are provided in total, NG2 is a second to-be-loaded circuit board image, 70 local enlarged images are provided in total, NG3 is a third to-be-loaded circuit board image, 30 local enlarged images are provided in total, the first to-be-loaded circuit board image, the second to-be-loaded circuit board image and the local enlarged images of the third to-be-loaded circuit board image are not all stored in a global variable, and the first 30 local enlarged images of the first to-be-loaded circuit board image, the first 20 local enlarged images of the second to-be-loaded circuit board image and the first 20 local enlarged images of the third to-be-loaded circuit board image are stored in the global variable.
Step S30: and when receiving a board cutting operation instruction input by the user, determining a target circuit board image according to the board cutting operation instruction.
It can be understood that, the board cutting operation instruction is used for switching the circuit board image being viewed, and the front-end interface includes: "next page local enlarged image", "next circuit board image", "input circuit board number to be checked", and the like. Since a large number of partial enlarged images can be displayed at the same time, a plurality of partial enlarged images can be displayed in the same page, and when all the partial enlarged images cannot be displayed in the same page, the partial enlarged images are divided into a plurality of pages to be displayed. When a user clicks the 'next local enlarged image', the circuit board image cannot be switched on the front-end page, and only the next local enlarged image of the circuit board image is switched. When the user clicks the next circuit board image, the fact that the user inputs the board cutting operation instruction is judged, the next circuit board image needs to be switched to, and the next circuit board image is the target circuit board image. When the user clicks 'input of the circuit board number to be checked', the user can be supported not to check the image according to the circuit board number, and after the user inputs the determined circuit board number in the input box, the target circuit board image is determined according to the circuit board number.
Step S40: and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying a local amplification image of the circuit board image to be loaded.
It should be noted that, the circuit board number of the target circuit board image is matched with the circuit board number of the circuit board image to be loaded in the global variable, and when the matching is successful, the front end loads the corresponding circuit board image to be loaded from the global variable and displays the locally amplified image of the circuit board image to be loaded.
Further, after determining the target circuit board image according to the board cutting operation instruction when receiving the board cutting operation instruction input by the user, the method further includes: deleting the circuit board image to be loaded in the global variable when the target circuit board image is not the circuit board image to be loaded in the global variable; acquiring the target circuit board image; acquiring a target circuit board image to be loaded according to the target circuit board image; and loading the local amplified image of the target circuit board image to be loaded into the global variable.
In the specific implementation, when the target circuit board image and the corresponding local amplified image are not stored in the global variable, the circuit board image to be loaded and the corresponding local amplified image in the global variable are deleted immediately, the circuit board image (namely the target circuit board image to be loaded) is downloaded immediately from the data server, the local amplified image of the target circuit board image to be loaded is generated after the downloading is completed, the local amplified image of the target circuit board image to be loaded and the target circuit board image to be loaded are stored in the global variable, and the local amplified image and the target circuit board image to be loaded are read from the global variable and displayed at the front end.
Similarly, the front end can also directly download the target circuit board image to be loaded from the data server, and the user can automatically amplify the image for viewing, so that a background is not needed to generate a local enlarged image, and the checking efficiency of the user can be improved.
It can be understood that, as shown in fig. 4, the haveredboard is a global variable, when the circuit board image needs to be checked, whether the circuit board image and the locally amplified image exist in the haveredboard is detected, when the circuit board image exists, the ith part of the circuit board image is read, when a user has a board cutting operation, whether the circuit board image needing to be switched is stored in the haveredboard is judged, and when the circuit board image does not exist in the haveredboard, the corresponding circuit board image is searched and stored in the haveredboard.
In the embodiment, when a circuit board image viewing instruction input by a user is received, a circuit board image to be loaded is obtained; determining a local amplified image of the circuit board image to be loaded based on a historical viewing record of a user, and loading the circuit board image to be loaded and the local amplified image to a global variable; when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction; and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying the corresponding local amplified image. By the method, the circuit board image and the local enlarged image are loaded into the global variable in advance, and when the circuit board image needs to be displayed, the circuit board image and the local enlarged image are directly read from the global variable and displayed, so that the loading time is shortened, and the efficiency of checking the circuit board image is improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of a circuit board image display method according to a second embodiment of the present invention.
Based on the first embodiment, in step S20, the method for displaying images on a circuit board according to this embodiment includes:
step S21: and determining a plurality of historical local enlarged images corresponding to the historical circuit board images according to the historical viewing records.
In a specific implementation, the historical circuit board image refers to a circuit board image that has been viewed by a user, and when the user does not view any circuit board image, a local enlarged image is not generated, and the circuit board image is automatically enlarged by the user. When the user amplifies the circuit board image by himself, the terminal device records the resolution of the circuit board image when the user amplifies the circuit board image, and records the image (namely, the historical partial amplification) when the circuit board image is viewed and the data such as viewing time.
Step S22: and determining the viewing time length of each historical local magnified image.
It can be understood that the viewing duration of each history local enlarged image is recorded in the history viewing record, and the viewing duration may be 5 seconds, 10 seconds, and the like, which is not limited in this embodiment.
Step S23: and determining the target local resolution according to the viewing time.
It should be noted that the history local magnified image whose viewing time has passed the preset time is selected, and the preset time may be 10 seconds or 15 seconds. And taking the historical local enlarged image with the viewing time length exceeding the preset time length as a target historical local enlarged image, acquiring the resolution of the target historical local enlarged image, and calculating the average value of the resolutions of a plurality of target historical local enlarged images when the target historical local enlarged images are multiple, thereby obtaining the target local resolution.
Step S24: and determining a local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image, and loading the circuit board image to be loaded and the local amplified image into a global variable.
Further, the determining the local enlarged image of the to-be-loaded circuit board image according to the target local resolution and the historical local enlarged images includes: dividing the circuit board image to be loaded into a plurality of local amplified images to be selected, wherein the local amplified images have the resolution consistent with the target local resolution; determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image; and selecting a local amplified image from the local amplified images to be selected according to the maximum similarity matching degree.
It should be noted that, because the defective position of the circuit board to be loaded is already marked, the marked pixel is taken as a central point, and a defective position image within a preset range is selected, and a plurality of defective positions may exist on the circuit board to be loaded. For example, the marked pixel coordinate is (1000 ), the predetermined range is 800 × 800, and the defective position image has the pixel coordinates of (200 ), (200, 1800), (1800, 200), (1800 ). The above are merely examples, and the present embodiment is not limited thereto.
In a specific implementation, after obtaining the image of the incomplete position, based on the target local resolution, the image of the incomplete position is divided into a plurality of local enlarged images to be selected, for example: the resolution of the image at the incomplete position is 800 × 800, the target local resolution is 400 × 400, if the local enlarged image to be selected does not have a superposed image, the image can be divided into 4 local enlarged images to be selected, and if the superposed part exists, the image can be divided into more than 4 local enlarged images to be selected.
It will be appreciated that the defective portions on the circuit board are generally for several of the same reasons, for example: prevent welding hole foreign matter, metal hole foreign matter, etc. Therefore, the incomplete position on the local amplified image to be selected has certain similarity with the incomplete position on the historical local amplified image, and therefore the local amplified image to be selected which possibly has a similarity problem can be selected by determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image.
Further, the determining the maximum similarity matching degree between each local enlarged image to be selected and each historical local enlarged image includes: graying each history local amplified image to obtain each gray history local amplified image, and graying each local amplified image to be selected to obtain each gray local amplified image to be selected; normalizing each gray scale history local enlarged image into each normalized gray scale history local enlarged image with a preset size, and normalizing each gray scale candidate local enlarged image into each normalized gray scale candidate local enlarged image with the preset size; matching each normalized gray scale historical local amplified image with each normalized gray scale local amplified image to be selected to obtain a similarity matching degree set of each normalized gray scale local amplified image to be selected; and selecting the maximum similarity matching degree from the similarity matching degree set.
In this embodiment, graying means that each pixel in the pixel matrix satisfies the following relationship: r = G = B (i.e. the value of the red variable, the value of the green variable, and the value of the blue variable, which are equal), and this value is called the gray value. Normalization refers to unifying the resolution of images into one resolution. However, since the resolution of the local enlarged image to be selected is substantially the same as that of the historical local enlarged image, this step is only to prevent the presence of images with different resolutions.
It can be understood that the local enlarged image of the history of the first gray scale is set to be { x1, x2, x3... xn }, the local enlarged image to be selected of the first gray scale is set to be { y1, y2, y3... yn }, the similarity matching degrees are respectively calculated for y1 and { x1, x2, x3... xn }, a similarity matching degree set of y1 is obtained, and the similarity matching degrees are respectively calculated for y2 to yn and { x1, x2, x3... xn }, so that a similarity matching degree set of y2 to yn is obtained.
Therefore, the selected maximum similarity matching degree in the similarity matching degree set of the to-be-selected local enlarged images of the normalization gray scale is obtained, and each to-be-selected local enlarged image of the normalization gray scale has the corresponding maximum similarity matching degree.
Further, the selecting a local enlarged image from each to-be-selected local enlarged image according to the maximum similarity matching degree includes: sorting the local amplified images to be selected according to the maximum similarity matching degree; and selecting a local enlarged image from the sorted local enlarged images to be selected.
The local enlarged images to be selected are sorted according to the maximum similarity matching degree from large to small, and a preset number of the local enlarged images to be selected are selected as the local enlarged images, where the preset number may be 50, 60, 70, and the like, and this embodiment is not limited.
The embodiment determines a plurality of historical partial enlarged images corresponding to the historical circuit board images according to the historical viewing records; determining the viewing time of each historical local amplified image; determining a target local resolution according to the viewing duration; and determining the local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image. By means of the mode, the habitual resolution ratio of the user in the process of viewing the image is determined based on the historical viewing record of the user, so that the local enlarged image is determined in the circuit board image to be loaded, and the user experience is further improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a circuit board image display program, and the circuit board image display program, when executed by a processor, implements the steps of the circuit board image display method as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
Referring to fig. 6, fig. 6 is a block diagram of the first embodiment of the circuit board image display device of the present invention.
As shown in fig. 6, the circuit board image display device according to the embodiment of the present invention includes:
the image obtaining module 10 is configured to obtain an image of a circuit board to be loaded when a circuit board image viewing instruction input by a user is received.
The image loading module 20 is configured to determine a locally enlarged image of the to-be-loaded circuit board image based on the historical viewing record of the user, and load the to-be-loaded circuit board image and the locally enlarged image into a global variable.
And the image switching module 30 is configured to determine the target circuit board image according to the board cutting operation instruction when the board cutting operation instruction input by the user is received.
And the image display module 40 is configured to display a locally enlarged image of the to-be-loaded circuit board image when the target circuit board image is the to-be-loaded circuit board image in the global variable.
In the embodiment, when a circuit board image viewing instruction input by a user is received, a circuit board image to be loaded is obtained; determining a local amplified image of the circuit board image to be loaded based on a historical viewing record of a user, and loading the circuit board image to be loaded and the local amplified image to a global variable; when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction; and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying the corresponding local amplified image. By the method, the circuit board image and the local enlarged image are loaded into the global variable in advance, and when the circuit board image needs to be displayed, the circuit board image and the local enlarged image are directly read from the global variable and displayed, so that the loading time is shortened, and the efficiency of checking the circuit board image is improved.
In an embodiment, the image loading module 20 is further configured to determine a locally enlarged image of the to-be-loaded circuit board image based on the historical viewing record of the user, and includes: determining a plurality of historical local amplified images corresponding to the historical circuit board images according to the historical viewing records; determining the viewing time of each historical local amplified image; determining a target local resolution according to the viewing duration; and determining the local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image.
In an embodiment, the image loading module 20 is further configured to divide the to-be-loaded circuit board image into a plurality of to-be-selected locally-enlarged images with resolutions consistent with the target local resolution; determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image; and selecting a local amplified image from each local amplified image to be selected according to the maximum similarity matching degree.
In an embodiment, the image loading module 20 is further configured to graying each history local enlarged image to obtain each grayscale history local enlarged image, and graying each to-be-selected local enlarged image to obtain each grayscale to-be-selected local enlarged image; normalizing each gray scale history local enlarged image into each normalized gray scale history local enlarged image with a preset size, and normalizing each gray scale candidate local enlarged image into each normalized gray scale candidate local enlarged image with the preset size; matching each normalized gray scale historical local amplified image with each normalized gray scale local amplified image to be selected to obtain a similarity matching degree set of each normalized gray scale local amplified image to be selected; and selecting the maximum similarity matching degree from the similarity matching degree set.
In an embodiment, the image loading module 20 is further configured to sort the local enlarged images to be selected according to the maximum similarity matching degree; and selecting the local enlarged image from the sorted local enlarged images to be selected.
In an embodiment, the image switching module 30 is further configured to delete the to-be-loaded circuit board image in the global variable when the target circuit board image is not the to-be-loaded circuit board image in the global variable; acquiring the target circuit board image; acquiring a target circuit board image to be loaded according to the target circuit board image; and loading the local amplified image of the target circuit board image to be loaded into the global variable.
In an embodiment, the image obtaining module 10 is further configured to determine an image of a viewed circuit board; and acquiring a first to-be-loaded circuit board image, a second to-be-loaded circuit board image and a third to-be-loaded circuit board image according to the checked circuit board image.
It should be understood that the above is only an example, and the technical solution of the present invention is not limited in any way, and in a specific application, a person skilled in the art may set the technical solution as needed, and the present invention is not limited thereto.
In the embodiment, when a circuit board image viewing instruction input by a user is received, a circuit board image to be loaded is obtained; determining a local amplified image of the circuit board image to be loaded based on a historical viewing record of a user, and loading the circuit board image to be loaded and the local amplified image to a global variable; when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction; and when the target circuit board image is the circuit board image to be loaded in the global variable, displaying the corresponding local amplified image. By the method, the circuit board image and the local enlarged image are loaded into the global variable in advance, and when the circuit board image needs to be displayed, the circuit board image and the local enlarged image are directly read from the global variable and displayed, so that the loading time is shortened, and the efficiency of checking the circuit board image is improved.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may be referred to a circuit board image display method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or a part contributing to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A circuit board image display method is characterized by comprising the following steps:
when a circuit board image viewing instruction input by a user is received, obtaining a circuit board image to be loaded;
determining a local amplified image of the circuit board image to be loaded based on the historical viewing record of the user, and loading the circuit board image to be loaded and the local amplified image into a global variable;
when a board cutting operation instruction input by a user is received, determining a target circuit board image according to the board cutting operation instruction;
when the target circuit board image is the circuit board image to be loaded in the global variable, displaying a local amplified image of the circuit board image to be loaded;
the step of determining the local enlarged image of the circuit board image to be loaded based on the historical viewing record of the user comprises the following steps:
determining a plurality of historical local amplified images corresponding to the historical circuit board images according to the historical viewing records;
determining the viewing time of each historical local amplified image;
determining a target local resolution according to the viewing duration;
determining a local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image;
the determining the local enlarged image of the circuit board image to be loaded according to the target local resolution and the historical local enlarged images comprises the following steps:
dividing the circuit board image to be loaded into a plurality of local amplified images to be selected, wherein the local amplified images have the resolution consistent with the target local resolution;
determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image;
selecting a local amplified image from each local amplified image to be selected according to the maximum similarity matching degree;
the determining the maximum similarity matching degree between each local enlarged image to be selected and each historical local enlarged image comprises the following steps:
graying each history local amplified image to obtain each gray history local amplified image, and graying each local amplified image to be selected to obtain each gray local amplified image to be selected;
normalizing each gray scale history local enlarged image into each normalized gray scale history local enlarged image with a preset size, and normalizing each gray scale candidate local enlarged image into each normalized gray scale candidate local enlarged image with the preset size;
matching each normalized gray scale historical local amplified image with each normalized gray scale local amplified image to be selected to obtain a similarity matching degree set of each normalized gray scale local amplified image to be selected;
and selecting the maximum similarity matching degree from the similarity matching degree set.
2. The method as claimed in claim 1, wherein said selecting a locally enlarged image from each of the to-be-selected locally enlarged images according to the maximum similarity match comprises:
sorting the local amplified images to be selected according to the maximum similarity matching degree;
and selecting the local enlarged image from the sorted local enlarged images to be selected.
3. The method of claim 1, wherein after determining the target circuit board image according to the cutting operation instruction when the cutting operation instruction input by the user is received, the method further comprises:
deleting the circuit board image to be loaded in the global variable when the target circuit board image is not the circuit board image to be loaded in the global variable;
acquiring the target circuit board image;
acquiring a target circuit board image to be loaded according to the target circuit board image;
and loading the local amplified image of the target circuit board image to be loaded into the global variable.
4. The method according to any one of claims 1 to 3, wherein the acquiring of the circuit board image to be loaded comprises:
determining the checked circuit board image;
and acquiring a first circuit board image to be loaded, a second circuit board image to be loaded and a third circuit board image to be loaded according to the checked circuit board image.
5. A circuit board image display device, characterized by comprising:
the image acquisition module is used for acquiring a circuit board image to be loaded when a circuit board image viewing instruction input by a user is received;
the image loading module is used for determining a local amplified image of the circuit board image to be loaded based on the historical viewing record of the user and loading the circuit board image to be loaded and the local amplified image into a global variable;
the image switching module is used for determining a target circuit board image according to the board cutting operation instruction when the board cutting operation instruction input by the user is received;
the image display module is used for displaying a local amplified image of the circuit board image to be loaded when the target circuit board image is the circuit board image to be loaded in the global variable;
the image loading module is further used for determining a plurality of historical local enlarged images corresponding to the historical circuit board images according to the historical viewing records; determining the viewing time length of each historical local amplified image; determining a target local resolution according to the viewing duration; determining a local amplified image of the circuit board image to be loaded according to the target local resolution and each historical local amplified image;
the image loading module is also used for dividing the circuit board image to be loaded into a plurality of local amplification images to be selected, wherein the resolution of the local amplification images is consistent with the target local resolution; determining the maximum similarity matching degree between each local amplified image to be selected and each historical local amplified image; selecting a local amplified image from each local amplified image to be selected according to the maximum similarity matching degree;
the image loading module is also used for graying each historical local amplified image to obtain each grayscale historical local amplified image, and graying each local amplified image to be selected to obtain each grayscale local amplified image to be selected; normalizing each gray scale history local enlarged image into each normalized gray scale history local enlarged image with a preset size, and normalizing each gray scale candidate local enlarged image into each normalized gray scale candidate local enlarged image with the preset size; matching each normalized gray scale historical local amplified image with each normalized gray scale local amplified image to be selected to obtain a similarity matching degree set of each normalized gray scale local amplified image to be selected; and selecting the maximum similarity matching degree from the similarity matching degree set.
6. A circuit board image display apparatus, characterized in that the apparatus comprises: a memory, a processor, and a wiring board image display program stored on the memory and executable on the processor, the wiring board image display program being configured to implement the wiring board image display method according to any one of claims 1 to 4.
7. A storage medium having stored thereon a wiring board image display program which, when executed by a processor, realizes the wiring board image display method according to any one of claims 1 to 4.
CN202210205864.1A 2022-03-04 2022-03-04 Circuit board image display method, device, equipment and storage medium Active CN114356191B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210205864.1A CN114356191B (en) 2022-03-04 2022-03-04 Circuit board image display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210205864.1A CN114356191B (en) 2022-03-04 2022-03-04 Circuit board image display method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114356191A CN114356191A (en) 2022-04-15
CN114356191B true CN114356191B (en) 2022-07-12

Family

ID=81094318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210205864.1A Active CN114356191B (en) 2022-03-04 2022-03-04 Circuit board image display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114356191B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117215474A (en) * 2023-11-07 2023-12-12 深圳市七彩虹禹贡科技发展有限公司 Terminal split screen display method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03148770A (en) * 1989-11-06 1991-06-25 Fujitsu Ltd Wiring pattern formation processing method
US5146509A (en) * 1989-08-30 1992-09-08 Hitachi, Ltd. Method of inspecting defects in circuit pattern and system for carrying out the method
US5150423A (en) * 1990-07-10 1992-09-22 Dainippon Screen Mfg. Co. Ltd. Method of and device for inspecting pattern of printed circuit board
CN106873844A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Picture inspection method and device
CN106951613A (en) * 2017-03-07 2017-07-14 京信通信技术(广州)有限公司 It is a kind of to switch the method and device for showing PCB figure layers
CN107491560A (en) * 2017-09-20 2017-12-19 广东欧珀移动通信有限公司 Page pictures display methods, device, storage medium, server and mobile terminal
CN110599404A (en) * 2019-09-24 2019-12-20 陕西晟思智能测控有限公司 Circuit board microscopic image splicing method and device and information data processing terminal
CN110941375A (en) * 2019-11-26 2020-03-31 腾讯科技(深圳)有限公司 Method and device for locally amplifying image and storage medium
CN111273884A (en) * 2020-01-20 2020-06-12 北京无限光场科技有限公司 Image display method and device and electronic equipment
CN111538448A (en) * 2020-04-28 2020-08-14 北京无限光场科技有限公司 Image display method and device, terminal and storage medium
CN112861713A (en) * 2021-02-06 2021-05-28 贵州博汇云技术开发有限公司 Large-scale drawing multi-local amplification comparison analysis system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111459364B (en) * 2020-04-01 2022-03-08 北京字节跳动网络技术有限公司 Icon updating method and device and electronic equipment
CN112053286B (en) * 2020-09-04 2023-09-05 抖音视界有限公司 Image processing method, device, electronic equipment and readable medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5146509A (en) * 1989-08-30 1992-09-08 Hitachi, Ltd. Method of inspecting defects in circuit pattern and system for carrying out the method
JPH03148770A (en) * 1989-11-06 1991-06-25 Fujitsu Ltd Wiring pattern formation processing method
US5150423A (en) * 1990-07-10 1992-09-22 Dainippon Screen Mfg. Co. Ltd. Method of and device for inspecting pattern of printed circuit board
CN106873844A (en) * 2015-12-11 2017-06-20 阿里巴巴集团控股有限公司 Picture inspection method and device
CN106951613A (en) * 2017-03-07 2017-07-14 京信通信技术(广州)有限公司 It is a kind of to switch the method and device for showing PCB figure layers
CN107491560A (en) * 2017-09-20 2017-12-19 广东欧珀移动通信有限公司 Page pictures display methods, device, storage medium, server and mobile terminal
CN110599404A (en) * 2019-09-24 2019-12-20 陕西晟思智能测控有限公司 Circuit board microscopic image splicing method and device and information data processing terminal
CN110941375A (en) * 2019-11-26 2020-03-31 腾讯科技(深圳)有限公司 Method and device for locally amplifying image and storage medium
CN111273884A (en) * 2020-01-20 2020-06-12 北京无限光场科技有限公司 Image display method and device and electronic equipment
CN111538448A (en) * 2020-04-28 2020-08-14 北京无限光场科技有限公司 Image display method and device, terminal and storage medium
CN112861713A (en) * 2021-02-06 2021-05-28 贵州博汇云技术开发有限公司 Large-scale drawing multi-local amplification comparison analysis system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Arduino平台的电子电路设计实验教学实践;叶险峰等;《实验科学与技术》;20200428(第02期);68-72 *

Also Published As

Publication number Publication date
CN114356191A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN106228194B (en) Image lookup method and device
CN114356191B (en) Circuit board image display method, device, equipment and storage medium
CN113268303A (en) Interface element configuration method and device, storage medium and electronic equipment
CN112381092A (en) Tracking method, device and computer readable storage medium
CN110020344B (en) Webpage element labeling method and system
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN113051235A (en) Document loading method and device, terminal and storage medium
CN108804652B (en) Method and device for generating cover picture, storage medium and electronic device
CN111401465A (en) Training sample optimization method, device, equipment and storage medium
US20170053383A1 (en) Apparatus and method for providing 3d content and recording medium
EP4327256A1 (en) Validating elements displayed on a display fixture
CN114490893A (en) Warehouse thermal data display method, device, equipment and storage medium
CN111198639A (en) Picture marking method, device, terminal and computer storage medium
CN113760596A (en) Method, device and medium for controlling display of liquid crystal display screen
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN113886745B (en) Page picture testing method and device and electronic equipment
CN113825023B (en) Video file processing method, device, equipment and storage medium
CN112463280B (en) Image generation method, device, electronic equipment and computer readable storage medium
JP2022159856A (en) Code search device, code search method and program
JP3239749U (en) Inspection system and inspection terminal
CN112203156B (en) Content ecological preloading method, system, equipment and medium
US20230385895A1 (en) Display control apparatus, display control method, and non-transitory computer-readable medium
CN111708684B (en) Recording method and device for page access and computer system
JP2005284453A (en) Contents display method
CN109976601B (en) Common screen display window segmentation method and system

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