CN110347394A - Software code analysis method and device - Google Patents

Software code analysis method and device Download PDF

Info

Publication number
CN110347394A
CN110347394A CN201910502555.9A CN201910502555A CN110347394A CN 110347394 A CN110347394 A CN 110347394A CN 201910502555 A CN201910502555 A CN 201910502555A CN 110347394 A CN110347394 A CN 110347394A
Authority
CN
China
Prior art keywords
software code
target
code
target software
user terminal
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.)
Granted
Application number
CN201910502555.9A
Other languages
Chinese (zh)
Other versions
CN110347394B (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.)
WIRELESS LIFE (HANGZHOU) INFORMATION TECHNOLOGY Co Ltd
Original Assignee
WIRELESS LIFE (HANGZHOU) INFORMATION 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 WIRELESS LIFE (HANGZHOU) INFORMATION TECHNOLOGY Co Ltd filed Critical WIRELESS LIFE (HANGZHOU) INFORMATION TECHNOLOGY Co Ltd
Priority to CN201910502555.9A priority Critical patent/CN110347394B/en
Publication of CN110347394A publication Critical patent/CN110347394A/en
Application granted granted Critical
Publication of CN110347394B publication Critical patent/CN110347394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code

Abstract

The disclosure is directed to software code analysis method and devices.This method comprises: the camera of user terminal is called to shoot to obtain the Target Photo including target software code;Image recognition and code structure parsing are carried out to Target Photo, determine the corresponding uml class figure of target software code;The corresponding uml class figure of displaying target software code on the display screen of user terminal.The camera photographic subjects software code that the disclosure passes through calling user terminal, and image recognition and code structure parsing are carried out to the Target Photo for including target software code automatically, to directly obtain and the corresponding uml class figure of displaying target software code on the display screen, overcome the problem of can not reversely generating uml class figure to the Java code on Non-electronic devices (such as books, blackboard) in the related technology, it is easy to operate, it can be improved the convenience and efficiency of code analysis.

Description

