nxtcamV5 line tracing issue

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

smart_app123
New User
Posts: 18
Joined: Thu Jan 11, 2018 11:35 am

nxtcamV5 line tracing issue

Postby smart_app123 » Mon Apr 02, 2018 7:37 am

Is LINE_TRACKING efficient when tracing lines in nxtCam? Is OBJECT_TRACKING more efficient?

When the camera recognized the object, it succeeded to drive, but failed to travel along the center line.

And I got the size through the function below, but I could not get the center.

nxt Can I get sample sources related to CamV5?

  public Rectangle getRectangle1 (int id) {
for (int i = 0; i <4; i ++) buf [i] = 0;
getData (0x44 + (id * 5), buf, 4);
return new Rectangle (buf [0] & 0xFF, buf [1] & 0xFF,
(buf [2] & 0xFF) - (buf [0] & 0xFF),
(buf [3] & 0xFF) - (buf [1] & 0xFF));
}

smart_app123
New User
Posts: 18
Joined: Thu Jan 11, 2018 11:35 am

Re: nxtcamV5 line tracing issue

Postby smart_app123 » Mon Apr 02, 2018 7:41 am

https://youtu.be/7otuLRb_INs

Can not you implement it like the image above?
I want to implement it ..

User avatar
esmetaman
Advanced Member
Posts: 377
Joined: Wed Sep 13, 2006 12:16 am
Location: UK, Milton Keynes
Contact:

Re: nxtcamV5 line tracing issue

Postby esmetaman » Tue Apr 03, 2018 8:52 pm

Hi,

Some months ago, I implemented the support for NXTCamV5 for EV3.

You have the sources and examples here:
https://github.com/ev3dev-lang-java/lej ... are/device
https://github.com/ev3dev-lang-java/lej ... s/nxtcamv5

NXTCam comes with some scripts which server for the different modes:

Code: Select all

   
   public static final char OBJECT_TRACKING = 'B';
   public static final char LINE_TRACKING = 'L';


But I didn`t do any depth analysis comparing both modes.

Are you thinking to you with NXT?
http://www.mindsensors.com/vision-for-r ... fixed-lens

I could review if the class require some modification for NXT if you like.

Cheers

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
http://ev3dev-lang-java.github.io/#/
https://github.com/jabrena/livingrobots

smart_app123
New User
Posts: 18
Joined: Thu Jan 11, 2018 11:35 am

Re: nxtcamV5 line tracing issue

Postby smart_app123 » Wed Apr 04, 2018 4:59 am

The above examples are used with due care.
The product is the same as the link and is connected to the EV3.
I want to move along the line, but it is difficult to move to the line.

What is the maximum horizontal and vertical area of nxtcamv5?
Is there an example of implementing line tracing with nxtcamv5?


Return to “EV3 Software”

Who is online

Users browsing this forum: No registered users and 1 guest