A easy to use computer vision library used for FTC Games to detect game objects. Based on Ender CV and OpenCV.
THIS REPO IS STILL UNDER HEAVY DEVELOPMENT. I WILL BE ADDING FURTHER DOCUMENTATION, BUG FIXES AND NEW DETECTORS SOON. MANY OF THE
However, although many of the detectors are currently pretty basic, I am putting alot of time in effort into this lib, and open sourced it to let the community work or learn from my mistakes. This is the exact code my team will be running so I do have a decent motivation to work on it ;)
- Levi 8148 AlephBots (Amazing color filtering and Cryptobox Detector)
- Karter FTC 5975 Cybots (Brainstorming for Jewel Detector)
- Derek FTC 5484 Enderbots (EnderCV Classes)
- Aparna ig (Testing)
- Everyone else on the Programming Discord <3 (Dealing with my bs)
- Blue in background throws of Crypto checkers. (NO JEANS PLZZZ)
- Gylph Detections pretty buggy
- Glyph Color Reading
- Previous frame's results to increase accuracy in detectors
- Motion Tracking for Cryptobox
- Cryptobox line checks follow lines instead of Y-Axis
- Download this repo, either by cloning from Git or using the zip download.
- Open up your FTC Application
- Navigate to File -> New -> Import Module from the title bar.
- When the a dialog comes up, asking for the module source directory, navigate to this repo and select the openCVLibrary320 folder, and then hit Finish
- Repeat steps 3 and 4 except instead of selecting the openCVLibrary320 folder, select the DogeCV folder instead.
- In the left hand side project explorer in Android Studio, right-click TeamCode, and click on Open Module Settings.
- A Project Struture dialog should come up. Click the Dependencies tab.
- Click the green plus sign on the right hand side, then Module dependency, and then :openCVLibrary320, then press OK.
- Repeat step 8, except substitute :openCVLibrary320 with :dogecv
- Click OK to exit the Project Structure dialog.
See Wiki
-
If I use dogeCV can I still use Vuforia?
Yes, but not at the same time. You must disable Vuforia before using dogeCV and vice versa. Also, the default vuforia localizer doesn't detach from the camera by default. In order to make it detech from the camera, you must use another vuforia localizer.
1.1.1 HOTFIX:
- Fixed Jewel Detector Blue Filter
1.1:
- New Color Filter API
- New Generic Detector
- Fixed Jewel Debug Scores
- Fixed Imports for DogeLogger inside Cryptobox Detector
- Ported all detectors to Color Filter API
- Added Yellow to LeviColorFilter
- Added HSV color filter
- New Relic/Generic Example
1.0:
- New Cryptobox Detector
- Youtube Tutorials
- Per-Detector Documentation
- Wiki Start
- Added
perfectRatio
tuning for Jewels - Optimiziation
- Removed Multiple Mat returning
0.5:
- Fixed rotated preview on protrait mode.
- Detectors return an array of images. You can cycle through them by tapping on the preview screen
If you have any suggestions or questions feel free to contact me at:
[email protected]
or
VictoryForPhil#4759 on Discord
You can also usually spot me on the FTC Discord.