Software code analysis method and device
Technical field
This disclosure relates to technical field of intelligent equipment more particularly to software code analysis method and device.
Background technique
For convenience of to Java code analyze, it will usually reversely generated according to Java code Unified Modeling Language (UML, Unified Modeling Language) class figure.
In the related technology, Integrated Development Environment (IDE, the Integrated usually developed with some Java Development Environment) tool reversely generates uml class figure to Java code.
Summary of the invention
To overcome the problems in correlation technique, the embodiment of the present disclosure provides a kind of software code analytic method and dress It sets.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of software code analytic method is provided, user terminal, packet are applied to It includes:
The camera of the user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to the Target Photo, determine the corresponding system of the target software code One modeling language uml class figure;
The corresponding uml class figure of the target software code is shown on the display screen of the user terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits: the technical solution passes through user's end The camera photographic subjects software code at end, and in image recognition and generation, are carried out to the Target Photo for including target software code automatically Code structure elucidation overcomes phase to directly obtain and the corresponding uml class figure of displaying target software code on the display screen The problem of pass technology can not reversely generate uml class figure to the Java code on Non-electronic devices (such as books, blackboard), operation letter It is single, it can be improved the convenience and efficiency of code analysis.
In one embodiment, described that Target Photo progress image recognition and code structure are parsed, described in determination The corresponding unitive search class figure of target software code, comprising:
The first analysis request for carrying the Target Photo is sent to cloud server;
The first resolution response that the cloud server returns is received, includes that the target is soft in first resolution response The corresponding uml class figure of part code.
In one embodiment, described that Target Photo progress image recognition and code structure are parsed, described in determination The corresponding unitive search class figure of target software code, comprising:
Image recognition is carried out to the Target Photo, obtains the target software code shown on the Target Photo;
The second analysis request for carrying the target software code is sent to cloud server;
The second resolution response that the cloud server returns is received, includes that the target is soft in second resolution response The corresponding uml class figure of part code.
According to the second aspect of an embodiment of the present disclosure, a kind of software code analytic method is provided, cloud server is applied to, Include:
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to first analysis request, image recognition is carried out to the Target Photo, is obtained on the Target Photo The target software code of display;
Structure elucidation is carried out to the target software code, determines the corresponding Unified Modeling Language of the target software code Uml class figure;
The first resolution response is sent to user terminal, includes that the target software code is corresponding in first resolution response Uml class figure.
According to the third aspect of an embodiment of the present disclosure, a kind of software code resolver is provided, comprising:
Shooting module, for calling the camera of the user terminal to shoot to obtain the target figure including target software code Piece;
Determining module determines that the target is soft for carrying out image recognition and code structure parsing to the Target Photo The corresponding unitive search class figure of part code;
Display module, for showing the corresponding UML of the target software code on the display screen of the user terminal Class figure.
In one embodiment, the determining module, comprising:
First sending submodule, for sending the first analysis request for carrying the Target Photo to cloud server;
First receiving submodule, the first resolution response returned for receiving the cloud server, first parsing It include the corresponding uml class figure of the target software code in response.
In one embodiment, the determining module, comprising:
It identifies submodule, for carrying out image recognition to the Target Photo, obtains the institute shown on the Target Photo State target software code;
Second sending submodule, the second parsing for sending the carrying target software code to cloud server are asked It asks;
Second receiving submodule, the second resolution response returned for receiving the cloud server, second parsing It include the corresponding uml class figure of the target software code in response.
According to a fourth aspect of embodiments of the present disclosure, a kind of software code resolver is provided, comprising:
Receiving module, the first analysis request of the carrying Target Photo for receiving user terminal transmission;
Identification module, for carrying out image recognition to the Target Photo, obtaining institute in response to first analysis request State the target software code shown on Target Photo;
Parsing module determines that the target software code is corresponding for carrying out structure elucidation to the target software code Unitive search class figure;
Sending module includes the mesh in first resolution response for sending the first resolution response to user terminal Mark the corresponding uml class figure of software code.
According to a fifth aspect of the embodiments of the present disclosure, a kind of software code resolver is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The camera of the user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to the Target Photo, determine the corresponding system of the target software code One modeling language uml class figure;
The corresponding uml class figure of the target software code is shown on the display screen of the user terminal.
According to a sixth aspect of an embodiment of the present disclosure, a kind of software code resolver is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to first analysis request, image recognition is carried out to the Target Photo, is obtained on the Target Photo The target software code of display;
Structure elucidation is carried out to the target software code, determines the corresponding Unified Modeling Language of the target software code Uml class figure;
The first resolution response is sent to user terminal, includes that the target software code is corresponding in first resolution response Uml class figure.
According to the 7th of the embodiment of the present disclosure the aspect, a kind of computer readable storage medium is provided, calculating is stored thereon with The step of machine instruction, which realizes above-mentioned first aspect the method when being executed by processor.
According to the eighth aspect of the embodiment of the present disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating The step of machine instruction, which realizes above-mentioned second aspect the method when being executed by processor.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is the flow chart of software code analytic method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of software code analytic method shown according to an exemplary embodiment.
Fig. 3 is the flow chart of software code analytic method shown according to an exemplary embodiment.
Fig. 4 is the block diagram of software code resolver shown according to an exemplary embodiment.
Fig. 5 is the block diagram of software code resolver shown according to an exemplary embodiment.
Fig. 6 is the block diagram of software code resolver shown according to an exemplary embodiment.
Fig. 7 is the block diagram of software code resolver shown according to an exemplary embodiment.
Fig. 8 is the block diagram of software code resolver shown according to an exemplary embodiment.
Fig. 9 is the block diagram of software code resolver shown according to an exemplary embodiment.
Figure 10 is the block diagram of software code resolver shown according to an exemplary embodiment.
Figure 11 is the block diagram of software code resolver shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In the related technology, uml class figure is reversely usually generated to Java code with the IDE tool that some Java are developed.But The relevant technologies can not the Java code to (such as: on books, on blackboard) on non-computer carry out the generation of uml diagram;This is allowed for The relevant technologies it is complicated for operation, the convenience and efficiency of code analysis are lower.
To solve the above-mentioned problems, the embodiment of the present disclosure provides a kind of software code analytic method, and it is whole to be applied to user End, this method comprises: the camera of user terminal is called to shoot to obtain the Target Photo including target software code;To target figure Piece carries out image recognition and code structure parsing, determines the corresponding uml class figure of target software code;In the display screen of user terminal The corresponding uml class figure of displaying target software code on curtain.The software code analytic method that the embodiment of the present disclosure provides, passes through calling The camera photographic subjects software code of user terminal, and image knowledge is carried out to the Target Photo for including target software code automatically It is not parsed with code structure, thus directly obtain and the corresponding uml class figure of displaying target software code on the display screen, gram The problem of the relevant technologies can not reversely generate uml class figure to the Java code on Non-electronic devices (such as books, blackboard) has been taken, It is easy to operate, it can be improved the convenience and efficiency of code analysis.
Based on above-mentioned analysis, following specific embodiment is proposed.
Fig. 1 is a kind of flow chart of software code analytic method shown according to an exemplary embodiment, and this method is held Row main body can be user terminal;As shown in Figure 1, this approach includes the following steps 101-103:
In a step 101, the camera of user terminal is called to shoot to obtain the Target Photo including target software code.
It is exemplary, when user needs to obtain the corresponding uml class figure of target software code, call the camera shooting of user terminal Head carries out shooting operation to target software code, and shooting obtains showing the Target Photo of target software code.
In a step 102, image recognition is carried out to Target Photo and code structure parses, determine that target software code is corresponding Uml class figure.
Exemplary, above-mentioned steps 102 may include any one following implementation:
Mode 1, user terminal send the first analysis request for carrying Target Photo to cloud server.By cloud server After carrying out image recognition and code structure parsing to the Target Photo for including target software code, target software code pair is obtained The uml class figure answered;Cloud server sends the first resolution response to user terminal, includes target software generation in the first resolution response The corresponding uml class figure of code.User terminal receives the first resolution response that cloud server returns.
Mode 2, user terminal carry out image recognition to Target Photo, obtain the target software generation shown on Target Photo Code;User terminal sends the second analysis request for carrying target software code to cloud server.By cloud server to target After software code carries out code structure parsing, the corresponding uml class figure of target software code is obtained;Cloud server is whole to user End sends the second resolution response, includes the corresponding uml class figure of target software code in the second resolution response.User terminal receives cloud The second resolution response for holding server to return.
In optinal plan, user terminal carries out image recognition to Target Photo, obtains the target shown on Target Photo Software code;User terminal sends the second analysis request for carrying target software code to cloud server.Cloud server connects Receive the second analysis request that user terminal is sent;Cloud server carries out target software code in response to the second analysis request Structure elucidation determines the corresponding uml class figure of target software code;Cloud server sends the second resolution response to user terminal, It include the corresponding uml class figure of target software code in second resolution response.User terminal receives second that cloud server returns Resolution response obtains the corresponding uml class figure of target software code.
In step 103, the corresponding uml class figure of displaying target software code on the display screen of user terminal.
The technical solution that the embodiment of the present disclosure provides, by calling the camera photographic subjects software code of user terminal, And image recognition and code structure parsing are carried out to the Target Photo for including target software code automatically, to directly obtain, simultaneously The corresponding uml class figure of displaying target software code on the display screen, overcoming in the related technology can not be to Non-electronic devices (example The problem of Java code on such as: books, blackboard) reversely generates uml class figure, it is easy to operate, it can be improved code analysis just Benefit and efficiency.
Fig. 2 is a kind of flow chart of software code analytic method shown according to an exemplary embodiment, and this method is held Row main body can be cloud server;As shown in Fig. 2, this approach includes the following steps 201-204:
In step 201, the first analysis request of the carrying Target Photo that user terminal is sent is received.
In step 202, in response to the first analysis request, image recognition is carried out to Target Photo, is obtained on Target Photo The target software code of display.
In step 203, structure elucidation is carried out to target software code, determines the corresponding uml class figure of target software code.
In step 204, the first resolution response is sent to user terminal, includes target software code in the first resolution response Corresponding uml class figure.
The technical solution that the embodiment of the present disclosure provides, by cloud server to the target figure for showing target software code Piece obtains target software code after carrying out image recognition, and carries out structure elucidation to target software code and determine target software code Corresponding uml class figure, allows the user terminal directly corresponding uml class figure of displaying target software code on the display screen, Uml class figure can not reversely be generated to the Java code on Non-electronic devices (such as: books, blackboard) in the related technology by overcoming Problem, and can be by the IDE tool of software code generation uml class figure, without Java code without installation on the subscriber terminal It is copied in user terminal in advance, it is easy to operate, it can be improved the convenience and efficiency of code analysis.
Fig. 3 is a kind of flow chart of software code analytic method shown according to an exemplary embodiment.This method by with Family terminal and cloud server cooperation execute, as shown in figure 3, on the basis of embodiment shown in Fig. 1, this disclosure relates to software Code analysis method may comprise steps of 301-307:
In step 301, user terminal calls the camera of user terminal to shoot to obtain the mesh including target software code It marks on a map piece.
It is exemplary, specified App is installed on the subscriber terminal, by specifying App to call the camera shooting pair of user terminal Target software code on electronic equipment or on Non-electronic devices (such as books, blackboard) is scanned or shoots, including The Target Photo of target software code.
In step 302, user terminal sends the first analysis request for carrying Target Photo to cloud server.Cloud clothes Business device receives the first analysis request of the carrying Target Photo that user terminal is sent.
In step 303, cloud server carries out image recognition to Target Photo, obtains in response to the first analysis request The target software code shown on Target Photo.
In step 304, cloud server carries out structure elucidation to target software code, determines that target software code is corresponding Uml class figure.
In step 305, cloud server sends the first resolution response to user terminal, includes mesh in the first resolution response Mark the corresponding uml class figure of software code.User terminal receives the first resolution response that cloud server returns.
Within step 306, user terminal obtains the corresponding uml class figure of target software code according to the first resolution response.
In step 307, user terminal corresponding uml class of displaying target software code on the display screen of user terminal Figure.
The technical solution that the embodiment of the present disclosure provides, by cloud server to the target figure for showing target software code Piece obtains target software code after carrying out image recognition, and carries out structure elucidation to target software code and determine target software code Corresponding uml class figure, allows the user terminal directly corresponding uml class figure of displaying target software code on the display screen, It realizes for the software code on electronic equipment or on Non-electronic devices (such as books, blackboard), as long as using user terminal It is scanned or shoots, so that it may directly show the corresponding uml class figure of software code on the display screen, overcome the relevant technologies In the problem of can not reversely generating uml class figure to the Java code on Non-electronic devices, and without installing on the subscriber terminal The IDE tool that software code can be generated to uml class figure, is copied in user terminal in advance without Java code, easy to operate, It can be improved the convenience and efficiency of code analysis.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 4 is a kind of block diagram of software code resolver shown according to an exemplary embodiment, which can adopt Implement in various manners, such as all components of implementing device in the user terminal, alternatively, in subscriber terminal side to couple Component in mode implementing device;The device can by software, hardware or both be implemented in combination with it is above-mentioned this disclosure relates to Method, as shown in figure 4, the software code resolver includes: shooting module 401, determining module 402 and display module 403, Wherein:
Shooting module 401 is configured as that the camera of user terminal is called to shoot to obtain the target including target software code Picture;
Determining module 402 is configured as carrying out Target Photo image recognition and code structure parsing, determines target software The corresponding uml class figure of code;
Display module 403 is configured as the corresponding uml class of displaying target software code on the display screen of user terminal Figure.
The device that the embodiment of the present disclosure provides can be used in executing the technical solution of embodiment illustrated in fig. 1, executive mode Similar with beneficial effect, details are not described herein again.
In a kind of possible embodiment, as shown in figure 5, the software code resolver shown in Fig. 4 can also include Determining module 402 is configured to include: the first sending submodule 501 and the first receiving submodule 502, in which:
First sending submodule 501 is configured as sending the first analysis request for carrying Target Photo to cloud server;
First receiving submodule 502 is configured as receiving the first resolution response that cloud server returns, and the first parsing is rung It include the corresponding uml class figure of target software code in answering.
In a kind of possible embodiment, as shown in fig. 6, the software code resolver shown in Fig. 4 can also include Determining module 402 is configured to include: to identify submodule 601, the second sending submodule 602 and the second receiving submodule 603, In:
Identification submodule 601 is configured as carrying out image recognition to Target Photo, obtains the target shown on Target Photo Software code;
The second parsing that second sending submodule 602 is configured as sending carrying target software code to cloud server is asked It asks;
Second receiving submodule 603 is configured as receiving the second resolution response that cloud server returns, and the second parsing is rung It include the corresponding uml class figure of target software code in answering.
Fig. 7 is a kind of block diagram of software code resolver shown according to an exemplary embodiment, which can adopt Implement in various manners, for example, beyond the clouds in server implementing device all components, alternatively, server side is beyond the clouds with coupling Component in the mode implementing device of conjunction;The device can be implemented in combination with the above-mentioned disclosure by software, hardware or both The method being related to, as shown in fig. 7, the software code resolver includes: receiving module 701, identification module 702, parsing module 703 and sending module 704, in which:
Receiving module 701 is configured as receiving the first analysis request of the carrying Target Photo that user terminal is sent;
Identification module 702 is configured to respond to the first analysis request, carries out image recognition to Target Photo, obtains target The target software code shown on picture;
Parsing module 703 is configured as carrying out structure elucidation to target software code, determines that target software code is corresponding Uml class figure;
Sending module 704 is configured as sending the first resolution response to user terminal, includes target in the first resolution response The corresponding uml class figure of software code.
The device that the embodiment of the present disclosure provides can be used in executing the technical solution of embodiment illustrated in fig. 2, executive mode Similar with beneficial effect, details are not described herein again.
Fig. 8 is a kind of block diagram of software code resolver 800 shown according to an exemplary embodiment, software code solution Analysis apparatus 800 is suitable for user terminal, and software code resolver 800 includes:
Processor 801;
Memory 802 for storage processor executable instruction;
Wherein, processor 801 is configured as:
The camera of user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to Target Photo, determine the corresponding uml class figure of target software code;
The corresponding uml class figure of displaying target software code on the display screen of user terminal.
In one embodiment, above-mentioned processor 801 is also configured to:
The first analysis request for carrying Target Photo is sent to cloud server;
The first resolution response that cloud server returns is received, includes that target software code is corresponding in the first resolution response Uml class figure.
In one embodiment, above-mentioned processor 801 is also configured to:
Image recognition is carried out to Target Photo, obtains the target software code shown on Target Photo;
The second analysis request for carrying target software code is sent to cloud server;
The second resolution response that cloud server returns is received, includes that target software code is corresponding in the second resolution response Uml class figure.
Fig. 9 is a kind of block diagram of software code resolver 900 shown according to an exemplary embodiment, software code solution Analysis apparatus 900 is suitable for cloud server, and software code resolver 900 includes:
Processor 901;
Memory 902 for storage processor executable instruction;
Wherein, processor 901 is configured as:
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to the first analysis request, image recognition is carried out to Target Photo, it is soft to obtain the target shown on Target Photo Part code;
Structure elucidation is carried out to target software code, determines the corresponding uml class figure of target software code;
The first resolution response is sent to user terminal, includes the corresponding uml class of target software code in the first resolution response Figure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 10 is a kind of block diagram of software code resolver shown according to an exemplary embodiment;Software code parsing Device 1000 is suitable for user terminal;Software code resolver 1000 may include following one or more components: processing group Part 1002, memory 1004, power supply module 1006, multimedia component 1008, audio component 1010, input/output (I/O's) connects Mouth 1012, sensor module 1014 and communication component 1016.
The integrated operation of the usually control software code resolver 1000 of processing component 1002, such as with display, phone exhaled It cries, data communication, camera operation and record operate associated operation.Processing component 1002 may include one or more processing Device 1020 executes instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1002 may include one A or multiple modules, convenient for the interaction between processing component 1002 and other assemblies.For example, processing component 1002 may include more Media module, to facilitate the interaction between multimedia component 1008 and processing component 1002.
Memory 1004 is configured as storing various types of data to support the behaviour in software code resolver 1000 Make.The example of these data includes the finger of any application or method for operating on software code resolver 1000 It enables, contact data, telephone book data, message, picture, video etc..Memory 1004 can by any kind of volatibility or Non-volatile memory device or their combination are realized, such as static random access memory (SRAM), electrically erasable Read-only memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM) are read-only Memory (ROM), magnetic memory, flash memory, disk or CD.
Power supply module 1006 provides electric power for the various assemblies of software code resolver 1000.Power supply module 1006 can be with Including power-supply management system, one or more power supplys and other generated, managed, and distributed with for software code resolver 1000 The associated component of electric power.
Multimedia component 1008 includes one output interface of offer between software code resolver 1000 and user Screen.In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes Touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more A touch sensor is to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touch or cunning The boundary of movement, but also detect duration and pressure relevant to touch or slide.In some embodiments, more Media component 1008 includes a front camera and/or rear camera.When software code resolver 1000 is in operation Mode, such as in a shooting mode or a video mode, front camera and/or rear camera can receive external multimedia number According to.Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom Ability.
Audio component 1010 is configured as output and/or input audio signal.For example, audio component 1010 includes a wheat Gram wind (MIC), when software code resolver 1000 is in operation mode, such as call model, logging mode and speech recognition mould When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 1004 or via communication component 1016 send.In some embodiments, audio component 1010 further includes a loudspeaker, for defeated Audio signal out.
I/O interface 1012 provides interface, above-mentioned peripheral interface module between processing component 1002 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1014 includes one or more sensors, each for providing for software code resolver 1000 The status assessment of aspect.For example, sensor module 1014 can detecte software code resolver 1000 open/close shape State, the relative positioning of component, such as component are the display and keypad of software code resolver 1000, sensor module 1014 can be used with the position change of 1,000 1 components of inspection software code analysis device 1000 or software code resolver The existence or non-existence that family is contacted with software code resolver 1000,1000 orientation of software code resolver or acceleration/subtract The temperature change of speed and software code resolver 1000.Sensor module 1014 may include proximity sensor, be configured to use To detect the presence of nearby objects without any physical contact.Sensor module 1014 can also include optical sensor, Such as CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which goes back It may include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1016 is configured to facilitate wired or wireless between software code resolver 1000 and other equipment The communication of mode.Software code resolver 1000 can access the wireless network based on communication standard, such as WiFi, 2G/3G/ 4G/5G or their combination.In one exemplary embodiment, communication component 1016 is received via broadcast channel from outside The broadcast singal or broadcast related information of broadcasting management systems.In one exemplary embodiment, communication component 1016 further includes Near-field communication (NFC) module, to promote short range communication.For example, it can be based on radio frequency identification (RFID) technology in NFC module, it is infrared Data association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, software code resolver 1000 can be by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), scene can It programs gate array (FPGA), controller, microcontroller, microprocessor or other electronic building bricks to realize, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1004 of instruction, above-metioned instruction can be executed by the processor 1020 of software code resolver 1000 to complete The above method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, Tape, floppy disk and optical data storage devices etc..
Wherein, when the instruction in non-transitorycomputer readable storage medium is executed by processor, so that software code Resolver 1000 is able to carry out following method, and method includes:
The camera of user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to Target Photo, determine the corresponding uml class figure of target software code;
The corresponding uml class figure of displaying target software code on the display screen of user terminal.
In one embodiment, image recognition is carried out to Target Photo and code structure parses, determine target software code Corresponding uml class figure, comprising:
The first analysis request for carrying Target Photo is sent to cloud server;
The first resolution response that cloud server returns is received, includes that target software code is corresponding in the first resolution response Uml class figure.
In one embodiment, image recognition is carried out to Target Photo and code structure parses, determine target software code Corresponding uml class figure, comprising:
Image recognition is carried out to Target Photo, obtains the target software code shown on Target Photo;
The second analysis request for carrying target software code is sent to cloud server;
The second resolution response that cloud server returns is received, includes that target software code is corresponding in the second resolution response Uml class figure.
Figure 11 is a kind of block diagram of software code resolver shown according to an exemplary embodiment.For example, software generation Code resolver 1100 may be provided as a cloud server.Software code resolver 1100 includes processing component 1102, It further comprises one or more processors, and the memory resource as representated by memory 1103, can be by for storing The instruction of the execution of processing component 1102, such as application program.The application program stored in memory 1103 may include one Or it is more than one each correspond to one group of instruction module.In addition, processing component 1102 is configured as executing instruction, to hold The row above method.
Software code resolver 1100 can also include that a power supply module 1106 is configured as executing software code solution The power management of analysis apparatus 1100, a wired or wireless network interface 1105 are configured as device 1100 being connected to network, With input and output (I/O) interface 1108.Software code resolver 1100, which can operate, to be based on being stored in memory 1103 Operating system, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is by software code resolver When 1100 processor executes, so that software code resolver 1100 is able to carry out following method, method includes:
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to the first analysis request, image recognition is carried out to Target Photo, it is soft to obtain the target shown on Target Photo Part code;
Structure elucidation is carried out to target software code, determines the corresponding uml class figure of target software code;
The first resolution response is sent to user terminal, includes the corresponding uml class of target software code in the first resolution response Figure.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of software code analytic method, which is characterized in that be applied to user terminal, which comprises
The camera of the user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to the Target Photo, determines that the target software code is corresponding and uniformly builds Mould language uml class figure;
The corresponding uml class figure of the target software code is shown on the display screen of the user terminal.
2. the method according to claim 1, wherein described carry out image recognition and code to the Target Photo Structure elucidation determines the corresponding unitive search class figure of the target software code, comprising:
The first analysis request for carrying the Target Photo is sent to cloud server;
The first resolution response that the cloud server returns is received, includes the target software generation in first resolution response The corresponding uml class figure of code.
3. the method according to claim 1, wherein described carry out image recognition and code to the Target Photo Structure elucidation determines the corresponding unitive search class figure of the target software code, comprising:
Image recognition is carried out to the Target Photo, obtains the target software code shown on the Target Photo;
The second analysis request for carrying the target software code is sent to cloud server;
The second resolution response that the cloud server returns is received, includes the target software generation in second resolution response The corresponding uml class figure of code.
4. a kind of software code analytic method, which is characterized in that be applied to cloud server, which comprises
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to first analysis request, image recognition is carried out to the Target Photo, obtains and is shown on the Target Photo Target software code;
Structure elucidation is carried out to the target software code, determines the corresponding unitive search of the target software code Class figure;
The first resolution response is sent to user terminal, includes that the target software code is corresponding in first resolution response Uml class figure.
5. a kind of software code resolver, which is characterized in that described device includes:
Shooting module, for calling the camera of the user terminal to shoot to obtain the Target Photo including target software code;
Determining module determines the target software generation for carrying out image recognition and code structure parsing to the Target Photo The corresponding unitive search class figure of code;
Display module, for showing the corresponding uml class figure of the target software code on the display screen of the user terminal.
6. device according to claim 5, which is characterized in that the determining module, comprising:
First sending submodule, for sending the first analysis request for carrying the Target Photo to cloud server;
First receiving submodule, the first resolution response returned for receiving the cloud server, first resolution response In include the corresponding uml class figure of the target software code.
7. device according to claim 5, which is characterized in that the determining module, comprising:
It identifies submodule, for carrying out image recognition to the Target Photo, obtains the mesh shown on the Target Photo Mark software code;
Second sending submodule, for sending the second analysis request for carrying the target software code to cloud server;
Second receiving submodule, the second resolution response returned for receiving the cloud server, second resolution response In include the corresponding uml class figure of the target software code.
8. a kind of software code resolver, which is characterized in that described device includes:
Receiving module, the first analysis request of the carrying Target Photo for receiving user terminal transmission;
Identification module, for carrying out image recognition to the Target Photo, obtaining the mesh in response to first analysis request The target software code that on piece of marking on a map is shown;
Parsing module determines the corresponding system of the target software code for carrying out structure elucidation to the target software code One modeling language uml class figure;
Sending module includes that the target is soft in first resolution response for sending the first resolution response to user terminal The corresponding uml class figure of part code.
9. a kind of software code resolver characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The camera of the user terminal is called to shoot to obtain the Target Photo including target software code;
Image recognition and code structure parsing are carried out to the Target Photo, determines that the target software code is corresponding and uniformly builds Mould language uml class figure;
The corresponding uml class figure of the target software code is shown on the display screen of the user terminal.
10. a kind of software code resolver characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Receive the first analysis request of the carrying Target Photo that user terminal is sent;
In response to first analysis request, image recognition is carried out to the Target Photo, obtains and is shown on the Target Photo Target software code;
Structure elucidation is carried out to the target software code, determines the corresponding unitive search of the target software code Class figure;
The first resolution response is sent to user terminal, includes that the target software code is corresponding in first resolution response Uml class figure.
11. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of claim 1-3 the method is realized when execution.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of claim 4 the method is realized when execution.
CN201910502555.9A 2019-06-11 2019-06-11 Software code analysis method and device Active CN110347394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910502555.9A CN110347394B (en) 2019-06-11 2019-06-11 Software code analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910502555.9A CN110347394B (en) 2019-06-11 2019-06-11 Software code analysis method and device

