修复bug
This commit is contained in:
parent
a491ad0f3d
commit
884ddf7fbb
BIN
.idea/copilot/chatSessions/00000000000.xd
generated
Normal file
BIN
.idea/copilot/chatSessions/00000000000.xd
generated
Normal file
Binary file not shown.
BIN
.idea/copilot/chatSessions/blobs/version
generated
Normal file
BIN
.idea/copilot/chatSessions/blobs/version
generated
Normal file
Binary file not shown.
2
.idea/graduation_design.iml
generated
2
.idea/graduation_design.iml
generated
@ -2,7 +2,7 @@
|
|||||||
<module type="PYTHON_MODULE" version="4">
|
<module type="PYTHON_MODULE" version="4">
|
||||||
<component name="NewModuleRootManager">
|
<component name="NewModuleRootManager">
|
||||||
<content url="file://$MODULE_DIR$" />
|
<content url="file://$MODULE_DIR$" />
|
||||||
<orderEntry type="jdk" jdkName="Python 3.11 (graduation_design)" jdkType="Python SDK" />
|
<orderEntry type="jdk" jdkName="Python 3.13 (graduation_design)" jdkType="Python SDK" />
|
||||||
<orderEntry type="sourceFolder" forTests="false" />
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
</component>
|
</component>
|
||||||
</module>
|
</module>
|
||||||
5
.idea/misc.xml
generated
5
.idea/misc.xml
generated
@ -1,4 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (graduation_design)" project-jdk-type="Python SDK" />
|
<component name="Black">
|
||||||
|
<option name="sdkName" value="Python 3.11 (graduation_design)" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13 (graduation_design)" project-jdk-type="Python SDK" />
|
||||||
</project>
|
</project>
|
||||||
11
.idea/saveactions_settings.xml
generated
Normal file
11
.idea/saveactions_settings.xml
generated
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="SaveActionSettings">
|
||||||
|
<option name="actions">
|
||||||
|
<set>
|
||||||
|
<option value="activate" />
|
||||||
|
<option value="reformat" />
|
||||||
|
</set>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
</project>
|
||||||
114
.idea/workspace.xml
generated
114
.idea/workspace.xml
generated
@ -1,12 +1,118 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
|
<component name="AutoImportSettings">
|
||||||
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
|
</component>
|
||||||
|
<component name="ChangeListManager">
|
||||||
|
<list default="true" id="84cc2bfb-62dd-4e3b-8b7e-c4595a290c7c" name="更改" comment="一点修改">
|
||||||
|
<change afterPath="$PROJECT_DIR$/.idea/copilot/chatSessions/00000000000.xd" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/.idea/copilot/chatSessions/blobs/version" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/.idea/saveactions_settings.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/graduation_design.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/graduation_design.iml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/img_process/Log/OrbbecSDK.log.txt" beforeDir="false" afterPath="$PROJECT_DIR$/img_process/Log/OrbbecSDK.log.txt" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/img_process/orbbec_camera/OrbbecCamera.py" beforeDir="false" afterPath="$PROJECT_DIR$/img_process/orbbec_camera/OrbbecCamera.py" afterDir="false" />
|
||||||
|
</list>
|
||||||
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||||
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||||
|
</component>
|
||||||
|
<component name="Git.Settings">
|
||||||
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
|
<option name="UPDATE_TYPE" value="REBASE" />
|
||||||
|
</component>
|
||||||
|
<component name="MarkdownSettingsMigration">
|
||||||
|
<option name="stateVersion" value="1" />
|
||||||
|
</component>
|
||||||
|
<component name="ProjectColorInfo">{
|
||||||
|
"associatedIndex": 7
|
||||||
|
}</component>
|
||||||
|
<component name="ProjectId" id="2dQy59zNnKNFZ7jayKJA4B62ZrV" />
|
||||||
<component name="ProjectViewState">
|
<component name="ProjectViewState">
|
||||||
<option name="hideEmptyMiddlePackages" value="true" />
|
<option name="hideEmptyMiddlePackages" value="true" />
|
||||||
<option name="showLibraryContents" value="true" />
|
<option name="showLibraryContents" value="true" />
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent">{
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
"last_opened_file_path": "F:/Jetbrains/PyCharm Professional"
|
"Python.ColorViewer.executor": "Run",
|
||||||
|
"Python.ObjectClassify.executor": "Run",
|
||||||
|
"Python.OrbbecCamera.executor": "Run",
|
||||||
|
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
||||||
|
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||||
|
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
|
||||||
|
"last_opened_file_path": "F:/Projects/PyCharmProjects/graduation_design/.venv/Lib/site-packages",
|
||||||
|
"node.js.detected.package.eslint": "true",
|
||||||
|
"node.js.detected.package.tslint": "true",
|
||||||
|
"node.js.selected.package.eslint": "(autodetect)",
|
||||||
|
"node.js.selected.package.tslint": "(autodetect)",
|
||||||
|
"nodejs_package_manager_path": "npm",
|
||||||
|
"settings.editor.selected.configurable": "com.jetbrains.python.configuration.PyActiveSdkModuleConfigurable",
|
||||||
|
"vue.rearranger.settings.migration": "true"
|
||||||
}
|
}
|
||||||
}</component>
|
}]]></component>
|
||||||
|
<component name="RecentsManager">
|
||||||
|
<key name="CopyFile.RECENT_KEYS">
|
||||||
|
<recent name="F:\Projects\PyCharmProjects\graduation_design\.venv\Lib\site-packages" />
|
||||||
|
</key>
|
||||||
|
<key name="MoveFile.RECENT_KEYS">
|
||||||
|
<recent name="F:\Projects\PyCharmProjects\graduation_design\abandon_code" />
|
||||||
|
<recent name="F:\Projects\PyCharmProjects\graduation_design\img_process\orbbec_camera" />
|
||||||
|
<recent name="F:\Projects\PyCharmProjects\graduation_design\img_process" />
|
||||||
|
</key>
|
||||||
|
</component>
|
||||||
|
<component name="SharedIndexes">
|
||||||
|
<attachedChunks>
|
||||||
|
<set>
|
||||||
|
<option value="bundled-python-sdk-d68999036c7f-b11f5e8da5ad-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-233.14475.56" />
|
||||||
|
</set>
|
||||||
|
</attachedChunks>
|
||||||
|
</component>
|
||||||
|
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="应用程序级" UseSingleDictionary="true" transferred="true" />
|
||||||
|
<component name="TaskManager">
|
||||||
|
<task active="true" id="Default" summary="默认任务">
|
||||||
|
<changelist id="84cc2bfb-62dd-4e3b-8b7e-c4595a290c7c" name="更改" comment="" />
|
||||||
|
<created>1709954410708</created>
|
||||||
|
<option name="number" value="Default" />
|
||||||
|
<option name="presentableId" value="Default" />
|
||||||
|
<updated>1709954410708</updated>
|
||||||
|
<workItem from="1709954412113" duration="122000" />
|
||||||
|
<workItem from="1709962300718" duration="10000" />
|
||||||
|
<workItem from="1709962407317" duration="276000" />
|
||||||
|
<workItem from="1709964790465" duration="236000" />
|
||||||
|
<workItem from="1710068496099" duration="2000" />
|
||||||
|
<workItem from="1710122374970" duration="76000" />
|
||||||
|
<workItem from="1710487637575" duration="384000" />
|
||||||
|
<workItem from="1710823028137" duration="189000" />
|
||||||
|
<workItem from="1710823225842" duration="1580000" />
|
||||||
|
<workItem from="1711185870102" duration="843000" />
|
||||||
|
<workItem from="1711186752259" duration="36000" />
|
||||||
|
<workItem from="1711186861314" duration="136000" />
|
||||||
|
<workItem from="1711198088313" duration="47000" />
|
||||||
|
<workItem from="1711243148074" duration="1422000" />
|
||||||
|
</task>
|
||||||
|
<task id="LOCAL-00001" summary="一点修改">
|
||||||
|
<option name="closed" value="true" />
|
||||||
|
<created>1709954516162</created>
|
||||||
|
<option name="number" value="00001" />
|
||||||
|
<option name="presentableId" value="LOCAL-00001" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1709954516162</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="2" />
|
||||||
|
<servers />
|
||||||
|
</component>
|
||||||
|
<component name="TypeScriptGeneratedFilesManager">
|
||||||
|
<option name="version" value="3" />
|
||||||
|
</component>
|
||||||
|
<component name="VcsManagerConfiguration">
|
||||||
|
<MESSAGE value="一点修改" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="一点修改" />
|
||||||
|
</component>
|
||||||
|
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
||||||
|
<SUITE FILE_PATH="coverage/graduation_design$ColorViewer.coverage" NAME="ColorViewer 覆盖结果" MODIFIED="1711186048389" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/img_process" />
|
||||||
|
<SUITE FILE_PATH="coverage/graduation_design$ObjectClassify.coverage" NAME="ObjectClassify 覆盖结果" MODIFIED="1711243586405" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/img_process" />
|
||||||
|
<SUITE FILE_PATH="coverage/graduation_design$OrbbecCamera.coverage" NAME="OrbbecCamera 覆盖结果" MODIFIED="1711244643941" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/img_process/orbbec_camera" />
|
||||||
|
</component>
|
||||||
</project>
|
</project>
|
||||||
Binary file not shown.
@ -28,6 +28,7 @@ if __name__ == '__main__':
|
|||||||
half=True,
|
half=True,
|
||||||
imgsz=classify.image_width,
|
imgsz=classify.image_width,
|
||||||
verbose=False)
|
verbose=False)
|
||||||
|
print("中心点的深度值: ", camera.get_center_distance(), "mm")
|
||||||
key = cv2.waitKey(1)
|
key = cv2.waitKey(1)
|
||||||
if key == ord('q'):
|
if key == ord('q'):
|
||||||
camera.stop()
|
camera.stop()
|
||||||
|
|||||||
@ -93,7 +93,7 @@ class OrbbecCamera:
|
|||||||
return
|
return
|
||||||
while self.active:
|
while self.active:
|
||||||
try:
|
try:
|
||||||
frames: FrameSet = self.pipeline.wait_for_frames(100) # 等待获取帧
|
frames: FrameSet = self.pipeline.wait_for_frames(500) # 等待获取帧
|
||||||
if frames is None:
|
if frames is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -173,5 +173,5 @@ if __name__ == "__main__":
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
camera = OrbbecCamera(mode=args.mode, enable_sync=args.enable_sync)
|
camera = OrbbecCamera(mode=args.mode, enable_sync=args.enable_sync)
|
||||||
camera.start()
|
camera.run()
|
||||||
print("中心点的深度值: ", camera.center_distance, "mm")
|
print("中心点的深度值: ", camera.center_distance, "mm")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user