-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,030 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
![](doc/planes.png) | ||
|
||
|
||
# Introduction | ||
|
||
This code provides examples of the detection of 3D objects like planes, lines and corners using RGB and Depth information from RealSense camera. The following objects are supported: | ||
|
||
- Planes : detected multiple planes in the depth image | ||
- Edges : detecting edges / intersection of planes | ||
- Corners: three plane intersection/ junctions | ||
|
||
These objects could be integrated in your robotics and video processing pipe line. | ||
Your code can run in real time, using examples below. | ||
|
||
|
||
## Installation Windows | ||
|
||
1. Install python 3.10 from Python Release Python 3.10.0 | <https://www.python.org> | ||
|
||
2. Create virtual environment. In Windows PowerShell: | ||
|
||
python -m venv <your path>\Envs\planes3d | ||
|
||
3. Activate virtual environment. In Windows CMD shell: | ||
|
||
<your path>\Envs\planes3d\Scripts\activate.bat | ||
|
||
4. Installing realsense driver. For example, download pyrealsense2-2.55.10.089-cp310-cp310-win_amd64.whl: | ||
|
||
pip install pyrealsense2-2.55.10.6089-cp310-cp310-win_amd64.whl | ||
|
||
5. Install opencv and numpy: | ||
|
||
pip install opencv-contrib-python | ||
|
||
6. Install scipy: | ||
|
||
python -m pip install scipy | ||
|
||
7. Install matplotlib: | ||
|
||
pip install matplotlib | ||
|
||
## Usage | ||
|
||
```py | ||
>>> from plane_detector import PlaneDetector | ||
|
||
>>> pd = PlaneDetector() | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print('Utils-Src') |
Oops, something went wrong.