Publications (2)

Publication Number Publication Date
CN110347394A true CN110347394A (en) 2019-10-18
CN110347394B CN110347394B (en) 2023-03-10

Family

ID=68181857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910502555.9A Active CN110347394B (en) 2019-06-11 2019-06-11 Software code analysis method and device

Country Status (1)

Country Link
CN (1) CN110347394B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729976A (en) * 2009-11-20 2010-06-09 天津市阿波罗信息技术有限公司 Code generating method suitable for Internet access through mobile phone photograph
US20100258630A1 (en) * 2009-04-14 2010-10-14 Research In Motion Limited Systems and methods for updating resolved content of a mobile code
US8707252B1 (en) * 2008-09-03 2014-04-22 Emc Corporation Techniques for automatic generation of parsing code
CN104391706A (en) * 2014-12-02 2015-03-04 南京大学 Reverse engineering based model base structuring method
WO2015039601A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Methods, devices, terminal device and systems for pattern recognition
CN105335163A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Software code reading method and system
CN107148615A (en) * 2014-11-27 2017-09-08 乐金信世股份有限公司 Computer executable model reverse engineering approach and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8707252B1 (en) * 2008-09-03 2014-04-22 Emc Corporation Techniques for automatic generation of parsing code
US20100258630A1 (en) * 2009-04-14 2010-10-14 Research In Motion Limited Systems and methods for updating resolved content of a mobile code
CN101729976A (en) * 2009-11-20 2010-06-09 天津市阿波罗信息技术有限公司 Code generating method suitable for Internet access through mobile phone photograph
WO2015039601A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Methods, devices, terminal device and systems for pattern recognition
CN107148615A (en) * 2014-11-27 2017-09-08 乐金信世股份有限公司 Computer executable model reverse engineering approach and device
CN104391706A (en) * 2014-12-02 2015-03-04 南京大学 Reverse engineering based model base structuring method
CN105335163A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Software code reading method and system

