Skip to content

Feature: Add clean ImageInvert block to OpenCV collection#430

Open
Khushi281300 wants to merge 1 commit intoJdeRobot:masterfrom
Khushi281300:feature/image-invert-clean
Open

Feature: Add clean ImageInvert block to OpenCV collection#430
Khushi281300 wants to merge 1 commit intoJdeRobot:masterfrom
Khushi281300:feature/image-invert-clean

Conversation

@Khushi281300
Copy link

Description:
Replaces PR #427

Summary
This PR introduces the new ImageInvert block to the OpenCV collection.

Based on the feedback in #427, I have drastically scoped down this Pull Request to contain only the essential files for the block, removing any external engine modifications.

Key Changes
Isolated Block Schema (

ImageInvert.json
): Added the block schema with inputs for Img and Enable.
Natively Supports UUID Wiring: I discovered that my previous synthesis mapping crashes were caused by residual BlurType and Kernel phantom ports left over in the raw JSON schema. I have completely cleaned the JSON structure so that synthesis.py can now map the blocks seamlessly using its default UUID-based wire mapping feature exactly as intended!
Execution Logic: Implemented standard color inversion correctly using cv2.bitwise_not().
Registry Update: Registered the block in

collection-factory.tsx
.
Verification locally
Successfully booted the local VisualCircuit interface.
Created a standard pipeline: Camera -> ImageInvert -> Screen.
Verified that the synthesis engine successfully compiled the connections and outputted a flawlessly inverted stream from the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant