Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'depthai.node.Script' object has no attribute 'setScriptData' #33

Open
ycj1124 opened this issue Oct 9, 2022 · 1 comment

Comments

@ycj1124
Copy link

ycj1124 commented Oct 9, 2022

I found a program using lazepose:https://github.com/Atzingen/QuickiumGymI
I download the requirements as the requirements.yml follows,when I try to run the quickium_solution.py,it happened like this :
Pose detection blob file : /home/ycj/QuickiumGym-main/scores/blazepose/models/pose_detection_sh4.blob
Landmarks using blob file : /home/ycj/QuickiumGym-main/scores/blazepose/models/pose_landmark_full_sh4.blob
Internal camera image size: 576 x 324 - pad_h: 126
Creating pipeline...
Creating Color Camera...
Traceback (most recent call last):
File "quickium_solution.py", line 105, in
pose = BlazeposeDepthai()
File "/home/ycj/QuickiumGym-main/scores/blazepose/BlazeposeDepthaiEdge.py", line 98, in init
self.device = dai.Device(self.create_pipeline())
File "/home/ycj/QuickiumGym-main/scores/blazepose/BlazeposeDepthaiEdge.py", line 143, in create_pipeline
manager_script.setScriptData(self.build_manager_script())
AttributeError: 'depthai.node.Script' object has no attribute 'setScriptData'
2022-10-08 20-13-36 的屏幕截图
what could be the problem? should I replace the whole "blazepose" folder in that program with yours ?thank you very much!

@geaxgx
Copy link
Owner

geaxgx commented Oct 10, 2022

setScriptData() was used in an older version of the depthai library. It is obsolete now. You can try with setScript() instead. Or you can try as you suggested, to replace the blazepose folder by mine (I can't say for sure that it will work as I don't know how it is used in the repo QuickiumGymI).

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

No branches or pull requests

2 participants