Also Published As

Publication number Publication date
CN110347394B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
EP3817395A1 (en) Video recording method and apparatus, device, and readable storage medium
CN106126420B (en) Application program adjustment method and device
KR101770931B1 (en) Method, apparatus, program and computer-readable recording medium of generating communication module firmware and plug-in
EP3176709A1 (en) Video categorization method and apparatus, computer program and recording medium
CN105302615B (en) Method for upgrading software and device
KR101684814B1 (en) Method, apparatus, program and recording medium for accessing wi-fi network
EP3640838A1 (en) Method, device, and system for issuing warning information
CN109582400A (en) Routine call method and device
CN109375967A (en) Application Program Interface display methods and device, mobile terminal and storage medium
CN105301183B (en) Detection of Air Quality method and apparatus
CN105554064B (en) The method and device of head portrait is set
CN105094830B (en) A kind of method and apparatus of performance objective function
EP3247137B1 (en) Detecting method and apparatus
CN107463372B (en) Data-driven page updating method and device
CN109117144A (en) page processing method, device, terminal and storage medium
CN108848303A (en) Shoot reminding method and device
CN105260201B (en) Using installation method, device and smart machine
KR101787918B1 (en) Search method, apparatus, program and recording medium
CN110223500A (en) Infrared equipment control method and device
CN110868561A (en) Video call method, video call device and computer readable storage medium
CN109344051A (en) Method, apparatus, electronic equipment and the storage medium of data processing
CN109034747A (en) Task reminders method and device
CN106339452B (en) Event response method and device
CN105323318B (en) Amending method, device and the equipment of parameter
CN111131603A (en) Function calling method, function calling device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant