GithubHelp home page GithubHelp logo

feler404 / ocvl-addon Goto Github PK

View Code? Open in Web Editor NEW
55.0 10.0 9.0 9.85 MB

Framework to ease manage OpenCV algorithms based on Blender

Home Page: https://www.ocvl.teredo.tech/

License: GNU General Public License v3.0

Python 100.00%
python blender opencv ui nodes forhumans multiplatform

ocvl-addon's People

Contributors

aadankan avatar adamrostecki avatar dawidaniol avatar feler404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ocvl-addon's Issues

Video Sample node does not play when reopening the Blend

I tested the Video Sample with latest addon update, it is working fine everything is good. But if close Blender and reopen the BLEND, seems like the node tree is no longer streaming the video sample like before. Re-adding the node does not help.

Workaround for now is to delete the Video Sample node. Save the Blend. Reopen and re-add the Video Sample node to work...

Project abandoned?

While trying to activate the addon it gives an error: no module named 'ocvl_addon'
is this project abandonned? i would really love to see someone forking it and continue supporting it.

missing files in Linux binarys

Hi Dawid,
thanks for your efforts. This tool could be very useful to me but, I couln't make it work.
First of all the Linux binary executable is missing:file (Blender package left, ocvl binary right):

folderView

I just tried to copy it into opencvl/bin. Here is the result:

1stTry

It seems there is more missing.

Previews appear next to the node rather than inside it

When using an image sample node or video node (or any node with a preview) the preview image will appear next to it rather inside the node.
Here are three images taken in succession as I move the node from left to right in the node editor.
image
image
image

This preview moves as the nodes moves but not by the same amount so there is always a misalignment. I have a dual monitor setup so maybe it is reading the window size incorrectly?

Tried to understand "detection" but none works - eg Blob

Screen Shot 2019-08-11 at 12 04 16 pm

I want to try Object Detect but seems like none of the node working, or am I missing something not sure if that keypoints etc is producing anything.

For example Simple Blob Detector node, I am not sure how this can actually work or should work but just it does not work on my computer?

Switch node viewer to composite node

  1. Flags to show preview: NODE_PREVIEW, and optional NODE_CLASS_INPUT
    cmp_node_type_base(&ntype, CMP_NODE_R_LAYERS, "Render Layers", NODE_CLASS_INPUT, NODE_PREVIEW);
    https://github.com/behollister/blender2.8/blob/blender2.8/source/blender/nodes/composite/nodes/node_composite_image.c

  2. Static type: bl_static_type
    TypeError: bpy_struct: item.attr = val: enum "23" not found in ('CUSTOM', 'UNDEFINED', 'FRAME', 'GROUP', 'GROUP_INPUT', 'GROUP_OUTPUT', 'REROUTE', 'VIEWER', 'RGB', 'VALUE', 'MIX_RGB', 'VALTORGB', 'RGBTOBW', 'NORMAL', 'CURVE_VEC', 'CURVE_RGB', 'ALPHAOVER', 'BLUR', )

Can´t choose realsense depth camera

Hi,
thanks for your great tool.
I tried it today for the first time but unfortunatly i wasnt able open the realsense depth camera in the windows beta (blender 2.92) version only the rgb camera is available.
If there would be a python node and a raw data stream i could extract the data by myself (its only a numpy array).
Maybe you could help me.
At the moment i use opencv and pyrealsense2 in pycharm to create a tracker with ids to send moments of each tracked contour as a dictionary via udp stream to blender.

Your tool is killer for realtime interaction like touchdesigner.

No module named 'ocvl_addon' on Blender 2.92

Traceback (most recent call last):
File "D:\blender\2.92\2.92\scripts\modules\addon_utils.py", line 382, in enable
mod.register()
File "C:\Users\VPS\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\ocvl-addon-master_init_.py", line 49, in register
from ocvl_addon import logger_conf
ModuleNotFoundError: No module named 'ocvl_addon'

Video Sample is static

I can see video streaming image coming from node, but it seems static unless I keep clicking manually on the node. Is this a normal behaviour?

Trying to find Custom Node for OpenPose

I wanted to try using my own custom Python code and searching for Custom Node, but could not find it. Is it hidden somewhere?

Basically wanted to try something like OpenPose to make pose estimation for realtime motion capture.

simple bug I meet

hello,I meet a problems when install addon
location: :-1
Traceback (most recent call last):
File "/root/Blender/blender-280/2.80/scripts/startup/bl_ui/space_userpref.py", line 1809, in draw
split.label(text=info["author"], translate=False)
TypeError: UILayout.label(): error with keyword argument "text" - Function.text expected a string type, not tuple

and to

"author": (

"author": (
    "Dawid Aniol, ",
    "OCVL team, ",
    "Teredo team",
),

I try to change as

"author": "Dawid Aniol,OCVL team,Teredo team",

then solve

Blender Node FindContours and DrawContours error

I keep getting error when trying to process a simple contour output:

Screen Shot 2019-08-09 at 11 25 34 am

2019-08-09 11:19:54,737 [WARNING] ocvl.core.node_base: CV process problem: fn=<built-in function findContours>, kwargs={'image': array([[[ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 72,  72,  72, 255],
        ...,
        [ 70,  70,  70, 255],
        [ 71,  71,  71, 255],
        [ 72,  72,  72, 255]],

       [[ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        ...,
        [ 71,  71,  71, 255],
        [ 70,  70,  70, 255],
        [ 72,  72,  72, 255]],

       [[ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        ...,
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 70,  70,  70, 255]],

       ...,

       [[ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        ...,
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255]],

       [[ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        ...,
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255]],

       [[ 70,  70,  70, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255],
        ...,
        [ 70,  70,  70, 255],
        [ 71,  71,  71, 255],
        [ 71,  71,  71, 255]]], dtype=uint8), 'mode': 3, 'method': 2, 'offset': (0, 0)}, self=<bpy_struct, OCVLfindContoursNode("findContours")>, exception=OpenCV(4.1.0) /Users/travis/build/skvark/opencv-python/opencv/modules/imgproc/src/contours.cpp:197: error: (-210:Unsupported format or combination of formats) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function 'cvStartFindContours_Impl'

OCVL clashing with Sverchok add-on....

Screen Shot 2019-08-09 at 8 10 42 pm

Not sure how to explain this, but OCVL addon seems to be affecting Sverchok nodes not in the good way... it clashes and making some nodes not working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.