Browser-based graphics editing method, device and storage medium
Through the browser graphics editing method on the cloud server, the operating system dependence and regional limitations during graphics editing are solved, and efficient graphics editing and machine-to-device connections in the browser are realized.
Patent Information
- Application Number
- CN202411205769.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-08-30
AI Technical Summary
The prior art requires downloading software that matches the operating system when editing graphics, resulting in a greater dependence on the operating system, limiting the convenience and efficiency of graphics editing, and having regional restrictions.
By implementing a browser-based graphic editing method on the cloud server, users can perform graphic editing in the browser, generate target vector graphic files, and send processing instructions to the cloud server, triggering the machine and equipment to perform processing operations, avoiding software download and operating system dependencies.
It realizes graphics editing without downloading software in the browser, reduces dependence on the operating system, improves editing efficiency and convenience, and removes regional restrictions, allowing graphics editing and machine equipment connections worldwide.
Smart Images

Figure CN118709249B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a browser-based graphics editing method, device and storage medium. Background Art
[0002] Equipment involving automation, numerical control or computer-aided design and manufacturing often requires the use of host computer software for graphic editing, and the use of graphic data generated by the graphic editing for actual manufacturing or processing operations. When performing graphic editing, it is necessary to download and install the host computer software on the computer, and the installed host computer software needs to match the operating system of the computer used, which is highly dependent on the computer operating system.
[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of this application is to provide a browser-based graphics editing method, device and storage medium, aiming to solve the technical problem of how to avoid operating system limitations when editing graphics.
[0005] To achieve the above purpose, the present application proposes a browser-based graphics editing method, which is applied to a cloud server, and the method comprises:
[0006] Send a design drawing loading request to the cloud server to load the design drawing to be edited;
[0007] Based on the user's editing operation, the design drawing to be edited is updated to obtain a target vector graphics file;
[0008] After obtaining the user's processing operation, a processing instruction is generated based on the processing operation and sent to the cloud server. The processing instruction is used to send the processing file to the machine equipment connected to the cloud server and trigger the machine equipment to perform the processing operation based on the processing file.
[0009] In one embodiment, the step of updating the design drawing to be edited based on the user's editing operation includes:
[0010] Obtaining the interactive operation between the user and the toolbar module, and updating the design drawing to be edited according to the interactive operation between the user and the toolbar module, wherein the toolbar module is used for drawing graphics, writing text, changing background images, and adding parameter libraries;
[0011] and / or, obtaining an interactive operation between a user and a layer management module, and updating the design drawing to be edited according to the interactive operation between the user and the layer management module, wherein the layer management module is used to select different layers;
[0012] and / or, obtaining an interactive operation between a user and a graphic editing module, and updating the design drawing to be edited according to the interactive operation between the user and the icon management module, wherein the graphic editing module is used to edit the design drawing to be edited;
[0013] And / or, obtaining the interaction operation between the user and a parameter setting module, and updating the design drawing to be edited according to the interaction operation between the user and the parameter setting module, wherein the parameter setting module is used to set the parameters of the design drawing to be edited.
[0014] In one embodiment, after the step of updating the design drawing to be edited based on the user's editing operation to obtain a target vector graphics file, the step further includes:
[0015] After obtaining the user's conversion operation, a conversion instruction is generated based on the conversion operation and sent to the cloud server. The conversion instruction is used to send the target vector graphics file to the cloud server and trigger the cloud server to convert the target vector graphics file into the processed file.
[0016] In one embodiment, before the step of updating the design drawing to be edited based on the user's editing operation to obtain a target vector graphics file, the step further includes:
[0017] Sending a photographing instruction to the cloud server based on the user's photographing operation, wherein the photographing instruction is used to trigger the cloud server to obtain a photo of the machine workbench, and to perform correction processing on the photo of the machine workbench to obtain a first workbench picture;
[0018] The first workbench image is received.
[0019] In one embodiment, after the step of receiving the first workbench image, the method further includes:
[0020] Sending a contour extraction instruction to the cloud server based on the contour extraction operation of the user, wherein the contour extraction instruction is used to trigger the cloud server to perform contour extraction on the first workbench image to obtain a second workbench image;
[0021] receiving the second workbench image;
[0022] Sending a positioning instruction to the cloud server based on the user's positioning operation, wherein the positioning instruction is used to trigger the cloud server to place the second workbench image in the area to be processed;
[0023] Based on the user's recognition operation, a recognition instruction is sent to the cloud server, and the recognition instruction is used to trigger the cloud server to obtain the material processing parameters in the second workbench image.
[0024] In addition, to achieve the above purpose, the present application also proposes a browser-based graphics editing method, which is applied to a cloud server, and the method includes:
[0025] Respond to the design drawing to be edited according to the design drawing loading request sent by the client;
[0026] receiving a target vector graphics file according to a conversion instruction sent by the client, and converting the target vector graphics file into a processing file;
[0027] The processing instruction sent by the client is received, and the processing instruction and the processing file are sent to a corresponding machine device, wherein the processing instruction is used to trigger the machine device to perform a processing operation based on the processing file.
[0028] In addition, to achieve the above purpose, the present application also proposes a browser-based graphics editing method, which is applied to a machine device, wherein the machine device is communicatively connected to a cloud server, and the method includes:
[0029] After receiving the processing instructions and processing files sent by the cloud server, the processing operation is performed based on the processing instructions and processing files.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a comprehensive management device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the browser-based graphic editing method as described above.
[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the browser-based graphics editing method described above are implemented.
[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the browser-based graphics editing method described above are implemented.
[0033] The present application provides a browser-based graphics editing method, in which a design drawing loading request is sent to a cloud server to load a design drawing to be edited; the design drawing to be edited is updated based on the user's editing operation to obtain a target vector graphics file, and the graphics can be edited in the browser without downloading graphics editing software; after the user's processing operation is obtained, a processing instruction is generated based on the processing operation, and the processing instruction is sent to the cloud server, and the processing instruction is used to send the processing file to a machine device connected to the cloud server, and trigger the machine device to perform the processing operation based on the processing file, thereby realizing that the machine device can be controlled to use the processing file for processing based on the cloud server.
[0034] In summary, the present application converts the result of graphic editing into a processing file recognizable by a machine device through the user performing graphic editing operations on a browser, and sends the processing file to the machine device. After the machine device successfully receives the processing file, it performs processing operations based on the processing file, thereby avoiding the need to download and install software matching the computer operating system on the computer when performing graphic editing, reducing dependence on the computer operating system, and improving the efficiency and convenience of graphic editing. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0037] Figure 1 A flowchart diagram of the first embodiment of the browser-based graphics editing method of the present application is provided;
[0038] Figure 2 The client personal center interface diagram provided for the browser-based graphics editing method of this application;
[0039] Figure 3 A detailed flow chart of the first embodiment of the browser-based graphics editing method of the present application is provided;
[0040] Figure 4 The client editing interface diagram provided for the browser-based graphics editing method of this application;
[0041] Figure 5 A flowchart diagram of the fourth embodiment of the browser-based graphics editing method of the present application is provided;
[0042] Figure 6 A flowchart diagram of a fifth embodiment of the browser-based graphics editing method of the present application is provided;
[0043] Figure 7 A brief flowchart of the browser-based graphics editing method provided in Example 4 of the present application;
[0044] Figure 8 A schematic diagram of the module structure involved in the browser-based graphics editing method in an embodiment of the present application;
[0045] Fig. 9 This is a schematic diagram of the device structure of the hardware operating environment involved in the browser-based graphics editing method in the embodiment of the present application.
[0046] Description of Figure Numbers:
[0047] 1001, processing device; 1002, read-only memory; 1003, storage device; 1004, memory; 1005, bus; 1006, I / O interface; 1007, input device; 1008, output device; 1009, communication device.
[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0050] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0051] The main solution of the embodiment of the present application is: responding to the design drawing editing page based on the login request sent by the client; obtaining the design drawing to be edited according to the loading instruction sent by the client; editing the design drawing to be edited according to the editing instruction sent by the client to generate a vector graphics file.
[0052] At present, when using host computer software for graphics editing in equipment involving automation, numerical control or computer-aided design and manufacturing, it is necessary to download and install software matching the operating system of the computer used, which greatly relies on the computer operating system.
[0053] After the user visits the website and logs in, the application can open the browser and use the cloud application software to edit the graphics page, avoiding the need to download and install software that matches the computer operating system on the computer when editing graphics, reducing dependence on the computer operating system, improving the efficiency and convenience of graphics editing, and solving geographical restrictions. As long as there is access to the Internet anywhere in the world, graphics editing can be performed and mechanical equipment can be connected for processing.
[0054] It should be noted that the execution subject of this embodiment can be a browser-based graphic editing device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a comprehensive management device, etc. that can realize the above functions, and this embodiment does not specifically limit this. The following takes a browser-based graphic editing device as an example to illustrate this embodiment and the following embodiments.
[0055] Based on this, the present application embodiment provides a browser-based graphics editing method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the browser-based graphics editing method of the present application.
[0056] In this embodiment, the browser-based graphics editing method includes steps S10 to S30:
[0057] Step S10, sending a design drawing loading request to the cloud server to load the design drawing to be edited;
[0058] It should be noted that the design drawing to be edited can be a design drawing stored locally by the user, or it can be an official material drawing of the browser cloud application.
[0059] In this embodiment, after the user accesses the URL of the cloud application software, the user performs a login operation. After receiving the login request, the cloud server verifies the user name and password to check whether the user information matches. If the verification is successful, the personal center interface is sent to the client as a response; if the verification fails, a JSON object containing error information is sent or redirected to the login page and the error information is displayed. After the successful login, the user double-clicks the selected design drawing to be edited in the editing interface of the client. After the client monitors the user's operation, it generates a design drawing loading instruction and sends the design drawing loading instruction to the cloud server. For example, the client encapsulates the design drawing loading instruction into a network request. The cloud server monitors the request from the client. When receiving the request, it routes according to the URL (Uniform Resource Locator) and type of the request, finds the corresponding processing function or controller, and the processing function or controller executes the corresponding logic according to the parameters or data of the request to obtain the data of the design drawing to be edited. The server encapsulates the obtained data of the design drawing to be edited into a response body and sends the encapsulated response to the client. The client receives and displays the design drawing to be edited on the interface for the user to edit or view.
[0060] Please refer to Figure 2 The personal center interface includes: homepage module, processing history module, draft box module, recycle bin module and resource community module; the homepage module is used to manage uploaded files and official materials used, and users can use it anytime and anywhere. Double-click the design drawing to be edited to start designing; the processing history module is used to store all processed design drawings, and users can use them directly without re-designing the processing parameters; the draft box module is used to manage draft design drawings. Graphic design is performed on the graphic editing page, and the designed graphics can be saved to the draft box. When you want to process it, double-click the saved draft, you can edit it again or use it directly for processing; the recycle bin module is used to save the design drawings deleted by the user, and the design drawings in the recycle bin can be restored at any time; the resource community module provides free design drawings provided by the official, and users can use them as needed.
[0061] By using a browser to access cloud application software and perform graphic editing, you can avoid downloading and installing software that matches the operating system of the computer you are using, reducing your dependence on the computer operating system and enabling you to perform graphic editing as long as you can access the Internet. In addition, cloud application software provides users with rich, free, and real-time updated design drawings, providing a large amount of material for graphic editing.
[0062] Step S20, updating the design drawing to be edited based on the user's editing operation to obtain a target vector graphics file;
[0063] It should be noted that the vector graphics file obtained by editing graphics based on cloud software can be a file in the SVG (Scalable Vector Graphics) format or a file in the DXF (Drawing Interchange Format) format.
[0064] In one possible implementation, please refer to Figure 3 , step S20 may include steps S21 to S24:
[0065] Step S21, obtaining the interactive operation between the user and the toolbar module, and updating the design drawing to be edited according to the interactive operation between the user and the toolbar module, wherein the toolbar module is used for drawing graphics, writing text, changing background images, and adding parameter libraries;
[0066] Step S22, and / or, obtaining the interactive operation between the user and the layer management module, and updating the design drawing to be edited according to the interactive operation between the user and the layer management module, wherein the layer management module is used to select different layers;
[0067] Step S23, and / or, obtaining the interactive operation between the user and the graphic editing module, and updating the design drawing to be edited according to the interactive operation between the user and the icon management module, wherein the graphic editing module is used to edit the design drawing to be edited;
[0068] Step S24, and / or, obtaining the interaction operation between the user and the parameter setting module, and updating the design drawing to be edited according to the interaction operation between the user and the parameter setting module, wherein the parameter setting module is used to set the parameters of the design drawing to be edited.
[0069] In this embodiment, please refer to Figure 4 ,The editing interface of the client includes : a toolbar module, a layer management module, a graphic editing area module, a parameter setting module and an icon library management module.
[0070] Users can use the toolbar module to draw graphics, write text, change background images, and add parameter libraries; in the layer management module, by selecting different layers, different processing parameters can be set to achieve specific processing techniques; in the icon library management module, users can choose small graphic files provided by the official website to broaden design ideas and make the design drawings richer; in the graphic editing module, users can move, rotate, stretch, align, size, group, perform Boolean operations, etc. When the design drawing is a picture, grayscale processing can also be performed on the picture; in the parameter setting module, the processing parameters of the design drawing can be set, and the machine equipment will process according to the set speed and power.
[0071] In this embodiment, the editing interface of the client also includes a status display module and a processing file conversion module. The status display module is used to display the device status in real time, and different operation buttons will be displayed according to the status; the processing file conversion is used to convert vector graphics files into files that can be recognized by the device.
[0072] Exemplarily, an event listener is added on the client editing page to trigger corresponding different processing functions when the user interacts with different modules, so as to update the generation editing design diagram.
[0073] Step S30, after obtaining the user's processing operation, generate a processing instruction based on the processing operation, and send the processing instruction to the cloud server. The processing instruction is used to send the processing file to the machine device connected to the cloud server, and trigger the machine device to perform the processing operation based on the processing file.
[0074] It should be noted that the processing file refers to a file that can be recognized by the machine equipment. Since the vector graphic files are generated by graphic editing, such as SVG format files and DXF format files, they need to be converted into files for the machine equipment connected to the cloud server.
[0075] In this embodiment, the user clicks the "Process" button. When the client obtains the user's operation of clicking the "Process" button, it generates a processing instruction and sends the processing instruction to the cloud server. The processing instruction includes information about the machine equipment that performs the processing operation and information about the processing file. After the cloud server obtains the processing instruction, it sends the corresponding processing file to the machine equipment that performs the processing operation. After the machine equipment receives the processing file, it performs the processing operation based on the processing file.
[0076] After the user visits the website and logs in, the application can open the browser and use the cloud application software to edit the graphics page, avoiding the need to download and install software that matches the computer operating system on the computer when editing graphics, reducing dependence on the computer operating system, improving the efficiency and convenience of graphics editing, and solving geographical restrictions. As long as there is access to the Internet anywhere in the world, graphics editing can be performed and mechanical equipment can be connected for processing.
[0077] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, in step S20, after the step of updating the design drawing to be edited based on the user's editing operation to obtain the target vector graphics file, the following steps are also included:
[0078] After obtaining the user's conversion operation, a conversion instruction is generated based on the conversion operation and sent to the cloud server. The conversion instruction is used to send the target vector graphics file to the cloud server and trigger the cloud server to convert the target vector graphics file into the processed file.
[0079] In this embodiment, the user selects a vector graphics file through the client interface and triggers a conversion operation, sending the conversion instruction and the file to the cloud server. The cloud server receives the conversion instruction and the vector graphics file, and uses special conversion software, libraries or custom algorithms to convert the vector graphics file into a processing file, parses the structure of the vector graphics (such as paths, shapes, layers, etc.), and converts it into an instruction set suitable for CNC machine tools (Computer Numerical Control), laser cutting machines, 3D printers and other processing equipment. The output format of the processing file depends on the type of processing equipment. Common formats include NC files (Numerical Control File), STL (Stereolithography) files for 3D printing, etc.
[0080] In this embodiment, the cloud server can also verify whether the uploaded file is a valid vector graphics file (such as SVG, DXF, etc.), and check whether the file is complete and not damaged. After completing the conversion of the processing file, the cloud server can also run some basic verification scripts to check whether the converted processing file contains errors or inconsistencies.
[0081] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be described in detail later. On this basis, the method further includes:
[0082] A save request is sent to the cloud server based on a save operation of the user, wherein the save request is used to trigger the cloud server to save the design drawing to be edited.
[0083] In this embodiment, the design drawing to be edited can be saved to the draft box. When you want to process it, double-click the saved draft to edit it again or use it directly for processing. The processed files can be stored in the processing history module for users to use directly without having to design the processing parameters again, avoiding the need to re-edit the design drawing to be edited to obtain the processing file due to the loss of the processing file, and solving the problem of data loss caused by reinstalling the software after the computer fails or is formatted.
[0084] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 5 , before the step of updating the to-be-edited design drawing based on the user's editing operation to obtain the target vector graphics file, the step also includes steps A10 to A20:
[0085] Step A10, sending a photographing instruction to the cloud server based on the user's photographing operation, wherein the photographing instruction is used to trigger the cloud server to obtain a photo of the machine workbench, and perform correction processing on the photo of the machine workbench to obtain a first workbench picture;
[0086] Step A20, receiving the first workbench image.
[0087] It should be noted that the machine workbench is an area in an industrial or manufacturing environment used to place, process or assemble parts. The machine workbench photo refers to a photo taken on the machine workbench or the machine operation area. The first workbench photo is the photo obtained after the machine workbench photo is corrected. The machine workbench photo contains one or more of the following elements: machine equipment, such as machine tools, machining centers, welding equipment, etc.; parts to be processed, which may be in different processing stages, such as raw materials, semi-finished products or finished products; tools and fixtures, tools used to fix or operate parts, such as fixtures, cutting tools, etc.; measuring tools, such as calipers, gauges, micrometers, etc., used to measure the size of parts; safety equipment, such as protective covers, safety warning signs, etc., to ensure safe operation; operation panel, which displays the machine status and the interface for controlling the machine operation; QR code or bar code, which is used to quickly obtain processing parameters or component information; display screen, which displays the machine operation interface or processing parameters; workbench surface, which may show processing traces, tool placement or component placement; environmental background, such as factory walls, floors, other equipment, etc.
[0088] In this embodiment, after receiving the photo, the cloud server calls the image processing library to perform correction processing on the photo, such as rotation, cropping, perspective transformation, etc., to optimize the photo quality. Secondly, the corrected picture is sent to the client again and displayed on the page. Exemplarily, the image processing library can be OpenCV (Open Source Computer Vision Library) or Pillow (Python Imaging Library).
[0089] Automatic correction processing of machine workbench photos is performed through the cloud server, avoiding the steps of manual camera correction processing and solving the problem of troublesome locating causes when errors are encountered during camera correction processing.
[0090] Based on the fourth embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 6 In step A20, after the step of receiving the first workbench image, steps A30 to A60 are also included:
[0091] Step A30, sending a contour extraction instruction to the cloud server based on the contour extraction operation of the user, wherein the contour extraction instruction is used to trigger the cloud server to perform contour extraction on the first workbench image to obtain a second workbench image;
[0092] Step A40, receiving the second workbench image;
[0093] It should be noted that the second workbench image refers to an image obtained after correction and contour extraction processing are performed on the machine workbench photo.
[0094] In this embodiment, first, an interface is provided in the client to allow the user to select a specific area on the image by using a mouse or a touch device, and the user selects the area whose contour needs to be extracted on the corrected image by using the edge-lifting function. When the user completes the area selection, the client sends the coordinates of the selected area (such as the coordinates of the upper left corner and the lower right corner) to the cloud server. Exemplarily, the edge-lifting function is implemented by selecting the area whose contour needs to be extracted using the brush tool or the selection box tool. Secondly, the client sends the coordinates of the area selected by the user to the cloud server, and the cloud server calls the contour extraction module to extract the contour of the specified area based on the received coordinates. Exemplarily, the findContours function based on OpenCV is used to implement contour extraction. Finally, the cloud server sends the extracted contour data back to the client.
[0095] Step A50, sending a positioning instruction to the cloud server based on the user's positioning operation, wherein the positioning instruction is used to trigger the cloud server to place the second workbench image in the area to be processed;
[0096] In this embodiment, after receiving the outline data, the client draws the outline on the canvas and allows the user to place it in the area that needs to be processed.
[0097] Step A60: sending an identification instruction to the cloud server based on the user's identification operation, wherein the identification instruction is used to trigger the cloud server to obtain the material processing parameters in the second workbench image.
[0098] It should be noted that material processing parameters refer to a series of parameters required when manufacturing or processing materials, which determine the quality and efficiency of material processing. Specific processing parameters will vary depending on the material type, processing method and requirements of the final product. Processing parameters include: material type, such as metal, plastic, ceramic, etc.; size and shape, the initial size and shape of the material, including length, width, thickness, diameter, etc.; temperature control. The temperature that needs to be controlled during the processing, such as the preheating temperature during welding, the heating and cooling rate during heat treatment; pressure and speed, such as pressure during forging, cutting speed during cutting; material properties, such as hardness, toughness, conductivity, etc.; environmental parameters, such as the influence of environmental factors such as humidity and temperature on the processing process.
[0099] In this embodiment, the user clicks the "Scan" button on the client page to identify the QR code, so as to call the camera of the mechanical equipment to take photos of the materials containing the QR code, and upload them to the cloud server. The cloud server calls the QR code recognition module to parse the information in the QR code, obtain the processing parameters of the material, and insert the parsed processing parameters into the corresponding position or data structure in the design drawing to be edited. Exemplarily, the CAD function is used to insert the material processing parameters. Exemplarily, ZXing (Zebra Crossing) or QR Server (Quick Response Server, QR code server) is used to parse the information in the QR code. The cloud server performs contour extraction, positioning and material processing parameter recognition processing on the photo of the correction machine workbench, and accurately obtains the material processing parameters.
[0100] For example, to help understand the implementation process of the browser-based graphics editing method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 7 , Figure 7 A brief flowchart of a browser-based graphics editing method is provided, specifically:
[0101] First, the user visits the website of the browser-based application software to log in, and after successful login, enters the design drawing editing page, uses the existing design drawing to be edited to edit on the browser, or uploads the local design drawing to be edited to edit; secondly, the layer is set for the design drawing to be edited, and then the processing parameters are set. Among them, when the user needs to obtain a photo of the machine workbench to obtain the material processing parameters, the following steps are performed: first, click the photo button on the page to obtain the photo of the machine workbench taken by the camera; second, after the photo is successfully obtained, the correction function is triggered to correct the photo of the machine workbench, and the corrected picture is displayed on the design drawing editing page; third, the user uses the edge function to select the area where the contour needs to be extracted, and the cloud server extracts the contour and sends it to the client for display; fourth, the user places the extracted contour in the area to be processed on the canvas, clicks automatic recognition, and the cloud server automatically inserts the material processing parameters in the photo of the machine workbench into the design drawing to be edited; finally, when all the designs of the user are completed, the processing button can be clicked to convert the vector graphic file (such as: SVG file) into a processing file, and the machine equipment processes according to the processing file.
[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the browser-based graphics editing method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0103] The present application also provides a browser-based graphics editing method, which is applied to a cloud server, and the method includes:
[0104] Respond to the design drawing to be edited according to the design drawing loading request sent by the client;
[0105] receiving a target vector graphics file according to a conversion instruction sent by the client, and converting the target vector graphics file into a processing file;
[0106] The processing instruction sent by the client is received, and the processing instruction and the processing file are sent to a corresponding machine device, wherein the processing instruction is used to trigger the machine device to perform a processing operation based on the processing file.
[0107] The browser-based graphics editing method applied to the cloud server provided by the present application adopts the browser-based graphics editing method applied to the user end in the above embodiment, and can solve the technical problem of how to avoid the limitations of the operating system when editing graphics. Compared with the prior art, the beneficial effects of the browser-based graphics editing method applied to the cloud server provided by the present application are the same as the beneficial effects of the browser-based graphics editing method applied to the user end provided by the above embodiment, and the other technical features of the browser-based graphics editing method applied to the cloud server are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0108] The present application also proposes a browser-based graphics editing method, which is applied to a machine device, wherein the machine device is communicatively connected to a cloud server, and the method includes:
[0109] After receiving the processing instructions and processing files sent by the cloud server, the processing operation is performed based on the processing instructions and processing files.
[0110] In this embodiment, the user clicks the "Process" button. When the client obtains the operation of the user clicking the "Process" button, a processing instruction is generated and sent to the cloud server. The processing instruction includes information about the machine equipment that performs the processing operation and information about the processing file. After the cloud server obtains the processing instruction, it sends the corresponding processing file to the machine equipment that performs the processing operation. After the machine equipment receives the processing file, it performs the processing operation based on the processing file. In summary, by connecting the cloud server and the machine equipment in communication, it avoids the need to connect the machine equipment to the same local area network as the computer used by the host computer software for processing operations, and solves the regional restrictions. As long as the network can be accessed anywhere in the world, graphic editing and connection to the machine equipment can be performed.
[0111] The present application provides a comprehensive management device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the browser-based graphics editing method in the above-mentioned embodiment one.
[0112] Reference below Figure 8, which shows a schematic diagram of the structure of the integrated management device suitable for implementing the embodiment of the present application. The integrated management device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The comprehensive management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0113] like Figure 8 As shown, the integrated management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the integrated management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the integrated management device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows an integrated management device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0114] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0115] The integrated management device provided by the present application adopts the browser-based graphics editing method in the above embodiment, which can solve the technical problem of how to avoid the restrictions of the operating system when editing graphics. Compared with the prior art, the beneficial effects of the integrated management device provided by the present application are the same as the beneficial effects of the browser-based graphics editing method provided by the above embodiment, and other technical features in the integrated management device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0116] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0118] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the browser-based graphics editing method in the above-mentioned embodiment.
[0119] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0120] The computer-readable storage medium may be included in the integrated management device; or may exist independently without being assembled into the integrated management device.
[0121] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the integrated management device, the integrated management device: sends a design drawing loading request to the cloud server to load the design drawing to be edited; updates the design drawing to be edited based on the user's editing operation to obtain a target vector graphics file; after obtaining the user's processing operation, generates a processing instruction based on the processing operation, and sends the processing instruction to the cloud server. The processing instruction is used to send the processing file to a machine device connected to the cloud server, and trigger the machine device to perform a processing operation based on the processing file.
[0122] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0123] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0124] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0125] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned browser-based graphics editing method, and can solve the technical problem of how to avoid the limitations of the operating system when editing graphics. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the browser-based graphics editing method provided by the above-mentioned embodiment, and will not be repeated here.
[0126] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned browser-based graphics editing method are implemented.
[0127] The computer program product provided by the present application can solve the technical problem of how to avoid the limitations of the operating system when editing graphics. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the browser-based graphics editing method provided by the above embodiment, and will not be repeated here.
[0128] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A browser-based graphics editing method, characterized in that: Applied to the client, the method includes: Send a design drawing loading request to the cloud server to load the design drawing to be edited; Sending a photographing instruction to the cloud server based on the user's photographing operation, wherein the photographing instruction is used to trigger the cloud server to obtain a photo of the machine workbench, and to perform correction processing on the photo of the machine workbench to obtain a first workbench picture; Receiving the first workbench image; Sending a contour extraction instruction to the cloud server based on the contour extraction operation of the user, wherein the contour extraction instruction is used to trigger the cloud server to perform contour extraction on the first workbench image to obtain a second workbench image; receiving the second workbench image; Sending a positioning instruction to the cloud server based on the user's positioning operation, wherein the positioning instruction is used to trigger the cloud server to place the second workbench image in the area to be processed; Sending a recognition instruction to the cloud server based on the user's recognition operation, wherein the recognition instruction is used to trigger the cloud server to obtain the material processing parameters in the second workbench image and insert the material processing parameters into the design drawing to be edited; Based on the user's editing operation, the design drawing to be edited is updated to obtain a target vector graphics file; After obtaining the user's processing operation, a processing instruction is generated based on the processing operation and sent to the cloud server. The processing instruction is used to send the processing file to the machine equipment connected to the cloud server and trigger the machine equipment to perform the processing operation based on the processing file.
2. The method according to claim 1, characterized in that The step of updating the design drawing to be edited based on the user's editing operation comprises: Obtaining the interactive operation between the user and the toolbar module, and updating the design drawing to be edited according to the interactive operation between the user and the toolbar module, wherein the toolbar module is used for drawing graphics, writing text, changing background images, and adding parameter libraries; and / or, obtaining an interactive operation between a user and a layer management module, and updating the design drawing to be edited according to the interactive operation between the user and the layer management module, wherein the layer management module is used to select different layers; and / or, obtaining an interactive operation between a user and a graphic editing module, and updating the design drawing to be edited according to the interactive operation between the user and the icon management module, wherein the graphic editing module is used to edit the design drawing to be edited; And / or, obtaining the interaction operation between the user and a parameter setting module, and updating the design drawing to be edited according to the interaction operation between the user and the parameter setting module, wherein the parameter setting module is used to set the parameters of the design drawing to be edited.
3. The method according to claim 1, characterized in that After the step of updating the design drawing to be edited based on the user's editing operation to obtain the target vector graphics file, the method further includes: After obtaining the user's conversion operation, a conversion instruction is generated based on the conversion operation and sent to the cloud server. The conversion instruction is used to send the target vector graphics file to the cloud server and trigger the cloud server to convert the target vector graphics file into the processed file.
4. The method according to claim 1, characterized in that The method further comprises: A save request is sent to the cloud server based on a save operation of the user, wherein the save request is used to trigger the cloud server to save the design drawing to be edited.
5. A browser-based graphics editing method, characterized in that: Applied to the cloud server, the method includes: Respond to the design drawing to be edited according to the design drawing loading request sent by the client; Acquire a machine workbench photo according to the basic photographing instruction sent by the client, and perform correction processing on the machine workbench photo to obtain a first workbench picture; Performing contour extraction on the first workbench image according to the contour extraction instruction sent by the client to obtain a second workbench image; Placing the second workbench image in the area to be processed according to the positioning instruction sent by the client; Acquire the material processing parameters in the second workbench image according to the recognition instruction sent by the client, and insert the material processing parameters into the design drawing to be edited; receiving a target vector graphics file according to a conversion instruction sent by the client, and converting the target vector graphics file into a processing file; The processing instruction sent by the client is received, and the processing instruction and the processing file are sent to a corresponding machine device, wherein the processing instruction is used to trigger the machine device to perform a processing operation based on the processing file.
6. An integrated management device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the browser-based graphics editing method as claimed in any one of claims 1 to 4 or claim 5.
7. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the browser-based graphics editing method according to any one of claims 1 to 4 or claim 5 are implemented.
Citation Information
Patent Citations
MES system for mold manufacturing
CN112767188A
Web-based collaborative intelligent bridge steel structure welding material statistical method
CN114818026A
Extensible profiles for industrial controller devices
US20240019851A1
