Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by huyakinemota · Sep 14, 2017 at 03:04 PM · sdkmono.netintegrationphoto

Canon EDSDK integration with Unity

Hi,

I've faced a problem when trying integrate Canon EDSDK C# wrapper with Unity's Mono. Used C# wrapped and code which handles this wrapper was successfuly working on .NET. WPF application captures photos, takes Live View. But when I try to launch the same code bundle on Unity, I am having an issue with saving photo on PC's HDD. Unity handler script is successfuly initializing EDSDK library and sending command to camera. So far it's all Ok, but when camera takes a photo, and tries to save it on Host, it fails. At the camera's small screen starts to blink icon which says there is not enough space on disk. On another camera (also Canon), in the same situation there was poping up text "PC FULL". In the same time camera is successfuly saving photos on internal storage (SD), even when code is executed in Unity environment.

I have stuck on the issue and have no idea how to fix it. Please, help!

What I've tried:

  • run Unity with administrator rights

  • set all existing rights to all
    existing users of OS for photo saving folder

  • play with EDSDK
    CanonCamera.SetCapacity(int, int)
    method, setting different values for params

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image myloran · Oct 03, 2017 at 07:03 AM 0
Share

Did you find a solution?

avatar image doc-zoidberg · Aug 14, 2018 at 04:21 PM 0
Share

I always get "internal_error" when trying to initilialize the Canon SD$$anonymous$$. Can you share some more info what you did? It works fine as a Winforms/WPF application but not in Unity.

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by huyakinemota · Oct 08, 2017 at 02:18 PM

Hi, yes. Not straight solution, but a workaround using additional .NET process. In my case it's .NET console application, which is being launched by Unity in particular conditions. This additional application process uses C# EDSDK wrapper and handles Canon camera Live View. Then it streams Live View images bytes using Tcp Socket into Unity. Something like TCP Client-Server principle. This way console application plays like a feeder, sending data, and within Unity Socket listener receives data and uses it.

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image myloran · Oct 09, 2017 at 04:48 PM 0
Share

Actually, i don't have this issue yet. I just wondered if it's even possible to work with EDSD$$anonymous$$ inside Unity. But hey, thanks for responce! Btw, It's possible to stream live view directly from EDSD$$anonymous$$ to Unity, do you mean something else?

avatar image huyakinemota · Oct 09, 2017 at 05:30 PM 0
Share

Hi. I think it's possible, because some people say that one guy made EDSD$$anonymous$$ working straightly within Unity in production project. Personally, I had no idea how to integrate EDSD$$anonymous$$ correctly into Unity. It's works great in .NET, but raises much issues in Unity. So if you some day will get it, let me know also. I would be grateful to you.

avatar image pabgarmi · Dec 19, 2017 at 03:24 PM 0
Share

Hi, I am facing the same challenges. Would you have an example of your code that you could share? Thank you!

avatar image MMJasonLi · Jan 04, 2018 at 02:56 AM 0
Share

Hi, I am trying to use EDSD$$anonymous$$ in Unity too!!! I don't have the issue and successfully taking photo and starting liveview!!! However, when I build it and run the exe program, it will get stuck/freeze. When I click "open session" The UI and other Gameobject will stop working totally, EXCEPT the ApiThread which still looping. Did you have same issue like $$anonymous$$e?

avatar image huyakinemota MMJasonLi · Jan 04, 2018 at 08:26 AM 0
Share

$$anonymous$$$$anonymous$$JasonLi, which version of Unity you are using?

avatar image huyakinemota MMJasonLi · Jan 04, 2018 at 08:30 AM 0
Share

maybe you are making build incorrectly? wrong architecture selected?

avatar image doc-zoidberg MMJasonLi · Aug 14, 2018 at 05:52 PM 0
Share

@$$anonymous$$$$anonymous$$JasonLi can you share what you did that EDSD$$anonymous$$ runs in unity? $$anonymous$$y initilization always throws "INTERNAL_ERROR"

avatar image
1

Answer by doc-zoidberg · Aug 14, 2018 at 04:29 PM

@huyakinemota I use the wrapper from here: https://www.codeproject.com/Articles/688276/Canon-EDSDK-Tutorial-in-Csharp?msg=5256579 and copied all necessary dlls in the assets folder. I use the 64bit binaries.

The ddls. work without problems as winforms/wpf application.

But initializing the SDK from a unity plugin throws "INTERNAL_ERROR". I tried also the initialization from a new Thread/STAThread without success.

I have the same problem with the official wrappers included in the sdk

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image utkuolcar · Feb 02 at 01:57 PM 0
Share

I have exactly the same problem. I used the same Tutorial. If you could manage to solve this problem, could you help me to find the answer, please?

avatar image
0

Answer by thecloob · Jul 16, 2018 at 07:18 AM

I'm just getting started with EDSDK / Unity integration on Mac OSX. Can you guys share a few bits of how to get started with this? Can't seem to get the external framework/bundle to be read by Unity. Any help/examples would be amazing!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image huyakinemota_unity · Jul 16, 2018 at 04:42 PM 0
Share

try out EDSD$$anonymous$$ C# wrapper with Unity 2017+ .NET 4.* framework. maybe it would go on it, as C# wrapper is written in C# 6.0

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

76 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do I use .NET as a Scripting Backend on PC, Mac & Linux Standalone? 0 Answers

When will Unity Support .NET 4 to the current Mono Level? 1 Answer

`System.IO.File' does not contain a definition for `AppendText'? 1 Answer

Can I use .NET 4 library or Mono 2.8 in Unity ? 2 Answers

Can I use Monodevelop bundled with Unity to debug standalone .NET applications? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges