Asked — Edited
I want to control the JD camera from my visual studio plugin ,
I've try the following code but it doesn't work
plz I need ur help as soon as possible .
Upgrade to ARC Pro
Synthiam ARC Pro is a cool new tool that will help unleash your creativity with programming robots in just seconds!
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
yup , i still need ur help . I've run ur code but it gave me the following error in the image ,
for that i asked u to control the camera from my windows form .
for example i try to put ur code in a button in my form but unfortunately , it didn't work
image for error
Also, do not use ptp's code. Use the tutorial that i posted.
In the tutorial, to draw on a Panel, for example...
If you are making a plugin, then read the tutorial and use the code i presented.
It takes a Picture, displays in the form and it saves to the desktop.
Platform target: must be x86 (32 bits)
Some dlls are needed in the application folder you have two options:
1) copy the dlls "packages/EZ_B.dll.2015.05.20.00" to the application folder i.e. (bin/debug or bin/release)
2) add application references to the missing dlls:
VS>Project>Add Existing Item>(look for the missing DLL)>ADD
VS>Project>dll properties>"Copy to Output Directory" Change to "Copy if newer"
personally i like the option 2, you are aware of the dlls needed, but the safest option is the 1).
plz I need ur code that display what robot see as in the picture
plz send it to me as soon as possible.
I need the code that display what robot see not the jpg file *sick* *sick*
I need the visual studio code
You have more than you need - as there's even code written for you and pasted in this thread. There is literally nothing else anyone can do outside of flying to your city and sitting in front of your keyboard to physically type it. Please use the information provided to you.
You have been very unclear if this is an sdk program or a plugin. The title is misleading to the type of application that you are making. Either way, information for both those has been provided.
I have removed your other threads from duplicate accounts.
but they aren't two account for the same person we're one team in a graduation project & when I failed to get my needs , my team leader ahmed logged in with his account. u can check my LinkedIn account to see that I'm an IT student.
thanks for being so aggressive.
we connect our jd robot from this lap & our whole project is on it so, the same IP is normal.
1) You still have yet to respond to whether the project is sdk or plugin.
2) sdk code has been presented to you in this thread
3) sdk package contains nearly 50 examples, most of which contain camera
4) plugin code has been provided to you in this thread AND the plugin tutorial has been updated to include an entire new section of how to access the camera
5) plugin and sdk code to draw the camera image to a panel has been provided to you in this thread
Most of us have been students too (in my time it was much more difficult) limited internet, and no money to buy IT books, we hang out in public book stores, reading, copying code & information from store's books until a clerk pointed the exit door.
Windows Form Application Example code post #15:
the initial code have everything you need to handle the EZB camera video frames.
i took a small brake to improve the code, please check the github repository.
the code shows video feed in the form application, is not rocket science, but if you have doubts before, i really hope they will be gone.
i had also some extra concurrency code to prevent future issues.
If your OnNewFrame event runs for a lengthy time, any new frames that arrive will be skipped. The OnNewFrame event will only be raised when a new frame arrives and there is no current instance of the OnNewFrame event running.
thanks verrrrrrrrrryyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy muchhhhhhhhhhhhhhhhhhhh for ur kindness & ur smart behavior when u answering me , u are an excellent man , & no words would give u ur value .
yeah nw is mush better for students to learn but u know that sometimes our minds get stopped .
anyway I appreciate ur words , kindness & ur effort
this is a good advice (re quote, to enforce the importance):
the concurrency issues are:
OneSecondTimer_Tick (measuring) the fps counter, is a Windows Form Timer so the execution is in the UI thread and changing a counter variable same used for OnFrame event, minor detail to enforce two threads using the same variable.
OnNewFrame, Invoke to the UI/Control/Thread (i assumed it wasn't the ui thread, and you confirmed).
like i said no "rocket science code", but if you follow the good practices (even with simple code) it will save your neck later if you keep adding code
One little detail, the camera's close event is being called twice, i double checked the code... not a big deal, i noticed due the output debug.