verarong / invoice_ocr Goto Github PK
View Code? Open in Web Editor NEWmaskrcnn分割、angle旋转方向、AdvanceEast定位文本框、dense识别,含整个后处理工程,serving部署
License: Apache License 2.0
maskrcnn分割、angle旋转方向、AdvanceEast定位文本框、dense识别,含整个后处理工程,serving部署
License: Apache License 2.0
文档中能否大概写一下部署到docker中的步骤?
Hi, your project invoice_ocr requires "transitions==0.8.1" in its dependency. After analyzing the source code, we found that the following versions of transitions can also be suitable without affecting your project, i.e., transitions 0.8.0. Therefore, we suggest to loosen the dependency on transitions from "transitions==0.8.1" to "transitions>=0.8.0,<=0.8.1" to avoid any possible conflict for importing more packages or for downstream projects that may use invoice_ocr.
May I pull a request to further loosen the dependency on transitions?
By the way, could you please tell us whether such dependency analysis may be potentially helpful for maintaining dependencies easier during your development?
We also give our detailed analysis as follows for your reference:
Your project invoice_ocr directly uses 1 APIs from package transitions.
transitions.core.Machine.__init__
Beginning from the 1 APIs above, 22 functions are then indirectly called, including 16 transitions's internal APIs and 6 outsider APIs. The specific call graph is listed as follows (neglecting some repeated function occurrences).
[/verarong/invoice_ocr]
+--transitions.core.Machine.__init__
| +--collections.deque
| +--collections.OrderedDict
| +--transitions.core.Machine.add_states
| | +--transitions.core.listify
| | +--transitions.core.Machine._create_state
| | +--transitions.core.Machine._add_model_to_state
| | | +--transitions.core.Machine._checked_assignment
| | | +--functools.partial
| | | +--inspect.ismethod
| | +--collections.OrderedDict.keys
| | +--transitions.core.Machine.add_transition
| | | +--transitions.core.Machine._create_event
| | | +--transitions.core.Machine._add_trigger_to_model
| | | | +--transitions.core.Machine._checked_assignment
| | | | +--functools.partial
| | | +--collections.OrderedDict.keys
| | | +--transitions.core.listify
| | | +--transitions.core.Machine._has_state
| | | | +--collections.OrderedDict.values
| | | +--transitions.core.Machine._create_transition
| +--transitions.core.Machine.add_transitions
| | +--transitions.core.listify
| | +--transitions.core.Machine.add_transition
| +--transitions.core.Machine.add_ordered_transitions
| | +--collections.OrderedDict.keys
| | +--transitions.core._prep_ordered_arg
| | | +--transitions.core.listify
| | +--transitions.core.Machine.add_transition
| +--transitions.core.Machine.add_model
| | +--transitions.core.listify
| | +--transitions.core.Machine._checked_assignment
| | +--collections.OrderedDict.values
| | +--transitions.core.Machine.set_state
| | | +--transitions.core.Machine.get_state
| | | +--transitions.core.listify
| | +--functools.partial
| | +--transitions.core.Machine._add_trigger_to_model
| | +--transitions.core.Machine._add_model_to_state
We scan transitions's versions and observe that during its evolution between any version from [0.8.0] and 0.8.1, the changing functions (diffs being listed below) have none intersection with any function or API we mentioned above (either directly or indirectly called by this project).
diff: 0.8.1(original) 0.8.0
['transitions.extensions.nesting.NestedState.scoped_exit', 'transitions.extensions.nesting.HierarchicalMachine.add_transition', 'transitions.extensions.nesting_legacy.NestedState.name', 'transitions.extensions.diagrams_pygraphviz.Graph.set_previous_transition', 'transitions.extensions.diagrams.TransitionGraphSupport._change_state', 'transitions.extensions.diagrams_pygraphviz.NestedGraph._add_edges', 'transitions.extensions.nesting.NestedTransition._resolve_transition', 'transitions.extensions.diagrams_graphviz.Graph', 'transitions.extensions.nesting.HierarchicalMachine.get_global_name', 'transitions.extensions.asyncio.NestedAsyncState.scoped_exit', 'transitions.extensions.nesting._build_state_list', 'transitions.extensions.nesting.NestedEvent.trigger', 'transitions.extensions.diagrams_pygraphviz.NestedGraph._add_nodes', 'transitions.extensions.factory.HierarchicalAsyncMachine', 'transitions.extensions.asyncio.NestedAsyncState', 'transitions.extensions.diagrams_pygraphviz.Graph', 'transitions.extensions.diagrams_pygraphviz.Graph.generate', 'transitions.extensions.nesting.HierarchicalMachine.trigger_event', 'transitions.extensions.asyncio.NestedAsyncState.scoped_enter', 'transitions.extensions.nesting.NestedTransition', 'transitions.extensions.diagrams.GraphMachine._get_graph', 'transitions.extensions.asyncio.NestedAsyncTransition', 'transitions.extensions.asyncio.NestedAsyncTransition._change_state', 'transitions.extensions.nesting.NestedState.scoped_enter', 'transitions.extensions.nesting.NestedEvent._trigger', 'transitions.extensions.asyncio.NestedAsyncEvent.trigger', 'transitions.extensions.diagrams_graphviz.Graph.set_previous_transition', 'transitions.extensions.nesting.NestedState.__init__', 'transitions.extensions.diagrams._flatten', 'transitions.extensions.diagrams.BaseGraph', 'transitions.extensions.factory.AsyncTransition', 'transitions.extensions.nesting.HierarchicalMachine.add_states', 'transitions.extensions.nesting.HierarchicalMachine._build_state_tree', 'transitions.extensions.factory.NestedAsyncTransition', 'transitions.extensions.asyncio.NestedAsyncEvent._process', 'transitions.extensions.asyncio.HierarchicalAsyncMachine._trigger_event', 'transitions.extensions.diagrams_graphviz.NestedGraph', 'transitions.extensions.asyncio.NestedAsyncEvent', 'transitions.extensions.nesting_legacy.HierarchicalMachine._traverse', 'transitions.extensions.asyncio.NestedAsyncEvent._trigger', 'transitions.extensions.nesting_legacy.HierarchicalMachine', 'transitions.extensions.nesting.NestedState.enter', 'transitions.extensions.nesting.HierarchicalMachine', 'transitions.extensions.diagrams_pygraphviz.NestedGraph.set_previous_transition', 'transitions.extensions.nesting.HierarchicalMachine._trigger_event', 'transitions.extensions.diagrams_graphviz.NestedGraph._add_nodes', 'transitions.extensions.diagrams_pygraphviz.NestedGraph', 'transitions.extensions.nesting.HierarchicalMachine._add_trigger_to_model', 'transitions.extensions.diagrams_graphviz.Graph.generate', 'transitions.extensions.nesting_legacy.NestedState.initial', 'transitions.extensions.diagrams.GraphMachine._init_graphviz_engine', 'transitions.extensions.nesting.HierarchicalMachine.get_state', 'transitions.extensions.asyncio.AsyncEvent', 'transitions.extensions.nesting.NestedTransition._change_state', 'transitions.extensions.diagrams.BaseGraph._get_elements', 'transitions.extensions.nesting.NestedTransition._change_nested', 'transitions.extensions.diagrams.GraphMachine', 'transitions.extensions.nesting.NestedState.name', 'transitions.extensions.diagrams_graphviz.NestedGraph._add_edges', 'transitions.extensions.diagrams_graphviz.NestedGraph.set_previous_transition', 'transitions.extensions.nesting.HierarchicalMachine._get_enum_path', 'transitions.extensions.nesting.HierarchicalMachine._check_event_result', 'transitions.extensions.nesting.NestedTransition._update_model', 'transitions.extensions.nesting.NestedTransition._enter_nested', 'transitions.extensions.factory.HierarchicalAsyncGraphMachine', 'transitions.extensions.asyncio.HierarchicalAsyncMachine.trigger_event', 'transitions.extensions.nesting._build_state_tree', 'transitions.extensions.nesting_legacy.HierarchicalMachine._add_trigger_to_model', 'transitions.extensions.nesting.NestedState.exit', 'transitions.extensions.nesting_legacy.NestedState', 'transitions.extensions.diagrams.TransitionGraphSupport', 'transitions.extensions.nesting.NestedEvent', 'transitions.extensions.asyncio.AsyncMachine', 'transitions.extensions.nesting.NestedState', 'transitions.extensions.asyncio.HierarchicalAsyncMachine']
As for other packages, the APIs of collections, functools and inspect are called by transitions in the call graph and the dependencies on these packages also stay the same in our suggested versions, thus avoiding any outside conflict.
Therefore, we believe that it is quite safe to loose your dependency on transitions from "transitions==0.8.1" to "transitions>=0.8.0,<=0.8.1". This will improve the applicability of invoice_ocr and reduce the possibility of any further dependency conflict with other projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.