CN117848369A - Interactive tour guide method and system for tourist highway - Google Patents
Interactive tour guide method and system for tourist highway Download PDFInfo
- Publication number
- CN117848369A CN117848369A CN202311848262.9A CN202311848262A CN117848369A CN 117848369 A CN117848369 A CN 117848369A CN 202311848262 A CN202311848262 A CN 202311848262A CN 117848369 A CN117848369 A CN 117848369A
- Authority
- CN
- China
- Prior art keywords
- image
- images
- scenic
- driving
- road section
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/14—Travel agencies
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3407—Route searching; Route guidance specially adapted for specific applications
- G01C21/3415—Dynamic re-routing, e.g. recalculating the route when the user deviates from calculated route or after detecting real-time traffic data or accidents
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01C—MEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
- G01C21/00—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
- G01C21/26—Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
- G01C21/34—Route searching; Route guidance
- G01C21/3446—Details of route searching algorithms, e.g. Dijkstra, A*, arc-flags or using precalculated routes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/44—Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Remote Sensing (AREA)
- Radar, Positioning & Navigation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Resources & Organizations (AREA)
- Tourism & Hospitality (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- Automation & Control Theory (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Entrepreneurship & Innovation (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Development Economics (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Navigation (AREA)
Abstract
The invention provides an interactive tour guide method and system for a tour road, which are characterized in that a tour road section is determined based on a driving path of an access terminal, the tour road section is provided with a plurality of preset tour guide points, and each preset tour guide point is provided with a corresponding tour guide position and a scene display slot position; acquiring shooting positions of shooting ends, acquiring scenic images acquired by a plurality of shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scenic display slot position; selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the tourist road section; and receiving an access request of an access terminal, and sending the navigation road section to the access terminal for display based on the access request.
Description
Technical Field
The invention relates to a data processing technology, in particular to an interactive tour guide method and system for a tour road.
Background
The tourist highway is a special tourist mode based on highway culture, is very mature at home and abroad, such as new Tibetan line, sichuan Tibetan line and the like, and has important significance in promoting regional economic development, improving scenic spot image, tourist quality, improving traffic condition and the like.
In the prior art, a manager can shoot scenery of a part of positions in a tourist highway, upload the shot images and associate the shot images with the tourist highway, and when a subsequent user inquires about the tourist highway information, the corresponding scenery images are called to show the user, so that people who want to carry out highway tourism can watch in advance, but scenery images at the tourist highway cannot be automatically updated, and the user cannot know the specific positions of scenery, so that the scenery watched by the user is inconsistent with the actual situation, and the user experience is poor.
Therefore, how to automatically update the scenic images on the tourist highway in a rotation way, so that the actual situation is attached, and the experience of users is improved, which is a problem to be solved urgently.
Disclosure of Invention
The embodiment of the invention provides a tourist highway interactive guiding method and system, which can automatically update scenic images at the tourist highway in a rotation way so as to fit with actual conditions, thereby improving user experience.
In a first aspect of the embodiment of the present invention, there is provided a tour guide method, including:
determining a travel road section based on a driving path of an access terminal, wherein the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot;
acquiring shooting positions of shooting ends, acquiring scenic images acquired by a plurality of shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scenic display slot position;
selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the tourist road section;
and receiving an access request of an access terminal, and sending the navigation road section to the access terminal for display based on the access request.
Optionally, in a possible implementation manner of the first aspect, the determining the travel road section based on the driving path of the access terminal includes:
acquiring an access starting point and an access terminal of the access terminal, and determining a driving path corresponding to the access terminal based on the access starting point and the access terminal;
And determining a preset travel road section overlapped with the driving path as the travel road section based on the comparison information of the driving path and the preset travel path.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
acquiring the driving attribute of the travel road section, wherein the driving attribute comprises a single-lane and a double-lane;
when the driving attribute is judged to be a single-lane, generating an independent display slot position corresponding to the single-lane;
when the driving attribute is judged to be a double-lane, generating an initial display slot position, and determining a first middle point of an upper slot position side and a second middle point of a lower slot position side of the initial display slot position;
connecting the first middle point and the second middle point to generate a linkage display slot corresponding to the double-lane, wherein the linkage display slot comprises a left display area and a right display area;
and setting the scene display slot at the preset guide point, wherein the scene display slot is the independent display slot or the linkage display slot.
Optionally, in one possible implementation manner of the first aspect, acquiring the shooting position of the shooting end, when the shooting position is judged to be consistent with the navigation position, acquiring a plurality of scenic images acquired by the shooting end, and counting all scenic images within a preset duration to obtain an image set corresponding to each scene display slot, where the method includes:
Acquiring shooting positions of shooting ends, when the shooting positions are determined to be consistent with the navigation positions, acquiring scenic images acquired by a plurality of shooting ends, and counting all scenic images within a preset time period to obtain an image set corresponding to each scenic display slot position;
when the driving attribute is determined to be a single-lane, associating the image set with an independent display slot position at the corresponding navigation position based on the shooting position to obtain an independent image set corresponding to the independent display slot position;
when the driving attribute is determined to be a double-lane, collecting a driving starting point and a driving end point of a shooting end, and determining a driving direction corresponding to the shooting end based on the driving starting point and the driving end point;
and classifying the image sets according to the driving directions to obtain a left driving set corresponding to the left display area and a right driving set corresponding to the right display area.
Optionally, in one possible implementation manner of the first aspect, the selecting, according to a quality selection policy, a scenic image in the image set to obtain an updated image, and updating, based on the updated image, the corresponding scenic display slot in a timing manner, to generate a guiding road section corresponding to the tourist highway section, including:
Selecting scenic images in the independent image sets according to a quality selection strategy, or selecting scenic images in the left-side driving set and the right-side driving set to obtain updated images;
and updating the corresponding scene display slot positions at regular time based on the updated image, and generating a guide road section corresponding to the travel road section.
Optionally, in a possible implementation manner of the first aspect, the selecting, according to a quality selection policy, the scenic images in the independent image set, or selecting the scenic images in the left driving set and the right driving set, to obtain updated images includes:
carrying out vehicle contour recognition on scenic images in the independent image set or the left driving set and the right driving set based on OpenCV to obtain a plurality of vehicle contours in each scenic image;
acquiring pixel points in the vehicle outline in each scenic image as vehicle pixel points, and taking the rest pixel points as scenic pixel points;
determining the number of all the scenery pixels in the scenery image to obtain scenery number, determining the number of all the pixels in the scenery image to obtain total number, and determining scenery scores according to the ratio of the scenery number to the total number;
And sorting all the scenery images in the independent image set or the left driving set and the right driving set in a descending order based on the scenery scores to obtain an image sequence, and selecting a first scenery image in the image sequence as an updated image.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
acquiring license plate pixel values of a vehicle license plate, and counting pixel points which are the same as and adjacent to the license plate pixel values in the updated image to obtain a plurality of sets to be screened corresponding to the updated image;
determining the number of pixel points in each set to be screened to obtain the number to be screened, and reserving the set to be screened, the number of which is smaller than the preset screening number, to obtain a plurality of comparison sets;
performing contour recognition on each to-be-compared set based on OpenCV and reserving rectangular contours to obtain a plurality of rectangular frames;
acquiring the actual ratio of the length to the width of each rectangular frame, taking the rectangular frame with the actual ratio being consistent with the preset ratio as a license plate frame, and selecting the area where the license plate frame is positioned as a covering area;
and covering the covering area in the updated image based on a preset covering layer to obtain a display image.
Optionally, in one possible implementation manner of the first aspect, the method further includes:
receiving a locking display image and a locking display time period configured for the scene display slot position by the management end;
and locking and displaying the locking and displaying images in the corresponding scene display slots in the guide road section in the locking and displaying time period.
In a second aspect of the embodiments of the present invention, there is provided a tour guide system comprising:
the positioning module is used for determining a travel road section based on a driving path of the access terminal, the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot position;
the acquisition module is used for acquiring shooting positions of shooting ends, acquiring a plurality of scenic images acquired by the shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scene display slot position;
the updating module is used for selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the travel road section;
And the sending module is used for receiving an access request of an access terminal and sending the navigation road section to the access terminal for display based on the access request.
In a third aspect of the embodiments of the present invention, there is provided a readable storage medium having stored therein a computer program for implementing the method of the first aspect and the various possible aspects of the first aspect when executed by a processor.
The beneficial effects of the invention are as follows:
1. according to the invention, the tourist road section on which the access terminal is located can be automatically determined, the scenery of the road is dynamically displayed at the tourist road section on the map through the scene display slot, and the scenery image is attached to the current actual scenery condition in a dynamic updating mode, so that the tourist road section on the map is convenient for a user to observe, and the user experience is improved. According to the invention, the travel road section of the way is automatically determined according to the travel path of the access terminal, the corresponding travel road section is provided with the preset guide point, the scene image which is collected by the shooting terminal and related to the corresponding scene display slot position is subsequently received for screening, and the scene image with the best quality is screened for image update, so that the image in the scene display slot position is automatically updated, and when the access terminal accesses, the displayed image is attached to the actual situation, thereby facilitating the observation of a user and improving the user experience.
2. The invention can set the corresponding scene display slot according to the driving attribute of the tourist road section, thereby facilitating the viewing of users and ensuring that the displayed scene images have different orientations. According to the invention, corresponding independent display slots or linkage display slots are arranged according to the single-way lane or the double-way lane of the tourist highway, so that corresponding sceneries of the single-way lane and the double-way lane are displayed; then, the invention updates the corresponding display areas in the corresponding linkage display slots according to the driving direction of the shooting end, and displays the display areas of the corresponding scene display slots differently according to different lane directions, so that the displayed scene directions are different, and the invention is convenient for users to observe.
3. According to the invention, the scenic images of the tourist highway section are updated regularly, and scenic images with better shooting quality are selected for replacement display during updating, so that when a user accesses, the watched scenic images are more fit with the current actual situation, and the updated images have better quality, thereby improving the user experience. The invention can update the images in the scene display slot at regular time, can identify the vehicle outline in the scenic images to select the quality of the scenic images, and select the scenic images with higher scenic occupancy as updated images to update, thereby improving the watching experience of subsequent users, and enabling the scenic images to fit the actual situation in a manner of regular updating. The license plate part in the picture is identified, the rectangular area is reserved for 2 times of screening by selecting the area with the same color as the license plate, then the corresponding license plate area is obtained by the length-width ratio of the license plate, privacy treatment is carried out, the privacy of a user is ensured, an administrator can set a timed locking display image according to the actual situation, and the license plate can not be replaced in the time.
Drawings
FIG. 1 is a flow chart of an interactive tour guide method for a tourist highway according to the present invention;
fig. 2 is a schematic structural diagram of an interactive tour guide system for a tourist highway according to the present invention.
Detailed Description
The technical scheme of the invention is described in detail below by specific examples. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
The invention provides an interactive tour guide method for a tourist highway, which is shown in fig. 1 and specifically comprises the following steps S1-S4:
s1, determining a travel road section based on a driving path of an access terminal, wherein the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot position.
It should be noted that, the tourist highway is a special tourism mode based on highway culture, for example, new Tibetan line, tendril-leaved Tibetan line, etc., tourists can enjoy scenery on the highway in the car, at present, the administrator can shoot scenery image at tourist highway department in advance and upload to the scenery department of corresponding tourist highway, and when subsequent users search corresponding tourist highway, then can demonstrate the scenery image that administrator shot to the user, but the user can't know the concrete position that the image is located, and the picture can't be updated according to actual conditions.
Therefore, the server first determines the travel road section according to the driving path of the access terminal, where the driving path is the path that the access terminal actually needs to travel, the driving path may be determined by the starting point and the ending point set by the access terminal, and when there are multiple paths, the access terminal may select the corresponding driving path by itself, and the access terminal may be a mobile device, for example, a mobile phone, a tablet, or the like.
It is easy to understand that when a portion overlapping with the tourist road section exists in the driving path of the access terminal, the corresponding tourist road section is determined, so that the tourist road section is convenient to display scenic images of preset navigation points in the tourist road section, the tourist road section is provided with a plurality of preset navigation points, and each preset navigation point is provided with a corresponding navigation position and a corresponding scene display slot. The preset navigation point can be a manually preset navigation guiding place, and the scene display slot is a display slot for displaying scene images.
In some embodiments, in step S1 (determining the travel road segment based on the travel path of the visitor), steps S11-S12 are included:
s11, acquiring an access starting point and an access terminal of the access terminal, and determining a driving path corresponding to the access terminal based on the access starting point and the access terminal.
It can be understood that the server obtains the access start point and the access end point of the access end, and determines the driving path corresponding to the access end according to the access start point and the access end point.
And S12, determining the travel road section overlapped with the driving path based on the comparison information of the driving path and the preset travel path.
It can be understood that the navigation map has a plurality of preset travel paths, the travel path is compared with the preset travel paths, whether the travel paths are overlapped is checked, and the preset travel road section overlapped with the travel paths is determined as the travel road section.
On the basis of the embodiment, the method further comprises A1-A5:
a1, acquiring the driving attribute of the travel road section, wherein the driving attribute is a single-lane or a double-lane.
In the daily driving process, the road may be divided into a single lane or a double lane, so that the scenic images captured in different driving directions are different at the double lane for the same navigation point.
Therefore, the server can acquire the driving attribute of the tourist road section, wherein the driving attribute is a single-way lane or a double-way lane, and the corresponding display slots are conveniently set for different modes of display according to the single-way lane or the double-way lane.
A2, when the driving attribute is judged to be a single-lane, generating an independent display slot corresponding to the single-lane.
It can be appreciated that if the travel attribute is determined to be a single-lane, an independent presentation slot corresponding to the single-lane is generated.
It is to be understood that if the vehicle is a single-lane vehicle, the vehicle can travel in one direction only, and only scenery in one direction needs to be collected.
A3, when the driving attribute is judged to be a double-lane, generating an initial display slot position, and determining a first middle point of an upper slot position side and a second middle point of a lower slot position side of the initial display slot position.
It can be appreciated that if the driving attribute is determined to be a double lane, an initial display slot is generated, and a first intermediate point of an upper slot side and a second intermediate point of a lower slot side of the initial display slot are determined.
A4, connecting the first middle point and the second middle point to generate a linkage display slot corresponding to the double-lane, wherein the linkage display slot comprises a left display area and a right display area.
It should be noted that, for the same navigation point, at the double-lane, the scenic images photographed in different driving directions are different, so that the server connects the first intermediate point with the second intermediate point to generate a linkage display slot corresponding to the double-lane, where the linkage display slot includes a left display area and a right display area.
It is easy to understand that, because two driving directions at the same navigation point of the double-lane need to be shot for the double-lane and displayed simultaneously, the subsequent display is performed by the side display area and the right display area, so that the user can observe scenic images in different directions, and the user experience is improved.
A5, setting the scene display slot at the preset navigation point, wherein the scene display slot is the independent display slot or the linkage display slot.
It can be understood that the server can set the corresponding scene display slot at the preset navigation point according to the driving attribute of the tourist road section, and the scene display slot is the independent display slot or the linkage display slot.
S2, acquiring shooting positions of shooting ends, when judging that the shooting positions are consistent with the navigation positions, acquiring a plurality of scenic images acquired by the shooting ends, and counting all scenic images within a preset time period to obtain an image set corresponding to each scene display slot position.
It will be appreciated that the server will obtain the shooting location of the shooting end, where the shooting end may be the vehicle event data recorder of the authorized vehicle. When the shooting position is judged to be consistent with the guiding position, a plurality of scenery images acquired by the shooting ends are acquired, and the server updates the images of the scenery display slots after the preset time length, so that the server can count all scenery images within the preset time length to obtain an image set corresponding to each scenery display slot.
It is easy to understand that when the vehicle runs to be consistent with the navigation position, the image shot by the shooting end is acquired, the acquired image is corresponding to the corresponding scene display slot position according to the shooting position, and all acquired scene images in the preset time period are counted, so that an image set corresponding to each scene display slot position is obtained.
Through the mode, the image set corresponding to each scene display slot position can be obtained, and subsequent image updating is facilitated.
In some embodiments, in step S2 (capturing the capturing position of the capturing end, when the capturing position is determined to be consistent with the navigation position, obtaining a plurality of scenic images captured by the capturing end, and counting all scenic images within a preset period to obtain an image set corresponding to each scenic display slot position), the method includes S21-S24:
s21, acquiring shooting positions of shooting ends, when the shooting positions are determined to be consistent with the navigation positions, acquiring a plurality of scenic images acquired by the shooting ends, and counting all scenic images within a preset time period to obtain an image set corresponding to each scene display slot position.
It can be understood that the server can acquire the shooting position of the shooting end, when the shooting position is determined to be consistent with the navigation position, scenic images acquired by a plurality of shooting ends at the navigation position are acquired, and all scenic images within a preset duration are counted to obtain an image set corresponding to each scenic display slot position, so that the subsequent updating is facilitated.
And S22, when the driving attribute is determined to be a single-lane, associating the image set with the independent display slot position at the corresponding navigation position based on the shooting position, and obtaining an independent image set corresponding to the independent display slot position.
It can be understood that when the server determines that the driving attribute is a single-lane, the server directly correlates the image set with the independent display slot position at the corresponding navigation position according to the shooting position, so as to obtain an independent image set corresponding to the independent display slot position.
It is easy to understand that when the vehicle is a single-way lane, only scenic images in one direction are needed to be displayed at the moment, so that the image set is directly associated with the independent display slot corresponding to the navigation position according to the shooting position, and the subsequent selection display is facilitated.
S23, when the running attribute is determined to be a double-lane, a running starting point and a running end point of a shooting end are collected, and a running direction corresponding to the shooting end is determined based on the running starting point and the running end point.
It will be understood that when the server determines that the driving attribute is a dual-lane, the corresponding driving direction is determined according to the driving start point and the driving end point of the photographing end, for example, from a to B, the driving direction is a right-side road (from north to south), from B to a, and the driving direction is a left-side road (from north to south), and it will be understood that in practice, the driving directions of the dual-lane are different, and one is a left-side road and the other is a right-side road.
S24, classifying the image sets according to the driving directions to obtain a left driving set corresponding to the left display area and a right driving set corresponding to the right display area.
It can be appreciated that the server classifies the image sets according to the driving direction to obtain a left driving set corresponding to the left display area and a right driving set corresponding to the right display area.
It is easy to understand that the scenic images in the image sets shot by the vehicles running on the left road are classified into the left running sets corresponding to the left display areas, and the scenic images in the image sets shot by the vehicles running on the right road are classified into the right running sets corresponding to the right display areas, so that the subsequent image updating of corresponding directions is convenient for different display areas.
And S3, selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the travel road section.
It can be understood that the server can select the scenic images in the image set according to the quality selection policy so as to obtain updated images, and in the above manner, the scenic images with higher scenic occupancy in the image set are selected as updated images for subsequent update display.
Further, the server updates the corresponding scene display slots at regular time according to the updated images, so as to generate the guide road sections corresponding to the travel road sections.
In some embodiments, in step S3 (selecting scenic images in the image set according to a quality selection policy to obtain updated images, and updating the corresponding scene display slots in a timing manner based on the updated images to generate a tour segment corresponding to the tour segment), the method includes S31-S32:
s31, selecting scenic images in the independent image set according to a quality selection strategy, or selecting scenic images in the left driving set and the right driving set to obtain updated images.
It will be appreciated that the server may choose the scenic images in the independent image set according to a quality selection policy, or choose scenic images in the left-hand running set and the right-hand running set, to obtain updated images.
It is easy to understand that image screening is performed on the image set corresponding to each navigation point according to the quality selection strategy, and the image set with higher scene occupation is selected as an updated image, so that the subsequent user can watch conveniently.
In some embodiments, in step S31 (selecting scenic images in the independent image set according to a quality selection policy, or selecting scenic images in the left-side driving set and the right-side driving set to obtain updated images), S311-S314 are included:
s311, carrying out vehicle contour recognition on scenic images in the independent image set or the left driving set and the right driving set based on OpenCV to obtain a plurality of vehicle contours in each scenic image.
It can be understood that the OpenCV is used for identifying the vehicle contour of the scenic spot image in the independent image set or the left driving set and the right driving set, and it is not difficult to understand that the OpenCV in the prior art can be used for identifying the vehicle contour in the image, so as to obtain a plurality of vehicle contours in each scenic spot image.
S312, obtaining pixel points in the vehicle outline in each scenic image as vehicle pixel points, and taking the rest pixel points as scenic pixel points.
It can be understood that after obtaining a plurality of vehicle outlines in each scenic image, the pixels inside the vehicle outlines are taken as vehicle pixels, and the other pixels are taken as scenic pixels.
S313, determining the number of all the scenery pixels in the scenery image to obtain scenery number, determining the number of all the pixels in the scenery image to obtain total number, and determining the scenery score according to the ratio of the scenery number to the total number.
It can be appreciated that determining the number of all the scenery pixels in the scenery images results in a scenery number, wherein the scenery number is the number of all the scenery pixels in each scenery image.
Further, the total number of all pixel points in the scenic image is determined, and the scenic score is determined according to the ratio of the scenic number to the total number. It is easy to understand that the scene score is the ratio of the number of the scene pixels to the number of all pixels in the scene image, and the higher the ratio is, the more the scene part in the scene image is, the better the quality is, and the lower the ratio is, the less the scene part in the scene image is, and the quality is poor.
S314, sorting all the scenery images in the independent image set or the left driving set and the right driving set in a descending order based on the scenery scores to obtain an image sequence, and selecting a first scenery image in the image sequence as an updated image.
It will be appreciated that the individual images or the scenery images in the left and right running sets are sorted in descending order by scenery scoring to obtain an image sequence, and it will be appreciated that the better the quality of the image sequence, the more front the sorting, and therefore the server will pick the first scenery image in the image sequence as an updated image.
It is easy to understand that, because scenic shooting is performed on the tourist highway, there may be situations that other vehicle license plates exist in the shot image, so after the updated image with better quality is selected, the license plates in the updated image are further covered, thereby protecting privacy.
On the basis of the embodiment, the method further comprises B1-B5:
and B1, acquiring license plate pixel values of a vehicle license plate, and counting adjacent pixel points which are the same as the license plate pixel values in the updated image to obtain a plurality of to-be-screened sets corresponding to the updated image.
It can be understood that the server may obtain the license plate pixel values corresponding to the license plate of the vehicle, for example, blue and black, and it is easy to understand that the license plate pixel values are preset in advance according to the actual situation.
Further, the server may count the pixels in the updated image, which are the same as the license plate pixels and are adjacent to the license plate pixels, and may obtain a plurality of sets to be screened by counting all adjacent license plate pixels.
And B2, determining the number of pixel points in each set to be screened to obtain the number to be screened, and reserving the set to be screened, of which the number to be screened is smaller than the preset screening number, to obtain a plurality of sets to be compared.
It should be noted that, since the scenic image has the rest pixels with the same pixel value as the photographed pixels, the invention needs to screen the set to be screened, and since the license plate of the vehicle is smaller, the area occupation ratio in the image is not too large, and the number of the corresponding pixels is smaller.
Therefore, the server determines the number of the pixel points in each set to be screened to obtain the number to be screened, and reserves the set to be screened, the number of which is smaller than the preset screening number, to obtain a plurality of comparison sets.
According to the embodiment, the large-occupied-area filtering is performed, only the to-be-filtered set with the small area is reserved as the to-be-compared set, and the problem that the vehicle license plate is far and near in the picture is considered, so that the corresponding area can be large or small, but due to the fact that the license plate is small, a user can set the largest preset filtering quantity according to actual conditions, the area filtering is performed, and the obviously larger areas are filtered, so that the processing capacity of subsequent data processing is reduced, and the license plate of the vehicle is better extracted.
And B3, carrying out contour recognition on each set to be compared based on OpenCV, and reserving rectangular contours to obtain a plurality of rectangular frames.
It should be noted that OpenCV is a powerful computer vision library, and main functions include image processing, computer vision, and the like, and can identify and screen contours in images, so that the invention can identify contours of corresponding areas of each set to be compared in the images through OpenCV.
Therefore, the method and the device can identify the outline of the corresponding area of each set to be compared based on OpenCV, and only the rectangular outline is reserved, so that a plurality of rectangular frames are obtained.
And B4, acquiring the actual duty ratio of the length and the width of each rectangular frame, taking the rectangular frame with the actual duty ratio being consistent with the preset duty ratio as a license plate frame, and selecting the area where the license plate frame is positioned as a covering area.
The aspect ratio of the license plate is fixed, and the length and width of the license plate are 440mm×140mm.
Therefore, the server obtains the actual duty ratio of the length and the width of each rectangular frame, and takes the rectangular frame with the same actual duty ratio as the preset duty ratio as the license plate frame, wherein the preset duty ratio is the duty ratio obtained according to the ratio of the length and the width of the license plate of the vehicle. The corresponding actual duty ratio can be obtained by counting the ratio of the number of pixels in the length direction to the number of pixels in the width direction in each rectangular frame, or other prior art can be adopted, and the method is not limited herein.
Furthermore, the area where the license plate frame is located is selected as a covering area, so that subsequent covering is facilitated.
And B5, covering the covering area in the updated image based on a preset covering layer to obtain a display image.
It may be appreciated that the server may cover the covering area in the updated image based on a preset covering layer, so as to obtain the display image, where the preset covering layer may be a preset mosaic image, and is not limited herein.
And S32, updating the corresponding scene display slots at regular time based on the updated images, and generating a guide road section corresponding to the travel road section.
It can be appreciated that when the server picks out the updated image with better quality, the scene display slots corresponding to the scene display slots are updated at regular time based on the updated image, so as to generate the tour road section corresponding to the tour road section.
Through the embodiment, the scenic images at the navigation points are updated at regular time, so that the user can attach to the actual situation when looking over, and the use experience of the user is improved.
S4, receiving an access request of an access terminal, and sending the navigation road section to the access terminal for display based on the access request.
On the basis of the embodiment, the method further comprises C1-C2:
and C1, receiving a locking display image and a locking display time period which are configured for the scene display slot by the management end.
It can be understood that the server receives the locked display image configured by the management end for the corresponding scene display slot and the locked display time period corresponding to the locked display image. The locking display image is a display image set by the management end, the locking display time period is a time period for displaying the locking display image, and the corresponding locking display image in the time period cannot be updated and replaced.
It is easy to understand that when an administrator finds that the image quality at the scene display slot is poor, the administrator can actively configure a corresponding locking display image for the scene display slot and configure a corresponding locking display time period for the locking display image, so that only the locking display image is displayed in the locking display time period and cannot be updated and replaced.
And C2, locking and displaying the locking display images in the corresponding scene display slots in the guide road section in the locking display time period.
In order to better implement the interactive tour guide method for the tourist highway provided by the invention, the invention also provides an interactive tour guide system for the tourist highway, as shown in fig. 2, comprising:
The positioning module is used for determining a travel road section based on a driving path of the access terminal, the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot position;
the acquisition module is used for acquiring shooting positions of shooting ends, acquiring a plurality of scenic images acquired by the shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scene display slot position;
the updating module is used for selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the travel road section;
and the sending module is used for receiving an access request of an access terminal and sending the navigation road section to the access terminal for display based on the access request.
The present invention also provides a readable storage medium having stored therein a computer program for implementing the methods provided by the various embodiments described above when executed by a processor.
The readable storage medium may be a computer storage medium or a communication medium. Communication media includes any medium that facilitates transfer of a computer program from one place to another. Computer storage media can be any available media that can be accessed by a general purpose or special purpose computer. For example, a readable storage medium is coupled to the processor such that the processor can read information from, and write information to, the readable storage medium. In the alternative, the readable storage medium may be integral to the processor. The processor and the readable storage medium may reside in an application specific integrated circuit (Application Specific Integrated Circuits, ASIC for short). In addition, the ASIC may reside in a user device. The processor and the readable storage medium may reside as discrete components in a communication device. The readable storage medium may be read-only memory (ROM), random-access memory (RAM), CD-ROMs, magnetic tape, floppy disk, optical data storage device, etc.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the device may read the execution instructions from the readable storage medium, the execution instructions being executed by the at least one processor to cause the device to implement the methods provided by the various embodiments described above.
In the above embodiment of the apparatus, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.
Claims (10)
1. An interactive tour guide method for a tourist highway, which is characterized by comprising the following steps:
determining a travel road section based on a driving path of an access terminal, wherein the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot;
acquiring shooting positions of shooting ends, acquiring scenic images acquired by a plurality of shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scenic display slot position;
selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the tourist road section;
and receiving an access request of an access terminal, and sending the navigation road section to the access terminal for display based on the access request.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the determining the travel road section based on the driving path of the access terminal comprises the following steps:
acquiring an access starting point and an access terminal of the access terminal, and determining a driving path corresponding to the access terminal based on the access starting point and the access terminal;
And determining a preset travel road section overlapped with the driving path as the travel road section based on the comparison information of the driving path and the preset travel path.
3. The method as recited in claim 2, further comprising:
acquiring the driving attribute of the travel road section, wherein the driving attribute comprises a single-lane and a double-lane;
when the driving attribute is judged to be a single-lane, generating an independent display slot position corresponding to the single-lane;
when the driving attribute is judged to be a double-lane, generating an initial display slot position, and determining a first middle point of an upper slot position side and a second middle point of a lower slot position side of the initial display slot position;
connecting the first middle point and the second middle point to generate a linkage display slot corresponding to the double-lane, wherein the linkage display slot comprises a left display area and a right display area;
and setting the scene display slot at the preset guide point, wherein the scene display slot is the independent display slot or the linkage display slot.
4. The method of claim 3, wherein the step of,
acquiring shooting positions of shooting ends, acquiring a plurality of scenic images acquired by the shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scenic display slot position, wherein the method comprises the following steps of:
Acquiring shooting positions of shooting ends, when the shooting positions are determined to be consistent with the navigation positions, acquiring scenic images acquired by a plurality of shooting ends, and counting all scenic images within a preset time period to obtain an image set corresponding to each scenic display slot position;
when the driving attribute is determined to be a single-lane, associating the image set with an independent display slot position at the corresponding navigation position based on the shooting position to obtain an independent image set corresponding to the independent display slot position;
when the driving attribute is determined to be a double-lane, collecting a driving starting point and a driving end point of a shooting end, and determining a driving direction corresponding to the shooting end based on the driving starting point and the driving end point;
and classifying the image sets according to the driving directions to obtain a left driving set corresponding to the left display area and a right driving set corresponding to the right display area.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
selecting the scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a tour guide section corresponding to the tour section, wherein the method comprises the following steps:
Selecting scenic images in the independent image sets according to a quality selection strategy, or selecting scenic images in the left-side driving set and the right-side driving set to obtain updated images;
and updating the corresponding scene display slot positions at regular time based on the updated image, and generating a guide road section corresponding to the travel road section.
6. The method of claim 5, wherein the step of determining the position of the probe is performed,
the selecting the scenic images in the independent image set according to the quality selection strategy, or selecting the scenic images in the left driving set and the right driving set to obtain updated images, including:
carrying out vehicle contour recognition on scenic images in the independent image set or the left driving set and the right driving set based on OpenCV to obtain a plurality of vehicle contours in each scenic image;
acquiring pixel points in the vehicle outline in each scenic image as vehicle pixel points, and taking the rest pixel points as scenic pixel points;
determining the number of all the scenery pixels in the scenery image to obtain scenery number, determining the number of all the pixels in the scenery image to obtain total number, and determining scenery scores according to the ratio of the scenery number to the total number;
And sorting all the scenery images in the independent image set or the left driving set and the right driving set in a descending order based on the scenery scores to obtain an image sequence, and selecting a first scenery image in the image sequence as an updated image.
7. The method as recited in claim 6, further comprising:
acquiring license plate pixel values of a vehicle license plate, and counting pixel points which are the same as and adjacent to the license plate pixel values in the updated image to obtain a plurality of sets to be screened corresponding to the updated image;
determining the number of pixel points in each set to be screened to obtain the number to be screened, and reserving the set to be screened, the number of which is smaller than the preset screening number, to obtain a plurality of comparison sets;
performing contour recognition on each to-be-compared set based on OpenCV and reserving rectangular contours to obtain a plurality of rectangular frames;
acquiring the actual ratio of the length to the width of each rectangular frame, taking the rectangular frame with the actual ratio being consistent with the preset ratio as a license plate frame, and selecting the area where the license plate frame is positioned as a covering area;
and covering the covering area in the updated image based on a preset covering layer to obtain a display image.
8. The method as recited in claim 7, further comprising:
receiving a locking display image and a locking display time period configured for the scene display slot position by the management end;
and locking and displaying the locking and displaying images in the corresponding scene display slots in the guide road section in the locking and displaying time period.
9. An interactive tour guide system for a tour comprising:
the positioning module is used for determining a travel road section based on a driving path of the access terminal, the travel road section is provided with a plurality of preset guide points, and each preset guide point is provided with a corresponding guide position and a scene display slot position;
the acquisition module is used for acquiring shooting positions of shooting ends, acquiring a plurality of scenic images acquired by the shooting ends when judging that the shooting positions are consistent with the navigation positions, and counting all scenic images within a preset time length to obtain an image set corresponding to each scene display slot position;
the updating module is used for selecting scenic images in the image set according to a quality selection strategy to obtain updated images, and updating the corresponding scene display slots at regular time based on the updated images to generate a guide road section corresponding to the travel road section;
And the sending module is used for receiving an access request of an access terminal and sending the navigation road section to the access terminal for display based on the access request.
10. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, which computer program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311848262.9A CN117848369B (en) | 2023-12-28 | 2023-12-28 | Interactive tour guide method and system for tourist highway |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311848262.9A CN117848369B (en) | 2023-12-28 | 2023-12-28 | Interactive tour guide method and system for tourist highway |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117848369A true CN117848369A (en) | 2024-04-09 |
CN117848369B CN117848369B (en) | 2024-07-26 |
Family
ID=90528395
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311848262.9A Active CN117848369B (en) | 2023-12-28 | 2023-12-28 | Interactive tour guide method and system for tourist highway |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117848369B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013032949A (en) * | 2011-08-01 | 2013-02-14 | Aisin Aw Co Ltd | Display processing system for vehicle, display processing method for vehicle, and program |
CN105205559A (en) * | 2015-09-25 | 2015-12-30 | 重庆大学 | Scenery itinerary route planning system based on multi-source heterogeneous crowd-sourced data |
CN110706282A (en) * | 2019-10-31 | 2020-01-17 | 镁佳(北京)科技有限公司 | Automatic calibration method and device for panoramic system, readable storage medium and electronic equipment |
CN111982140A (en) * | 2020-07-31 | 2020-11-24 | 新石器慧通(北京)科技有限公司 | Tour guide method, device and equipment for unmanned tour guide vehicle |
CN113888564A (en) * | 2021-11-19 | 2022-01-04 | 携程旅游信息技术(上海)有限公司 | Advertisement image display method, system, equipment and storage medium for travel product |
WO2022156538A1 (en) * | 2021-01-19 | 2022-07-28 | 杭州睿胜软件有限公司 | Method for generating file by using shared pictures, and server side and readable storage medium |
-
2023
- 2023-12-28 CN CN202311848262.9A patent/CN117848369B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013032949A (en) * | 2011-08-01 | 2013-02-14 | Aisin Aw Co Ltd | Display processing system for vehicle, display processing method for vehicle, and program |
CN105205559A (en) * | 2015-09-25 | 2015-12-30 | 重庆大学 | Scenery itinerary route planning system based on multi-source heterogeneous crowd-sourced data |
CN110706282A (en) * | 2019-10-31 | 2020-01-17 | 镁佳(北京)科技有限公司 | Automatic calibration method and device for panoramic system, readable storage medium and electronic equipment |
CN111982140A (en) * | 2020-07-31 | 2020-11-24 | 新石器慧通(北京)科技有限公司 | Tour guide method, device and equipment for unmanned tour guide vehicle |
WO2022156538A1 (en) * | 2021-01-19 | 2022-07-28 | 杭州睿胜软件有限公司 | Method for generating file by using shared pictures, and server side and readable storage medium |
CN113888564A (en) * | 2021-11-19 | 2022-01-04 | 携程旅游信息技术(上海)有限公司 | Advertisement image display method, system, equipment and storage medium for travel product |
Also Published As
Publication number | Publication date |
---|---|
CN117848369B (en) | 2024-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3829163B1 (en) | Monitoring method and device | |
JP4845876B2 (en) | Road landscape map creation device, method and program | |
CN109151439A (en) | A kind of the automatic tracing camera system and method for view-based access control model | |
JPH10503627A (en) | Improved chroma key system | |
CN106548451A (en) | A kind of car passenger flow crowding computational methods and device | |
CN101209207A (en) | Eyelid detecting apparatus, eyelid detecting method and program thereof | |
CN112393738A (en) | Visual navigation method based on virtual reality parking lot | |
WO2023138556A1 (en) | Video generation method and apparatus based on multiple vehicle-mounted cameras, and vehicle-mounted device | |
CN111737601A (en) | Recommended method, device, device and storage medium for travel strategy | |
JP2008004989A (en) | Vehicle surrounding display device | |
CN112446241A (en) | Method and device for obtaining characteristic information of target object and electronic equipment | |
CN117848369B (en) | Interactive tour guide method and system for tourist highway | |
JP2017034638A (en) | Image processing system and image processing method | |
CN115810179A (en) | Human-vehicle visual perception information fusion method and system | |
CN117455466B (en) | Method and system for remote evaluation of automobile | |
EP3349201A1 (en) | Parking assist method and vehicle parking assist system | |
JP2016166794A (en) | Image creating apparatus, image creating method, program for image creating apparatus, and image creating system | |
CN113870405B (en) | Texture map selection method for three-dimensional scene reconstruction and related device | |
CN111899512B (en) | Vehicle trajectory extraction method, system and storage medium combined with skyline observation | |
CN112801874B (en) | Vehicle image stitching method and device and vehicle | |
CN115661764A (en) | Detection method and device for violation behaviors and terminal equipment | |
CN113011259A (en) | Operation method of electronic equipment | |
JP2008003660A (en) | Approaching vehicle detector | |
CN116152691A (en) | Image detection method, device, equipment and storage medium | |
CN114584839A (en) | Clipping method and device for shooting vehicle-mounted video, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |